|
@@ -38,7 +38,7 @@
|
38
|
38
|
|
39
|
39
|
<div class="PhotoInfo">
|
40
|
40
|
<span>彩票照片</span>
|
41
|
|
- <div v-if="!DetailInfo.bettingDetail.betting.isDrawn">
|
|
41
|
+ <div v-if="!DetailInfo.bettingDetail.betting.isDrawn && DetailInfo.bettingDetail.betting.status - 0 !== 2">
|
42
|
42
|
<a class="Add" @click="$refs.CpFile.click()">
|
43
|
43
|
<i class="iconfont iconjia centerLabel"></i>
|
44
|
44
|
</a>
|
|
@@ -52,8 +52,8 @@
|
52
|
52
|
</div>
|
53
|
53
|
|
54
|
54
|
<div class="Bottom">
|
55
|
|
- <a @click="ToProcessOrder" v-if="!DetailInfo.bettingDetail.betting.isDrawn" class="active">确定</a>
|
56
|
|
- <a :href="`${APIBase}api/shop/sent-award/order/${$route.query.id}?returlURL=${encodeURIComponent(`${Origin}/#/PaiJiang/PaiJiangGuanLi`)}&token=${Jwt}`" v-if="DetailInfo.bettingDetail.betting.isDrawn && DetailInfo.bettingDetail.betting.isWinning && !DetailInfo.bettingDetail.betting.isCashed" class="active">派奖</a>
|
|
55
|
+ <a @click="ToProcessOrder" v-if="!DetailInfo.bettingDetail.betting.isDrawn && DetailInfo.bettingDetail.betting.status - 0 !== 2" class="active">确定</a>
|
|
56
|
+ <a @click="ToSendPrize" v-if="DetailInfo.bettingDetail.betting.isDrawn && DetailInfo.bettingDetail.betting.isWinning && !DetailInfo.bettingDetail.betting.isCashed" class="active">派奖</a>
|
57
|
57
|
<!-- <a v-else>撤单</a> -->
|
58
|
58
|
</div>
|
59
|
59
|
</div>
|
|
@@ -107,7 +107,8 @@ export default {
|
107
|
107
|
...mapUserActions([
|
108
|
108
|
'GetCurrentShopOrderDetail',
|
109
|
109
|
'ProcessOrder',
|
110
|
|
- 'ImgUpload'
|
|
110
|
+ 'ImgUpload',
|
|
111
|
+ 'AliPay'
|
111
|
112
|
]),
|
112
|
113
|
Init () {
|
113
|
114
|
this.DetailInfo = null
|
|
@@ -116,6 +117,16 @@ export default {
|
116
|
117
|
console.log(this.DetailInfo)
|
117
|
118
|
})
|
118
|
119
|
},
|
|
120
|
+ ToSendPrize () {
|
|
121
|
+ if (this.DataLock) return
|
|
122
|
+ this.DataLock = true
|
|
123
|
+ this.AliPay({ urlData: { orderId: this.$route.query.id }, queryData: { returlURL: `${window.location.origin}/#/PaiJiang/PaiJiangGuanLi`, token: window.localStorage.Jwt } }).then((res) => {
|
|
124
|
+ this.DataLock = false
|
|
125
|
+ window.location.href = res.data.data.payUrl
|
|
126
|
+ }).catch((res) => {
|
|
127
|
+ this.DataLock = false
|
|
128
|
+ })
|
|
129
|
+ },
|
119
|
130
|
ToProcessOrder () { // 出票
|
120
|
131
|
if (!this.CpImgArr.length) {
|
121
|
132
|
this.Toast('请先上传出票图片')
|