no message
This commit is contained in:
8
unpackage/dist/dev/mp-alipay/pages/mine/card.acss
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/card.acss
vendored
Normal 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;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/card.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/card.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-dbd3f78b"><z-paging class="data-v-dbd3f78b" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="dbd3f78b-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a:key="g" style="margin-bottom:30rpx" onTap="{{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>
|
||||
84
unpackage/dist/dev/mp-alipay/pages/mine/card.js
vendored
Normal file
84
unpackage/dist/dev/mp-alipay/pages/mine/card.js
vendored
Normal 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)),
|
||||
g: index
|
||||
};
|
||||
}),
|
||||
b: () => ({
|
||||
r: paging,
|
||||
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;
|
||||
my.createPage(MiniProgramPage);
|
||||
6
unpackage/dist/dev/mp-alipay/pages/mine/card.json
vendored
Normal file
6
unpackage/dist/dev/mp-alipay/pages/mine/card.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "我的电卡",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
67
unpackage/dist/dev/mp-alipay/pages/mine/cardList.acss
vendored
Normal file
67
unpackage/dist/dev/mp-alipay/pages/mine/cardList.acss
vendored
Normal 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;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/cardList.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/cardList.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-50ceb965"><z-paging class="data-v-50ceb965" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="50ceb965-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a: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>
|
||||
81
unpackage/dist/dev/mp-alipay/pages/mine/cardList.js
vendored
Normal file
81
unpackage/dist/dev/mp-alipay/pages/mine/cardList.js
vendored
Normal 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: () => ({
|
||||
r: paging,
|
||||
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;
|
||||
my.createPage(MiniProgramPage);
|
||||
6
unpackage/dist/dev/mp-alipay/pages/mine/cardList.json
vendored
Normal file
6
unpackage/dist/dev/mp-alipay/pages/mine/cardList.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "电卡记录",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
0
unpackage/dist/dev/mp-alipay/pages/mine/earnings.acss
vendored
Normal file
0
unpackage/dist/dev/mp-alipay/pages/mine/earnings.acss
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/earnings.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/earnings.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings"><up-cell-group u-s="{{['d']}}" u-i="c749b6aa-0" onVI="__l"><up-cell u-i="c749b6aa-1,c749b6aa-0" onVI="__l" u-p="{{a}}"></up-cell></up-cell-group></view>
|
||||
29
unpackage/dist/dev/mp-alipay/pages/mine/earnings.js
vendored
Normal file
29
unpackage/dist/dev/mp-alipay/pages/mine/earnings.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"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]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
7
unpackage/dist/dev/mp-alipay/pages/mine/earnings.json
vendored
Normal file
7
unpackage/dist/dev/mp-alipay/pages/mine/earnings.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"defaultTitle": "收益",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
67
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.acss
vendored
Normal file
67
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.acss
vendored
Normal 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;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="earnings p30 data-v-8f9930cc"><z-paging class="data-v-8f9930cc" u-s="{{['d']}}" ref="__r" u-r="{{b}}" onQuery="{{c}}" u-i="8f9930cc-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"><view a:for="{{a}}" a:for-item="item" a: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>
|
||||
76
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.js
vendored
Normal file
76
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.js
vendored
Normal 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: () => ({
|
||||
r: paging,
|
||||
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;
|
||||
my.createPage(MiniProgramPage);
|
||||
6
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.json
vendored
Normal file
6
unpackage/dist/dev/mp-alipay/pages/mine/incomeList.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "余额明细",
|
||||
"usingComponents": {
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
100
unpackage/dist/dev/mp-alipay/pages/mine/mine.acss
vendored
Normal file
100
unpackage/dist/dev/mp-alipay/pages/mine/mine.acss
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
.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: row;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
height: 152rpx;
|
||||
background: linear-gradient(178deg, #9ab6ff 0%, #4879e6 100%);
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.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_fun.data-v-7c2ebfa5 {
|
||||
margin-top: 35rpx;
|
||||
width: 100%;
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
|
||||
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;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/mine.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/mine.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="mine data-v-7c2ebfa5"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" onVI="__l"/><view class="p30 data-v-7c2ebfa5"><view class="mine_header data-v-7c2ebfa5"><view class="mine_header_img data-v-7c2ebfa5"><up-avatar class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" onVI="__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" onTap="{{d}}" src="{{e}}"></image></view><view class="mine_money data-v-7c2ebfa5"><view class="mine_money_left data-v-7c2ebfa5" onTap="{{g}}"><view class="data-v-7c2ebfa5">{{f}}</view><view class="data-v-7c2ebfa5">钱包余额</view></view><view class="data-v-7c2ebfa5" style="display:flex;align-items:center"><view class="mine_money_right data-v-7c2ebfa5" style="margin-right:20rpx" onTap="{{h}}">退款</view><view class="mine_money_right data-v-7c2ebfa5" onTap="{{i}}">充值</view></view></view><view class="mine_fun data-v-7c2ebfa5"><view class="mine_fun_view data-v-7c2ebfa5" onTap="{{l}}"><image class="mine_fun_view_left data-v-7c2ebfa5" src="{{j}}"></image><view class="mine_fun_view_name data-v-7c2ebfa5">充电卡</view><image class="mine_fun_view_right data-v-7c2ebfa5" src="{{k}}" mode="widthFix"></image></view></view></view><tabbar class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" onVI="__l" u-p="{{m}}"></tabbar></view>
|
||||
58
unpackage/dist/dev/mp-alipay/pages/mine/mine.js
vendored
Normal file
58
unpackage/dist/dev/mp-alipay/pages/mine/mine.js
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
"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_tabbar2 = common_vendor.resolveComponent("tabbar");
|
||||
(_easycom_statusBar2 + _easycom_up_avatar2 + _easycom_tabbar2)();
|
||||
}
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_avatar = () => "../../uni_modules/uview-plus/components/u-avatar/u-avatar.js";
|
||||
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_up_avatar + _easycom_tabbar)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "mine",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let info = common_vendor.ref({});
|
||||
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),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/incomeList")),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/refund/refund?balance=${common_vendor.unref(info).balance}`)),
|
||||
i: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/money/recharge")),
|
||||
j: common_assets._imports_1$1,
|
||||
k: common_assets._imports_1$2,
|
||||
l: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/card")),
|
||||
m: common_vendor.p({
|
||||
path: "/pages/mine/mine"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
11
unpackage/dist/dev/mp-alipay/pages/mine/mine.json
vendored
Normal file
11
unpackage/dist/dev/mp-alipay/pages/mine/mine.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"pullRefresh": false,
|
||||
"transparentTitle": "always",
|
||||
"titlePenetrate": "YES",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-avatar": "../../uni_modules/uview-plus/components/u-avatar/u-avatar",
|
||||
"tabbar": "../../components/tabbar/tabbar"
|
||||
}
|
||||
}
|
||||
4
unpackage/dist/dev/mp-alipay/pages/mine/sett.acss
vendored
Normal file
4
unpackage/dist/dev/mp-alipay/pages/mine/sett.acss
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
button::after {
|
||||
all: unset;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/sett.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/sett.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view style="background-color:#fff;border-radius:15rpx"><up-cell-group u-s="{{['d']}}" u-i="442b60d4-0" onVI="__l" u-p="{{g}}"><button style="all:unset" open-type="chooseAvatar" onChooseavatar="{{c}}"><up-cell u-s="{{['value']}}" u-i="442b60d4-1,442b60d4-0" onVI="__l" u-p="{{b}}"><up-avatar u-i="442b60d4-2,442b60d4-1" onVI="__l" u-p="{{a}}" slot="value"></up-avatar></up-cell></button><up-cell u-s="{{['value']}}" onClick="{{e}}" u-i="442b60d4-3,442b60d4-0" onVI="__l" u-p="{{f}}"><text class="u-slot-value" slot="value">{{d}}</text></up-cell></up-cell-group></view></view>
|
||||
79
unpackage/dist/dev/mp-alipay/pages/mine/sett.js
vendored
Normal file
79
unpackage/dist/dev/mp-alipay/pages/mine/sett.js
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
"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");
|
||||
(_easycom_up_avatar2 + _easycom_up_cell2 + _easycom_up_cell_group2)();
|
||||
}
|
||||
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";
|
||||
if (!Math) {
|
||||
(_easycom_up_avatar + _easycom_up_cell + _easycom_up_cell_group)();
|
||||
}
|
||||
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();
|
||||
});
|
||||
console.log(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();
|
||||
});
|
||||
console.log(res);
|
||||
console.log("用户点击确定");
|
||||
} else if (res.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
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",
|
||||
border: false
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
border: false
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
my.createPage(_sfc_main);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/sett.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/sett.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user