Forráskód Böngészése

申请获取id OK

shish 6 éve
szülő
commit
6042ca5248
1 módosított fájl, 2 hozzáadás és 5 törlés
  1. 2 5
      store/src/admin/official/apply.vue

+ 2 - 5
store/src/admin/official/apply.vue

@@ -147,13 +147,10 @@ export default {
     init() {
       this.$util.getCheckLogin().then(res => {
         if (res) {
-          // #ifdef H5
-		  //let id = sessionStorage.getItem("introMerchantId");
 		  let id = uni.getStorageSync('introMerchantId');
           if (id > 0) {
             this._getMerchantDet();
           }
-          // #endif
           this._regionTree();
         }
       });
@@ -165,7 +162,7 @@ export default {
     },
     _getMerchantDet() {
       // #ifdef H5
-      let id = sessionStorage.getItem("introMerchantId");
+      let id = uni.getStorageSync('introMerchantId');
       getIntroduce({ id: id }).then(res => {
         this.merchantData = res.data;
       });
@@ -173,7 +170,7 @@ export default {
     },
     // ==============
     confirmFn() {
-      let id = sessionStorage.getItem("introMerchantId");
+      let id = uni.getStorageSync('introMerchantId');
       applyRegister({
         // oldId: this.option.merchantId || 0,
         introMerchantId: id || 0,