修改抽奖未绑定支付宝跳转
This commit is contained in:
parent
087bb2b3e2
commit
efd651aac7
|
|
@ -23,9 +23,7 @@
|
|||
</template>
|
||||
|
||||
</view>
|
||||
<!-- <view class="u-flex u-row-center btn-box">
|
||||
<view class="btn" @click="lingqu">立即领取</view>
|
||||
</view> -->
|
||||
|
||||
<view class="u-flex close u-row-center">
|
||||
<u-icon name="close-circle" :size="54" @click="close" color="#fff"></u-icon>
|
||||
</view>
|
||||
|
|
@ -49,30 +47,8 @@
|
|||
this.result = data
|
||||
this.show = true
|
||||
},
|
||||
lingqu() {
|
||||
const {
|
||||
orderId,
|
||||
id
|
||||
} = this.result
|
||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
||||
this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
uni.showToast({
|
||||
title: '领取成功',
|
||||
icon: 'none'
|
||||
})
|
||||
this.$emit('success')
|
||||
this.close()
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '领取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
close() {
|
||||
console.log('抽奖弹窗关闭');
|
||||
this.show = false
|
||||
if(!this.result){
|
||||
return
|
||||
|
|
@ -85,8 +61,14 @@
|
|||
this.result = ''
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
this.$emit('close')
|
||||
this.close()
|
||||
console.log('抽奖领取成功');
|
||||
const key=res.data==0?'isBindAliPay':undefined
|
||||
this.$emit('close',key)
|
||||
if(key&&key=='isBindAliPay'){
|
||||
uni.navigateTo({
|
||||
url:'/me/invite/zhifubao'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue