13 changed files with 129 additions and 38 deletions
@ -2,7 +2,7 @@ |
|||||
<view class="content"> |
<view class="content"> |
||||
<navigation> |
<navigation> |
||||
Recharge |
Recharge |
||||
<view class="bread" slot="bread"> |
<view class="bread" slot="bread" @click="invMore=true,msShow=true"> |
||||
<image src="../../../static/promo/[email protected]" mode=""></image> |
<image src="../../../static/promo/[email protected]" mode=""></image> |
||||
</view> |
</view> |
||||
</navigation> |
</navigation> |
||||
@ -87,6 +87,28 @@ |
|||||
</view> |
</view> |
||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
|
<view class="invite-more" v-show="invMore"> |
||||
|
<view class="invite-con"> |
||||
|
<view class="more-a" @click="goRecod()"> |
||||
|
recharge record |
||||
|
</view> |
||||
|
<view class="more-a" @click="goRerule()"> |
||||
|
recharge rules |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="invite-con2"> |
||||
|
<view class="more-a" @click="invMore=false,msShow=false"> |
||||
|
cancel |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false"> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
</template> |
</template> |
||||
@ -110,6 +132,9 @@ |
|||||
currencySymbol:'', |
currencySymbol:'', |
||||
currentBalance:'', |
currentBalance:'', |
||||
userId:'', |
userId:'', |
||||
|
invMore: false, |
||||
|
appl: false, |
||||
|
msShow: false, |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
@ -161,6 +186,16 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
goRecod(){ |
||||
|
uni.navigateTo({ |
||||
|
url:'record/index' |
||||
|
}) |
||||
|
}, |
||||
|
goRerule(){ |
||||
|
uni.navigateTo({ |
||||
|
url:'./rechargeRule' |
||||
|
}) |
||||
|
}, |
||||
copyTextMethod() { |
copyTextMethod() { |
||||
this.$copyText(this.copyText).then(res => { |
this.$copyText(this.copyText).then(res => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
@ -228,9 +263,23 @@ |
|||||
icon: 'success', |
icon: 'success', |
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
setTimeout(function(){ |
//更新余额 |
||||
location.reload() |
const post = api.withdrawConfig({ |
||||
},1000) |
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
}) |
||||
|
post.then(res => { |
||||
|
if(res.data){ |
||||
|
this.currentBalance=res.data.currentBalance; |
||||
|
uni.setStorage({ |
||||
|
key: 'currentBalance', |
||||
|
data: this.currentBalance, |
||||
|
success: function() { |
||||
|
console.log('success') |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
}) |
||||
}else{ |
}else{ |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: 'Payment failed', |
title: 'Payment failed', |
||||
|
Loading…
Reference in new issue