|
@@ -75,6 +75,18 @@
|
75
|
75
|
|
76
|
76
|
<div class="Layer" v-if="ShowStore">
|
77
|
77
|
<div class="centerLabel">
|
|
78
|
+ <span v-if="MyStoreList.length">我的店铺:</span>
|
|
79
|
+ <ul v-if="MyStoreList.length">
|
|
80
|
+ <li v-for="(item, index) in MyStoreList" :key="index" v-if="item.status - 0 === 1" class="flex-h" @click="SelectStore(item)">
|
|
81
|
+ <div class="flex-item">
|
|
82
|
+ <div>
|
|
83
|
+ <span>{{item.name}}</span>
|
|
84
|
+ </div>
|
|
85
|
+ </div>
|
|
86
|
+ <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
|
|
87
|
+ <i class="iconfont iconyigouxuan active" v-else></i>
|
|
88
|
+ </li>
|
|
89
|
+ </ul>
|
78
|
90
|
<span v-if="RecommendStoreList.length">推荐店铺:</span>
|
79
|
91
|
<ul v-if="RecommendStoreList.length">
|
80
|
92
|
<li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
|
|
@@ -122,6 +134,7 @@ export default {
|
122
|
134
|
name: '',
|
123
|
135
|
data () {
|
124
|
136
|
return {
|
|
137
|
+ MyStoreList: [],
|
125
|
138
|
PriceArr: [0, 0], // 奖金区间
|
126
|
139
|
AllParts: [], // 投注生成结果
|
127
|
140
|
CurrentPassUnitNum: 0,
|
|
@@ -219,6 +232,7 @@ export default {
|
219
|
232
|
this.TotalPrice = 0
|
220
|
233
|
this.Multiple = 1
|
221
|
234
|
this.DataLock = false
|
|
235
|
+ window.location.href = `/api/app/order/alipay/buylottery?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}`)}&token=${window.localStorage.Jwt}`
|
222
|
236
|
}).catch((res) => {
|
223
|
237
|
this.Toast(res.data.message)
|
224
|
238
|
this.DataLock = false
|
|
@@ -233,6 +247,7 @@ export default {
|
233
|
247
|
}).then((res) => {
|
234
|
248
|
let StoreList = res.data.data.nearest || []
|
235
|
249
|
let RecommendStoreList = res.data.data.recommend || []
|
|
250
|
+ let MyStoreList = res.data.data.mine || []
|
236
|
251
|
StoreList.map((item) => {
|
237
|
252
|
if (item.status - 0 === 1) {
|
238
|
253
|
this.StoreList.push(item)
|
|
@@ -243,6 +258,21 @@ export default {
|
243
|
258
|
this.RecommendStoreList.push(item)
|
244
|
259
|
}
|
245
|
260
|
})
|
|
261
|
+ MyStoreList.map((item) => {
|
|
262
|
+ if (item.status - 0 === 1) {
|
|
263
|
+ this.MyStoreList.push(item)
|
|
264
|
+ }
|
|
265
|
+ })
|
|
266
|
+ if (this.MyStoreList.length) {
|
|
267
|
+ this.CurrentStoreName = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].name
|
|
268
|
+ this.CurrentStoreId = this.MyStoreList[0].shopId === this.CurrentStoreId ? null : this.MyStoreList[0].shopId
|
|
269
|
+ } else if (this.RecommendStoreList.length) {
|
|
270
|
+ this.CurrentStoreName = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].name
|
|
271
|
+ this.CurrentStoreId = this.RecommendStoreList[0].shopId === this.CurrentStoreId ? null : this.RecommendStoreList[0].shopId
|
|
272
|
+ } else if (this.StoreList.length) {
|
|
273
|
+ this.CurrentStoreName = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].name
|
|
274
|
+ this.CurrentStoreId = this.StoreList[0].shopId === this.CurrentStoreId ? null : this.StoreList[0].shopId
|
|
275
|
+ }
|
246
|
276
|
})
|
247
|
277
|
},
|
248
|
278
|
ToGetAllParts () { // 枚举投注
|