Commit dae1d7e2 by 前端

Merge branch 'develop' into 'master'

Chenwq dev v2.4.0 0616上线后,代码合并。

See merge request !9
2 parents 3f9bc5e9 79413f25
...@@ -50,11 +50,12 @@ export default { ...@@ -50,11 +50,12 @@ export default {
}, },
sendMessage (i) { sendMessage (i) {
const { shopmall_appid } = window.$fetchConfig const { shopmall_appid } = window.$fetchConfig
let { merchantId, merchantName, userName, sapCode } = this.getLocalStorage('dj_scrm_userInfo') let { merchantId, merchantName, userName, sapCode, uuid } = this.getLocalStorage('dj_scrm_userInfo')
console.log(this.getLocalStorage('dj_scrm_userInfo'))
let { tabIndex, entry } = this let { tabIndex, entry } = this
let { name } = this.$route let { name } = this.$route
let { userId, id, couponName, activityName, packageName, goodsName, goodsImage, discountType } = i let { userId, id, couponName, activityName, packageName, goodsName, goodsImage, discountType } = i
let query = `merchantId=${merchantId}` let query = `merchantId=${merchantId}&shareTime=${Date.now()}`
if (sapCode) query = `${query}&storeCode=${sapCode}` if (sapCode) query = `${query}&storeCode=${sapCode}`
const entryType = entry != 'normal' const entryType = entry != 'normal'
this.showLoading() this.showLoading()
...@@ -63,7 +64,7 @@ export default { ...@@ -63,7 +64,7 @@ export default {
let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png' let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
if (tabIndex == 0) { if (tabIndex == 0) {
let path = 'packageMine/pages/boutique/gift/gift' let path = 'packageMine/pages/boutique/gift/gift'
let query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}` query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}`
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
title: couponName, title: couponName,
...@@ -81,7 +82,7 @@ export default { ...@@ -81,7 +82,7 @@ export default {
}) })
} else { } else {
let path = 'packageMall/pages/coupon/coupon' let path = 'packageMall/pages/coupon/coupon'
query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1` query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
this.couponShare(i, url => { this.couponShare(i, url => {
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
...@@ -104,7 +105,7 @@ export default { ...@@ -104,7 +105,7 @@ export default {
if (tabIndex == 0) { if (tabIndex == 0) {
let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png' let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
let path = 'packageMall/pages/detail/detail' let path = 'packageMall/pages/detail/detail'
query = `isActivity=true&id=${id}&${query}` query = `isActivity=true&id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
title: activityName, title: activityName,
...@@ -145,7 +146,7 @@ export default { ...@@ -145,7 +146,7 @@ export default {
} else if (tabIndex == 1) { } else if (tabIndex == 1) {
let path = 'packageEquity/pages/package/package' let path = 'packageEquity/pages/package/package'
let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png' let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
query = `id=${id}&${query}` query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
title: packageName, title: packageName,
...@@ -163,7 +164,7 @@ export default { ...@@ -163,7 +164,7 @@ export default {
}) })
} else { } else {
let path = 'packageMall/pages/detail/detail' let path = 'packageMall/pages/detail/detail'
query = `id=${id}&${query}` query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
title: goodsName, title: goodsName,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!