first commit
This commit is contained in:
139
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.acss
vendored
Normal file
139
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.acss
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
.wallet_pall.data-v-2aa157bd {
|
||||
height: 200rpx;
|
||||
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
||||
padding: 40rpx;
|
||||
background: linear-gradient(179deg, #5082ff 0%, #4278ff 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1rpx solid rgba(153, 153, 153, 0.6);
|
||||
}
|
||||
.wallet_pall_header.data-v-2aa157bd {
|
||||
font-weight: bold;
|
||||
font-size: 26rpx;
|
||||
color: #002ea4;
|
||||
}
|
||||
.wallet_pall_ye.data-v-2aa157bd {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 70%;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-2aa157bd:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 68rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-2aa157bd: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: #fff;
|
||||
}
|
||||
.wallet_pall_view.data-v-2aa157bd {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.wallet_pall_view view.data-v-2aa157bd:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 45rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.wallet_pall_view view.data-v-2aa157bd:nth-child(2) {
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet_list.data-v-2aa157bd {
|
||||
width: 690rpx;
|
||||
height: 120rpx;
|
||||
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-2aa157bd:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.wallet_list_left view.data-v-2aa157bd:nth-child(2) {
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.wallet_list_right.data-v-2aa157bd {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #ff2727;
|
||||
}
|
||||
.mine_block.data-v-2aa157bd {
|
||||
padding: 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.mine_block_tit.data-v-2aa157bd {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mine_block_tit_left.data-v-2aa157bd {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.mine_block_tit_right.data-v-2aa157bd {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 24rpx;
|
||||
color: #cbd73b;
|
||||
}
|
||||
.mine_block_tit_right image.data-v-2aa157bd {
|
||||
width: 13rpx;
|
||||
height: 22rpx;
|
||||
margin-left: 15rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
.mine_block_view.data-v-2aa157bd {
|
||||
width: 100%;
|
||||
min-height: 120rpx;
|
||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||
border: 2rpx solid rgba(55, 112, 174, 0.1);
|
||||
margin-top: 16rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
padding: 20rpx 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.mine_block_view image.data-v-2aa157bd {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
margin-right: 25rpx;
|
||||
}
|
||||
.u-flex-y-center.data-v-2aa157bd {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
}
|
||||
.u-flex-between.data-v-2aa157bd {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-flex-fill.data-v-2aa157bd {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.axml
vendored
Normal file
File diff suppressed because one or more lines are too long
161
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.js
vendored
Normal file
161
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.js
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
require("../../uni_modules/uview-plus/index.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
||||
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
(_easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_icon2)();
|
||||
}
|
||||
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
||||
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_grid_item + _easycom_up_grid + _easycom_up_icon)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "balanceIncome",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let getInfo = common_vendor.ref({});
|
||||
common_vendor.ref({});
|
||||
let devices = common_vendor.ref(0);
|
||||
let wallet = common_vendor.ref(0);
|
||||
let income = common_vendor.ref(0);
|
||||
let money_list = common_vendor.ref([
|
||||
{
|
||||
name: "收益统计",
|
||||
type: "收益",
|
||||
data: {}
|
||||
},
|
||||
{
|
||||
name: "推广统计",
|
||||
type: "推广",
|
||||
data: {}
|
||||
},
|
||||
{
|
||||
name: "邀请统计",
|
||||
type: "邀请",
|
||||
data: {}
|
||||
}
|
||||
]);
|
||||
common_vendor.ref(1);
|
||||
common_vendor.onShow(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
userStatCou();
|
||||
let _data = await api_api.freezeTotal();
|
||||
income.value = _data.income;
|
||||
wallet.value = _data.wallet;
|
||||
});
|
||||
let userStatCou = async () => {
|
||||
let _res = await api_api.userStat();
|
||||
devices.value = _res.devices;
|
||||
money_list.value.map((item, index) => {
|
||||
if (item.type == "推广") {
|
||||
item.data = {
|
||||
day_money: _res.ordersToday,
|
||||
week_money1: _res.ordersLastWeek,
|
||||
week_money0: _res.ordersThisWeek,
|
||||
total_money: _res.orders30Days
|
||||
};
|
||||
}
|
||||
if (item.type == "收益") {
|
||||
item.data = {
|
||||
day_money: _res.pointDeviceToday,
|
||||
week_money1: _res.pointDeviceLastWeek,
|
||||
week_money0: _res.pointDeviceThisWeek,
|
||||
total_money: _res.pointDevice30Days
|
||||
};
|
||||
}
|
||||
if (item.type == "邀请") {
|
||||
item.data = {
|
||||
day_money: _res.usersDay,
|
||||
week_money1: _res.usersLastWeek,
|
||||
week_money0: _res.usersThisWeek,
|
||||
total_money: _res.users30Days
|
||||
};
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
|
||||
b: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
|
||||
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/topUp`, true)),
|
||||
d: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdraw`, true)),
|
||||
e: common_assets._imports_0$3,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
|
||||
g: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
h: common_assets._imports_1$2,
|
||||
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
|
||||
j: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
k: common_assets._imports_1$2,
|
||||
l: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser`, true)),
|
||||
m: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
n: common_assets._imports_2,
|
||||
o: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
|
||||
p: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
}),
|
||||
r: common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1
|
||||
}, common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1 ? {
|
||||
s: common_assets._imports_1$2,
|
||||
t: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser2`, true)),
|
||||
v: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
w: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
})
|
||||
} : {}, {
|
||||
x: common_vendor.t(common_vendor.unref(wallet)),
|
||||
y: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#2979ff",
|
||||
size: "16"
|
||||
}),
|
||||
z: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/freezeMoney`, true)),
|
||||
A: common_vendor.t(common_vendor.unref(income)),
|
||||
B: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
color: "#2979ff",
|
||||
size: "16"
|
||||
}),
|
||||
C: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/freezeEarnings`, true)),
|
||||
D: common_vendor.t(common_vendor.unref(devices) || 0),
|
||||
E: common_vendor.f(common_vendor.unref(money_list), (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: common_vendor.t(item.data.day_money || 0),
|
||||
c: common_vendor.t(item.type),
|
||||
d: common_vendor.t(item.data.week_money1 || 0),
|
||||
e: common_vendor.t(item.type),
|
||||
f: common_vendor.t(item.data.week_money0 || 0),
|
||||
g: common_vendor.t(item.type),
|
||||
h: common_vendor.t(item.data.total_money || 0),
|
||||
i: common_vendor.t(item.type),
|
||||
j: index
|
||||
};
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2aa157bd"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
my.createPage(MiniProgramPage);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/balanceIncome.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"usingComponents": {
|
||||
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
60
unpackage/dist/dev/mp-alipay/pages/mine/earnings.acss
vendored
Normal file
60
unpackage/dist/dev/mp-alipay/pages/mine/earnings.acss
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
.wallet_pall.data-v-77725727 {
|
||||
width: 690rpx;
|
||||
height: 272rpx;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
padding: 40rpx;
|
||||
background: #ffffff;
|
||||
}
|
||||
.wallet_pall_header.data-v-77725727 {
|
||||
font-weight: bold;
|
||||
font-size: 26rpx;
|
||||
color: #002ea4;
|
||||
}
|
||||
.wallet_pall_ye.data-v-77725727 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 70%;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-77725727:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 68rpx;
|
||||
color: #002ea4;
|
||||
}
|
||||
.wallet_pall_ye view.data-v-77725727: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-77725727 {
|
||||
width: 690rpx;
|
||||
height: 120rpx;
|
||||
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-77725727:nth-child(1) {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.wallet_list_left view.data-v-77725727:nth-child(2) {
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.wallet_list_right.data-v-77725727 {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #ff2727;
|
||||
}
|
||||
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 p30 data-v-77725727"><z-paging class="data-v-77725727" u-s="{{['d']}}" ref="__r" u-r="{{n}}" onQuery="{{o}}" u-i="77725727-0" onVI="__l" onUpdateModelValue="{{p}}" u-p="{{q}}"><view class="wallet_pall data-v-77725727"><view class="wallet_pall_header data-v-77725727">当前收益(元)</view><view class="wallet_pall_ye data-v-77725727"><view class="data-v-77725727">{{a}}</view><view class="data-v-77725727" onTap="{{b}}">转入余额</view></view></view><view class="mt30 data-v-77725727"><up-grid class="data-v-77725727" u-s="{{['d']}}" u-i="77725727-1,77725727-0" onVI="__l" u-p="{{k}}"><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{d}}" u-i="77725727-2,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{c}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">收支明细</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{f}}" u-i="77725727-3,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{e}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">提现明细</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{h}}" u-i="77725727-4,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{g}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">提现</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-77725727" u-s="{{['d']}}" onClick="{{j}}" u-i="77725727-5,77725727-1" onVI="__l"><image class="data-v-77725727" src="{{i}}" style="width:56rpx;height:56rpx" mode="widthFix"></image><text class="data-v-77725727" style="font-size:28rpx;color:#333;margin-top:10rpx">银行卡</text><view class="data-v-77725727" style="height:15rpx"></view></up-grid-item></up-grid></view><view class="mt30 data-v-77725727"><uni-section class="data-v-77725727" u-i="77725727-6,77725727-0" onVI="__l" u-p="{{l}}"></uni-section></view><view a:for="{{m}}" a:for-item="item" a:key="d" class="mt30 wallet_list data-v-77725727"><view class="wallet_list_left data-v-77725727"><view class="data-v-77725727">{{item.a}}</view><view class="data-v-77725727">{{item.b}}</view></view><view class="wallet_list_right data-v-77725727">{{item.c}}元</view></view></z-paging></view>
|
||||
117
unpackage/dist/dev/mp-alipay/pages/mine/earnings.js
vendored
Normal file
117
unpackage/dist/dev/mp-alipay/pages/mine/earnings.js
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
require("../../uni_modules/uview-plus/index.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
const money = require("../../money.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
||||
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
||||
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_uni_section2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
||||
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
|
||||
const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_grid_item + _easycom_up_grid + _easycom_uni_section + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "earnings",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let getInfo = common_vendor.ref({});
|
||||
const paging = common_vendor.ref(null);
|
||||
let dataList = common_vendor.ref([]);
|
||||
let num = common_vendor.ref(1);
|
||||
common_vendor.onShow(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
if (num.value != 1) {
|
||||
paging.value.reload();
|
||||
}
|
||||
num.value++;
|
||||
});
|
||||
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) => {
|
||||
let { id } = common_vendor.index.getStorageSync("user");
|
||||
const params = {
|
||||
current: pageNo,
|
||||
pageSize,
|
||||
userId: id
|
||||
};
|
||||
api_api.getUsersPoint1Info(params).then((res) => {
|
||||
paging.value.complete(res.records);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
|
||||
c: common_assets._imports_0$3,
|
||||
d: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
|
||||
e: common_assets._imports_2,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
|
||||
g: common_assets._imports_2$1,
|
||||
h: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdraw`, true)),
|
||||
i: common_assets._imports_3,
|
||||
j: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/bankCard`, true)),
|
||||
k: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
title: "最新记录",
|
||||
type: "line",
|
||||
titleFontSize: "32rpx"
|
||||
}),
|
||||
m: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(money.moneyJson).find((val) => val.id == item.type).name),
|
||||
b: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd hh:MM")),
|
||||
c: common_vendor.t(item.points),
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
n: () => ({
|
||||
r: paging,
|
||||
k: "paging"
|
||||
}),
|
||||
o: common_vendor.o(queryList),
|
||||
p: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
|
||||
q: common_vendor.p({
|
||||
["use-page-scroll"]: true,
|
||||
modelValue: common_vendor.unref(dataList)
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-77725727"]]);
|
||||
_sfc_main.__runtimeHooks = 1;
|
||||
my.createPage(MiniProgramPage);
|
||||
9
unpackage/dist/dev/mp-alipay/pages/mine/earnings.json
vendored
Normal file
9
unpackage/dist/dev/mp-alipay/pages/mine/earnings.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"defaultTitle": "收益",
|
||||
"usingComponents": {
|
||||
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
|
||||
"uni-section": "../../uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
45
unpackage/dist/dev/mp-alipay/pages/mine/mine.acss
vendored
Normal file
45
unpackage/dist/dev/mp-alipay/pages/mine/mine.acss
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
page {
|
||||
background: linear-gradient(180deg, #dbe5ff 0%, #f7f7f7 15%, #f7f7f7 81%, #f7f7f7 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: 152rpx;
|
||||
height: 152rpx;
|
||||
margin-right: 22rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.mine_header_text.data-v-7c2ebfa5 {
|
||||
flex: 1;
|
||||
}
|
||||
.mine_header_text_nick.data-v-7c2ebfa5 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
.mine_header_text_acc.data-v-7c2ebfa5 {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.mine_header_sz.data-v-7c2ebfa5 {
|
||||
width: 44rpx;
|
||||
height: 38rpx;
|
||||
}
|
||||
.mine ::deep .u-grid-item.data-v-7c2ebfa5 {
|
||||
margin-top: 0;
|
||||
}
|
||||
.mine button.data-v-7c2ebfa5::after {
|
||||
all: unset;
|
||||
}
|
||||
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 p30 data-v-7c2ebfa5" style="padding-bottom:150rpx"><status-bar class="data-v-7c2ebfa5" u-i="7c2ebfa5-0" onVI="__l"/><view class="mine_header data-v-7c2ebfa5" onTap="{{n}}"><image class="mine_header_img data-v-7c2ebfa5" src="{{a}}"></image><view a:if="{{b}}" class="mine_header_text data-v-7c2ebfa5"><view class="mine_header_text_nick data-v-7c2ebfa5"><view a:if="{{c}}" class="data-v-7c2ebfa5" style="margin-right:15rpx">{{d}}</view><up-tag a:if="{{e}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-1" onVI="__l" u-p="{{f}}"></up-tag><up-tag a:if="{{g}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-2" onVI="__l" u-p="{{h}}"></up-tag><up-tag a:if="{{i}}" class="data-v-7c2ebfa5" u-i="7c2ebfa5-3" onVI="__l" u-p="{{j}}"></up-tag></view><view class="mine_header_text_acc data-v-7c2ebfa5">{{k}}</view></view><view a:else class="mine_header_text data-v-7c2ebfa5"><view class="mine_header_text_nick data-v-7c2ebfa5">点击登录</view></view><image a:if="{{l}}" class="mine_header_sz data-v-7c2ebfa5" src="{{m}}"></image></view><view class="mt30 data-v-7c2ebfa5"><up-grid class="data-v-7c2ebfa5" u-s="{{['d']}}" u-i="7c2ebfa5-4" onVI="__l" u-p="{{v}}"><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{p}}" u-i="7c2ebfa5-5,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{o}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">增值收益</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{r}}" u-i="7c2ebfa5-6,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{q}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">基础收益</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item><up-grid-item class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{t}}" u-i="7c2ebfa5-7,7c2ebfa5-4" onVI="__l"><view class="data-v-7c2ebfa5" style="height:15rpx"></view><view class="data-v-7c2ebfa5" style="font-weight:bold">{{s}}</view><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">充电桩</text><view class="data-v-7c2ebfa5" style="height:15rpx"></view></up-grid-item></up-grid></view><view a:if="{{w}}" class="mt30 data-v-7c2ebfa5" style="width:100%;background-color:#fff;padding:25rpx;font-size:30rpx">邀请人:{{x}}</view><view class="data-v-7c2ebfa5" style="height:25rpx"></view><view class="data-v-7c2ebfa5" style="background-color:#fff"><up-grid class="data-v-7c2ebfa5" u-s="{{['d']}}" u-i="7c2ebfa5-8" onVI="__l" u-p="{{A}}"><up-grid-item a:for="{{y}}" a:for-item="item" a:key="e" class="data-v-7c2ebfa5" u-s="{{['d']}}" onClick="{{item.f}}" u-i="{{item.g}}" onVI="__l" u-p="{{z}}"><button class="data-v-7c2ebfa5" open-type="{{item.d}}" style="all:unset;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column"><view class="data-v-7c2ebfa5" style="height:35rpx"></view><up-icon class="data-v-7c2ebfa5" u-i="{{item.a}}" onVI="__l" u-p="{{item.b}}"></up-icon><text class="data-v-7c2ebfa5" style="font-size:28rpx;color:#333;margin-top:10rpx">{{item.c}}</text><view class="data-v-7c2ebfa5" style="height:20rpx"></view></button></up-grid-item></up-grid></view><view class="data-v-7c2ebfa5" style="height:50rpx"></view><view a:if="{{B}}" class="data-v-7c2ebfa5" style="background-color:#f6faff;padding:30rpx;border-radius:10rpx"><view a:if="{{C}}" class="data-v-7c2ebfa5" style="color:#999999"> 暂无推广权限 </view><view a:else class="data-v-7c2ebfa5"><view class="data-v-7c2ebfa5" style="font-size:30rpx;color:#999999;text-align:center;margin-bottom:20rpx"> 邀请码:{{D}} <text class="data-v-7c2ebfa5" style="text-decoration:underline;margin-left:30rpx" onTap="{{E}}">复制</text></view><view class="u-flex u-flex-xy-center data-v-7c2ebfa5"><up-image class="data-v-7c2ebfa5" u-i="7c2ebfa5-11" onVI="__l" u-p="{{F}}"></up-image></view><view class="data-v-7c2ebfa5" style="height:10rpx"></view><view class="data-v-7c2ebfa5" style="font-size:30rpx;color:#999999;text-align:center">长按保存或者转发</view></view></view><view class="data-v-7c2ebfa5" style="height:50rpx"></view><tabbar class="data-v-7c2ebfa5" u-i="7c2ebfa5-12" onVI="__l" u-p="{{G}}"></tabbar></view>
|
||||
218
unpackage/dist/dev/mp-alipay/pages/mine/mine.js
vendored
Normal file
218
unpackage/dist/dev/mp-alipay/pages/mine/mine.js
vendored
Normal file
@@ -0,0 +1,218 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
|
||||
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
||||
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
|
||||
(_easycom_statusBar2 + _easycom_up_tag2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_icon2 + _easycom_up_image2 + _easycom_tabbar2)();
|
||||
}
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
|
||||
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
||||
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_up_tag + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_icon + _easycom_up_image + _easycom_tabbar)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "mine",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let getInfo = common_vendor.ref({});
|
||||
let loginTan = common_vendor.ref(true);
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.hideTabBar();
|
||||
});
|
||||
const baseList = common_vendor.reactive([
|
||||
{
|
||||
img: "/static/icon/dd.png",
|
||||
name: "订单",
|
||||
path: "/pages/order/order",
|
||||
login: true
|
||||
},
|
||||
// {
|
||||
// img: '/static/icon/ye.png',
|
||||
// name: '余额',
|
||||
// path: '/pages/wallet/wallet',
|
||||
// login: true
|
||||
// },
|
||||
// {
|
||||
// img: '/static/icon/zd.png',
|
||||
// name: '账单',
|
||||
// path: '/pages/mine/balanceIncome',
|
||||
// login: true
|
||||
// },
|
||||
{
|
||||
img: "/static/icon/zb.png",
|
||||
name: "邀请记录",
|
||||
path: "/pages/shareList/shareList",
|
||||
login: true
|
||||
},
|
||||
{
|
||||
img: "/static/icon/dz.png",
|
||||
name: "充电桩",
|
||||
path: "/pages/piles/piles",
|
||||
login: true
|
||||
},
|
||||
{
|
||||
img: "/static/icon/kf.png",
|
||||
name: "联系客服",
|
||||
call: true
|
||||
// call: true
|
||||
}
|
||||
// {
|
||||
// img: '/static/icon/bz.png',
|
||||
// name: '帮助中心',
|
||||
// login: false
|
||||
// },
|
||||
// {
|
||||
// img: '/static/icon/share.png',
|
||||
// name: '分享海报',
|
||||
// login: true,
|
||||
// path: '/pages/mine/share'
|
||||
// }
|
||||
]);
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.hideTabBar();
|
||||
let Authorization = common_vendor.index.getStorageSync("token") || "";
|
||||
if (Authorization) {
|
||||
getUserInfo();
|
||||
loginTan.value = true;
|
||||
} else {
|
||||
getInfo.value = {};
|
||||
loginTan.value = false;
|
||||
}
|
||||
});
|
||||
let getUserInfo = async () => {
|
||||
try {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
common_vendor.index.setStorageSync("user", _res);
|
||||
} catch (err) {
|
||||
console.log(123456);
|
||||
getInfo.value = {};
|
||||
loginTan.value = false;
|
||||
}
|
||||
};
|
||||
let copy = (e) => {
|
||||
common_vendor.index.setClipboardData({
|
||||
data: e,
|
||||
success: function() {
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
return common_vendor.e({
|
||||
a: common_vendor.unref(getInfo).avatar || "/static/icon/avatar.png",
|
||||
b: common_vendor.unref(loginTan)
|
||||
}, common_vendor.unref(loginTan) ? common_vendor.e({
|
||||
c: common_vendor.unref(getInfo).nickName
|
||||
}, common_vendor.unref(getInfo).nickName ? {
|
||||
d: common_vendor.t(common_vendor.unref(getInfo).nickName || "")
|
||||
} : {}, {
|
||||
e: common_vendor.unref(getInfo).level == 1
|
||||
}, common_vendor.unref(getInfo).level == 1 ? {
|
||||
f: common_vendor.p({
|
||||
text: "运营中心",
|
||||
plain: true,
|
||||
size: "mini",
|
||||
borderColor: "#fa7d02",
|
||||
color: "#fa7d02"
|
||||
})
|
||||
} : {}, {
|
||||
g: common_vendor.unref(getInfo).level == 2
|
||||
}, common_vendor.unref(getInfo).level == 2 ? {
|
||||
h: common_vendor.p({
|
||||
text: "合伙人",
|
||||
plain: true,
|
||||
size: "mini",
|
||||
borderColor: "#fa7d02",
|
||||
color: "#fa7d02"
|
||||
})
|
||||
} : {}, {
|
||||
i: common_vendor.unref(getInfo).level == 3
|
||||
}, common_vendor.unref(getInfo).level == 3 ? {
|
||||
j: common_vendor.p({
|
||||
text: "省分公司",
|
||||
plain: true,
|
||||
size: "mini",
|
||||
borderColor: "#fa7d02",
|
||||
color: "#fa7d02"
|
||||
})
|
||||
} : {}, {
|
||||
k: common_vendor.t(common_vendor.unref(getInfo).userName || "")
|
||||
}) : {}, {
|
||||
l: common_vendor.unref(loginTan)
|
||||
}, common_vendor.unref(loginTan) ? {
|
||||
m: common_assets._imports_0$1
|
||||
} : {}, {
|
||||
n: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/setting", true)),
|
||||
o: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
|
||||
p: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/balanceIncome`, true)),
|
||||
q: common_vendor.t(common_vendor.unref(getInfo).points1 || "0.00"),
|
||||
r: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/balanceIncome`, true)),
|
||||
s: common_vendor.t(common_vendor.unref(getInfo).deviceNum || 0),
|
||||
t: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/piles/piles`, true)),
|
||||
v: common_vendor.p({
|
||||
border: false,
|
||||
col: "3"
|
||||
}),
|
||||
w: (_b = (_a = common_vendor.unref(getInfo)) == null ? void 0 : _a.formUsersInfo) == null ? void 0 : _b.userName
|
||||
}, ((_d = (_c = common_vendor.unref(getInfo)) == null ? void 0 : _c.formUsersInfo) == null ? void 0 : _d.userName) ? {
|
||||
x: common_vendor.t((_f = (_e = common_vendor.unref(getInfo)) == null ? void 0 : _e.formUsersInfo) == null ? void 0 : _f.userName)
|
||||
} : {}, {
|
||||
y: common_vendor.f(baseList, (item, index, i0) => {
|
||||
return {
|
||||
a: "7c2ebfa5-10-" + i0 + "," + ("7c2ebfa5-9-" + i0),
|
||||
b: common_vendor.p({
|
||||
imgMode: "widthFix",
|
||||
name: item.img,
|
||||
size: 27
|
||||
}),
|
||||
c: common_vendor.t(item.name),
|
||||
d: item.openType,
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => common_vendor.unref(navTo)(item.path, item.login, item.call)),
|
||||
g: "7c2ebfa5-9-" + i0 + ",7c2ebfa5-8"
|
||||
};
|
||||
}),
|
||||
z: common_vendor.p({
|
||||
bgColor: "#fff"
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
border: false,
|
||||
col: "4"
|
||||
}),
|
||||
B: common_vendor.unref(getInfo).qrCode
|
||||
}, common_vendor.unref(getInfo).qrCode ? common_vendor.e({
|
||||
C: common_vendor.unref(getInfo).pemType == 0
|
||||
}, common_vendor.unref(getInfo).pemType == 0 ? {} : {
|
||||
D: common_vendor.t(common_vendor.unref(getInfo).shareCode),
|
||||
E: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(getInfo).shareCode)),
|
||||
F: common_vendor.p({
|
||||
src: common_vendor.unref(getInfo).qrCode,
|
||||
radius: "20rpx",
|
||||
width: "440rpx",
|
||||
height: "440rpx",
|
||||
mode: "widthFix"
|
||||
})
|
||||
}) : {}, {
|
||||
G: common_vendor.p({
|
||||
path: "/pages/mine/mine"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
14
unpackage/dist/dev/mp-alipay/pages/mine/mine.json
vendored
Normal file
14
unpackage/dist/dev/mp-alipay/pages/mine/mine.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"transparentTitle": "always",
|
||||
"titlePenetrate": "YES",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
|
||||
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid",
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"tabbar": "../../components/tabbar/tabbar"
|
||||
}
|
||||
}
|
||||
32
unpackage/dist/dev/mp-alipay/pages/mine/phone.acss
vendored
Normal file
32
unpackage/dist/dev/mp-alipay/pages/mine/phone.acss
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
.addBankCard_input.data-v-bad7965c {
|
||||
width: 690rpx;
|
||||
height: 100rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
margin-bottom: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.addBankCard_input_tit.data-v-bad7965c {
|
||||
width: 100%;
|
||||
font-weight: bold;
|
||||
font-size: 26rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.addBankCard_btn.data-v-bad7965c {
|
||||
width: 488rpx;
|
||||
height: 86rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/phone.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/phone.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="addBankCard p30 data-v-bad7965c"><view class="data-v-bad7965c" style="height:30rpx"></view><view class="data-v-bad7965c"><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入手机号:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-0" onVI="__l" onUpdateModelValue="{{a}}" u-p="{{b}}"></up-input></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入验证码:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-1" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input><view class="data-v-bad7965c" style="width:250rpx"><up-code class="data-v-bad7965c" ref="__r" u-r="{{e}}" onChange="{{f}}" u-i="bad7965c-2" onVI="__l" u-p="{{g}}"></up-code><up-button class="data-v-bad7965c" u-s="{{['d']}}" onClick="{{i}}" u-i="bad7965c-3" onVI="__l" u-p="{{j}}">{{h}}</up-button></view></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入新手机号:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-4" onVI="__l" onUpdateModelValue="{{k}}" u-p="{{l}}"></up-input></view></view><view class="data-v-bad7965c"><view class="addBankCard_input_tit data-v-bad7965c">请输入新手机号验证码:</view><view class="addBankCard_input data-v-bad7965c"><up-input class="data-v-bad7965c" u-i="bad7965c-5" onVI="__l" onUpdateModelValue="{{m}}" u-p="{{n}}"></up-input><view class="data-v-bad7965c" style="width:250rpx"><up-code class="data-v-bad7965c" ref="__r" u-r="{{o}}" onChange="{{p}}" u-i="bad7965c-6" onVI="__l" u-p="{{q}}"></up-code><up-button class="data-v-bad7965c" u-s="{{['d']}}" onClick="{{s}}" u-i="bad7965c-7" onVI="__l" u-p="{{t}}">{{r}}</up-button></view></view></view></view><view class="data-v-bad7965c" style="height:50rpx"></view><view class="data-v-bad7965c" style="display:flex;justify-content:center"><view class="addBankCard_btn data-v-bad7965c" onTap="{{v}}">确定</view></view></view>
|
||||
143
unpackage/dist/dev/mp-alipay/pages/mine/phone.js
vendored
Normal file
143
unpackage/dist/dev/mp-alipay/pages/mine/phone.js
vendored
Normal file
@@ -0,0 +1,143 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "phone",
|
||||
setup(__props) {
|
||||
let _getInfo = common_vendor.ref({});
|
||||
let tips1 = common_vendor.ref("");
|
||||
let tips2 = common_vendor.ref("");
|
||||
let uCode1 = common_vendor.ref(null);
|
||||
let uCode2 = common_vendor.ref(null);
|
||||
let enterprise = common_vendor.reactive({
|
||||
newPhone: "",
|
||||
newPhoneSmsCode: "",
|
||||
oldPhoneSmsCode: ""
|
||||
});
|
||||
common_vendor.onLoad(async (options) => {
|
||||
_getInfo.value = await api_api.userInfo();
|
||||
});
|
||||
let addBank = async () => {
|
||||
await api_api.updatePhone(enterprise);
|
||||
common_vendor.index.showToast({ title: "修改成功", icon: "none" });
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 1500);
|
||||
};
|
||||
let codeChange1 = (text) => {
|
||||
tips1.value = text;
|
||||
};
|
||||
let codeChange2 = (text) => {
|
||||
tips2.value = text;
|
||||
};
|
||||
let getCode1 = (e) => {
|
||||
if (!e)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode1.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: e
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode1.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let getCode2 = (e) => {
|
||||
if (!e)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode2.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: e
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode2.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(($event) => common_vendor.unref(_getInfo).phone = $event),
|
||||
b: common_vendor.p({
|
||||
border: false,
|
||||
disabledColor: "#fff",
|
||||
placeholder: "请输入",
|
||||
disabled: true,
|
||||
modelValue: common_vendor.unref(_getInfo).phone
|
||||
}),
|
||||
c: common_vendor.o(($event) => common_vendor.unref(enterprise).oldPhoneSmsCode = $event),
|
||||
d: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).oldPhoneSmsCode
|
||||
}),
|
||||
e: () => ({
|
||||
r: uCode1,
|
||||
k: "uCode1"
|
||||
}),
|
||||
f: common_vendor.o(common_vendor.unref(codeChange1)),
|
||||
g: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
h: common_vendor.t(common_vendor.unref(tips1)),
|
||||
i: common_vendor.o(($event) => common_vendor.unref(getCode1)(common_vendor.unref(_getInfo).phone)),
|
||||
j: common_vendor.p({
|
||||
color: "#4874e5"
|
||||
}),
|
||||
k: common_vendor.o(($event) => common_vendor.unref(enterprise).newPhone = $event),
|
||||
l: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).newPhone
|
||||
}),
|
||||
m: common_vendor.o(($event) => common_vendor.unref(enterprise).newPhoneSmsCode = $event),
|
||||
n: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).newPhoneSmsCode
|
||||
}),
|
||||
o: () => ({
|
||||
r: uCode2,
|
||||
k: "uCode2"
|
||||
}),
|
||||
p: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
q: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
r: common_vendor.t(common_vendor.unref(tips2)),
|
||||
s: common_vendor.o(($event) => common_vendor.unref(getCode2)(common_vendor.unref(enterprise).newPhone)),
|
||||
t: common_vendor.p({
|
||||
color: "#4874e5"
|
||||
}),
|
||||
v: common_vendor.o((...args) => common_vendor.unref(addBank) && common_vendor.unref(addBank)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bad7965c"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/phone.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/phone.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
60
unpackage/dist/dev/mp-alipay/pages/mine/setting.acss
vendored
Normal file
60
unpackage/dist/dev/mp-alipay/pages/mine/setting.acss
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
view.data-v-0bb48146 {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.means-a.data-v-0bb48146 {
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
padding: 25rpx;
|
||||
}
|
||||
.means-a .means-a-list.data-v-0bb48146 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
min-height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
.means-a .means-a-list .tit.data-v-0bb48146 {
|
||||
font-size: 30rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.means-a .means-a-list .header.data-v-0bb48146 {
|
||||
width: 140rpx;
|
||||
height: 140rpx;
|
||||
margin-bottom: 20rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.means-a .means-a-list .nickname.data-v-0bb48146 {
|
||||
font-size: 30rpx;
|
||||
color: #222222;
|
||||
}
|
||||
.means-a .means-a-list .means-zhuomi.data-v-0bb48146 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.means-a .means-a-list .means-zhuomi .zuomi.data-v-0bb48146 {
|
||||
width: 189rpx;
|
||||
height: 36rpx;
|
||||
border: 1rpx solid #4d4590;
|
||||
border-radius: 5rpx;
|
||||
text-align: center;
|
||||
line-height: 36rpx;
|
||||
color: #4d4590;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.means-a .means-a-list .means-zhuomi .means-zhuomi-tit.data-v-0bb48146 {
|
||||
margin: 0 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
.means-a .means-a-list .means-zhuomi image.data-v-0bb48146 {
|
||||
width: 11rpx;
|
||||
height: 21rpx;
|
||||
}
|
||||
button.data-v-0bb48146::after {
|
||||
all: unset;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/setting.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/setting.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30 data-v-0bb48146"><view class="data-v-0bb48146" style="padding-top:30rpx"><view class="means-a data-v-0bb48146"><view class="means-a-list data-v-0bb48146" style="justify-content:center;padding-top:30rpx"><button class="data-v-0bb48146" style="all:unset" open-type="chooseAvatar" onChooseAvatar="{{e}}"><image a:if="{{a}}" src="{{b}}" class="header data-v-0bb48146" mode="widthFix" onTap="{{c}}"></image><image a:else class="header data-v-0bb48146" src="{{d}}" mode="widthFix"></image></button></view><view class="means-a-list data-v-0bb48146" style="justify-content:center" onTap="{{g}}"><view class="nickname data-v-0bb48146">{{f}}</view></view><view class="means-a-list data-v-0bb48146"><view class="tit data-v-0bb48146">用户名</view><view class="means-zhuomi data-v-0bb48146"><view a:if="{{h}}" class="means-zhuomi-tit data-v-0bb48146">{{i}}</view><up-icon class="data-v-0bb48146" u-i="0bb48146-0" onVI="__l" u-p="{{j}}"></up-icon></view></view><view class="means-a-list data-v-0bb48146" onTap="{{n}}"><view class="tit data-v-0bb48146">手机号</view><view class="means-zhuomi data-v-0bb48146"><view a:if="{{k}}" class="means-zhuomi-tit data-v-0bb48146">{{l}}</view><up-icon class="data-v-0bb48146" u-i="0bb48146-1" onVI="__l" u-p="{{m}}"></up-icon></view></view></view></view><view class="data-v-0bb48146" style="height:80rpx"></view><u-button class="data-v-0bb48146" onClick="{{o}}" u-i="0bb48146-2" onVI="__l" u-p="{{p}}"></u-button><uni-popup class="data-v-0bb48146" u-s="{{['d']}}" ref="__r" u-r="{{t}}" u-i="0bb48146-3" onVI="__l" u-p="{{v}}"><uni-popup-dialog class="data-v-0bb48146" ref="__r" u-r="{{q}}" onConfirm="{{r}}" u-i="0bb48146-4,0bb48146-3" onVI="__l" u-p="{{s}}"></uni-popup-dialog></uni-popup></view>
|
||||
121
unpackage/dist/dev/mp-alipay/pages/mine/setting.js
vendored
Normal file
121
unpackage/dist/dev/mp-alipay/pages/mine/setting.js
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
"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");
|
||||
const common_js_user = require("../../common/js/user.js");
|
||||
const store_index = require("../../store/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_u_button2 = common_vendor.resolveComponent("u-button");
|
||||
const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
|
||||
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
||||
(_easycom_up_icon2 + _easycom_u_button2 + _easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
|
||||
}
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_u_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
const _easycom_uni_popup_dialog = () => "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_icon + _easycom_u_button + _easycom_uni_popup_dialog + _easycom_uni_popup)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "setting",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let getInfo = common_vendor.ref();
|
||||
common_vendor.ref(false);
|
||||
let inputDialog = common_vendor.ref(null);
|
||||
common_vendor.onShow(() => {
|
||||
getUserInfo();
|
||||
});
|
||||
let getUserInfo = async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
};
|
||||
let dialogInputConfirm = async (e) => {
|
||||
await api_api.updateUserInfo({
|
||||
nickName: e
|
||||
});
|
||||
getUserInfo();
|
||||
console.log(e);
|
||||
};
|
||||
let chooseavatar = async (e) => {
|
||||
const { avatarUrl } = e.detail;
|
||||
let _url = await common_js_user.uploadFiles(avatarUrl);
|
||||
await api_api.updateUserInfo({
|
||||
avatar: _url
|
||||
});
|
||||
getUserInfo();
|
||||
};
|
||||
let logout = () => {
|
||||
common_vendor.index.clearStorageSync();
|
||||
store_index.store.commit("setToken", "");
|
||||
common_vendor.index.showToast({
|
||||
title: "退出登录成功",
|
||||
icon: "success"
|
||||
});
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.unref(getInfo).avatar
|
||||
}, common_vendor.unref(getInfo).avatar ? {
|
||||
b: common_vendor.unref(getInfo).avatar,
|
||||
c: common_vendor.o((...args) => _ctx.infoHeader && _ctx.infoHeader(...args))
|
||||
} : {
|
||||
d: common_assets._imports_0$5
|
||||
}, {
|
||||
e: common_vendor.o((...args) => common_vendor.unref(chooseavatar) && common_vendor.unref(chooseavatar)(...args)),
|
||||
f: common_vendor.t(common_vendor.unref(getInfo).nickName || "默认用户"),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(inputDialog).open()),
|
||||
h: common_vendor.unref(getInfo).userName
|
||||
}, common_vendor.unref(getInfo).userName ? {
|
||||
i: common_vendor.t(common_vendor.unref(getInfo).userName)
|
||||
} : {}, {
|
||||
j: common_vendor.p({
|
||||
color: "#999999",
|
||||
name: "arrow-right",
|
||||
size: "35rpx"
|
||||
}),
|
||||
k: common_vendor.unref(getInfo).phone
|
||||
}, common_vendor.unref(getInfo).phone ? {
|
||||
l: common_vendor.t(common_vendor.unref(getInfo).phone)
|
||||
} : {}, {
|
||||
m: common_vendor.p({
|
||||
color: "#999999",
|
||||
name: "arrow-right",
|
||||
size: "35rpx"
|
||||
}),
|
||||
n: common_vendor.o(($event) => common_vendor.unref(navTo)("/pages/mine/phone", true)),
|
||||
o: common_vendor.o(($event) => common_vendor.unref(logout)()),
|
||||
p: common_vendor.p({
|
||||
text: "退出登录",
|
||||
size: "normal",
|
||||
type: "error"
|
||||
}),
|
||||
q: () => ({
|
||||
r: inputClose
|
||||
}),
|
||||
r: common_vendor.o(common_vendor.unref(dialogInputConfirm)),
|
||||
s: common_vendor.p({
|
||||
inputType: "text",
|
||||
mode: "input",
|
||||
title: "请输入昵称",
|
||||
placeholder: "请输入昵称"
|
||||
}),
|
||||
t: () => ({
|
||||
r: inputDialog,
|
||||
k: "inputDialog"
|
||||
}),
|
||||
v: common_vendor.p({
|
||||
type: "dialog"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0bb48146"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
9
unpackage/dist/dev/mp-alipay/pages/mine/setting.json
vendored
Normal file
9
unpackage/dist/dev/mp-alipay/pages/mine/setting.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"defaultTitle": "",
|
||||
"usingComponents": {
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"u-button": "../../uni_modules/uview-plus/components/u-button/u-button",
|
||||
"uni-popup-dialog": "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
48
unpackage/dist/dev/mp-alipay/pages/mine/share.acss
vendored
Normal file
48
unpackage/dist/dev/mp-alipay/pages/mine/share.acss
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
page {
|
||||
background: linear-gradient(180deg, #dbe5ff 0%, #f7f7f7 15%, #f7f7f7 81%, #f7f7f7 100%);
|
||||
}
|
||||
|
||||
.mine.data-v-66f7dc32 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
.mine_header.data-v-66f7dc32 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mine_header_img.data-v-66f7dc32 {
|
||||
width: 152rpx;
|
||||
height: 152rpx;
|
||||
margin-right: 22rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.mine_header_text.data-v-66f7dc32 {
|
||||
flex: 1;
|
||||
}
|
||||
.mine_header_text_nick.data-v-66f7dc32 {
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
.mine_header_text_acc.data-v-66f7dc32 {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.mine_header_sz.data-v-66f7dc32 {
|
||||
width: 44rpx;
|
||||
height: 38rpx;
|
||||
}
|
||||
.mine ::deep .u-grid-item.data-v-66f7dc32 {
|
||||
margin-top: 0;
|
||||
}
|
||||
.mine button.data-v-66f7dc32::after {
|
||||
all: unset;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/share.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/share.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="mine p30 data-v-66f7dc32"><view a:if="{{a}}" class="data-v-66f7dc32" style="background-color:#f6faff;padding:30rpx;border-radius:10rpx"><view class="data-v-66f7dc32" style="font-size:30rpx;color:#999999;text-align:center;margin-bottom:20rpx"> 邀请码:{{b}} <text class="data-v-66f7dc32" style="text-decoration:underline;margin-left:30rpx" onTap="{{c}}">复制</text></view><view class="u-flex u-flex-xy-center data-v-66f7dc32"><up-image class="data-v-66f7dc32" u-i="66f7dc32-0" onVI="__l" u-p="{{d}}"></up-image></view><view class="data-v-66f7dc32" style="height:10rpx"></view><view class="data-v-66f7dc32" style="font-size:30rpx;color:#999999;text-align:center">长按保存或者转发</view></view></view>
|
||||
56
unpackage/dist/dev/mp-alipay/pages/mine/share.js
vendored
Normal file
56
unpackage/dist/dev/mp-alipay/pages/mine/share.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
require("../../store/index.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
_easycom_up_image2();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "share",
|
||||
setup(__props) {
|
||||
let getInfo = common_vendor.ref({});
|
||||
let loginTan = common_vendor.ref(true);
|
||||
common_vendor.onShow(() => {
|
||||
let Authorization = common_vendor.index.getStorageSync("token") || "";
|
||||
if (Authorization) {
|
||||
getUserInfo();
|
||||
loginTan.value = true;
|
||||
} else {
|
||||
loginTan.value = false;
|
||||
}
|
||||
});
|
||||
let getUserInfo = async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
};
|
||||
let copy = (e) => {
|
||||
common_vendor.index.setClipboardData({
|
||||
data: e,
|
||||
success: function() {
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.unref(getInfo).qrCode
|
||||
}, common_vendor.unref(getInfo).qrCode ? {
|
||||
b: common_vendor.t(common_vendor.unref(getInfo).shareCode),
|
||||
c: common_vendor.o(($event) => common_vendor.unref(copy)(common_vendor.unref(getInfo).shareCode)),
|
||||
d: common_vendor.p({
|
||||
src: common_vendor.unref(getInfo).qrCode,
|
||||
radius: "20rpx",
|
||||
width: "440rpx",
|
||||
height: "440rpx",
|
||||
mode: "widthFix"
|
||||
})
|
||||
} : {});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-66f7dc32"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
6
unpackage/dist/dev/mp-alipay/pages/mine/share.json
vendored
Normal file
6
unpackage/dist/dev/mp-alipay/pages/mine/share.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "邀请码",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
83
unpackage/dist/dev/mp-alipay/pages/mine/toUser.acss
vendored
Normal file
83
unpackage/dist/dev/mp-alipay/pages/mine/toUser.acss
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
.withdraw_k.data-v-24a13c27 {
|
||||
width: 100%;
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.withdraw_k_tit.data-v-24a13c27 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-right: 100rpx;
|
||||
}
|
||||
.withdraw_k_input.data-v-24a13c27 {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.withdraw_k_img.data-v-24a13c27 {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
.withdraw_mon.data-v-24a13c27 {
|
||||
padding: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
.withdraw_mon_tit.data-v-24a13c27 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input.data-v-24a13c27 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #cccccc;
|
||||
padding: 15rpx 0;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.withdraw_mon_input_fu.data-v-24a13c27 {
|
||||
font-weight: bold;
|
||||
font-size: 66rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input_note.data-v-24a13c27 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ff7777;
|
||||
}
|
||||
.withdraw_mon_note.data-v-24a13c27 {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.withdraw_note.data-v-24a13c27 {
|
||||
margin-top: 30rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
.withdraw_note view.data-v-24a13c27 {
|
||||
margin-bottom: 15rpx;
|
||||
font-weight: 400;
|
||||
font-size: 26rpx;
|
||||
color: #232323;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.affirm_btn.data-v-24a13c27 {
|
||||
width: 650rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/toUser.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/toUser.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="withdraw p30 data-v-24a13c27"><view class="data-v-24a13c27" style="height:30rpx"></view><view class="data-v-24a13c27" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-24a13c27">当前基础收益 ¥{{a}},最低转赠¥1</view></view><view class="data-v-24a13c27" style="height:30rpx"></view><view class="withdraw_mon data-v-24a13c27"><view class="withdraw_mon_input data-v-24a13c27"><view class="withdraw_mon_input_fu data-v-24a13c27">¥</view><view class="data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-0" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-input></view><view class="withdraw_mon_input_note data-v-24a13c27" onTap="{{d}}">全部转赠</view></view><view class="data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-input></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-2" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="data-v-24a13c27" style="width:250rpx"><up-code class="data-v-24a13c27" ref="__r" u-r="{{i}}" onChange="{{j}}" u-i="24a13c27-3" onVI="__l" u-p="{{k}}"></up-code><up-button class="data-v-24a13c27" u-s="{{['d']}}" onClick="{{m}}" u-i="24a13c27-4" onVI="__l" u-p="{{n}}">{{l}}</up-button></view></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-5" onVI="__l" onUpdateModelValue="{{o}}" u-p="{{p}}"></up-input></view><view class="withdraw_mon_input data-v-24a13c27"><up-input class="data-v-24a13c27" u-i="24a13c27-6" onVI="__l" onUpdateModelValue="{{q}}" u-p="{{r}}"></up-input></view></view><view class="data-v-24a13c27" style="height:20rpx"></view><view class="data-v-24a13c27" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-24a13c27" style="color:#f29100">温馨提示</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27" style="font-size:28rpx;color:#909399"><view class="data-v-24a13c27">1.基础收益转赠给团队成员(直线上级、直线下级);</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27">2.转赠金额实时到账,不扣手续费;</view><view class="data-v-24a13c27" style="height:10rpx"></view><view class="data-v-24a13c27">3.转赠成功后实时生效,不支持撤回。</view></view></view><view class="data-v-24a13c27" style="height:50rpx"></view><view class="data-v-24a13c27" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-24a13c27" onTap="{{s}}">确认</view></view><view class="data-v-24a13c27" style="height:50rpx"></view></view>
|
||||
132
unpackage/dist/dev/mp-alipay/pages/mine/toUser.js
vendored
Normal file
132
unpackage/dist/dev/mp-alipay/pages/mine/toUser.js
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "toUser",
|
||||
setup(__props) {
|
||||
common_vendor.ref();
|
||||
let getInfo = common_vendor.ref({});
|
||||
let appConfig = common_vendor.ref([]);
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
rechargeMoney: "",
|
||||
smsCode: "",
|
||||
toUserName: "",
|
||||
toPhone: ""
|
||||
});
|
||||
common_vendor.ref();
|
||||
common_vendor.onLoad(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
|
||||
appConfig.value = JSON.parse(configValue);
|
||||
});
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode = () => {
|
||||
if (!getInfo.value.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: getInfo.value.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let payOrder = async () => {
|
||||
if (!dataFrom.rechargeMoney)
|
||||
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
if (!dataFrom.toUserName)
|
||||
return common_vendor.index.showToast({ title: "请输入转赠用户名", icon: "none" });
|
||||
if (!dataFrom.toPhone)
|
||||
return common_vendor.index.showToast({ title: "请输入转赠手机号", icon: "none" });
|
||||
await api_api.giveWallet(dataFrom);
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "转赠成功",
|
||||
showCancel: false,
|
||||
success() {
|
||||
common_vendor.index.navigateBack();
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points1),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
|
||||
c: common_vendor.p({
|
||||
fontSize: "36rpx",
|
||||
placeholder: "请输入转赠金额",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).rechargeMoney
|
||||
}),
|
||||
d: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points1),
|
||||
e: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
|
||||
f: common_vendor.p({
|
||||
border: false,
|
||||
disabled: true,
|
||||
modelValue: common_vendor.unref(getInfo).phone
|
||||
}),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
h: common_vendor.p({
|
||||
placeholder: "请输入验证码",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
i: () => ({
|
||||
r: uCode,
|
||||
k: "uCode"
|
||||
}),
|
||||
j: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
k: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
l: common_vendor.t(common_vendor.unref(tips)),
|
||||
m: common_vendor.o(common_vendor.unref(getCode)),
|
||||
n: common_vendor.p({
|
||||
color: "#4874e5"
|
||||
}),
|
||||
o: common_vendor.o(($event) => common_vendor.unref(dataFrom).toUserName = $event),
|
||||
p: common_vendor.p({
|
||||
placeholder: "转赠用户名",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).toUserName
|
||||
}),
|
||||
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).toPhone = $event),
|
||||
r: common_vendor.p({
|
||||
placeholder: "转赠手机号",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).toPhone
|
||||
}),
|
||||
s: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-24a13c27"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/toUser.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/toUser.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "基础收益转赠",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
83
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.acss
vendored
Normal file
83
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.acss
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
.withdraw_k.data-v-ec7b646f {
|
||||
width: 100%;
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.withdraw_k_tit.data-v-ec7b646f {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-right: 100rpx;
|
||||
}
|
||||
.withdraw_k_input.data-v-ec7b646f {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.withdraw_k_img.data-v-ec7b646f {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
.withdraw_mon.data-v-ec7b646f {
|
||||
padding: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
.withdraw_mon_tit.data-v-ec7b646f {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input.data-v-ec7b646f {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #cccccc;
|
||||
padding: 15rpx 0;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.withdraw_mon_input_fu.data-v-ec7b646f {
|
||||
font-weight: bold;
|
||||
font-size: 66rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input_note.data-v-ec7b646f {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ff7777;
|
||||
}
|
||||
.withdraw_mon_note.data-v-ec7b646f {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.withdraw_note.data-v-ec7b646f {
|
||||
margin-top: 30rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
.withdraw_note view.data-v-ec7b646f {
|
||||
margin-bottom: 15rpx;
|
||||
font-weight: 400;
|
||||
font-size: 26rpx;
|
||||
color: #232323;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.affirm_btn.data-v-ec7b646f {
|
||||
width: 650rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="withdraw p30 data-v-ec7b646f"><view class="data-v-ec7b646f" style="height:30rpx"></view><view class="data-v-ec7b646f" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-ec7b646f">当前增值收益 ¥{{a}},最低转赠¥1</view></view><view class="data-v-ec7b646f" style="height:30rpx"></view><view class="withdraw_mon data-v-ec7b646f"><view class="withdraw_mon_input data-v-ec7b646f"><view class="withdraw_mon_input_fu data-v-ec7b646f">¥</view><view class="data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-0" onVI="__l" onUpdateModelValue="{{b}}" u-p="{{c}}"></up-input></view><view class="withdraw_mon_input_note data-v-ec7b646f" onTap="{{d}}">全部转赠</view></view><view class="data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-1" onVI="__l" onUpdateModelValue="{{e}}" u-p="{{f}}"></up-input></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-2" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"></up-input><view class="data-v-ec7b646f" style="width:250rpx"><up-code class="data-v-ec7b646f" ref="__r" u-r="{{i}}" onChange="{{j}}" u-i="ec7b646f-3" onVI="__l" u-p="{{k}}"></up-code><up-button class="data-v-ec7b646f" u-s="{{['d']}}" onClick="{{m}}" u-i="ec7b646f-4" onVI="__l" u-p="{{n}}">{{l}}</up-button></view></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-5" onVI="__l" onUpdateModelValue="{{o}}" u-p="{{p}}"></up-input></view><view class="withdraw_mon_input data-v-ec7b646f"><up-input class="data-v-ec7b646f" u-i="ec7b646f-6" onVI="__l" onUpdateModelValue="{{q}}" u-p="{{r}}"></up-input></view></view><view class="data-v-ec7b646f" style="height:20rpx"></view><view class="data-v-ec7b646f" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-ec7b646f" style="color:#f29100">温馨提示</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f" style="font-size:28rpx;color:#909399"><view class="data-v-ec7b646f">1.增值收益转赠给团队成员(直线上级、直线下级);</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f">2.转赠金额实时到账,不扣手续费;</view><view class="data-v-ec7b646f" style="height:10rpx"></view><view class="data-v-ec7b646f">3.转赠成功后实时生效,不支持撤回。</view></view></view><view class="data-v-ec7b646f" style="height:50rpx"></view><view class="data-v-ec7b646f" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-ec7b646f" onTap="{{s}}">确认</view></view><view class="data-v-ec7b646f" style="height:50rpx"></view></view>
|
||||
132
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.js
vendored
Normal file
132
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.js
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "toUser2",
|
||||
setup(__props) {
|
||||
common_vendor.ref();
|
||||
let getInfo = common_vendor.ref({});
|
||||
let appConfig = common_vendor.ref([]);
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
rechargeMoney: "",
|
||||
smsCode: "",
|
||||
toUserName: "",
|
||||
toPhone: ""
|
||||
});
|
||||
common_vendor.ref();
|
||||
common_vendor.onLoad(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
|
||||
appConfig.value = JSON.parse(configValue);
|
||||
});
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode = () => {
|
||||
if (!getInfo.value.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: getInfo.value.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let payOrder = async () => {
|
||||
if (!dataFrom.rechargeMoney)
|
||||
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
if (!dataFrom.toUserName)
|
||||
return common_vendor.index.showToast({ title: "请输入转赠用户名", icon: "none" });
|
||||
if (!dataFrom.toPhone)
|
||||
return common_vendor.index.showToast({ title: "请输入转赠手机号", icon: "none" });
|
||||
await api_api.giveWallet2(dataFrom);
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "转赠成功",
|
||||
showCancel: false,
|
||||
success() {
|
||||
common_vendor.index.navigateBack();
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points2),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
|
||||
c: common_vendor.p({
|
||||
fontSize: "36rpx",
|
||||
placeholder: "请输入转赠金额",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).rechargeMoney
|
||||
}),
|
||||
d: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points2),
|
||||
e: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
|
||||
f: common_vendor.p({
|
||||
border: false,
|
||||
disabled: true,
|
||||
modelValue: common_vendor.unref(getInfo).phone
|
||||
}),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
h: common_vendor.p({
|
||||
placeholder: "请输入验证码",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
i: () => ({
|
||||
r: uCode,
|
||||
k: "uCode"
|
||||
}),
|
||||
j: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
k: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
l: common_vendor.t(common_vendor.unref(tips)),
|
||||
m: common_vendor.o(common_vendor.unref(getCode)),
|
||||
n: common_vendor.p({
|
||||
color: "#4874e5"
|
||||
}),
|
||||
o: common_vendor.o(($event) => common_vendor.unref(dataFrom).toUserName = $event),
|
||||
p: common_vendor.p({
|
||||
placeholder: "转赠用户名",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).toUserName
|
||||
}),
|
||||
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).toPhone = $event),
|
||||
r: common_vendor.p({
|
||||
placeholder: "转赠手机号",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).toPhone
|
||||
}),
|
||||
s: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ec7b646f"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/toUser2.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "增值收益转赠",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
12
unpackage/dist/dev/mp-alipay/pages/mine/topUp.acss
vendored
Normal file
12
unpackage/dist/dev/mp-alipay/pages/mine/topUp.acss
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
.affirm_btn.data-v-29ef0b49 {
|
||||
width: 650rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/topUp.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/topUp.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30 data-v-29ef0b49"><view class="data-v-29ef0b49" style="height:50rpx"></view><view class="data-v-29ef0b49"><view class="data-v-29ef0b49" style="font-size:30rpx;color:#949494">当前余额 ¥{{a}},最低充值¥{{b}}</view><view class="data-v-29ef0b49" style="height:20rpx"></view><up-input class="data-v-29ef0b49" u-i="29ef0b49-0" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="data-v-29ef0b49" style="height:20rpx"></view><view class="data-v-29ef0b49" style="background-color:#fff;padding:30rpx;border-radius:10rpx"><view class="data-v-29ef0b49" style="font-size:28rpx">支付方式</view><view class="data-v-29ef0b49" style="height:20rpx"></view><up-radio-group class="data-v-29ef0b49" u-s="{{['d']}}" u-i="29ef0b49-1" onVI="__l" onUpdateModelValue="{{g}}" u-p="{{h}}"><up-radio class="data-v-29ef0b49" u-s="{{['d']}}" u-i="29ef0b49-2,29ef0b49-1" onVI="__l" u-p="{{f}}"><view class="data-v-29ef0b49" style="display:flex;align-items:center"><up-icon class="data-v-29ef0b49" u-i="29ef0b49-3,29ef0b49-2" onVI="__l" u-p="{{e}}"/><view class="data-v-29ef0b49" style="width:20rpx"></view><view class="data-v-29ef0b49"><view class="data-v-29ef0b49" style="font-size:30rpx">支付宝支付</view><view class="data-v-29ef0b49" style="font-size:28rpx;color:#909399">支付宝快捷支付</view></view></view></up-radio></up-radio-group></view><view class="data-v-29ef0b49" style="height:100rpx"></view><view class="data-v-29ef0b49" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-29ef0b49" onTap="{{i}}">立即支付</view></view><up-modal class="data-v-29ef0b49" onConfirm="{{j}}" onClose="{{k}}" onCancel="{{l}}" u-i="29ef0b49-4" onVI="__l" u-p="{{m}}"></up-modal></view>
|
||||
129
unpackage/dist/dev/mp-alipay/pages/mine/topUp.js
vendored
Normal file
129
unpackage/dist/dev/mp-alipay/pages/mine/topUp.js
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
|
||||
(_easycom_up_input2 + _easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_modal2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
|
||||
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_modal)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "topUp",
|
||||
setup(__props) {
|
||||
let getInfo = common_vendor.ref({});
|
||||
let dataForm = common_vendor.reactive({
|
||||
plamType: 1
|
||||
});
|
||||
let appConfig = common_vendor.ref({});
|
||||
let paynoticeshow = common_vendor.ref(false);
|
||||
common_vendor.onLoad(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
|
||||
appConfig.value = JSON.parse(configValue);
|
||||
});
|
||||
let naVback = () => {
|
||||
common_vendor.index.navigateBack();
|
||||
};
|
||||
let payOrder = async () => {
|
||||
if (appConfig.value.minMoney > dataForm.money)
|
||||
return common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: `最低充值${appConfig.value.minMoney}元`,
|
||||
showCancel: false
|
||||
});
|
||||
let _res = await api_api.userRechargeByLkl({ rechargeMoney: dataForm.money });
|
||||
const { prepay_id } = _res.data.acc_resp_fields;
|
||||
common_vendor.index.requestPayment({
|
||||
provider: "alipay",
|
||||
orderInfo: prepay_id,
|
||||
success: function(res) {
|
||||
console.log(res, "支付");
|
||||
if (res.resultCode == 9e3) {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "充值成功",
|
||||
showCancel: false,
|
||||
success: function(res2) {
|
||||
if (res2.confirm) {
|
||||
common_vendor.index.navigateBack();
|
||||
} else if (res2.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "支付失败",
|
||||
icon: "none",
|
||||
duration: 3500
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
this.payState = false;
|
||||
common_vendor.index.showToast({
|
||||
title: "支付失败",
|
||||
icon: "none",
|
||||
duration: 3500
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
|
||||
b: common_vendor.t(common_vendor.unref(appConfig).minMoney),
|
||||
c: common_vendor.o(($event) => common_vendor.unref(dataForm).money = $event),
|
||||
d: common_vendor.p({
|
||||
customStyle: {
|
||||
backgroundColor: "#ffffff"
|
||||
},
|
||||
type: "number",
|
||||
placeholder: "请输入充值金额",
|
||||
border: "surround",
|
||||
modelValue: common_vendor.unref(dataForm).money
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "/static/icon/zfb.png",
|
||||
imgMode: "widthFix",
|
||||
size: "50rpx"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
name: 1
|
||||
}),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(dataForm).plamType = $event),
|
||||
h: common_vendor.p({
|
||||
iconPlacement: "right",
|
||||
borderBottom: true,
|
||||
placement: "column",
|
||||
modelValue: common_vendor.unref(dataForm).plamType
|
||||
}),
|
||||
i: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args)),
|
||||
j: common_vendor.o(common_vendor.unref(naVback)),
|
||||
k: common_vendor.o(($event) => common_vendor.isRef(paynoticeshow) ? paynoticeshow.value = false : paynoticeshow = false),
|
||||
l: common_vendor.o(($event) => common_vendor.isRef(paynoticeshow) ? paynoticeshow.value = false : paynoticeshow = false),
|
||||
m: common_vendor.p({
|
||||
show: common_vendor.unref(paynoticeshow),
|
||||
content: "未检测到支付结果",
|
||||
showCancelButton: true,
|
||||
confirmText: "查看余额",
|
||||
cancelText: "取消",
|
||||
closeOnClickOverlay: true
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-29ef0b49"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
10
unpackage/dist/dev/mp-alipay/pages/mine/topUp.json
vendored
Normal file
10
unpackage/dist/dev/mp-alipay/pages/mine/topUp.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"defaultTitle": "增值收益充值",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
|
||||
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
|
||||
}
|
||||
}
|
||||
83
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.acss
vendored
Normal file
83
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.acss
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
.withdraw_k.data-v-55c70154 {
|
||||
width: 100%;
|
||||
height: 74rpx;
|
||||
padding: 0 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.withdraw_k_tit.data-v-55c70154 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-right: 100rpx;
|
||||
}
|
||||
.withdraw_k_input.data-v-55c70154 {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.withdraw_k_img.data-v-55c70154 {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
.withdraw_mon.data-v-55c70154 {
|
||||
padding: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
}
|
||||
.withdraw_mon_tit.data-v-55c70154 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input.data-v-55c70154 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2rpx solid #cccccc;
|
||||
padding: 15rpx 0;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.withdraw_mon_input_fu.data-v-55c70154 {
|
||||
font-weight: bold;
|
||||
font-size: 66rpx;
|
||||
color: #232323;
|
||||
}
|
||||
.withdraw_mon_input_note.data-v-55c70154 {
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ff7777;
|
||||
}
|
||||
.withdraw_mon_note.data-v-55c70154 {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #232323;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.withdraw_note.data-v-55c70154 {
|
||||
margin-top: 30rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
.withdraw_note view.data-v-55c70154 {
|
||||
margin-bottom: 15rpx;
|
||||
font-weight: 400;
|
||||
font-size: 26rpx;
|
||||
color: #232323;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.affirm_btn.data-v-55c70154 {
|
||||
width: 650rpx;
|
||||
height: 78rpx;
|
||||
background: #4874e5;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 24rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="withdraw p30 data-v-55c70154"><view class="data-v-55c70154" style="height:30rpx"></view><view class="data-v-55c70154" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx;font-size:30rpx;color:#949494"><view class="data-v-55c70154"><view class="data-v-55c70154">当前增值收益 ¥{{a}}</view><view class="data-v-55c70154">可转换基础收益¥{{b}}</view></view><view class="data-v-55c70154" style="height:20rpx"></view><view class="data-v-55c70154">基础收益转换为增值收益</view></view><view class="data-v-55c70154" style="height:30rpx"></view><view class="withdraw_mon data-v-55c70154"><view class="withdraw_mon_tit data-v-55c70154">转换金额</view><view class="withdraw_mon_input data-v-55c70154"><view class="withdraw_mon_input_fu data-v-55c70154">¥</view><view class="data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-0" onVI="__l" onUpdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="withdraw_mon_input_note data-v-55c70154" onTap="{{e}}">全部转换</view></view><view class="data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-1" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="withdraw_mon_input data-v-55c70154"><up-input class="data-v-55c70154" u-i="55c70154-2" onVI="__l" onUpdateModelValue="{{h}}" u-p="{{i}}"></up-input><view class="data-v-55c70154" style="width:250rpx"><up-code class="data-v-55c70154" ref="__r" u-r="{{j}}" onChange="{{k}}" u-i="55c70154-3" onVI="__l" u-p="{{l}}"></up-code><up-button class="data-v-55c70154" u-s="{{['d']}}" onClick="{{n}}" u-i="55c70154-4" onVI="__l" u-p="{{o}}">{{m}}</up-button></view></view></view><view class="data-v-55c70154" style="height:20rpx"></view><view class="data-v-55c70154" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><view class="data-v-55c70154" style="color:#f29100">温馨提示</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154" style="font-size:28rpx;color:#909399"><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">1.基础收益转换为增值收益;</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">2.转换金额实时到账,不扣手续费;</view><view class="data-v-55c70154" style="height:10rpx"></view><view class="data-v-55c70154">3.转换成功后实时生效,不支持撤回。</view></view></view><view class="data-v-55c70154" style="height:50rpx"></view><view class="data-v-55c70154" style="display:flex;justify-content:center;margin-top:80rpx"><view class="affirm_btn data-v-55c70154" onTap="{{p}}">确认</view></view><view class="data-v-55c70154" style="height:50rpx"></view></view>
|
||||
115
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.js
vendored
Normal file
115
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.js
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_code2 = common_vendor.resolveComponent("up-code");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
(_easycom_up_input2 + _easycom_up_code2 + _easycom_up_button2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_code = () => "../../uni_modules/uview-plus/components/u-code/u-code.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_code + _easycom_up_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "transferBalance",
|
||||
setup(__props) {
|
||||
common_vendor.ref();
|
||||
let getInfo = common_vendor.ref({});
|
||||
let appConfig = common_vendor.ref([]);
|
||||
let tips = common_vendor.ref("");
|
||||
let uCode = common_vendor.ref(null);
|
||||
let dataFrom = common_vendor.reactive({
|
||||
rechargeMoney: "",
|
||||
smsCode: ""
|
||||
});
|
||||
common_vendor.ref();
|
||||
common_vendor.onLoad(async () => {
|
||||
let _res = await api_api.userInfo();
|
||||
getInfo.value = _res;
|
||||
const { configValue } = await api_api.getAppConfig({ configKey: "DEPOSIT" });
|
||||
appConfig.value = JSON.parse(configValue);
|
||||
});
|
||||
let codeChange2 = (text) => {
|
||||
tips.value = text;
|
||||
};
|
||||
let getCode = () => {
|
||||
if (!getInfo.value.phone)
|
||||
return common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
|
||||
if (uCode.value.canGetCode) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在获取验证码"
|
||||
});
|
||||
api_api.smsCode({
|
||||
phone: getInfo.value.phone
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.$u.toast("验证码已发送");
|
||||
uCode.value.start();
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.$u.toast("倒计时结束后再发送");
|
||||
}
|
||||
};
|
||||
let payOrder = async () => {
|
||||
if (!dataFrom.rechargeMoney)
|
||||
return common_vendor.index.showToast({ title: "请输入金额", icon: "none" });
|
||||
if (!dataFrom.smsCode)
|
||||
return common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
||||
await api_api.userPointRecharge(dataFrom);
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "提交成功",
|
||||
showCancel: false,
|
||||
success() {
|
||||
common_vendor.index.navigateBack();
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(common_vendor.unref(getInfo).points2),
|
||||
b: common_vendor.t(common_vendor.unref(getInfo).points1),
|
||||
c: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = $event),
|
||||
d: common_vendor.p({
|
||||
fontSize: "36rpx",
|
||||
placeholder: "请输入转换金额",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).rechargeMoney
|
||||
}),
|
||||
e: common_vendor.o(($event) => common_vendor.unref(dataFrom).rechargeMoney = common_vendor.unref(getInfo).points1),
|
||||
f: common_vendor.o(($event) => common_vendor.unref(getInfo).phone = $event),
|
||||
g: common_vendor.p({
|
||||
border: false,
|
||||
disabled: true,
|
||||
modelValue: common_vendor.unref(getInfo).phone
|
||||
}),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(dataFrom).smsCode = $event),
|
||||
i: common_vendor.p({
|
||||
placeholder: "请输入验证码",
|
||||
border: false,
|
||||
modelValue: common_vendor.unref(dataFrom).smsCode
|
||||
}),
|
||||
j: () => ({
|
||||
r: uCode,
|
||||
k: "uCode"
|
||||
}),
|
||||
k: common_vendor.o(common_vendor.unref(codeChange2)),
|
||||
l: common_vendor.p({
|
||||
["keep-running"]: true,
|
||||
["start-text"]: "点我获取验证码"
|
||||
}),
|
||||
m: common_vendor.t(common_vendor.unref(tips)),
|
||||
n: common_vendor.o(common_vendor.unref(getCode)),
|
||||
o: common_vendor.p({
|
||||
color: "#4874e5"
|
||||
}),
|
||||
p: common_vendor.o((...args) => common_vendor.unref(payOrder) && common_vendor.unref(payOrder)(...args))
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-55c70154"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
8
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.json
vendored
Normal file
8
unpackage/dist/dev/mp-alipay/pages/mine/transferBalance.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTitle": "转入增值收益",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-code": "../../uni_modules/uview-plus/components/u-code/u-code",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user