stanley-king 7 lat temu
rodzic
commit
98e7ef4cdb

Plik diff jest za duży
+ 1 - 1
dist/index.html


+ 2 - 1
src/components/blocks/block_list.vue

@@ -2,7 +2,8 @@
     import Proxy from './util/proxy.js'
     import BlockUtil from './util/blockUtil.js'
     import {LoadMore} from 'vux'
-    export default {
+    export default
+    {
         props: ['datasLink', "hot_id", "brand_id", "keyword", "special_id"],
         watch: {
             datasLink(val, oldVal){

+ 9 - 1
src/components/main/home/homeList.vue

@@ -2,9 +2,17 @@
     import BlockList from '../../blocks/block_list.vue'
     import Api from "../../../lib/api.js"
 
-    export default {
+    export default
+    {
         created(){
             this.getLink();
+            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 = Api.create_share(shareMsg,Api.sign_url(window.location.href));
         },
         datas(){
             return {url: ""}

+ 4 - 9
src/components/main/main.vue

@@ -32,15 +32,10 @@
     import WechatShare from '../../wechat/WechatShare'
     import Api from '../../lib/api'
 
-    export default {
-        created(){
-            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 = Api.create_share(shareMsg,Api.sign_url(window.location.href));
+    export default
+    {
+        created()
+        {
         },
         data () {
             return {

+ 2 - 1
src/components/special/special_list.vue

@@ -5,7 +5,8 @@
     import WechatShare from '../../wechat/WechatShare'
 
 
-    export default {
+    export default
+    {
         created() {
             this.getNewData();
             let isSpecial = this.$route.query.is_special;

+ 1 - 0
src/lib/api.js

@@ -160,6 +160,7 @@ class Api
             if(gWxShare == null) {
                 gWxShare = new WechatShare(data,href);
             } else {
+                alert("gWxShare.register");
                 gWxShare.register(data);
             }
             return gWxShare;