Explorar o código

Update MPayment.vue

lex hai 1 ano
pai
achega
5ab6772d8f
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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;
     },