Commit 8fd1c215 by 李嘉林

index

parent 0573ee29
...@@ -209,6 +209,7 @@ export default { ...@@ -209,6 +209,7 @@ export default {
//来自分享 //来自分享
this.link = decodeURIComponent(options.share); this.link = decodeURIComponent(options.share);
log.info('options.share-link',this.link) log.info('options.share-link',this.link)
console.log('options.share-link',this.link)
this.spokesmanGroupId = this.spokesmanGroupId =
getQueryVariable(this.link, "spokesmanGroupId") || ""; getQueryVariable(this.link, "spokesmanGroupId") || "";
this.spokesmanShopId = this.spokesmanShopId =
...@@ -608,11 +609,12 @@ export default { ...@@ -608,11 +609,12 @@ export default {
}, },
delParam(oldUrl,paramKey) { delParam(oldUrl,paramKey) {
var url = oldUrl; //页面url var url = oldUrl; //页面url
var urlParam = oldUrl.split("?")[1]; //页面参数 var urlParam = oldUrl.split("?")[1] || ""; //页面参数
var beforeUrl = url.substr(0, url.indexOf("?")); //页面主地址(参数之前地址) var beforeUrl = url.substr(0, url.indexOf("?")); //页面主地址(参数之前地址)
var nextUrl = ""; var nextUrl = "";
var arr = new Array(); var arr = new Array();
console.log(urlParam,'--urlParam')
if (urlParam != "") { if (urlParam != "") {
var urlParamArr = urlParam.split("&"); //将参数按照&符分成数组 var urlParamArr = urlParam.split("&"); //将参数按照&符分成数组
for (var i = 0; i < urlParamArr.length; i++) { for (var i = 0; i < urlParamArr.length; i++) {
...@@ -658,6 +660,7 @@ export default { ...@@ -658,6 +660,7 @@ export default {
} }
log.info('shareUrl---------------' + url) log.info('shareUrl---------------' + url)
console.log('shareUrl---------------' + url)
//增加分销员信息 //增加分销员信息
if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){ if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){
this.shareUrl = url+ this.newHref this.shareUrl = url+ this.newHref
...@@ -667,6 +670,7 @@ export default { ...@@ -667,6 +670,7 @@ export default {
log.info('onShareAppMessage-shareUrl',this.shareUrl,); log.info('onShareAppMessage-shareUrl',this.shareUrl,);
console.log('onShareAppMessage-shareUrl',this.shareUrl,);
log.info(`/pages/index/main?share=${encodeURIComponent(this.shareUrl)}`, '测试直播分享相关') log.info(`/pages/index/main?share=${encodeURIComponent(this.shareUrl)}`, '测试直播分享相关')
return { return {
title: this.shareShopName, // 默认是小程序的名称 title: this.shareShopName, // 默认是小程序的名称
......
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