Commit be269407 by 李伟康

兼容广汇&嘀加智慧车生活路径

1 parent 08469ce9
...@@ -90,9 +90,10 @@ export default { ...@@ -90,9 +90,10 @@ export default {
if (name === 'coupon') { if (name === 'coupon') {
/**卡券 */ /**卡券 */
if (tabIndex == 0) { if (tabIndex == 0) {
if(!sapCode) params.path = 'packageShopmall/packageMine/pages/boutique/gift/gift'
query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}` query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}`
} else { } else {
params.path = 'packageMall/pages/coupon/coupon' params.path = !sapCode ? 'packageShopmall/packageMall/pages/coupon/coupon' : 'packageMall/pages/coupon/coupon'
query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
title = `${couponName}(${window.$discountType[discountType]}券)` title = `${couponName}(${window.$discountType[discountType]}券)`
this.couponShare(i) this.couponShare(i)
...@@ -104,6 +105,7 @@ export default { ...@@ -104,6 +105,7 @@ export default {
// 1-普通秒杀;2-直播间秒杀;3-众筹 // 1-普通秒杀;2-直播间秒杀;3-众筹
switch (marketingType) { switch (marketingType) {
case 1: case 1:
if(!sapCode) params.path = 'packageShopmall/packageMall/pages/detail/detail'
query = `isActivity=true&id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `isActivity=true&id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
break break
case 2: case 2:
...@@ -134,8 +136,8 @@ export default { ...@@ -134,8 +136,8 @@ export default {
switch (+tabIndex) { switch (+tabIndex) {
case 1: case 1:
let isjt = i.packageType == 2 let isjt = i.packageType == 2
const STORE_PATH = 'packageEquity/pages/package/package' const STORE_PATH = sapCode ? 'packageEquity/pages/package/package' : 'packageShopmall/packageEquity/pages/package/package'
const JT_PATH = 'packageEquity/pages/open/open' const JT_PATH = sapCode ? 'packageEquity/pages/open/open' : 'packageShopmall/packageEquity/pages/open/open'
// params.path = 'packageEquity/pages/package/package' // params.path = 'packageEquity/pages/package/package'
params.path = isjt ? JT_PATH : STORE_PATH params.path = isjt ? JT_PATH : STORE_PATH
params.imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png' params.imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
...@@ -144,7 +146,7 @@ export default { ...@@ -144,7 +146,7 @@ export default {
title = packageName title = packageName
break break
case 2: case 2:
params.path = 'packageMall/pages/detail/detail' params.path = sapCode ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail'
params.imgUrl = goodsImage params.imgUrl = goodsImage
params.desc = '' params.desc = ''
query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
......
...@@ -303,14 +303,15 @@ export default { ...@@ -303,14 +303,15 @@ export default {
this.showLoading('生成中...') this.showLoading('生成中...')
return { return {
appId: shopmall_appid, appId: shopmall_appid,
query: scene query: scene,
sapCode
} }
}, },
send (e) { send (e) {
let { query, appId } = this.getMiniParams(e) let { query, appId, sapCode } = this.getMiniParams(e)
wxConfig wxConfig
.createMiniprogramUrlLink({ .createMiniprogramUrlLink({
path: 'packageEquity/pages/directional/directional', path: sapCode ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional',
query, query,
appId appId
}) })
...@@ -342,11 +343,11 @@ export default { ...@@ -342,11 +343,11 @@ export default {
this.$router.push({ name: 'gift.create', query: params }) this.$router.push({ name: 'gift.create', query: params })
}else{ }else{
const { envVersion } = window.$fetchConfig const { envVersion } = window.$fetchConfig
let { query, appId } = this.getMiniParams(e) let { query, appId, sapCode } = this.getMiniParams(e)
// 正式版为:release 体验版为:trial 开发版为:develop // 正式版为:release 体验版为:trial 开发版为:develop
giftApi.createQr({ giftApi.createQr({
appId, appId,
path: 'packageEquity/pages/directional/directional', path: sapCode ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional',
envVersion, envVersion,
scene: query scene: query
}).then(img => { }).then(img => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!