Commit fe839808 by 程智春

文章分享

parent 7ff86844
...@@ -58,6 +58,9 @@ export default { ...@@ -58,6 +58,9 @@ export default {
this.checkLogin(); this.checkLogin();
this.options = options; this.options = options;
console.log('-------')
console.log(this.options)
console.log('-------')
if (options.share) { if (options.share) {
//来自分享 //来自分享
this.link = decodeURIComponent(options.share); this.link = decodeURIComponent(options.share);
...@@ -111,9 +114,12 @@ export default { ...@@ -111,9 +114,12 @@ export default {
var scene = decodeURIComponent(options.scene); //参数二维码传递过来的参数 var scene = decodeURIComponent(options.scene); //参数二维码传递过来的参数
let querys = scene.split("_"); let querys = scene.split("_");
if (querys) { if (querys) {
if (querys[0] == "pid") { if (querys[0] == "goods") {
//商品详情 pid_123 //商品详情 pid_123
this.page = `/goods/${querys[1]}`; this.page = `/goods/${querys[1]}`;
this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${
querys[3]
}&spokesmanRelId=${querys[4]}&usedId=${querys[5]}`;
} else if (querys[0] == "activty") { } else if (querys[0] == "activty") {
//活动页面activty_turntable_123 //活动页面activty_turntable_123
this.params += `&pageInfo=${scene}`; this.params += `&pageInfo=${scene}`;
...@@ -123,9 +129,16 @@ export default { ...@@ -123,9 +129,16 @@ export default {
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${ this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${
querys[2] querys[2]
}&spokesmanRelId=${querys[3]}&usedId=${querys[4]}`; }&spokesmanRelId=${querys[3]}&usedId=${querys[4]}`;
}else if(querys[0] == "home"){
this.page = `/`;
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${
querys[2]
}&spokesmanRelId=${querys[3]}&usedId=${querys[4]}`;
} }
} }
console.log(querys, "scene"); console.log(querys, "scene");
console.log(this.page)
console.log(this.params)
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数 // var query = options.query.dentistId; // 参数二维码传递过来的场景参数
} }
console.log("url", this.link + this.page + this.params); console.log("url", this.link + this.page + this.params);
...@@ -259,7 +272,13 @@ export default { ...@@ -259,7 +272,13 @@ export default {
"0000", "0000",
this.shareLogoUrl this.shareLogoUrl
); );
let url = this.shareImgUrl; let url = ''
if(this.shareImgUrl){
url = this.shareImgUrl;
}else{
url = res.webViewUrl;
}
//分享页面去掉登录态 //分享页面去掉登录态
if (url.indexOf("sessionid") > -1) { if (url.indexOf("sessionid") > -1) {
url = url.split("?")[0] + "?mixid=" + this.shopId; url = url.split("?")[0] + "?mixid=" + this.shopId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment