first commit
This commit is contained in:
114
unpackage/dist/dev/mp-weixin/pages/wallet/list.js
vendored
Normal file
114
unpackage/dist/dev/mp-weixin/pages/wallet/list.js
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
const utils_fun = require("../../utils/fun.js");
|
||||
if (!Array) {
|
||||
const _easycom_wd_navbar2 = common_vendor.resolveComponent("wd-navbar");
|
||||
const _easycom_wd_picker2 = common_vendor.resolveComponent("wd-picker");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_wd_navbar2 + _easycom_wd_picker2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_wd_navbar = () => "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js";
|
||||
const _easycom_wd_picker = () => "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(_easycom_wd_navbar + _easycom_wd_picker + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "list",
|
||||
setup(__props) {
|
||||
const store = store_index.Store();
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const columns = common_vendor.ref([]);
|
||||
const showLoading = common_vendor.ref(true);
|
||||
const typeName = common_vendor.ref("");
|
||||
const queryPrams = common_vendor.ref({
|
||||
bizType: ""
|
||||
});
|
||||
common_vendor.computed(
|
||||
() => store.userInfo || {
|
||||
inviteCode: "",
|
||||
nickname: "",
|
||||
mobile: "",
|
||||
avatar: "",
|
||||
paywallet: {
|
||||
balance: 0
|
||||
}
|
||||
}
|
||||
);
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
api_index.api.moneyRecord({ pageNo, pageSize, ...queryPrams.value }).then((res) => {
|
||||
columns.value = Object.entries(res.bizType).map(([value, label]) => ({
|
||||
value,
|
||||
label
|
||||
}));
|
||||
columns.value.unshift({
|
||||
label: "全部",
|
||||
value: ""
|
||||
});
|
||||
paging.value.complete(res.list);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const handleConfirm = (e) => {
|
||||
if (!e.value) {
|
||||
typeName.value = "";
|
||||
} else {
|
||||
typeName.value = e.selectedItems.label;
|
||||
}
|
||||
paging.value.reload();
|
||||
};
|
||||
const back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(back),
|
||||
b: common_vendor.p({
|
||||
title: "我的账单",
|
||||
bordered: false,
|
||||
["left-arrow"]: true,
|
||||
["custom-style"]: "background-color: transparent !important;",
|
||||
safeAreaInsetTop: true
|
||||
}),
|
||||
c: common_assets._imports_0$8,
|
||||
d: common_vendor.t(typeName.value || "筛选"),
|
||||
e: common_assets._imports_1$6,
|
||||
f: common_vendor.o(($event) => showLoading.value = true),
|
||||
g: common_vendor.o(($event) => showLoading.value = false),
|
||||
h: common_vendor.o(handleConfirm),
|
||||
i: common_vendor.o(($event) => queryPrams.value.bizType = $event),
|
||||
j: common_vendor.p({
|
||||
columns: columns.value,
|
||||
["use-default-slot"]: true,
|
||||
modelValue: queryPrams.value.bizType
|
||||
}),
|
||||
k: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(common_vendor.unref(utils_fun.timeFormat)(item.createTime, "yyyy-MM-dd hh:mm:ss")),
|
||||
c: common_vendor.t(item.money),
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
l: common_vendor.sr(paging, "a88fa429-1", {
|
||||
"k": "paging"
|
||||
}),
|
||||
m: common_vendor.o(queryList),
|
||||
n: common_vendor.o(($event) => dataList.value = $event),
|
||||
o: common_vendor.p({
|
||||
["refresher-enabled"]: showLoading.value,
|
||||
["use-page-scroll"]: true,
|
||||
modelValue: dataList.value
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a88fa429"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/wallet/list.js.map
|
||||
9
unpackage/dist/dev/mp-weixin/pages/wallet/list.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/wallet/list.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的账单",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-picker": "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/wallet/list.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/wallet/list.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-a88fa429"><wd-navbar wx:if="{{b}}" class="data-v-a88fa429" bindclickLeft="{{a}}" u-i="a88fa429-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><z-paging wx:if="{{o}}" class="r data-v-a88fa429" u-s="{{['d']}}" u-r="paging" bindquery="{{m}}" u-i="a88fa429-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view class="p30 data-v-a88fa429"><view class="data-v-a88fa429"><view class="data-v-a88fa429" style="display:flex;align-items:center;justify-content:space-between"><image class="data-v-a88fa429" style="width:74rpx;height:34rpx" mode="widthFix" src="{{c}}"></image><wd-picker wx:if="{{j}}" class="data-v-a88fa429" u-s="{{['d']}}" bindclose="{{f}}" bindopen="{{g}}" bindconfirm="{{h}}" u-i="a88fa429-2,a88fa429-1" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view class="data-v-a88fa429" style="display:flex;align-items:center;font-size:28rpx">{{d}} <image class="data-v-a88fa429" style="margin-left:15rpx;width:35rpx;height:35rpx" src="{{e}}"></image></view></wd-picker></view><view wx:for="{{k}}" wx:for-item="item" wx:key="d" class="wall_list data-v-a88fa429"><view class="data-v-a88fa429"><view class="data-v-a88fa429" style="margin-bottom:25rpx;font-size:28rpx">{{item.a}}</view><view class="data-v-a88fa429" style="font-size:24rpx;color:#999">{{item.b}}</view></view><view class="data-v-a88fa429" style="font-size:32rpx;font-weight:bold;color:#799675">¥{{item.c}}</view></view></view></view></z-paging></view>
|
||||
24
unpackage/dist/dev/mp-weixin/pages/wallet/list.wxss
vendored
Normal file
24
unpackage/dist/dev/mp-weixin/pages/wallet/list.wxss
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
.block_wall.data-v-a88fa429 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.block_wall_tit.data-v-a88fa429 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wall_list.data-v-a88fa429 {
|
||||
width: 690rpx;
|
||||
height: 118rpx;
|
||||
background: #ffffff;
|
||||
box-shadow: 0rpx 2rpx 8rpx 2rpx rgba(0, 88, 219, 0.06);
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
163
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.js
vendored
Normal file
163
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.js
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
const utils_fun = require("../../utils/fun.js");
|
||||
if (!Array) {
|
||||
const _easycom_wd_navbar2 = common_vendor.resolveComponent("wd-navbar");
|
||||
const _easycom_wd_picker2 = common_vendor.resolveComponent("wd-picker");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_wd_navbar2 + _easycom_wd_picker2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_wd_navbar = () => "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js";
|
||||
const _easycom_wd_picker = () => "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(_easycom_wd_navbar + _easycom_wd_picker + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "wallet",
|
||||
setup(__props) {
|
||||
const rewardReportInfo = common_vendor.ref({});
|
||||
const store = store_index.Store();
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const columns = common_vendor.ref([]);
|
||||
const showLoading = common_vendor.ref(true);
|
||||
const typeName = common_vendor.ref("");
|
||||
const toeasTrue = common_vendor.ref(false);
|
||||
const queryPrams = common_vendor.ref({
|
||||
bizType: ""
|
||||
});
|
||||
const userInfo = common_vendor.computed(
|
||||
() => store.userInfo || {
|
||||
inviteCode: "",
|
||||
nickname: "",
|
||||
mobile: "",
|
||||
avatar: "",
|
||||
paywallet: {
|
||||
balance: 0
|
||||
}
|
||||
}
|
||||
);
|
||||
common_vendor.onShow(async () => {
|
||||
if (userInfo.value.branchCompany) {
|
||||
api_index.api.rewardReport().then((res) => {
|
||||
rewardReportInfo.value = res;
|
||||
});
|
||||
}
|
||||
});
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
api_index.api.moneyRecord({ pageNo, pageSize, ...queryPrams.value }).then((res) => {
|
||||
columns.value = Object.entries(res.bizType).map(([value, label]) => ({
|
||||
value,
|
||||
label
|
||||
}));
|
||||
columns.value.unshift({
|
||||
label: "全部",
|
||||
value: ""
|
||||
});
|
||||
paging.value.complete(res.list);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const handleConfirm = (e) => {
|
||||
if (!e.value) {
|
||||
typeName.value = "";
|
||||
} else {
|
||||
typeName.value = e.selectedItems.label;
|
||||
}
|
||||
paging.value.reload();
|
||||
};
|
||||
const back = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
const tishi = () => {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "每月初结算上月业绩,“团队补货”为团队补货回款,例:本月整个团队总补货回款为20W,则月度团队补货收益为20W×12%=24000元",
|
||||
showCancel: false
|
||||
});
|
||||
};
|
||||
const toeas = () => {
|
||||
toeasTrue.value = !toeasTrue.value;
|
||||
};
|
||||
const toZhuan = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/wallet/zhaun"
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(back),
|
||||
b: common_vendor.p({
|
||||
title: "钱包",
|
||||
bordered: false,
|
||||
["left-arrow"]: true,
|
||||
["custom-style"]: "background-color: transparent !important;",
|
||||
safeAreaInsetTop: true
|
||||
}),
|
||||
c: common_assets._imports_0$9,
|
||||
d: common_assets._imports_1$7,
|
||||
e: common_vendor.o(toeas),
|
||||
f: `/static/icons/yan${toeasTrue.value ? "s" : ""}.png`,
|
||||
g: common_vendor.t(toeasTrue.value ? "****" : userInfo.value.money),
|
||||
h: common_assets._imports_2$3,
|
||||
i: common_vendor.o(toZhuan),
|
||||
j: common_vendor.t(userInfo.value.performanceReward || 0),
|
||||
k: common_vendor.t(userInfo.value.directReferralReward || 0),
|
||||
l: common_vendor.t(userInfo.value.indirectReferralReward || 0),
|
||||
m: common_vendor.t(userInfo.value.specialReward || 0),
|
||||
n: userInfo.value.branchCompany
|
||||
}, userInfo.value.branchCompany ? {
|
||||
o: common_assets._imports_3$2,
|
||||
p: common_vendor.o(tishi),
|
||||
q: common_vendor.t(rewardReportInfo.value.total_monthly_performance),
|
||||
r: common_vendor.f(rewardReportInfo.value.money_count, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.money || 0),
|
||||
b: common_vendor.t(item.name),
|
||||
c: common_vendor.t(item.count || 0),
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
s: common_vendor.t(rewardReportInfo.value.restock_reward || 0)
|
||||
} : {}, {
|
||||
t: common_assets._imports_0$8,
|
||||
v: common_vendor.t(typeName.value || "筛选"),
|
||||
w: common_assets._imports_1$6,
|
||||
x: common_vendor.o(($event) => showLoading.value = true),
|
||||
y: common_vendor.o(($event) => showLoading.value = false),
|
||||
z: common_vendor.o(handleConfirm),
|
||||
A: common_vendor.o(($event) => queryPrams.value.bizType = $event),
|
||||
B: common_vendor.p({
|
||||
columns: columns.value,
|
||||
["use-default-slot"]: true,
|
||||
modelValue: queryPrams.value.bizType
|
||||
}),
|
||||
C: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(common_vendor.unref(utils_fun.timeFormat)(item.createTime, "yyyy-MM-dd hh:mm:ss")),
|
||||
c: common_vendor.t(item.money),
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
D: common_vendor.sr(paging, "4c380209-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
E: common_vendor.o(queryList),
|
||||
F: common_vendor.o(($event) => dataList.value = $event),
|
||||
G: common_vendor.p({
|
||||
["refresher-enabled"]: showLoading.value,
|
||||
modelValue: dataList.value
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4c380209"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/wallet/wallet.js.map
|
||||
9
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-picker": "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-4c380209"><z-paging wx:if="{{G}}" class="r data-v-4c380209" u-s="{{['d']}}" u-r="paging" bindquery="{{E}}" u-i="4c380209-0" bind:__l="__l" bindupdateModelValue="{{F}}" u-p="{{G}}"><wd-navbar wx:if="{{b}}" class="data-v-4c380209" bindclickLeft="{{a}}" u-i="4c380209-1,4c380209-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="p30 data-v-4c380209"><image class="data-v-4c380209" src="{{c}}" mode="widthFix" style="position:absolute;top:0;left:0;width:100%;z-index:-1"></image><view class="data-v-4c380209" style="position:relative"><image class="data-v-4c380209" src="{{d}}" style="width:690rpx;height:382rpx;position:absolute;top:0;left:0;z-index:-1"></image><view class="data-v-4c380209" style="padding:24rpx 30rpx;font-size:36rpx;font-weight:bold;margin-bottom:24rpx">我的钱包</view><view class="data-v-4c380209" style="display:flex;align-items:center;margin-bottom:14rpx;padding:0 30rpx"><view class="data-v-4c380209" style="font-size:24rpx;color:#666a6d;margin:0 10rpx">我的余额(元)</view><image class="data-v-4c380209" bindtap="{{e}}" src="{{f}}" style="width:35rpx;height:35rpx"></image></view><view class="data-v-4c380209" style="font-size:58rpx;font-weight:bold;color:#69a24a;padding:0 30rpx;margin-bottom:25rpx;display:flex;align-items:center;justify-content:space-between">{{g}} <view class="data-v-4c380209" bindtap="{{i}}" style="color:#8ec287;padding:8rpx 30rpx;border-radius:30rpx;font-size:28rpx;background-color:rgba(255, 255, 255, 0.8);font-weight:400;display:flex;align-items:center"><image class="data-v-4c380209" src="{{h}}" style="width:35rpx;height:35rpx"></image><text class="data-v-4c380209" style="margin-left:10rpx">划转</text></view></view><view class="data-v-4c380209" style="width:690rpx;height:110rpx;background:#e9f2e7;border-radius:8rpx;display:flex;align-items:center;justify-content:space-between;padding:0 30rpx;margin-bottom:35rpx"><view class="block_wall data-v-4c380209"><view class="block_wall_tit data-v-4c380209" style="font-size:24rpx"><view class="data-v-4c380209">业绩奖励</view></view><view class="data-v-4c380209" style="font-size:32rpx;font-weight:bold">{{j}}</view></view><view class="block_wall data-v-4c380209"><view class="block_wall_tit data-v-4c380209" style="font-size:24rpx"><view class="data-v-4c380209">直推奖励</view></view><view class="data-v-4c380209" style="font-size:32rpx;font-weight:bold">{{k}}</view></view><view class="block_wall data-v-4c380209"><view class="block_wall_tit data-v-4c380209" style="font-size:24rpx"><view class="data-v-4c380209">间推奖励</view></view><view class="data-v-4c380209" style="font-size:32rpx;font-weight:bold">{{l}}</view></view><view class="block_wall data-v-4c380209"><view class="block_wall_tit data-v-4c380209" style="font-size:24rpx"><view class="data-v-4c380209">特殊奖励</view></view><view class="data-v-4c380209" style="font-size:32rpx;font-weight:bold">{{m}}</view></view></view></view><view wx:if="{{n}}" class="wallet-section data-v-4c380209"><view class="section-title data-v-4c380209"><view class="data-v-4c380209"><text class="data-v-4c380209">市场报单业绩</text><text class="data-v-4c380209" style="font-size:24rpx;font-weight:500">(元)</text><image class="data-v-4c380209" src="{{o}}" bindtap="{{p}}" style="width:28rpx;height:28rpx"></image></view><view class="data-v-4c380209" style="font-size:26rpx">合计:{{q}}元</view></view><view class="wallet-cards data-v-4c380209"><view wx:for="{{r}}" wx:for-item="item" wx:key="d" class="wallet-item data-v-4c380209"><text class="amount red data-v-4c380209">{{item.a}}</text><text class="label data-v-4c380209">{{item.b}}</text><text class="desc data-v-4c380209">已招募{{item.c}}个</text></view><view class="wallet-item data-v-4c380209"><text class="amount data-v-4c380209">{{s}}</text><text class="label data-v-4c380209">团队补货</text></view></view></view><view class="data-v-4c380209"><view class="data-v-4c380209" style="display:flex;align-items:center;justify-content:space-between"><image class="data-v-4c380209" style="width:74rpx;height:34rpx" mode="widthFix" src="{{t}}"></image><wd-picker wx:if="{{B}}" class="data-v-4c380209" u-s="{{['d']}}" bindclose="{{x}}" bindopen="{{y}}" bindconfirm="{{z}}" u-i="4c380209-2,4c380209-0" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"><view class="data-v-4c380209" style="display:flex;align-items:center;font-size:28rpx">{{v}} <image class="data-v-4c380209" style="margin-left:15rpx;width:35rpx;height:35rpx" src="{{w}}"></image></view></wd-picker></view><view wx:for="{{C}}" wx:for-item="item" wx:key="d" class="wall_list data-v-4c380209"><view class="data-v-4c380209"><view class="data-v-4c380209" style="margin-bottom:25rpx;font-size:28rpx">{{item.a}}</view><view class="data-v-4c380209" style="font-size:24rpx;color:#999">{{item.b}}</view></view><view class="data-v-4c380209" style="font-size:32rpx;font-weight:bold;color:#799675">¥{{item.c}}</view></view></view></view></z-paging></view>
|
||||
69
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.wxss
vendored
Normal file
69
unpackage/dist/dev/mp-weixin/pages/wallet/wallet.wxss
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
.block_wall.data-v-4c380209 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.block_wall_tit.data-v-4c380209 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.wall_list.data-v-4c380209 {
|
||||
width: 690rpx;
|
||||
height: 118rpx;
|
||||
background: #ffffff;
|
||||
box-shadow: 0rpx 2rpx 8rpx 2rpx rgba(0, 88, 219, 0.06);
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 30rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
/* 钱包区域 */
|
||||
.wallet-section.data-v-4c380209 {
|
||||
background-color: white;
|
||||
margin: 0rpx 0 20rpx;
|
||||
padding: 30rpx;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
.section-title.data-v-4c380209 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10rpx 0 20rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.wallet-cards.data-v-4c380209 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wallet-item.data-v-4c380209 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
.label.data-v-4c380209 {
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
}
|
||||
.amount.data-v-4c380209 {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10rpx;
|
||||
color: #799675;
|
||||
}
|
||||
.desc.data-v-4c380209 {
|
||||
font-size: 20rpx;
|
||||
color: #999;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
98
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.js
vendored
Normal file
98
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.js
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
const utils_fun = require("../../utils/fun.js");
|
||||
const uni_modules_wotDesignUni_components_composables_useCountDown = require("../../uni_modules/wot-design-uni/components/composables/useCountDown.js");
|
||||
require("../../uni_modules/wot-design-uni/locale/index.js");
|
||||
require("../../uni_modules/wot-design-uni/dayjs/index.js");
|
||||
const _sfc_main = {
|
||||
__name: "zhaun",
|
||||
setup(__props) {
|
||||
let dataForm = common_vendor.ref({
|
||||
toPhone: "",
|
||||
smsCode: "",
|
||||
money: ""
|
||||
});
|
||||
const codeIngo = common_vendor.ref("获取验证码");
|
||||
const { start, pause, reset, current } = uni_modules_wotDesignUni_components_composables_useCountDown.useCountDown({
|
||||
time: 60 * 1e3,
|
||||
onChange(current2) {
|
||||
},
|
||||
onFinish() {
|
||||
codeIngo.value = "重新发送";
|
||||
}
|
||||
});
|
||||
const getCode = (e) => {
|
||||
if (!userInfo.value.mobile) {
|
||||
utils_fun.toast("请输入手机号");
|
||||
return;
|
||||
}
|
||||
if (current.value.seconds) {
|
||||
utils_fun.toast("请等待倒计时结束");
|
||||
return;
|
||||
}
|
||||
api_index.api.smsCode({
|
||||
mobile: userInfo.value.mobile,
|
||||
scene: 6
|
||||
}).then((res) => {
|
||||
start();
|
||||
utils_fun.toast("验证码发送成功");
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/wallet/zhaun.vue:86", err);
|
||||
utils_fun.toast("验证码发送失败");
|
||||
});
|
||||
};
|
||||
const store = store_index.Store();
|
||||
const userInfo = common_vendor.computed(
|
||||
() => store.userInfo || {
|
||||
inviteCode: "",
|
||||
nickname: "",
|
||||
mobile: "",
|
||||
avatar: "",
|
||||
paywallet: {
|
||||
balance: 0
|
||||
}
|
||||
}
|
||||
);
|
||||
const confirm = () => {
|
||||
if (!dataForm.value.toPhone)
|
||||
return common_vendor.index.showToast({ title: "请输入划转手机号", icon: "none" });
|
||||
if (!dataForm.value.money)
|
||||
return common_vendor.index.showToast({ title: "请输入划转金额", icon: "none" });
|
||||
if (!dataForm.value.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
api_index.api.transfer2other(dataForm.value).then((res) => {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "划转成功",
|
||||
showCancel: false,
|
||||
success: () => {
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/mine/mine"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(userInfo.value.money),
|
||||
b: common_vendor.unref(dataForm).money,
|
||||
c: common_vendor.o(($event) => common_vendor.unref(dataForm).money = $event.detail.value),
|
||||
d: common_vendor.unref(dataForm).toPhone,
|
||||
e: common_vendor.o(($event) => common_vendor.unref(dataForm).toPhone = $event.detail.value),
|
||||
f: userInfo.value.mobile,
|
||||
g: common_vendor.o(($event) => userInfo.value.mobile = $event.detail.value),
|
||||
h: common_vendor.unref(dataForm).smsCode,
|
||||
i: common_vendor.o(($event) => common_vendor.unref(dataForm).smsCode = $event.detail.value),
|
||||
j: common_vendor.t(common_vendor.unref(current).seconds || codeIngo.value),
|
||||
k: common_vendor.o(getCode),
|
||||
l: common_vendor.o(confirm)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-711f8035"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/wallet/zhaun.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "余额划转",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-711f8035" style="padding:30rpx"><view class="card_zhaun data-v-711f8035" style="color:#949494">当前余额:{{a}}</view><view class="card_zhaun data-v-711f8035"><view class="card_zhaun_flex data-v-711f8035"><view class="card_zhaun_flex_title data-v-711f8035">划转金额</view><input class="data-v-711f8035" type="number" placeholder="请输入金额" value="{{b}}" bindinput="{{c}}"/></view><view class="card_zhaun_flex data-v-711f8035"><view class="card_zhaun_flex_title data-v-711f8035">划转给(手机号)</view><input class="data-v-711f8035" type="number" placeholder="请输入手机号" value="{{d}}" bindinput="{{e}}"/></view><view class="card_zhaun_flex data-v-711f8035"><view class="card_zhaun_flex_title data-v-711f8035">当前手机号</view><input class="data-v-711f8035" type="number" disabled placeholder="请输入手机号" value="{{f}}" bindinput="{{g}}"/></view><view class="card_zhaun_flex data-v-711f8035"><view class="card_zhaun_flex_title data-v-711f8035">验证码</view><view class="data-v-711f8035" style="display:flex;align-items:center;justify-content:space-between;border-bottom:1rpx solid #e8e8e8"><input class="data-v-711f8035" style="border:0" type="number" placeholder="请输入验证码" value="{{h}}" bindinput="{{i}}"/><view class="code-btn data-v-711f8035" bindtap="{{k}}">{{j}}</view></view></view></view><view class="card_zhaun data-v-711f8035"><view class="data-v-711f8035" style="color:#f29100">温馨提示</view><view class="data-v-711f8035" style="height:10rpx"></view><view class="data-v-711f8035" style="font-size:28rpx;color:#909399"><view class="data-v-711f8035">1.划转金额实时到账,不扣手续费;</view><view class="data-v-711f8035" style="height:10rpx"></view><view class="data-v-711f8035">2.划转成功后实时生效,不支持撤回。</view></view></view><view class="bottom-btn data-v-711f8035"><view class="button-a data-v-711f8035" bindtap="{{l}}">确认</view></view></view>
|
||||
54
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.wxss
vendored
Normal file
54
unpackage/dist/dev/mp-weixin/pages/wallet/zhaun.wxss
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
.card_zhaun.data-v-711f8035 {
|
||||
padding: 30rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
margin-bottom: 25rpx;
|
||||
}
|
||||
.card_zhaun_flex.data-v-711f8035 {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.card_zhaun_flex_title.data-v-711f8035 {
|
||||
font-size: 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.card_zhaun_flex input.data-v-711f8035 {
|
||||
font-size: 28rpx;
|
||||
border-bottom: 1rpx solid #e8e8e8;
|
||||
padding: 5rpx 0;
|
||||
}
|
||||
.bottom-btn.data-v-711f8035 {
|
||||
width: 100%;
|
||||
height: 150rpx;
|
||||
padding: 30rpx;
|
||||
background-color: #ffffff;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
box-shadow: 0px 6rpx 16rpx 2rpx rgba(170, 170, 170, 0.35);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.bottom-btn .button-a.data-v-711f8035 {
|
||||
width: 690rpx;
|
||||
height: 90rpx;
|
||||
background: #799675;
|
||||
border-radius: 15rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #ffffff;
|
||||
line-height: 90rpx;
|
||||
}
|
||||
.code-btn.data-v-711f8035 {
|
||||
width: 175rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
color: #5d7a4e;
|
||||
border: 1rpx solid #5d7a4e;
|
||||
text-align: center;
|
||||
border-radius: 14rpx 14rpx 14rpx 14rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user