let link = `${redirectUrl}?id=${id}&userPhone=${userInfo.phone}&shareStaffType=1&shareStaffName=${this.toUnicode(userInfo.nickName)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo)}&openId=${userInfo.openid}`
let link = `${redirectUrl}?id=${id}&shareStaffType=1&shareStaffName=${this.toUnicode(userInfo.nickName)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo)}&openId=${userInfo.openid}`
if (userInfo.phone) link = `${link}&userPhone=${userInfo.phone}`
if (params && params.shareStaffUuid) link = `${link}&shareStaffUuid=${params.shareStaffUuid}`
if (params && params.merchantId) link = `${link}&merchantId=${params.merchantId}`
this.shareInfo = {
...
...
@@ -376,18 +377,6 @@ export default {
}, 500)
},
toTop () {
let scrollTop = this.scrollY
let topTimer = setInterval(() => {
if (scrollTop <= 0) {
document.body.scrollTop = 0
clearInterval(topTimer)
}
scrollTop -= 500
window.scrollTo(0, scrollTop)
}, 100)
},
openLocation () {
let { sponsorName, activityAddressDetailName, activityAddressLat, activityAddressLng } = this.detail