Browse Source

继续支付处理

lex-xin 5 years ago
parent
commit
0eb7613219

File diff suppressed because it is too large
+ 0 - 0
dist/app.843a16c2c26f001746df.js


File diff suppressed because it is too large
+ 0 - 0
dist/css/PeriodAdjust~PeriodChange.b7691562.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/PeriodExchange.7c098d52.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/PeriodAdjust~PeriodChange.736bf210.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/PeriodAdjust~PeriodChange.ac6660bb.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/PeriodExchange.8f000f22.js


+ 27 - 0
src/views/app/PeriodExchange.vue

@@ -144,9 +144,36 @@ export default {
                 let result = res.data
                 this.$toast.clear()
                 this.isClick = false
+                console.log(result)
                 if(result.code == 200) {
                     this.result = result.data
                     this.onSubmit()
+                } else if(result.code == 100) {
+                    this.$dialog.confirm({
+                        // title: '提示',
+                        message: result.data,
+                        confirmButtonColor: '#269a93',
+                        cancelButtonText: '取消',
+                        confirmButtonText: '继续付款'
+                    }).then(() => {
+                        this.$toast.loading({
+                            duration: 0,
+                            message: '加载中...',
+                            forbidClick: true,
+                            loadingType: 'spinner'
+                        })
+                        // 继续支付
+                        createOrder({ activitiesId: item.id, isContinuePay: true }).then(res => {
+                            let result = res.data
+                            this.$toast.clear()
+                            if(result.code == 200) {
+                                this.result = result.data
+                                this.onSubmit()
+                            } else {
+                                this.$toast(result.msg)
+                            }
+                        })
+                    })
                 } else {
                     this.$toast(result.msg)
                 }

Some files were not shown because too many files changed in this diff