Browse Source

静态页面

1002884655 4 years ago
parent
commit
c0ea4f97f8

+ 4
- 1
src/pages/index/LanQiuDingDan/index.vue View File

231
         this.TotalPrice = 0
231
         this.TotalPrice = 0
232
         this.Multiple = 1
232
         this.Multiple = 1
233
         this.DataLock = false
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
       }).catch((res) => {
235
       }).catch((res) => {
236
         this.Toast(res.data.message)
236
         this.Toast(res.data.message)
237
         this.DataLock = false
237
         this.DataLock = false
238
+        if (res.data.code - 0 === 1003) {
239
+          this.$router.push({ name: 'ChongZhi' })
240
+        }
238
       })
241
       })
239
     },
242
     },
240
     ToGetStoreList () { // 获取店铺列表
243
     ToGetStoreList () { // 获取店铺列表

+ 4
- 1
src/pages/index/PaiLie3DingDan/index.vue View File

289
         this.TotalPrize = 0
289
         this.TotalPrize = 0
290
         this.Multiple = 1
290
         this.Multiple = 1
291
         this.DataLock = false
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
       }).catch((res) => {
293
       }).catch((res) => {
294
         this.Toast(res.data.message)
294
         this.Toast(res.data.message)
295
         this.DataLock = false
295
         this.DataLock = false
296
+        if (res.data.code - 0 === 1003) {
297
+          this.$router.push({ name: 'ChongZhi' })
298
+        }
296
       })
299
       })
297
     },
300
     },
298
     EmptyCart () { // 清空购物车
301
     EmptyCart () { // 清空购物车

+ 4
- 1
src/pages/index/PaiLie5DingDan/index.vue View File

261
         this.TotalPrize = 0
261
         this.TotalPrize = 0
262
         this.Multiple = 1
262
         this.Multiple = 1
263
         this.DataLock = false
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
       }).catch((res) => {
265
       }).catch((res) => {
266
         this.Toast(res.data.message)
266
         this.Toast(res.data.message)
267
         this.DataLock = false
267
         this.DataLock = false
268
+        if (res.data.code - 0 === 1003) {
269
+          this.$router.push({ name: 'ChongZhi' })
270
+        }
268
       })
271
       })
269
     },
272
     },
270
     SelectStore (item) { // 选择店铺
273
     SelectStore (item) { // 选择店铺

+ 4
- 1
src/pages/index/ShuangSeQiuDingDan/index.vue View File

212
         this.TotalPrize = 0
212
         this.TotalPrize = 0
213
         this.Multiple = 1
213
         this.Multiple = 1
214
         this.DataLock = false
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
       }).catch((res) => {
216
       }).catch((res) => {
217
         this.Toast(res.data.message)
217
         this.Toast(res.data.message)
218
         this.DataLock = false
218
         this.DataLock = false
219
+        if (res.data.code - 0 === 1003) {
220
+          this.$router.push({ name: 'ChongZhi' })
221
+        }
219
       })
222
       })
220
     },
223
     },
221
     SelectStore (item) { // 选择店铺
224
     SelectStore (item) { // 选择店铺

+ 4
- 1
src/pages/index/ZuQiuDingDan/index.vue View File

232
         this.TotalPrice = 0
232
         this.TotalPrice = 0
233
         this.Multiple = 1
233
         this.Multiple = 1
234
         this.DataLock = false
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
       }).catch((res) => {
236
       }).catch((res) => {
237
         this.Toast(res.data.message)
237
         this.Toast(res.data.message)
238
         this.DataLock = false
238
         this.DataLock = false
239
+        if (res.data.code - 0 === 1003) {
240
+          this.$router.push({ name: 'ChongZhi' })
241
+        }
239
       })
242
       })
240
     },
243
     },
241
     ToGetStoreList () { // 获取店铺列表
244
     ToGetStoreList () { // 获取店铺列表