|
@@ -9,7 +9,8 @@
|
|
|
</view>
|
|
|
<view class="luck-info-content flex">
|
|
|
<view class="luck-info-content-num">
|
|
|
- <image src="../../static/lucky/lucky_gkmp.png" mode="scaleToFill"></image>
|
|
|
+ <!-- <image src="../../static/lucky/lucky_gkmp.png" mode="scaleToFill" ></image> -->
|
|
|
+ <image src="../../static/lucky/zi.png" mode="scaleToFill"></image>
|
|
|
</view>
|
|
|
<view class="luck-info-content-img">
|
|
|
<view class="luck-info-content-img-word">
|
|
@@ -32,10 +33,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="luck-info-content-btn" @click="pay" v-if="info.status == 1 && info.salePrice != 0">
|
|
|
- 支付{{ info.salePrice / 100 }}元 立即刮开盲票</view>
|
|
|
- <view class="luck-info-content-btn" @click="payDetail"
|
|
|
- v-else-if="info.status == 1 && info.salePrice == 0">收下盲票,立即刮开盲票</view>
|
|
|
- <view class=" code" v-else>开奖啦!</view>
|
|
|
+ 支付{{ info.salePrice / 100 }}元 立即购买并刮奖</view>
|
|
|
+ <view class="luck-info-content-btn" style="width: 500rpx;" @click="payDetail"
|
|
|
+ v-else-if="info.status == 1 && info.salePrice == 0">收下盲票,立即刮奖</view>
|
|
|
+ <!-- <view class=" code" v-else>开奖啦!</view> -->
|
|
|
+ <view class="luck-info-content-btn" style="width: 500rpx;" @click="toChoice" v-if="Choice">领取奖品</view>
|
|
|
</view>
|
|
|
<view class="luck-info-close flex">
|
|
|
<navigator open-type="exit" target="miniProgram" hover-class="none"
|
|
@@ -98,6 +100,8 @@
|
|
|
status: 2,
|
|
|
showAction: false,
|
|
|
infoimg: false,
|
|
|
+ Choice: false,
|
|
|
+ ChoiceData: '',
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -112,6 +116,8 @@
|
|
|
this.serialNo = obj.id
|
|
|
this.getDetail()
|
|
|
}
|
|
|
+ this.serialNo = 'TXH00173-0001-0000006'
|
|
|
+ this.getDetail()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -134,7 +140,6 @@
|
|
|
uni.redirectTo({
|
|
|
url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
|
|
|
})
|
|
|
-
|
|
|
} else {
|
|
|
this.luckyShow = true
|
|
|
uni.showModal({
|
|
@@ -188,9 +193,8 @@
|
|
|
setTimeout(() => {
|
|
|
this.infoimg = true
|
|
|
setTimeout(() => {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
|
|
|
- })
|
|
|
+ this.ChoiceData = res.data.ticketId
|
|
|
+ this.Choice = true
|
|
|
}, 500)
|
|
|
}, 500)
|
|
|
} else {
|
|
@@ -211,9 +215,9 @@
|
|
|
setTimeout(() => {
|
|
|
this.infoimg = true
|
|
|
setTimeout(() => {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/packagePrize/choice/index?id=${ res.data.ticketId }&type=offLine`
|
|
|
- })
|
|
|
+ this.ChoiceData = res.data.ticketId
|
|
|
+ this.Choice = true
|
|
|
+
|
|
|
}, 500)
|
|
|
}, 500)
|
|
|
}
|
|
@@ -229,6 +233,13 @@
|
|
|
uni.hideLoading();
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ //跳转奖品页
|
|
|
+ toChoice(){
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/packagePrize/choice/index?id=${ this.ChoiceData }&type=offLine`
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
close() {
|
|
|
this.payShow = false
|