|
|
|
@ -109,7 +109,7 @@ |
|
|
|
this.getdefaultAddress() |
|
|
|
}, |
|
|
|
defaultCity (val,old){ |
|
|
|
this.wxShare({"merchantNo":this.merchantNo,"source":0,"url":encodeURIComponent(location.href)}) |
|
|
|
this.ShareWenXin() |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -226,14 +226,19 @@ |
|
|
|
this.getGoodsList() |
|
|
|
this.getCityName () |
|
|
|
}); |
|
|
|
}, |
|
|
|
ShareWenXin (){ |
|
|
|
var merchantNo = this.merchantNo |
|
|
|
if ( !merchantNo ){ |
|
|
|
merchantNo = 2 |
|
|
|
} |
|
|
|
this.wxShare({"merchantNo":merchantNo,"source":0,"url":encodeURIComponent(location.href)}) |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
//异步加载 |
|
|
|
this.getdefaultAddress() |
|
|
|
this.getAddress() |
|
|
|
this.wxShare({"merchantNo":2,"source":0,"url":encodeURIComponent(location.href)}) |
|
|
|
// console.log('url',encodeURIComponent(location.href)) |
|
|
|
}, |
|
|
|
destroyed () { |
|
|
|
|
|
|
|
|