|
|
@@ -207,19 +207,52 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- this.jweixinFn({
|
|
|
- title: "更懂您的花卉宝",
|
|
|
- pagePath: "pagesClient/official/index",
|
|
|
- imageUrl: ""
|
|
|
- });
|
|
|
- console.log(' this.getLoginInfo.shopId',this.getLoginInfo)
|
|
|
+ onLoad(props) {
|
|
|
+ if(props.scene){
|
|
|
+ console.log('scene',props.scene)
|
|
|
+ const scene = decodeURIComponent(props.scene);
|
|
|
+ var sceneItem = scene.split("&");
|
|
|
+ var arr, name, value;
|
|
|
+ var sceneArray = new Array();
|
|
|
+ for (var i = 0, l = sceneItem.length; i < l; i++) {
|
|
|
+ arr = sceneItem[i].split("=");
|
|
|
+ name = arr[0];
|
|
|
+ value = arr[1];
|
|
|
+ sceneArray[name] = value;
|
|
|
+ }
|
|
|
+ if(sceneArray.hdShopAdminId){
|
|
|
+ this.option.hdShopAdminId = sceneArray.hdShopAdminId
|
|
|
+ }
|
|
|
+ if(sceneArray.ghsShopAdminId){
|
|
|
+ this.option.ghsShopAdminId = sceneArray.ghsShopAdminId
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
+ onShareAppMessage(res) {
|
|
|
+
|
|
|
+ let ghsShopAdminId = 0
|
|
|
+ if(this.getLoginInfo.shopAdminId){
|
|
|
+ ghsShopAdminId = this.getLoginInfo.shopAdminId
|
|
|
+ }
|
|
|
+
|
|
|
+ let hdShopAdminId = 0
|
|
|
+ if(this.option.ghsShopAdminId){
|
|
|
+ hdShopAdminId = this.option.ghsShopAdminId
|
|
|
+ }
|
|
|
+
|
|
|
+ //查看分享的路径,不要删除 shish 20210517
|
|
|
+ console.log("pagesClient/official/index?ghsShopAdminId="+ghsShopAdminId+"&hdShopAdminId="+hdShopAdminId)
|
|
|
+
|
|
|
+ return {
|
|
|
+ title: "更懂您的花惠宝",
|
|
|
+ desc: "",
|
|
|
+ imgUrl: "",
|
|
|
+ path: "pagesClient/official/index?ghsShopAdminId="+ghsShopAdminId+"&hdShopAdminId="+hdShopAdminId,
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo"])
|
|
|
- },
|
|
|
- onLoad() {
|
|
|
- console.log(this.getLoginInfo)
|
|
|
}
|
|
|
}
|
|
|
</script>
|