chenrui 4 anni fa
parent
commit
9cbb20eac0

+ 1 - 1
poster.html

@@ -229,7 +229,7 @@
 							for(let i = 0; i < data.activeAttachList.length; i++){
 								//  生成二维码
 								new QRCode(document.getElementById("qrcode" + i ), {
-									text: data.staticHtmlPath,
+									text: getQueryVariable("orgId") ? data.staticHtmlPath + '?orgId=' + getQueryVariable("orgId") : data.staticHtmlPath,
 									width: 100,
 									height: 100,
 									colorDark : "#000000",

+ 1 - 1
tpl.html

@@ -461,7 +461,7 @@
 					<div class="store-info-box">
 						<span>电话:</span>
 						<span style="vertical-align: middle;">
-							<a href="tel:${active.servicePhone!}">
+							<a id="tel-link" href="javascript:;">
 								<i id="tel">400XXXXXXX
 									<!-- ${active.servicePhone!} -->
 								</i>

+ 1 - 1
海报/theme - jiyou/poster.html

@@ -189,7 +189,7 @@
 							for(let i = 0; i < data.activeAttachList.length; i++){
 								//  生成二维码
 								new QRCode(document.getElementById("qrcode" + i ), {
-									text: data.staticHtmlPath,
+									text: getQueryVariable("orgId") ? data.staticHtmlPath + '?orgId=' + getQueryVariable("orgId") : data.staticHtmlPath,
 									width: 75,
 									height: 75,
 									colorDark : "#000000",

+ 12 - 3
海报/theme - jiyou/script.js

@@ -87,9 +87,13 @@ window.onload = function(){
 							success: function (result) {
 								if(result.status == 200){
 									const data = result.data
-									store.innerHTML = data.name
-									address.innerHTML = data.addrCityName + data.addrDistrictName + data.addrDetail
+									store.innerHTML = data.name || ''
+									let addrCityName = data.addrCityName || ''
+									let addrDistrictName = data.addrDistrictName || ''
+									let addrDetail = data.addrDetail || ''
+									address.innerHTML = addrCityName + addrDistrictName + addrDetail
 									tel.innerHTML = data.managerMobile
+									document.getElementById("tel-link").href = 'tel:' + data.managerMobile
 									companyId = data.companyId
 									joinerList(companyId)  //  参与人列表数据
 								}
@@ -147,7 +151,12 @@ window.onload = function(){
 	}
 	// 分享
 	share.onclick = function(){
-		window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		if(storeId){
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl + '&orgId=' + storeId
+		}else{
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		}
+		
 	}
 	//  门店活动统计(参与者轮播)
 	function joinerList(companyId){

+ 1 - 1
海报/theme - meiyan/poster.html

@@ -189,7 +189,7 @@
 							for(let i = 0; i < data.activeAttachList.length; i++){
 								//  生成二维码
 								new QRCode(document.getElementById("qrcode" + i ), {
-									text: data.staticHtmlPath,
+									text: getQueryVariable("orgId") ? data.staticHtmlPath + '?orgId=' + getQueryVariable("orgId") : data.staticHtmlPath,
 									width: 75,
 									height: 75,
 									colorDark : "#000000",

+ 12 - 3
海报/theme - meiyan/script.js

@@ -87,9 +87,13 @@ window.onload = function(){
 							success: function (result) {
 								if(result.status == 200){
 									const data = result.data
-									store.innerHTML = data.name
-									address.innerHTML = data.addrCityName + data.addrDistrictName + data.addrDetail
+									store.innerHTML = data.name || ''
+									let addrCityName = data.addrCityName || ''
+									let addrDistrictName = data.addrDistrictName || ''
+									let addrDetail = data.addrDetail || ''
+									address.innerHTML = addrCityName + addrDistrictName + addrDetail
 									tel.innerHTML = data.managerMobile
+									document.getElementById("tel-link").href = 'tel:' + data.managerMobile
 									companyId = data.companyId
 									joinerList(companyId)  //  参与人列表数据
 								}
@@ -147,7 +151,12 @@ window.onload = function(){
 	}
 	// 分享
 	share.onclick = function(){
-		window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		if(storeId){
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl + '&orgId=' + storeId
+		}else{
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		}
+		
 	}
 	//  门店活动统计(参与者轮播)
 	function joinerList(companyId){

+ 1 - 1
海报/theme/poster.html

@@ -228,7 +228,7 @@
 							for(let i = 0; i < data.activeAttachList.length; i++){
 								//  生成二维码
 								new QRCode(document.getElementById("qrcode" + i ), {
-									text: data.staticHtmlPath,
+									text: getQueryVariable("orgId") ? data.staticHtmlPath + '?orgId=' + getQueryVariable("orgId") : data.staticHtmlPath,
 									width: 75,
 									height: 75,
 									colorDark : "#000000",

+ 12 - 3
海报/theme/script.js

@@ -87,9 +87,13 @@ window.onload = function(){
 							success: function (result) {
 								if(result.status == 200){
 									const data = result.data
-									store.innerHTML = data.name
-									address.innerHTML = data.addrCityName + data.addrDistrictName + data.addrDetail
+									store.innerHTML = data.name || ''
+									let addrCityName = data.addrCityName || ''
+									let addrDistrictName = data.addrDistrictName || ''
+									let addrDetail = data.addrDetail || ''
+									address.innerHTML = addrCityName + addrDistrictName + addrDetail
 									tel.innerHTML = data.managerMobile
+									document.getElementById("tel-link").href = 'tel:' + data.managerMobile
 									companyId = data.companyId
 									joinerList(companyId)  //  参与人列表数据
 								}
@@ -147,7 +151,12 @@ window.onload = function(){
 	}
 	// 分享
 	share.onclick = function(){
-		window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		if(storeId){
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl + '&orgId=' + storeId
+		}else{
+			window.location.href = 'http://static.chelingzhu.com/active/poster.html?id=' + activeId + '&reqUrl=' + reqUrl
+		}
+		
 	}
 	//  门店活动统计(参与者轮播)
 	function joinerList(companyId){