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