Browse Source

修改问题

lex-xin 4 years ago
parent
commit
920998aa7b

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


BIN
dist/app.035dcd5a231ed224e042.js.gz


BIN
dist/app.a029a47c1a7b667beafd.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/css/PaymentResult.5aeb81e7.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/SignUpBaseInfo.66b4c7f9.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/SignUpLevel.31c2f6e6.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/SignUpPayment.9fd021fa.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/PaymentResult.62784bc7.js


BIN
dist/js/PaymentResult.62784bc7.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/js/PaymentResult.fda8d0ed.js


BIN
dist/js/PaymentResult.fda8d0ed.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/js/SignUpBaseInfo.cca2c26c.js


BIN
dist/js/SignUpBaseInfo.cca2c26c.js.gz


BIN
dist/js/SignUpBaseInfo.f0451f91.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/js/SignUpLevel.3d6a0b94.js


BIN
dist/js/SignUpLevel.3d6a0b94.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/js/SignUpLevel.aa01feb0.js


BIN
dist/js/SignUpLevel.aa01feb0.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/js/SignUpPayment.63c3f763.js


BIN
dist/js/SignUpPayment.63c3f763.js.gz


BIN
dist/js/SignUpPayment.cbc697b6.js.gz


+ 20 - 0
src/views/PaymentResult.vue

@@ -96,6 +96,26 @@ export default {
         }
         this.__init()
         // this.pushHistory()
+
+        const that = this
+        window.addEventListener(
+            "popstate",
+            function(e) {
+                const examId = localStorage.getItem("examId")
+                const organId = localStorage.getItem("organId")
+                // window.location.replace(
+                //     window.location.href.toString().replace(window.location.hash, "") + `#/signUp?examId=${examId}&organId=${organId}`
+                // );
+                that.$router.push({
+                    path: "/signUp",
+                    query: {
+                        examId: examId,
+                        organId: organId
+                    }
+                })
+            },
+            false
+        );
     },
     methods: {
         pushHistory() {

+ 5 - 1
src/views/signup/SignUpBaseInfo.vue

@@ -270,7 +270,11 @@ export default {
             }
             errorText && this.$toast(errorText)
         }
-    }
+    },
+    destroyed() {
+		this.$toast.clear()
+		this.$dialog.close()
+	}
 }
 </script>
 <style lang="less" scoped>

+ 5 - 8
src/views/signup/SignUpLevel.vue

@@ -712,13 +712,6 @@ export default {
             this.songUpload.songStatus = false
             this.performNumUpload = JSON.parse(JSON.stringify(this.performNumUploadTemp)) // 回填数据
             this.practiceUpload = JSON.parse(JSON.stringify(this.practiceUploadTemp)) // 回填数据
-
-            console.log({
-                performNumUploadTemp: this.performNumUploadTemp,
-                performNumUpload: this.performNumUpload,
-                practiceUpload: this.practiceUpload,
-                practiceUploadTemp: this.practiceUploadTemp,
-            })
         },
         onSaveUpload() {
             let songUpload = this.songUpload
@@ -929,7 +922,11 @@ export default {
             }
             return tempNumber[value]
         }
-    }
+    },
+    destroyed() {
+		this.$toast.clear()
+		this.$dialog.close()
+	}
 }
 </script>
 <style lang="less" scoped>

+ 14 - 4
src/views/signup/SignUpPayment.vue

@@ -142,10 +142,10 @@ export default {
         },
         onChangeStatus(val) {
             this.isStatus = val
-            if(this.paymentResult) {
-                this.orderNo = this.paymentResult.orderNo
-                this.paymentResult = null
-            }
+            // if(this.paymentResult) {
+            //     this.orderNo = this.paymentResult.orderNo
+            //     this.paymentResult = null
+            // }
         },
         async onSubmit() {
             // 没有订单号说明是创建订单
@@ -166,6 +166,11 @@ export default {
                 if(result.code == 200) {
                     this.payMap = result.data.payMap
                     this.paymentResult = result.data.payMap
+                    const orderNo = result.data.payMap.orderNo
+                    this.orderNo = orderNo
+                    const examRegistrationId = result.data.examRegister.id
+                    const origin = window.location.origin
+                    history.replaceState("", "Title", `${origin}/#/signUpPayment?orderNo=${orderNo}&examRegistrationId=${examRegistrationId}`)
                     this.onSubmitPay()
                 } else {
                     this.$toast(result.msg)
@@ -184,6 +189,11 @@ export default {
                 if(result.code == 200) {
                     this.payMap = result.data.payMap
                     this.paymentResult = result.data.payMap
+                    const orderNo = result.data.payMap.orderNo
+                    this.orderNo = orderNo
+                    const examRegistrationId = result.data.examRegister.id
+                    const origin = window.location.origin
+                    history.replaceState("", "Title", `${origin}/#/signUpPayment?orderNo=${orderNo}&examRegistrationId=${examRegistrationId}`)
                     this.onSubmitPay()
                 } else {
                     this.$toast(result.msg)

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