no message

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:00:29 +08:00
commit 4d06351f6a
2830 changed files with 166480 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "card",
setup(__props) {
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e2) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e2.scrollTop);
e2.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.userCardList(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
let toCrud = () => {
common_vendor.index.navigateTo({
url: "./cardList?id=" + e.id
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.cardNo),
c: common_vendor.t(item.stationName),
d: common_vendor.t(item.merchantName),
e: common_vendor.t(item.balance),
f: common_vendor.o(($event) => common_vendor.unref(toCrud)(item), index),
g: index
};
}),
b: common_vendor.sr(paging, "dbd3f78b-0", {
"k": "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-dbd3f78b"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/card.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "我的电卡",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-dbd3f78b"><z-paging wx:if="{{e}}" class="r data-v-dbd3f78b" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="dbd3f78b-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="g" style="margin-bottom:30rpx" bindtap="{{item.f}}" class="mt30 wallet_list data-v-dbd3f78b"><view class="data-v-dbd3f78b" style="color:#fff"><view class="data-v-dbd3f78b" style="font-weight:bold;font-size:32rpx;margin-bottom:18rpx">{{item.a}}</view><view class="data-v-dbd3f78b" style="margin-bottom:12rpx;font-size:28rpx;color:#eee"> 卡号:{{item.b}}</view><view class="data-v-dbd3f78b" style="margin-bottom:12rpx;font-size:28rpx;color:#eee"> 电站:{{item.c}}</view><view class="data-v-dbd3f78b" style="font-size:28rpx;color:#eee"> 商户:{{item.d}}</view></view><view class="data-v-dbd3f78b" style="display:flex;flex-direction:column;align-items:center;color:#fff;font-weight:bold;font-size:26rpx"><view class="data-v-dbd3f78b" style="font-size:55rpx;margin-bottom:30rpx">{{item.e}}</view><view class="data-v-dbd3f78b" style="font-weight:500">余额</view></view></view></z-paging></view>

View File

@@ -0,0 +1,8 @@
.wallet_list.data-v-dbd3f78b {
border-radius: 15rpx;
background-color: #4879e6;
padding: 35rpx 50rpx 35rpx 30rpx;
display: flex;
align-items: flex-end;
justify-content: space-between;
}

View File

@@ -0,0 +1,81 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "cardList",
setup(__props) {
let id = common_vendor.ref("");
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onLoad((options) => {
id.value = options.id;
});
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize,
id: id.value
};
api_api.userCardRecord(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.recordName || "-"),
b: common_vendor.t(item.createTime),
c: common_vendor.t(item.amount),
d: index
};
}),
b: common_vendor.sr(paging, "50ceb965-0", {
"k": "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-50ceb965"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/cardList.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "电卡记录",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-50ceb965"><z-paging wx:if="{{e}}" class="r data-v-50ceb965" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="50ceb965-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="d" style="margin-bottom:30rpx" class="mt30 wallet_list data-v-50ceb965"><view class="wallet_list_left data-v-50ceb965"><view class="data-v-50ceb965">{{item.a}}</view><view class="data-v-50ceb965">{{item.b}}</view></view><view class="wallet_list_right data-v-50ceb965" style="display:flex;flex-direction:column;align-items:flex-end"><view class="data-v-50ceb965">{{item.c}}元</view></view></view></z-paging></view>

View File

@@ -0,0 +1,67 @@
.wallet_pall.data-v-50ceb965 {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
}
.wallet_pall_header.data-v-50ceb965 {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-50ceb965 {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-50ceb965:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
.wallet_pall_ye view.data-v-50ceb965:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
.wallet_list.data-v-50ceb965 {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-50ceb965:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-50ceb965:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-50ceb965:nth-child(3) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-50ceb965:nth-child(4) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-50ceb965 {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}

View File

@@ -0,0 +1,30 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
const _easycom_up_cell_group2 = common_vendor.resolveComponent("up-cell-group");
(_easycom_up_cell2 + _easycom_up_cell_group2)();
}
const _easycom_up_cell = () => "../../uni_modules/uview-plus/components/u-cell/u-cell.js";
const _easycom_up_cell_group = () => "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group.js";
if (!Math) {
(_easycom_up_cell + _easycom_up_cell_group)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
icon: "integral-fill",
title: "会员等级",
value: "新版本"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/earnings.js.map

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "收益",
"usingComponents": {
"up-cell": "../../uni_modules/uview-plus/components/u-cell/u-cell",
"up-cell-group": "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group"
}
}

View File

@@ -0,0 +1 @@
<view class="earnings"><up-cell-group u-s="{{['d']}}" u-i="c749b6aa-0" bind:__l="__l"><up-cell wx:if="{{a}}" u-i="c749b6aa-1,c749b6aa-0" bind:__l="__l" u-p="{{a}}"></up-cell></up-cell-group></view>

View File

View File

@@ -0,0 +1,76 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
_easycom_z_paging2();
}
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
if (!Math) {
_easycom_z_paging();
}
const _sfc_main = {
__name: "incomeList",
setup(__props) {
common_vendor.ref({});
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.walletRecord(params).then((res) => {
paging.value.complete(res);
}).catch((res) => {
paging.value.complete(false);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.recordName || "-"),
b: common_vendor.t(item.createTime),
c: common_vendor.t(item.amount),
d: index
};
}),
b: common_vendor.sr(paging, "8f9930cc-0", {
"k": "paging"
}),
c: common_vendor.o(queryList),
d: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
e: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8f9930cc"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/incomeList.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "余额明细",
"usingComponents": {
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="earnings p30 data-v-8f9930cc"><z-paging wx:if="{{e}}" class="r data-v-8f9930cc" u-s="{{['d']}}" u-r="paging" bindquery="{{c}}" u-i="8f9930cc-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="d" style="margin-bottom:30rpx" class="mt30 wallet_list data-v-8f9930cc"><view class="wallet_list_left data-v-8f9930cc"><view class="data-v-8f9930cc">{{item.a}}</view><view class="data-v-8f9930cc">{{item.b}}</view></view><view class="wallet_list_right data-v-8f9930cc" style="display:flex;flex-direction:column;align-items:flex-end"><view class="data-v-8f9930cc">{{item.c}}元</view></view></view></z-paging></view>

View File

@@ -0,0 +1,67 @@
.wallet_pall.data-v-8f9930cc {
width: 690rpx;
height: 272rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 40rpx;
background: #ffffff;
}
.wallet_pall_header.data-v-8f9930cc {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-8f9930cc {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-8f9930cc:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #002ea4;
}
.wallet_pall_ye view.data-v-8f9930cc:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #002ea4;
}
.wallet_list.data-v-8f9930cc {
width: 690rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(3) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_left view.data-v-8f9930cc:nth-child(4) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-8f9930cc {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}

View File

@@ -0,0 +1,90 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
const _easycom_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
(_easycom_statusBar2 + _easycom_up_avatar2 + _easycom_cc_myTabbar2)();
}
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
const _easycom_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
if (!Math) {
(_easycom_statusBar + _easycom_up_avatar + _easycom_cc_myTabbar)();
}
const _sfc_main = {
__name: "mine",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let info = common_vendor.ref({});
let gridList = common_vendor.ref([
{
name: "我的电卡",
img: "/static/icon/dk_mine.png",
path: "/pages/mine/card",
type: "nav"
},
{
name: "充电订单",
img: "/static/icon/cd_mine.png",
path: "/pages/order/order",
type: "switchTab"
},
{
name: "余额明细",
img: "/static/icon/ye_mine.png",
path: "/pages/mine/incomeList",
type: "nav"
},
{
name: "客服中心",
img: "/static/icon/kf_mine.png",
call: true
}
]);
common_vendor.onShow(async () => {
common_vendor.index.hideTabBar();
let _res = await api_api.userInfo();
info.value = _res;
});
const toEarnings = () => {
common_vendor.index.navigateTo({
url: "./sett"
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
size: "150rpx",
src: common_vendor.unref(info).avatar
}),
b: common_vendor.t(common_vendor.unref(info).nickName),
c: common_vendor.t(common_vendor.unref(info).phone || ""),
d: common_vendor.o(toEarnings),
e: common_assets._imports_0$2,
f: common_vendor.t(common_vendor.unref(info).balance || 0),
g: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
h: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/refund/refund?balance=${common_vendor.unref(info).refundableAmount}`)),
j: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/money/recharge")),
k: common_vendor.f(common_vendor.unref(gridList), (item, index, i0) => {
return {
a: item.img,
b: common_vendor.t(item.name),
c: index,
d: common_vendor.o(($event) => common_vendor.unref(nav)(item), index)
};
}),
l: common_vendor.p({
tabBarShow: 4
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"usingComponents": {
"status-bar": "../../components/statusBar/statusBar",
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
}
}

View File

@@ -0,0 +1 @@
<view class="mine data-v-7c2ebfa5"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" bind:__l="__l"/><view class="p30 data-v-7c2ebfa5"><view class="mine_header data-v-7c2ebfa5"><view class="mine_header_img data-v-7c2ebfa5"><up-avatar wx:if="{{a}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" bind:__l="__l" u-p="{{a}}"></up-avatar></view><view class="mine_header_user data-v-7c2ebfa5"><view class="data-v-7c2ebfa5">{{b}}</view><view class="data-v-7c2ebfa5">{{c}}</view></view><image class="mine_header_sett data-v-7c2ebfa5" bindtap="{{d}}" src="{{e}}"></image></view><view class="mine_money data-v-7c2ebfa5"><view class="flex-acsb flex1 mine_money_top data-v-7c2ebfa5" style="width:100%"><view class="mine_money_left data-v-7c2ebfa5" bindtap="{{g}}"><view class="data-v-7c2ebfa5">{{f}}</view><view class="data-v-7c2ebfa5">钱包余额</view></view><view class="mine_money_left data-v-7c2ebfa5" bindtap="{{h}}"><view class="data-v-7c2ebfa5">0</view><view class="data-v-7c2ebfa5">赠送余额</view></view></view><view class="flex1 mine_money_bottom data-v-7c2ebfa5" style="display:flex;align-items:center"><view class="data-v-7c2ebfa5" bindtap="{{i}}">退款</view><view class="data-v-7c2ebfa5" bindtap="{{j}}">充值</view></view></view><view class="mine_grid data-v-7c2ebfa5"><view class="mine_grid_tit data-v-7c2ebfa5">常用功能</view><view class="mine_grid_views data-v-7c2ebfa5"><view wx:for="{{k}}" wx:for-item="item" wx:key="c" class="mine_grid_views_block data-v-7c2ebfa5" bindtap="{{item.d}}"><image class="data-v-7c2ebfa5" src="{{item.a}}" mode="widthFix"></image><view class="data-v-7c2ebfa5">{{item.b}}</view></view></view></view></view><view class="data-v-7c2ebfa5" style="width:100%;height:100vh;background:#f7f7f7;position:absolute;top:0;left:0;z-index:-1"></view><cc-my-tabbar wx:if="{{l}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" bind:__l="__l" u-p="{{l}}"></cc-my-tabbar></view>

View File

@@ -0,0 +1,153 @@
.mine_header.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.mine_header_img.data-v-7c2ebfa5 {
width: 150rpx;
height: 150rpx;
margin-right: 15rpx;
}
.mine_header_user.data-v-7c2ebfa5 {
flex: 1;
}
.mine_header_user view.data-v-7c2ebfa5:nth-child(1) {
font-weight: bold;
font-size: 32rpx;
color: #232323;
margin-bottom: 15rpx;
}
.mine_header_user view.data-v-7c2ebfa5:nth-child(2) {
font-weight: bold;
font-size: 44rpx;
color: #232323;
}
.mine_header_sett.data-v-7c2ebfa5 {
width: 42rpx;
height: 42rpx;
}
.mine_money.data-v-7c2ebfa5 {
margin-top: 35rpx;
display: flex;
align-items: center;
flex-direction: column;
justify-content: start;
width: 100%;
background: linear-gradient(178deg, #9ab6ff 0%, #4879e6 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 20rpx 0rpx 0;
}
.mine_money_top.data-v-7c2ebfa5 {
padding: 0 150rpx;
}
.mine_money_bottom.data-v-7c2ebfa5 {
width: 100%;
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
border-top: 1rpx solid rgba(255, 255, 255, 0.3);
margin-top: 20rpx;
padding: 15rpx 0;
}
.mine_money_bottom view.data-v-7c2ebfa5 {
width: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 30rpx;
color: #fff;
}
.mine_money_left.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.mine_money_left view.data-v-7c2ebfa5:nth-child(1) {
font-weight: bold;
font-size: 48rpx;
color: #ffffff;
margin-bottom: 5rpx;
}
.mine_money_left view.data-v-7c2ebfa5:nth-child(2) {
font-weight: bold;
font-size: 20rpx;
color: #ffffff;
}
.mine_money_right.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
width: 124rpx;
height: 54rpx;
background: rgba(255, 255, 255, 0.24);
border-radius: 140rpx 140rpx 140rpx 140rpx;
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
}
.mine_grid.data-v-7c2ebfa5 {
width: 100%;
padding: 20rpx 30rpx;
background-color: #fff;
border-radius: 15rpx;
margin-top: 30rpx;
}
.mine_grid_tit.data-v-7c2ebfa5 {
font-size: 30rpx;
color: #333;
opacity: 0.8;
}
.mine_grid_views.data-v-7c2ebfa5 {
margin-top: 20rpx;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
width: 100%;
}
.mine_grid_views_block.data-v-7c2ebfa5 {
height: 95rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
color: #333;
}
.mine_grid_views_block image.data-v-7c2ebfa5 {
width: 45rpx;
height: 45rpx;
}
.mine_fun.data-v-7c2ebfa5 {
margin-top: 35rpx;
width: 100%;
background-color: #fff;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 35rpx;
}
.mine_fun_view.data-v-7c2ebfa5 {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 35rpx;
}
.mine_fun_view_left.data-v-7c2ebfa5 {
width: 58rpx;
height: 58rpx;
margin-right: 20rpx;
}
.mine_fun_view_name.data-v-7c2ebfa5 {
flex: 1;
font-weight: bold;
font-size: 24rpx;
color: #232323;
}
.mine_fun_view_right.data-v-7c2ebfa5 {
width: 24rpx;
height: 24rpx;
}

View File

@@ -0,0 +1,108 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
const utils_fun = require("../../utils/fun.js");
if (!Array) {
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
const _easycom_up_cell_group2 = common_vendor.resolveComponent("up-cell-group");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_avatar2 + _easycom_up_cell2 + _easycom_up_cell_group2 + _easycom_up_button2)();
}
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
const _easycom_up_cell = () => "../../uni_modules/uview-plus/components/u-cell/u-cell.js";
const _easycom_up_cell_group = () => "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_avatar + _easycom_up_cell + _easycom_up_cell_group + _easycom_up_button)();
}
const _sfc_main = {
__name: "sett",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onShow(async () => {
getInfo();
});
const getInfo = async () => {
let _res = await api_api.userInfo();
info.value = _res;
};
const chooseAvatar = async (e) => {
let img = await utils_fun.uploadFiles(e.detail.avatarUrl);
api_api.updateAvatar({ avatar: img }).then((res) => {
getInfo();
});
common_vendor.index.__f__("log", "at pages/mine/sett.vue:51", img);
};
const upNickName = () => {
common_vendor.index.showModal({
title: "修改昵称",
content: info.value.nickName,
editable: true,
success: function(res) {
if (res.confirm) {
api_api.updateNickName({ nickName: res.content }).then((res2) => {
getInfo();
});
common_vendor.index.__f__("log", "at pages/mine/sett.vue:64", res);
common_vendor.index.__f__("log", "at pages/mine/sett.vue:65", "用户点击确定");
} else if (res.cancel) {
common_vendor.index.__f__("log", "at pages/mine/sett.vue:67", "用户点击取消");
}
}
});
};
const outLogin = () => {
common_vendor.index.showModal({
title: "提示",
content: "是否确认退出登录?",
success: (res) => {
if (res.confirm) {
common_vendor.index.clearStorageSync();
common_vendor.index.reLaunch({
url: "/pages/home/home"
});
} else if (res.cancel) {
common_vendor.index.__f__("log", "at pages/mine/sett.vue:84", "用户点击取消");
}
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
src: common_vendor.unref(info).avatar
}),
b: common_vendor.p({
title: "头像",
isLink: true,
size: "min"
}),
c: common_vendor.o(chooseAvatar),
d: common_vendor.t(common_vendor.unref(info).nickName),
e: common_vendor.o(upNickName),
f: common_vendor.p({
title: "昵称",
isLink: true,
size: "min"
}),
g: common_vendor.t(common_vendor.unref(info).phone || "-"),
h: common_vendor.p({
title: "手机号",
size: "min",
border: false
}),
i: common_vendor.p({
border: false
}),
j: common_vendor.o(outLogin),
k: common_vendor.p({
type: "error",
text: "退出登录"
})
};
};
}
};
wx.createPage(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/sett.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
"up-cell": "../../uni_modules/uview-plus/components/u-cell/u-cell",
"up-cell-group": "../../uni_modules/uview-plus/components/u-cell-group/u-cell-group",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1 @@
<view class="p30"><view style="background-color:#fff;border-radius:15rpx"><up-cell-group wx:if="{{i}}" u-s="{{['d']}}" u-i="442b60d4-0" bind:__l="__l" u-p="{{i}}"><button style="all:unset" open-type="chooseAvatar" bindchooseavatar="{{c}}"><up-cell wx:if="{{b}}" u-s="{{['value']}}" u-i="442b60d4-1,442b60d4-0" bind:__l="__l" u-p="{{b}}"><up-avatar u-i="442b60d4-2,442b60d4-1" bind:__l="__l" u-p="{{a}}" slot="value"></up-avatar></up-cell></button><up-cell wx:if="{{f}}" u-s="{{['value']}}" bindclick="{{e}}" u-i="442b60d4-3,442b60d4-0" bind:__l="__l" u-p="{{f}}"><text class="u-slot-value" slot="value">{{d}}</text></up-cell><up-cell wx:if="{{h}}" u-s="{{['value']}}" u-i="442b60d4-4,442b60d4-0" bind:__l="__l" u-p="{{h}}"><text class="u-slot-value" slot="value">{{g}}</text></up-cell></up-cell-group></view><view style="height:100rpx"></view><up-button wx:if="{{k}}" bindclick="{{j}}" u-i="442b60d4-5" bind:__l="__l" u-p="{{k}}"></up-button></view>

View File

@@ -0,0 +1,4 @@
button::after {
all: unset;
}