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