Commit f304da25 by zhangxw

活动链接

1 parent 041ca3fe
...@@ -110,16 +110,16 @@ Component({ ...@@ -110,16 +110,16 @@ Component({
return unicodeStr return unicodeStr
}, },
filterJumpUrl(id) { filterJumpUrl(id, num) {
const userStorage = wx.$storage.get('userInfo') const userStorage = wx.$storage.get('userInfo')
return `${domain}/scrm-wx-merchant-activity/#/?id=${id}&merchantId=${userStorage.merchantId}&shareStaffUuid=${userStorage.uuid}&shareStaffName=${this.toUnicode(userStorage.name)}&shareStaffType=2&sharedTime=${Date.now()}` return num == 2 ? `${domain}/scrm-wx-merchant-activity/#/?id=${id}&merchantId=${userStorage.merchantId}&shareStaffUuid=${userStorage.uuid}&shareStaffName=${this.toUnicode(userStorage.name)}&shareStaffType=2&sharedTime=${Date.now()}` : `${domain}/scrm-wx-merchant-activity/#/?id=${id}&merchantId=${userStorage.merchantId}&shareStaffUuid=${userStorage.uuid}&shareStaffName=${this.toUnicode(userStorage.name)}&isExclusive=1&exclusiveUuid=${userStorage.uuid}&shareStaffType=2&sharedTime=${Date.now()}`
}, },
// 分享活动(复制链接) // 分享活动(复制链接)
copyActivityUrl(e) { copyActivityUrl(e) {
let { id } = e.currentTarget.dataset let { id } = e.currentTarget.dataset
wx.setClipboardData({ wx.setClipboardData({
data: this.filterJumpUrl(id), data: this.filterJumpUrl(id, 1),
success (res) { success (res) {
wx.showToast({ wx.showToast({
title: '复制成功', title: '复制成功',
...@@ -131,7 +131,7 @@ Component({ ...@@ -131,7 +131,7 @@ Component({
// 活动详情 // 活动详情
goToDetail(e) { goToDetail(e) {
let { id } = e.currentTarget.dataset let { id } = e.currentTarget.dataset
let h5Url = this.filterJumpUrl(id) let h5Url = this.filterJumpUrl(id, 2)
console.log(h5Url) console.log(h5Url)
wx.$router.jumpH5(h5Url) wx.$router.jumpH5(h5Url)
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!