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