diff --git a/common/http.interceptor.js b/common/http.interceptor.js index e46c421..5c749eb 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -20,8 +20,8 @@ const install = (Vue, vm) => { // }, // https://yxd.ccttiot.com/prod-api}); Vue.prototype.$u.http.setConfig({ - // baseUrl: 'http://192.168.2.28:8089', - baseUrl: 'https://testcha.chuangtewl.com/prod-api', + baseUrl: 'http://192.168.2.56:8089', + // baseUrl: 'https://testcha.chuangtewl.com/prod-api', loadingText: '努力加载中~', loadingTime: 800, // 设置自定义头部content-type diff --git a/page_fenbaotwo/skzh.vue b/page_fenbaotwo/skzh.vue new file mode 100644 index 0000000..68cfa2d --- /dev/null +++ b/page_fenbaotwo/skzh.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/page_fenbaotwo/tixian.vue b/page_fenbaotwo/tixian.vue index d48e1a9..e5aec21 100644 --- a/page_fenbaotwo/tixian.vue +++ b/page_fenbaotwo/tixian.vue @@ -7,10 +7,10 @@ 账户余额(元) - ¥0 + ¥{{user.balance == null ? 0 : user.balance}} (可提现金额¥{{user.withdrawalAmount == null ? 0 : user.withdrawalAmount}}) - 累计提现:¥0 + 累计提现:¥{{user.totalWithdrawAmount == null ? 0 : user.totalWithdrawAmount}} @@ -24,15 +24,15 @@ ¥ - - + 全部提现 - - 提现服务费为 ¥1 最低提现金额为¥20 + + 提现服务费为 ¥{{shouxuobj.withdrawHandlingCharge == null ? '' : shouxuobj.withdrawHandlingCharge}} 最低提现¥{{shouxuobj.minAmount == null ? '' : shouxuobj.minAmount}} 最高提现¥{{shouxuobj.maxAmount == null ? '' : shouxuobj.maxAmount}} @@ -43,21 +43,21 @@ - + - + - 微信提现 + {{item.name}}提现 + name="checkbox-mark" color="#fff" size="28"> - - 确认提现 + + 申请提现 @@ -70,13 +70,83 @@ bgc: { backgroundColor: "", }, + user:{}, + qudaolist:[], + currentindex:-1, + shouxuobj:'', + money:'' } }, - onShow() { + onLoad(option) { + this.getinfo() + this.getqudao(option.userId) + }, + onShow(option) { }, methods: { - + // 点击进行提现 + btntx(){ + if(this.shouxuobj.collectionCode == null && this.shouxuobj.name == '线下收款码'){ + uni.showModal({ + title: '提示', + content: '当前暂无收款码,是否去上传?', + success: function(res) { + if (res.confirm) { + try { + uni.navigateTo({ + url:'/page_fenbaotwo/skzh' + }) + } catch (e) { + console.error('删除本地存储时发生错误:', e); + } + } + } + }) + }else{ + let data = { + amount:this.money, + userWithdrawChannelId:this.shouxuobj.userChannelId + } + this.$u.post(`app/withdraw/mch`,data).then(res => { + if (res.code == 200) { + uni.showToast({ + title: '申请成功', + icon: 'success', + duration: 2000 + }) + this.getinfo() + }else{ + uni.showToast({ + title: res.msg, + icon: 'none', + duration: 2000 + }) + } + }) + } + }, + // 点击选择提现方式 + btntxxz(item,index){ + this.currentindex = index + this.shouxuobj = item + }, + // 获取个人信息 + getinfo(){ + this.$u.get(`/getAppInfo`).then(res => { + if (res.code == 200) { + this.user = res.user + } + }) + }, + // 获取提现渠道列表 + getqudao(userId){ + this.$u.get(`/app/withdraw/getUserWithdrawChannelList?userId=${userId}`).then(res => { + if (res.code == 200) { + this.qudaolist = res.data + } + }) + } } } @@ -330,11 +400,9 @@ } .btn { - margin-left: 20rpx; display: flex; align-items: center; justify-content: center; - margin-top: 218rpx; width: 590rpx; height: 84rpx; background: #48893B; @@ -343,7 +411,10 @@ font-weight: 400; font-size: 36rpx; color: #FFFFFF; - + position: fixed; + left: 50%; + transform: translateX(-50%); + bottom: 50rpx; } } diff --git a/page_fenbaotwo/zhangdan.vue b/page_fenbaotwo/zhangdan.vue new file mode 100644 index 0000000..fb89d60 --- /dev/null +++ b/page_fenbaotwo/zhangdan.vue @@ -0,0 +1,272 @@ + + + + + \ No newline at end of file diff --git a/page_moban/chongzhi.vue b/page_moban/chongzhi.vue deleted file mode 100644 index 2466989..0000000 --- a/page_moban/chongzhi.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - - - \ No newline at end of file diff --git a/page_moban/chongzhixq.vue b/page_moban/chongzhixq.vue deleted file mode 100644 index 0d40ffe..0000000 --- a/page_moban/chongzhixq.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - \ No newline at end of file diff --git a/page_moban/shoufei.vue b/page_moban/shoufei.vue index 9c66e1a..569dfc1 100644 --- a/page_moban/shoufei.vue +++ b/page_moban/shoufei.vue @@ -10,8 +10,9 @@ 注:订单提前结束剩余消费时长、金额不返还 + - + @@ -105,10 +106,18 @@ this.nameone = [] this.ruleIdsone = [] if(type == 1){ - this.yajinindex = index - this.nameone.push(item.explain) - this.selectedIndices = [] - this.ruleIdsone.push(item.ruleId) + // this.yajinindex = index + // this.nameone.push(item.explain) + // this.selectedIndices = [] + // this.ruleIdsone.push(item.ruleId) + this.yajinindex = -1 + this.ruleIdsone = '' + const indexExists = this.selectedIndices.includes(item.ruleId) + if (indexExists) { + this.selectedIndices = this.selectedIndices.filter(i => i !== item.ruleId) + } else { + this.selectedIndices.push(item.ruleId) + } }else{ this.yajinindex = -1 this.ruleIdsone = '' @@ -126,7 +135,7 @@ // 点击确定选择套餐 btnqd(){ this.selectedIndices.forEach(val =>{ - this.modelist.forEach(item => { + this.tclist.forEach(item => { if(val == item.ruleId){ this.nameone.push(item.explain) } diff --git a/page_moban/tuikuan.vue b/page_moban/tuikuan.vue deleted file mode 100644 index d9dcdd7..0000000 --- a/page_moban/tuikuan.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - - \ No newline at end of file diff --git a/page_moban/tuikuanfk.vue b/page_moban/tuikuanfk.vue deleted file mode 100644 index f92faf1..0000000 --- a/page_moban/tuikuanfk.vue +++ /dev/null @@ -1,219 +0,0 @@ -