Browse Source

修改signup获取url参数

c4az6 4 years ago
parent
commit
d241a30fa2
2 changed files with 5 additions and 6 deletions
  1. 4 4
      src/App.vue
  2. 1 2
      src/views/doctor/SignUp.vue

+ 4 - 4
src/App.vue

@@ -83,7 +83,7 @@
             }, 2000); */
     },
     async mounted() {
-      const { data: response } = await reqGetWeixinSign()
+/*       const { data: response } = await reqGetWeixinSign()
       console.log("response: ", response)
       // if (response.success !== 1) return this.$toast('服务器异常,请稍后重试!')
       wx.config({
@@ -113,13 +113,13 @@
       wx.error(function (res) {
         // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名
         console.log("配置错误: ", res)
-      });
+      }); */
 
 
 
 /* ue.360lj.com 获取微信签名信息配置 */
    
-      /* const { data: response } = await this.$http.GetSing()   
+      const { data: response } = await this.$http.GetSing()   
       wx.config({
         debug: false, // 是否开启调试模式
         appId: response.ResultObject.appId, //appid
@@ -147,7 +147,7 @@
       wx.error(function (res) {
         // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名
         console.log("配置错误: ", res)
-      }); */
+      });
     },
     watch: {
       $route(to, from) {

+ 1 - 2
src/views/doctor/SignUp.vue

@@ -1,6 +1,4 @@
 <!-- 医生验证 -->
-import { type } from 'os';
-import { type } from 'os';
 <template>
   <main>
     <header>
@@ -69,6 +67,7 @@ import { type } from 'os';
       // 获取url中的参数
       this.identity = this.getUrlParams('identity');
       this.partnerID = this.getUrlParams('PartnerID') || "";
+      if(!this.partnerID) this.partnerID = this.getUrlParams('SuperiorPartnerID')
       console.log(this.identity)
       console.log(this.partnerID)
     },