1002884655 4 年 前
コミット
c0ea4f97f8

+ 4
- 1
src/pages/index/LanQiuDingDan/index.vue ファイルの表示

@@ -231,10 +231,13 @@ export default {
231 231
         this.TotalPrice = 0
232 232
         this.Multiple = 1
233 233
         this.DataLock = false
234
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=LanQiu`
234
+        this.$router.push({ name: 'DingDanZhiFuZhuangTai', query: { orderId: res.data.data.orderId } })
235 235
       }).catch((res) => {
236 236
         this.Toast(res.data.message)
237 237
         this.DataLock = false
238
+        if (res.data.code - 0 === 1003) {
239
+          this.$router.push({ name: 'ChongZhi' })
240
+        }
238 241
       })
239 242
     },
240 243
     ToGetStoreList () { // 获取店铺列表

+ 4
- 1
src/pages/index/PaiLie3DingDan/index.vue ファイルの表示

@@ -289,10 +289,13 @@ export default {
289 289
         this.TotalPrize = 0
290 290
         this.Multiple = 1
291 291
         this.DataLock = false
292
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie3`
292
+        this.$router.push({ name: 'DingDanZhiFuZhuangTai', query: { orderId: res.data.data.orderId } })
293 293
       }).catch((res) => {
294 294
         this.Toast(res.data.message)
295 295
         this.DataLock = false
296
+        if (res.data.code - 0 === 1003) {
297
+          this.$router.push({ name: 'ChongZhi' })
298
+        }
296 299
       })
297 300
     },
298 301
     EmptyCart () { // 清空购物车

+ 4
- 1
src/pages/index/PaiLie5DingDan/index.vue ファイルの表示

@@ -261,10 +261,13 @@ export default {
261 261
         this.TotalPrize = 0
262 262
         this.Multiple = 1
263 263
         this.DataLock = false
264
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=PaiLie5`
264
+        this.$router.push({ name: 'DingDanZhiFuZhuangTai', query: { orderId: res.data.data.orderId } })
265 265
       }).catch((res) => {
266 266
         this.Toast(res.data.message)
267 267
         this.DataLock = false
268
+        if (res.data.code - 0 === 1003) {
269
+          this.$router.push({ name: 'ChongZhi' })
270
+        }
268 271
       })
269 272
     },
270 273
     SelectStore (item) { // 选择店铺

+ 4
- 1
src/pages/index/ShuangSeQiuDingDan/index.vue ファイルの表示

@@ -212,10 +212,13 @@ export default {
212 212
         this.TotalPrize = 0
213 213
         this.Multiple = 1
214 214
         this.DataLock = false
215
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=ShuangSeQiu`
215
+        this.$router.push({ name: 'DingDanZhiFuZhuangTai', query: { orderId: res.data.data.orderId } })
216 216
       }).catch((res) => {
217 217
         this.Toast(res.data.message)
218 218
         this.DataLock = false
219
+        if (res.data.code - 0 === 1003) {
220
+          this.$router.push({ name: 'ChongZhi' })
221
+        }
219 222
       })
220 223
     },
221 224
     SelectStore (item) { // 选择店铺

+ 4
- 1
src/pages/index/ZuQiuDingDan/index.vue ファイルの表示

@@ -232,10 +232,13 @@ export default {
232 232
         this.TotalPrice = 0
233 233
         this.Multiple = 1
234 234
         this.DataLock = false
235
-        window.location.href = `/api/app/order/alipay/betting?orderId=${res.data.data.orderId}&returlURL=${encodeURIComponent(`${window.location.origin}/#/index/DingDanZhiFuZhuangTai?orderId=${res.data.data.orderId}&bettingId=${res.data.data.bettingId}`)}&token=${window.localStorage.Jwt}&routerName=ZuQiu`
235
+        this.$router.push({ name: 'DingDanZhiFuZhuangTai', query: { orderId: res.data.data.orderId } })
236 236
       }).catch((res) => {
237 237
         this.Toast(res.data.message)
238 238
         this.DataLock = false
239
+        if (res.data.code - 0 === 1003) {
240
+          this.$router.push({ name: 'ChongZhi' })
241
+        }
239 242
       })
240 243
     },
241 244
     ToGetStoreList () { // 获取店铺列表