新增充值记录, 提现记录的入口

This commit is contained in:
weipengfei 2023-09-25 17:15:30 +08:00
parent 7dba6f81c6
commit b1c9086c70
4 changed files with 39 additions and 11 deletions

View File

@ -3,8 +3,8 @@
// "appid" : "__UNI__3A527D1", // "appid" : "__UNI__3A527D1",
"appid" : "__UNI__B5B1EDD", "appid" : "__UNI__B5B1EDD",
"description" : "", "description" : "",
"versionName" : "1.1.3", "versionName" : "1.1.6",
"versionCode" : 113, "versionCode" : 116,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -19,6 +19,7 @@
</view> </view>
<input v-if="priceList[changeMoney]=='自定义'" class="input" type="digit" placeholder="输入充值金额(元)" v-model="payMoney.money" /> <input v-if="priceList[changeMoney]=='自定义'" class="input" type="digit" placeholder="输入充值金额(元)" v-model="payMoney.money" />
<button class="btn" @click="pay">充值</button> <button class="btn" @click="pay">充值</button>
<button class="btn btn2" @click="navToRecord">充值记录</button>
</view> </view>
<!-- <view class="tip"> <!-- <view class="tip">
<view class="title">注意事项</view> <view class="title">注意事项</view>
@ -50,9 +51,7 @@
// //
onNavigationBarButtonTap(res){ onNavigationBarButtonTap(res){
if (res.index === 0) { if (res.index === 0) {
uni.navigateTo({ this.navToRecord();
url: '/subpkg/topUpList/topUpList'
})
} }
}, },
onLoad(options) { onLoad(options) {
@ -68,6 +67,12 @@
if(this.priceList[index]=='自定义')this.payMoney.money = ''; if(this.priceList[index]=='自定义')this.payMoney.money = '';
else this.payMoney.money = this.priceList[index].split('元')[0]; else this.payMoney.money = this.priceList[index].split('元')[0];
}, },
//
navToRecord(){
uni.navigateTo({
url: '/subpkg/topUpList/topUpList'
})
},
// //
async loadTask(){ async loadTask(){
uni.showLoading({ uni.showLoading({
@ -321,6 +326,11 @@
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
} }
.btn2{
background-color: #fff;
color: #333;
border: 1px solid #eee;
}
} }
.tip { .tip {

View File

@ -42,6 +42,7 @@
<button v-if="is_draw" class="btn" @click="pay">全部提现</button> <button v-if="is_draw" class="btn" @click="pay">全部提现</button>
<button else class="btn disabled" @click="noPay">暂时不可提现</button> <button else class="btn disabled" @click="noPay">暂时不可提现</button>
</view> </view>
<view class="price"><button class="btn btn2" @click="navToRecord">提现记录</button></view>
<u-modal :show="modelShow" title="提醒" content="删除后上传的文件将会消失,你确定要删除吗?" showCancelButton <u-modal :show="modelShow" title="提醒" content="删除后上传的文件将会消失,你确定要删除吗?" showCancelButton
@confirm="clear(del_name);modelShow=false" @cancel="modelShow=false"></u-modal> @confirm="clear(del_name);modelShow=false" @cancel="modelShow=false"></u-modal>
</view> </view>
@ -81,9 +82,7 @@
// //
onNavigationBarButtonTap(res) { onNavigationBarButtonTap(res) {
if (res.index === 0) { if (res.index === 0) {
uni.navigateTo({ this.navToRecord();
url: '/subpkg/withdrawList/withdrawList'
})
} }
}, },
onLoad() { onLoad() {
@ -101,6 +100,11 @@
} }
}, },
methods: { methods: {
navToRecord(){
uni.navigateTo({
url: '/subpkg/withdrawList/withdrawList'
})
},
/** /**
* 某文件上传结束回调(成功失败都回调) * 某文件上传结束回调(成功失败都回调)
* @param {Object} item 当前上传完成的文件 * @param {Object} item 当前上传完成的文件
@ -368,6 +372,11 @@
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
} }
.btn2{
background-color: #fff;
color: #333;
border: 1px solid #eee;
}
.disabled{ .disabled{
background-color: #666; background-color: #666;
} }

View File

@ -25,6 +25,7 @@
<input v-if="priceList[changeMoney]=='自定义'" class="input" type="digit" placeholder="输入充值金额(元)" <input v-if="priceList[changeMoney]=='自定义'" class="input" type="digit" placeholder="输入充值金额(元)"
v-model="payMoney.money" /> v-model="payMoney.money" />
<button class="btn" @click="pay">申请提现</button> <button class="btn" @click="pay">申请提现</button>
<button class="btn btn2" @click="navToRecord">提现记录</button>
</view> </view>
<!-- <view class="tip"> <!-- <view class="tip">
<view class="title">备注</view> <view class="title">备注</view>
@ -55,9 +56,7 @@
// //
onNavigationBarButtonTap(res){ onNavigationBarButtonTap(res){
if (res.index === 0) { if (res.index === 0) {
uni.navigateTo({ this.navToRecord();
url: '/subpkg/withdrawList/withdrawList'
})
} }
}, },
onLoad() { onLoad() {
@ -67,6 +66,11 @@
}) })
}, },
methods: { methods: {
navToRecord(){
uni.navigateTo({
url: '/subpkg/withdrawList/withdrawList'
})
},
copyPhone(str = "") { copyPhone(str = "") {
uni.setClipboardData({ uni.setClipboardData({
data: str + "", data: str + "",
@ -249,6 +253,11 @@
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
} }
.btn2{
background-color: #fff;
color: #333;
border: 1px solid #eee;
}
} }
.tip { .tip {