浏览代码

feat:发布

chenqilong 1 年之前
父节点
当前提交
8d90434d13
共有 2 个文件被更改,包括 13 次插入5 次删除
  1. 2 1
      src/pages/goods/detail.vue
  2. 11 4
      src/pages/issue/index.vue

+ 2 - 1
src/pages/goods/detail.vue

@@ -350,7 +350,8 @@
         else if(e.value === 3) {
           uni.setStorageSync('issuePageParam', {
             goodsId: this.id,
-            type: 1
+            type: 1,
+            isLoad:true
           });
           this.$navToPage({
             url: `/pages/issue/index`

+ 11 - 4
src/pages/issue/index.vue

@@ -110,17 +110,24 @@ export default {
   data(){
     return {
       isShow:false,
-      pam:{}
+      pam:{},
+      init:true
     }
   },
 
   onShow(){
     this.pam = uni.getStorageSync('issuePageParam')
     uni.removeStorageSync('issuePageParam');
+
+    if(this.pam.isLoad || this.init){
+      this.init=false
+      delete this.pam.isLoad
       this.isShow = false
-        this.$nextTick(()=>{
-          this.isShow = true
-        })
+      this.$nextTick(()=>{
+        this.isShow = true
+      })
+    }
+      
   }
   // #endif