Commit 16f3c475 by 张权

Merge branch 'dev_v2.6.0_0718' of http://192.168.3.233:8090/glsx/dj-scrm-wx-work…

…-attachment-activity into dev_v2.6.0_0718
2 parents 76cecef2 0f0fac72
const url = '/rop-scrm-bigdatautil/router'
import { util } from 'utils'
export default {
/**埋点 */
reportTrack (id) {
let userInfo = util.getLocalStorage('dj_scrm_userInfo')
let data = {
one_id: '',
staff_id: '',
staff_uuid: userInfo.uuid,
user_phone: '',
create_time: new Date().format('yyyy-MM-dd hh:mm:ss'),
item_type: 3,
customer_phone: '',
action_type: 4,
item_id: id,
business_type: 1,
add_way: 104,
merchant_id: userInfo.merchantId
}
return window.$HTTP({
url,
data: {
method: 'entmicro.api.customercollect.reportCustomerList',
jsonList: [JSON.stringify(data)]
},
})
}
}
\ No newline at end of file \ No newline at end of file
...@@ -15,6 +15,7 @@ import shopmallApi from './shopmallApi' ...@@ -15,6 +15,7 @@ import shopmallApi from './shopmallApi'
import boutiquecouponApi from './boutiquecouponApi' import boutiquecouponApi from './boutiquecouponApi'
import equityApi from './equityApi' import equityApi from './equityApi'
import giftApi from './giftApi' import giftApi from './giftApi'
import bigdatautilApi from './bigdatautilApi'
export { export {
ssoApi, ssoApi,
...@@ -25,5 +26,6 @@ export { ...@@ -25,5 +26,6 @@ export {
liveApi, liveApi,
boutiquecouponApi, boutiquecouponApi,
equityApi, equityApi,
giftApi giftApi,
bigdatautilApi
} }
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(../images/sprite.png);background-size: 319px 250px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 319px 250px;}
.icon-close { width: 12px; height: 12px; background-position: -80px -217px;} .icon-activity-time { width: 12px; height: 12px; background-position: -80px -217px;}
.icon-close { width: 12px; height: 12px; background-position: -102px -217px;}
.icon-coupon-0 { width: 32px; height: 32px; background-position: -270px -113px;} .icon-coupon-0 { width: 32px; height: 32px; background-position: -270px -113px;}
.icon-coupon-1 { width: 32px; height: 32px; background-position: -270px -155px;} .icon-coupon-1 { width: 32px; height: 32px; background-position: -270px -155px;}
.icon-coupon-lose { width: 70px; height: 70px; background-position: -180px -90px;} .icon-coupon-lose { width: 70px; height: 70px; background-position: -180px -90px;}
...@@ -7,9 +8,9 @@ ...@@ -7,9 +8,9 @@
.icon-coupon-tips { width: 49px; height: 49px; background-position: -270px 0px;} .icon-coupon-tips { width: 49px; height: 49px; background-position: -270px 0px;}
.icon-coupon { width: 80px; height: 80px; background-position: 0px 0px;} .icon-coupon { width: 80px; height: 80px; background-position: 0px 0px;}
.icon-discount { width: 80px; height: 80px; background-position: -90px 0px;} .icon-discount { width: 80px; height: 80px; background-position: -90px 0px;}
.icon-down { width: 12px; height: 12px; background-position: -102px -217px;} .icon-down { width: 12px; height: 12px; background-position: -124px -217px;}
.icon-exchange { width: 80px; height: 80px; background-position: 0px -90px;} .icon-exchange { width: 80px; height: 80px; background-position: 0px -90px;}
.icon-gift-add { width: 12px; height: 12px; background-position: -124px -217px;} .icon-gift-add { width: 12px; height: 12px; background-position: -146px -217px;}
.icon-gift-bg { width: 80px; height: 80px; background-position: -90px -90px;} .icon-gift-bg { width: 80px; height: 80px; background-position: -90px -90px;}
.icon-gift-create { width: 16px; height: 16px; background-position: -300px -227px;} .icon-gift-create { width: 16px; height: 16px; background-position: -300px -227px;}
.icon-gift-del { width: 18px; height: 18px; background-position: -300px -197px;} .icon-gift-del { width: 18px; height: 18px; background-position: -300px -197px;}
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
.icon-goods-share { width: 16px; height: 16px; background-position: -179px -180px;} .icon-goods-share { width: 16px; height: 16px; background-position: -179px -180px;}
.icon-poster-close { width: 20px; height: 20px; background-position: -270px -197px;} .icon-poster-close { width: 20px; height: 20px; background-position: -270px -197px;}
.icon-scan { width: 16px; height: 16px; background-position: -205px -180px;} .icon-scan { width: 16px; height: 16px; background-position: -205px -180px;}
.icon-share-white { width: 13px; height: 13px; background-position: -231px -180px;}
.icon-share { width: 20px; height: 20px; background-position: -270px -227px;} .icon-share { width: 20px; height: 20px; background-position: -270px -227px;}
.icon-vip { width: 80px; height: 80px; background-position: -180px 0px;}
.icon-activity-time { width: 12px; height: 12px; background-position: -146px -217px;}
.icon-share-white { width: 13px; height: 13px; background-position: -231px -180px;}
\ No newline at end of file \ No newline at end of file
.icon-vip { width: 80px; height: 80px; background-position: -180px 0px;}
\ No newline at end of file \ No newline at end of file

129 KB | W: | H:

129 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
envVersion: 'trial', envVersion: 'trial',
title: '嘀加企微管家', title: '嘀加企微管家',
request: { request: {
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
...@@ -38,5 +38,5 @@ module.exports = { ...@@ -38,5 +38,5 @@ module.exports = {
source: "scrm-main", source: "scrm-main",
v: "1.0.0", v: "1.0.0",
}, },
vconsole: false vconsole: true
} }
\ No newline at end of file \ No newline at end of file
import { couponApi, wxConfig } from '@/api' import { wxConfig, bigdatautilApi } from '@/api'
export default { export default {
data () { data () {
return { return {
...@@ -101,10 +101,14 @@ export default { ...@@ -101,10 +101,14 @@ export default {
if (name === 'merchant') { /**店铺 */ if (name === 'merchant') { /**店铺 */
switch (+tabIndex) { switch (+tabIndex) {
case 1: case 1:
params.path = 'packageEquity/pages/package/package' let isjt = i.packageType == 2
const STORE_PATH = 'packageEquity/pages/package/package'
const JT_PATH = 'packageEquity/pages/open/open'
// params.path = 'packageEquity/pages/package/package'
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 = '您的专属客服顾问为您发来了会员套餐,点击查看哦'
query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}&packageType=${i.packageType}`
title = packageName title = packageName
break; break;
case 2: case 2:
...@@ -115,12 +119,13 @@ export default { ...@@ -115,12 +119,13 @@ export default {
title = goodsName title = goodsName
break break
case 3: case 3:
let link = `${baseURL}/scrm-wx-merchant-activity/#/?${query}&id=${i.id}&shareStaffUuid=${uuid}&shareStaffName=${this.toUnicode(userName)}&shareStaffType=2`
h5Params = { h5Params = {
imgUrl: i.activityImg, imgUrl: i.posterImg || i.activityImg,
desc: '', desc: `限时大型众筹,活动时间${new Date(i.startTime).format('yyyy/M/d')}-${new Date(i.endTime).format('yyyy/M/d')}`,
title: i.activityName, title: i.forwardTitle || i.activityName,
// link: `${baseURL}/dj-scrm-wx-work-main-lwk/#/?id=${i.id}` // link: `${baseURL}/dj-scrm-wx-work-main-lwk/#/?id=${i.id}`
link: `${baseURL}/scrm-wx-merchant-activity/#/?id=${i.id}` link
} }
break break
default: default:
...@@ -129,15 +134,19 @@ export default { ...@@ -129,15 +134,19 @@ export default {
} }
if (shareType == 'h5') { if (shareType == 'h5') {
console.log(h5Params) console.log(h5Params)
if (entryType) this.sendChatMessage(h5Params, 'news') if (entryType) this.sendChatMessage(h5Params, 'news', () => {
bigdatautilApi.reportTrack(i.id)
})
else wxConfig else wxConfig
.shareAppMessage(h5Params) .shareAppMessage(h5Params)
.then(() => { .then(() => {
this.hideLoading() this.hideLoading()
bigdatautilApi.reportTrack(i.id)
}) })
.catch(() => { .catch(() => {
this.hideLoading() this.hideLoading()
}) })
} else { } else {
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
...@@ -148,7 +157,7 @@ export default { ...@@ -148,7 +157,7 @@ export default {
else this.shareAppMessage({ else this.shareAppMessage({
path: params.path, path: params.path,
query, query,
appId: shopmall_appid appId:i.packageType==2? 'wxfe82b8d65d07808f':shopmall_appid
}, { }, {
desc: params.desc, desc: params.desc,
title, title,
...@@ -156,7 +165,7 @@ export default { ...@@ -156,7 +165,7 @@ export default {
}) })
} }
}, },
sendChatMessage (params, msgtype = 'miniprogram') { sendChatMessage (params, msgtype = 'miniprogram', callBack) {
wxConfig wxConfig
.sendChatMessage({ .sendChatMessage({
msgtype, msgtype,
...@@ -165,6 +174,7 @@ export default { ...@@ -165,6 +174,7 @@ export default {
}) })
.then(() => { .then(() => {
this.hideLoading() this.hideLoading()
if (callBack) callBack()
}) })
.catch(err => { .catch(err => {
console.log('当前会话', err) console.log('当前会话', err)
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div class="info flex"> <div class="info flex">
<div class="name">{{i.goodsName}}</div> <div class="name">{{i.goodsName}}</div>
<div class="price flex"> <div class="price flex">
¥ {{i.retailPrice || 0}} ¥ {{i.activityPrice ||i.retailPrice || 0}}
<div class="num">x{{i.goodsNumber || 1}}</div> <div class="num">x{{i.goodsNumber || 1}}</div>
</div> </div>
</div> </div>
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
}, },
methods: { methods: {
setData (res) { setData (res) {
res.orderGoods.map(e => (this.price += e.retailPrice)) res.orderGoods.map(e => (this.price += e.activityPrice ? e.activityPrice : e.retailPrice))
this.detail = res this.detail = res
this.flag = true this.flag = true
this.total = this.price + res.expressFee this.total = this.price + res.expressFee
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
}, },
getGoodsDetail (orderCode) { getGoodsDetail (orderCode) {
shopmallApi.getGoodsDetail(orderCode).then(res => { shopmallApi.getGoodsDetail(orderCode).then(res => {
this.setData(res) this.setData(res)
this.hideBtn = true this.hideBtn = true
}) })
}, },
......
...@@ -76,22 +76,34 @@ ...@@ -76,22 +76,34 @@
<div class="item flex"> <div class="item flex">
<div class="label"> <div class="label">
所属定向礼包 所属定向礼包
<div v-if="detail.directionalGiftReceiveWay" class="item-tips">领取条件</div> <div
v-if="detail.directionalGiftReceiveWay"
class="item-tips"
>领取条件</div>
</div> </div>
<div class="value"> <div class="value">
{{detail.directionalGiftName}} {{detail.directionalGiftName}}
<div class="item-tips" v-if="detail.directionalGiftReceiveWay"> <div class="item-tips">
{{detail.directionalGiftReceiveWay == 1?'手机号':'车架号后6位'}}:{{detail.directionalGiftReceiveCondition}} <template v-if="detail.directionalGiftReceiveCondition">
{{detail.directionalGiftReceiveWay == 1?'手机号':'车架号后6位'}}:{{detail.directionalGiftReceiveCondition}}
</template>
<template v-else>直接领取</template>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
</template> </template>
<div v-if="detail.packageId" class="item flex"> <div
v-if="detail.packageId"
class="item flex"
>
<div class="label">所属套餐</div> <div class="label">所属套餐</div>
<div class="value"> <div class="value">
<div class="value">{{ detail.packageName }}</div> <div class="value">{{ detail.packageName }}</div>
<div v-if="detail.receiveWay == 6" class="sprite-icon icon-detail-group"></div> <div
v-if="detail.receiveWay == 6"
class="sprite-icon icon-detail-group"
></div>
</div> </div>
</div> </div>
...@@ -128,7 +140,7 @@ const couponObj = [ ...@@ -128,7 +140,7 @@ const couponObj = [
key: 'directionalGiftName', key: 'directionalGiftName',
tipsLabel: '领取条件', tipsLabel: '领取条件',
tipsValue (item) { tipsValue (item) {
return `${item.directionalGiftReceiveWay == 1 ? '手机号' : '车架号后6位'}:${item.directionalGiftReceiveCondition}` return item.directionalGiftReceiveCondition ? `${item.directionalGiftReceiveWay == 1 ? '手机号' : '车架号后6位'}:${item.directionalGiftReceiveCondition}` : '直接领取'
} }
}, },
{ {
...@@ -216,7 +228,7 @@ export default { ...@@ -216,7 +228,7 @@ export default {
mounted () { mounted () {
}, },
deactivated(){ deactivated () {
Object.assign(this.$data, this.$options.data.call(this)) Object.assign(this.$data, this.$options.data.call(this))
}, },
methods: { methods: {
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
<div class="flex"> <div class="flex">
<div class="name text-hide">{{item.goodsName}}</div> <div class="name text-hide">{{item.goodsName}}</div>
<div class="price"> <div class="price">
<span class="unit">¥</span>{{item.retailPrice}} <span class="unit">¥</span>{{item.activityPrice || item.retailPrice}}
</div> </div>
</div> </div>
<div class="flex"> <div class="flex">
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,7 @@ export default {
} }
}, },
scan () { scan () {
// let resultStr = 't=2&c=7545819746449362944' // let resultStr = 't=1&c=550902106144645120'
wxConfig.scanQRCode(1).then(({ resultStr }) => { wxConfig.scanQRCode(1).then(({ resultStr }) => {
let name = 'verificationDetail' let name = 'verificationDetail'
let [t, c] = resultStr.split('&') let [t, c] = resultStr.split('&')
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:updata="updata" :updata="updata"
></tab> ></tab>
<div <div
v-if="tabIndex == 1&&merchantModel==2" v-if="tabIndex == 1&&merchantModel==1"
class="secondary-tab" class="secondary-tab"
> >
<div class="tab-btn"> <div class="tab-btn">
...@@ -83,12 +83,14 @@ ...@@ -83,12 +83,14 @@
<div class="info"> <div class="info">
<div> <div>
<div class="title text-hide">{{ i.packageName }}</div> <div class="title text-hide">{{ i.packageName }}</div>
<div class="decoration">价值{{ i.totalMerchantPrice }}元的{{ i.list.length || 0 }}项权益</div> <!-- <div class="decoration">价值{{ i.totalMerchantPrice }}元的{{ i.list.length || 0 }}项权益</div> -->
<div style="margin-top:10px" class="decoration">¥{{ i.packagePrice }}</div>
</div> </div>
<div <div class="newtext" @click="showVipDialog(i)">查看套餐</div>
<!-- <div
class="btn text-center" class="btn text-center"
@click="showVipDialog(i)" @click="showVipDialog(i)"
>查看套餐</div> >查看套餐</div> -->
</div> </div>
<!-- <div class="btn text-center y-center" @click="showShareModel(i)">分享给客户</div> --> <!-- <div class="btn text-center y-center" @click="showShareModel(i)">分享给客户</div> -->
<div class="sign-icon-class text-center">{{i.packageType==2?'集团套餐':'门店套餐'}}</div> <div class="sign-icon-class text-center">{{i.packageType==2?'集团套餐':'门店套餐'}}</div>
...@@ -284,11 +286,18 @@ export default { ...@@ -284,11 +286,18 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
color: #282829; color: #282829;
width: 70%;
} }
.decoration { .decoration {
color: #b9babb; color: #b9babb;
width: 160px; width: 160px;
} }
.newtext{
font-size: 12px;
font-weight: 400;
color: #3975C6;
line-height: 17px;
}
.btn { .btn {
color: #b1b1b3; color: #b1b1b3;
margin-left: 0; margin-left: 0;
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
const path = require('path') const path = require('path')
const defaultSettings = require('./src/config/conf.js') const defaultSettings = require('./src/config/conf.js')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const resolve = dir => path.join(__dirname, dir) const resolve = dir => path.join(__dirname, dir)
// page title // page title
const name = defaultSettings.title || 'vue mobile template' const name = defaultSettings.title || 'vue mobile template'
...@@ -35,7 +34,6 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV) ...@@ -35,7 +34,6 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
// ] // ]
// } // }
// } // }
/** /**
* 雪碧图插件 * 雪碧图插件
*/ */
...@@ -132,11 +130,9 @@ module.exports = { ...@@ -132,11 +130,9 @@ module.exports = {
// config.externals = externals // config.externals = externals
// } // }
}, },
chainWebpack: config => { chainWebpack: config => {
config.plugins.delete('preload') // TODO: need test config.plugins.delete('preload') // TODO: need test
config.plugins.delete('prefetch') // TODO: need test config.plugins.delete('prefetch') // TODO: need test
// 别名 alias // 别名 alias
config.resolve.alias config.resolve.alias
.set('@', resolve('src')) .set('@', resolve('src'))
...@@ -146,7 +142,6 @@ module.exports = { ...@@ -146,7 +142,6 @@ module.exports = {
.set('components', resolve('src/components')) .set('components', resolve('src/components'))
.set('plugins', resolve('src/components')) .set('plugins', resolve('src/components'))
.set('utils', resolve('src/utils')) .set('utils', resolve('src/utils'))
/** /**
* 添加CDN参数到htmlWebpackPlugin配置中 * 添加CDN参数到htmlWebpackPlugin配置中
*/ */
...@@ -158,7 +153,6 @@ module.exports = { ...@@ -158,7 +153,6 @@ module.exports = {
// } // }
// return args // return args
// }) // })
/** /**
* 设置保留空格 * 设置保留空格
*/ */
...@@ -182,7 +176,6 @@ module.exports = { ...@@ -182,7 +176,6 @@ module.exports = {
config config
// https://webpack.js.org/configuration/devtool/#development // https://webpack.js.org/configuration/devtool/#development
.when(!IS_PROD, config => config.devtool('cheap-source-map')) .when(!IS_PROD, config => config.devtool('cheap-source-map'))
config.when(IS_PROD, config => { config.when(IS_PROD, config => {
config config
.plugin('ScriptExtHtmlWebpackPlugin') .plugin('ScriptExtHtmlWebpackPlugin')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!