@@ -51,7 +51,7 @@
<view>恭喜您,充值成功!</view>
<view>{{ldNum}}乐豆已计入您的乐豆余额。</view>
</view>
- <view class="know-btn" @click="messagePop=false">我知道了</view>
+ <view class="know-btn" @click="toPage">我知道了</view>
</u-popup>
@@ -72,6 +72,11 @@
ldNum: 0 // 充值乐豆数
}
},
+ onLoad() {
+ this.messagePop = false
+ this.ldNum = 0
+ this.rechargeCode = ''
+ },
methods: {
// 立即充值
goRecharge(){
@@ -91,6 +96,10 @@
this.messagePop = false
})
+ // 跳转
+ toPage(){
+ uni.navigateBack()