Browse Source

Update MPayment.vue

lex 1 year ago
parent
commit
5ab6772d8f
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/components/MPayment.vue

+ 8 - 1
src/components/MPayment.vue

@@ -130,7 +130,14 @@ export default {
       } else {
         url += `/#/payResult`;
       }
-      url += `?payType=${this.pay_channel}&payment=${JSON.stringify(this.paymentObject)}&platform=teacher`;
+      // 为了处理特殊字符  &not
+      const temp = this.paymentObject;
+      const { notifyUrl, ...more } = temp?.payMap;
+      temp.payMap = {
+        ...more,
+        onotifyUrl: notifyUrl,
+      };
+      url += `?payType=${this.pay_channel}&payment=${JSON.stringify(temp)}&platform=teacher`;
       this.$emit("onChangeStatus", false); // 初始化弹窗状态
       window.location.href = url;
     },