更换版本

This commit is contained in:
2024-01-22 18:48:00 +08:00
parent 9f65ea8fd9
commit 00e6dcaec0
1158 changed files with 70609 additions and 51780 deletions

View File

@@ -0,0 +1,43 @@
var a;
(a = getApp()),
Page({
data: { detail: "" },
onLoad: function (t) {
var e = this;
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
r: "store.getBalance",
uid: wx.getStorageSync("uid"),
},
success: function (a) {
a.data.data && e.setData({ detail: a.data.data });
},
});
},
gosubmit: function (t) {
var e = this;
t.detail.value.withdraw || a.util.message({ title: "金额不能为空" }),
t.detail.value.withdraw > e.data.detail.balance &&
a.util.message({ title: "不能大于余额" }),
a.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
r: "store.addWithdraw",
uid: wx.getStorageSync("uid"),
balance: t.detail.value.withdraw,
},
success: function (i) {
1 == i.data.data &&
(a.util.message({ title: "申请成功" }),
e.setData({
detail: {
balance: e.data.detail.balance - t.detail.value.withdraw,
},
}));
},
});
},
});

View File

@@ -0,0 +1 @@
{ "usingComponents": {} }

View File

@@ -0,0 +1,11 @@
<form bindsubmit="gosubmit">
<view class="modle">
<view class="modle_title">提现金额</view>
<view class="modle_input_border">
<text style="float:left">¥</text>
<input class="modle_input" name="withdraw" type="digit"></input>
</view>
<view class="modle_btm_title">可提现金额 ¥{{detail.balance?detail.balance:0}}</view>
<button class="btn" formType="submit">申请提现</button>
</view>
</form>

View File

@@ -0,0 +1,45 @@
page {
background: #f9f9f9;
}
.modle {
background: #fff;
padding: 40rpx 30rpx 35rpx;
}
.modle_title {
color: #333;
font-size: 30rpx;
}
.modle_input_border {
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
color: #333;
font-size: 50rpx;
font-weight: 700;
height: 100rpx;
line-height: 100rpx;
margin-top: 20rpx;
width: 100%;
}
.modle_input {
float: left;
font-weight: 400;
height: 100rpx;
margin-left: 10rpx;
width: 300rpx;
}
.modle_btm_title {
color: #7a7a7a;
font-size: 24rpx;
margin-top: 15rpx;
}
.btn {
background: #fb9145;
border-radius: 20rpx;
color: #fff;
font-size: 30rpx;
height: 80rpx;
margin: 50rpx auto 0;
width: 690rpx;
}
button::after {
border: none;
}