ソースを参照

wxshare debug

huanggang 7 年 前
コミット
0d397c31cb

+ 11 - 1
src/components/blocks/goods_list.vue

@@ -1,5 +1,5 @@
 <template>
-    <div>
+    <div :class="{special_goods_list:specialGoodsStyle}">
         <titles :special="special"></titles>
         <div class="goods_items">
             <goods-item v-for="goods in special.items" :key="goods" :item="goods" :proxy="proxy"></goods-item>
@@ -15,6 +15,13 @@
         components:{
             GoodsItem,
             Titles
+        },
+        computed:{
+            specialGoodsStyle(){
+                if(this.$route.query['is_special'] == 'false') {
+                    return true;
+                }
+            }
         }
     }
 </script>
@@ -28,5 +35,8 @@
         background: #f9f9f9;
         margin-top: -2.5%;
     }
+    .special_goods_list {
+        padding-top: 2.5%;
+    }
 
 </style>

+ 0 - 7
src/components/main/home/homeTabs.vue

@@ -28,13 +28,6 @@
                     position: 'middle'
                 })
             });
-            let shareMsg = {
-                title: '熊猫美妆商城',
-                desc: '丽人丽妆 内买商城',
-                link: "http://" + window.location.host + '/mobile/index.php?act=mshop&op=index',
-                img_url: 'http://p.lrlz.com/data/resource/mobile/defimg/panda.jpeg'
-            };
-            let WxShare = new WechatShare(shareMsg);
         },
         mounted(){
             let _self = this;