|
@@ -87,9 +87,13 @@ window.onload = function(){
|
|
success: function (result) {
|
|
success: function (result) {
|
|
if(result.status == 200){
|
|
if(result.status == 200){
|
|
const data = result.data
|
|
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
|
|
tel.innerHTML = data.managerMobile
|
|
|
|
+ document.getElementById("tel-link").href = 'tel:' + data.managerMobile
|
|
companyId = data.companyId
|
|
companyId = data.companyId
|
|
joinerList(companyId) // 参与人列表数据
|
|
joinerList(companyId) // 参与人列表数据
|
|
}
|
|
}
|
|
@@ -147,7 +151,12 @@ window.onload = function(){
|
|
}
|
|
}
|
|
// 分享
|
|
// 分享
|
|
share.onclick = 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){
|
|
function joinerList(companyId){
|