Commit fcabbffd by 李伟康

Merge branch 'master' into 'develop'

Master

See merge request !20
2 parents d00b9a6b 2f2c296d
...@@ -15,6 +15,9 @@ export const fetchConfig = function(isEnv = true) { ...@@ -15,6 +15,9 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout }) Object.assign(request, { timeout })
return Promise.resolve(config) return Promise.resolve(config)
} }
//测试
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json())
//生产
return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json()) return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json())
} }
export const cfg = { export const cfg = {
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
shopmall_appid, shopmall_appid,
request: { baseURL } request: { baseURL }
} = window.$fetchConfig } = window.$fetchConfig
let { merchantId, merchantName, userName, sapCode, uuid } = this.getLocalStorage('dj_scrm_userInfo') let { merchantId, merchantName, userName, sapCode, uuid, channelType } = 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, shareType, marketingType } = i let { userId, id, couponName, activityName, packageName, goodsName, goodsImage, discountType, shareType, marketingType } = i
...@@ -66,17 +66,17 @@ export default { ...@@ -66,17 +66,17 @@ export default {
this.showLoading() this.showLoading()
let params = { let params = {
coupon: { coupon: {
path: 'packageMine/pages/boutique/gift/gift', path: channelType == 2 ? 'packageMine/pages/boutique/gift/gift' : 'packageShopmall/packageMine/pages/boutique/gift/gift',
desc: '您的专属服务顾问为您发来了优惠券,请点击领取~', desc: '您的专属服务顾问为您发来了优惠券,请点击领取~',
imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png' imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
}, },
activity: { activity: {
path: 'packageMall/pages/detail/detail', path: channelType == 2 ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail',
desc: '您有一个秒杀活动可参加', desc: '您有一个秒杀活动可参加',
imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png' imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
}, },
merchant: { merchant: {
path: 'pages/tab/index/index', path: channelType == 2 ? 'pages/tab/index/index' : 'pages/tab/shopMall/index',
desc: '', desc: '',
imgUrl: 'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg' imgUrl: 'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg'
} }
...@@ -90,10 +90,9 @@ export default { ...@@ -90,10 +90,9 @@ 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 = !sapCode ? 'packageShopmall/packageMall/pages/coupon/coupon' : 'packageMall/pages/coupon/coupon' params.path = channelType == 2 ? 'packageMall/pages/coupon/coupon' : 'packageShopmall/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)
...@@ -105,7 +104,6 @@ export default { ...@@ -105,7 +104,6 @@ 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:
...@@ -136,9 +134,8 @@ export default { ...@@ -136,9 +134,8 @@ export default {
switch (+tabIndex) { switch (+tabIndex) {
case 1: case 1:
let isjt = i.packageType == 2 let isjt = i.packageType == 2
const STORE_PATH = sapCode ? 'packageEquity/pages/package/package' : 'packageShopmall/packageEquity/pages/package/package' const STORE_PATH = channelType == 2 ? 'packageEquity/pages/package/package' : 'packageShopmall/packageEquity/pages/package/package'
const JT_PATH = sapCode ? 'packageEquity/pages/open/open' : 'packageShopmall/packageEquity/pages/open/open' const JT_PATH = channelType == 2 ? 'packageEquity/pages/open/open' : 'packageShopmall/packageEquity/pages/open/open'
// 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'
params.desc = '您的专属客服顾问为您发来了会员套餐,点击查看哦' params.desc = '您的专属客服顾问为您发来了会员套餐,点击查看哦'
...@@ -146,7 +143,7 @@ export default { ...@@ -146,7 +143,7 @@ export default {
title = packageName title = packageName
break break
case 2: case 2:
params.path = sapCode ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail' params.path = channelType == 2 ? '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}`
...@@ -198,7 +195,7 @@ export default { ...@@ -198,7 +195,7 @@ export default {
{ {
path: params.path, path: params.path,
query, query,
appId: i.packageType == 2 ? 'wxfe82b8d65d07808f' : shopmall_appid appId: shopmall_appid
}, },
{ {
desc: params.desc, desc: params.desc,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!