Commit ae6fd5ab by 前端

Merge branch 'kuangyq_v2.3.3' into 'v2.3.3'

Kuangyq v2.3.3

See merge request !20
2 parents b1a5fcad 19d50df9
...@@ -14,13 +14,5 @@ import groupCustomer from './groupCustomer' ...@@ -14,13 +14,5 @@ import groupCustomer from './groupCustomer'
import groupTag from './groupTag' import groupTag from './groupTag'
import entmicroApi from './entmicroApi' import entmicroApi from './entmicroApi'
import detailApi from './detail' import detailApi from './detail'
export {
ssoApi,
groupChat,
wxConfig,
liveBroadcast,
groupCustomer,
groupTag,
entmicroApi,
detailApi
}
\ No newline at end of file \ No newline at end of file
import solicitApi from './solicit'
export { ssoApi, groupChat, wxConfig, liveBroadcast, groupCustomer, groupTag, entmicroApi, detailApi, solicitApi }
const url = '/rop-scrm-marketing/router'
export default {
/**
* 获取跟进结果字典 */
followFindAllDictData(data) {
data.method = 'merchants.api.menu.findAllDictData'
return window.$HTTP({
url: 'http://rop-merchant.dev.glsx.com.cn/rop-merchants/router',
data,
returnAll: true
})
},
// 获取送达、未送达列表
getCustomerList(data) {
data.method = 'marketing.api.solicit.page.customer.condition'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 获取客户详情
getCustomerDetail(data) {
data.method = 'marketing.api.solicit.customer.detail'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 招揽跟进记录保存
sendSolicitRecord(data) {
data.method = 'marketing.api.solicit.record.save'
return window.$HTTP({
url,
data,
returnAll: true
})
}
}
...@@ -3,35 +3,40 @@ ...@@ -3,35 +3,40 @@
<div class="customer-box" v-for="item in customerInfo" :key="item.id"> <div class="customer-box" v-for="item in customerInfo" :key="item.id">
<div class="customer-title"> <div class="customer-title">
<div class="customer-name">{{ item.name }}</div> <div class="customer-name">{{ item.name }}</div>
<div class="customer-carnumber">{{ item.carNumber }}</div> <div class="customer-carnumber">{{ item.SolicitCarResponse.carNumber }}</div>
</div> </div>
<div class="customer-info"> <div class="customer-info">
<div class="customer-info-left"> <div class="customer-info-left">
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">车系:</div> <div class="customer-info-name">车系:</div>
<div class="customer-info-message">{{ item.carBrand }}</div> <div class="customer-info-message">{{ item.SolicitCarResponse.carSeries }}</div>
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">招揽结果:</div> <div class="customer-info-name">招揽结果:</div>
<div class="customer-info-message">{{ item.result }}</div> <div class="customer-info-message">{{ item.followResult }}</div>
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">企微营销:</div> <div class="customer-info-name">企微营销:</div>
<div class="customer-info-message">{{ item.wechatMarketing }}</div> <div class="customer-info-message">{{ item.checkStatus }}</div>
</div> </div>
</div> </div>
<div class="customer-info-right"> <div class="customer-info-right">
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">企微账号:</div> <div class="customer-info-name">企微账号:</div>
<div class="customer-info-message customer-info-wechat">@{{ item.joinWechat }}</div> <div v-if="item.wechatnick">
<span class="customer-info-message">{{ item.wechatnick }}</span>
<span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span>
</div>
<div class="customer-info-message" v-else>未添加</div>
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">招揽日期:</div> <div class="customer-info-name">招揽日期:</div>
<div class="customer-info-message">{{ item.date }}</div> <div class="customer-info-message">{{ item.solicitTime }}</div>
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">更新日期:</div> <div class="customer-info-name">更新日期:</div>
<div class="customer-info-message">{{ item.updateDate }}</div> <div class="customer-info-message">{{ item.updatedTime }}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -42,6 +47,8 @@ ...@@ -42,6 +47,8 @@
<div class="sprite-icon icon-sendwechat" @click="sendWechat(item)"></div> <div class="sprite-icon icon-sendwechat" @click="sendWechat(item)"></div>
</div> </div>
</div> </div>
<!-- 电话营销弹窗 -->
<van-action-sheet v-model:show="show" :actions="actions" @select="onSelect" cancel-text="取消" close-on-click-action @cancel="onCancel" />
<!-- 跟进弹窗 --> <!-- 跟进弹窗 -->
<customer-follow-popup ref="customerFollowRef"></customer-follow-popup> <customer-follow-popup ref="customerFollowRef"></customer-follow-popup>
<!-- 客户信息弹窗 --> <!-- 客户信息弹窗 -->
...@@ -51,6 +58,7 @@ ...@@ -51,6 +58,7 @@
<script> <script>
import { Toast } from 'vant' import { Toast } from 'vant'
import { wxConfig } from '@/api'
import CustomerInfoPopup from './CustomerInfoPopup.vue' import CustomerInfoPopup from './CustomerInfoPopup.vue'
import CustomerFollowPopup from './CustomerFollowPopup.vue' import CustomerFollowPopup from './CustomerFollowPopup.vue'
export default { export default {
...@@ -65,9 +73,28 @@ export default { ...@@ -65,9 +73,28 @@ export default {
} }
}, },
data() { data() {
return {} return {
// 电话营销弹窗
show: false,
actions: [{ name: '呼叫' }, { name: '复制' }],
chatParams: {
externalUserIds: [],
groupName: '',
userIds: [],
chatId: ''
},
phoneNumber: null
}
},
mounted() {
// this.initWx()
}, },
methods: { methods: {
//初始化微信接口
initWx() {
window.$wx = wxConfig
window.$wx.init(['setClipboardData', 'makePhoneCall']).then(() => {})
},
changeTab(index) { changeTab(index) {
console.log(index) console.log(index)
this.isShow = false this.isShow = false
...@@ -77,10 +104,30 @@ export default { ...@@ -77,10 +104,30 @@ export default {
}, },
// 电话招揽 // 电话招揽
callCustomer(val) { callCustomer(val) {
console.log(val) // console.log(val)
if (!val.telNumber) { if (!val.phoneNumber) {
Toast('系统尚未查询到该用户的电话号码') Toast('系统尚未查询到该用户的电话号码')
return
} }
this.phoneNumber = val.phoneNumber
// 打开电话营销弹窗
this.show = true
},
// 选择电话营销方式
onSelect(e) {
console.log(e)
// 呼叫
if (e.name === '呼叫') {
// window.location.href = 'tel://' + this.telNumber
this.makePhoneCall(this.phoneNumber)
return
}
// 复制
this.setClipboardData(this.phoneNumber)
},
// 电话招揽弹窗关闭
onCancel() {
this.show = false
}, },
// 招揽跟进 // 招揽跟进
followCustomer(val) { followCustomer(val) {
...@@ -95,6 +142,9 @@ export default { ...@@ -95,6 +142,9 @@ export default {
// 企微沟通 // 企微沟通
sendWechat(val) { sendWechat(val) {
console.log(val) console.log(val)
wxConfig.openEnterpriseChat().then(res => {
console.log(res)
})
} }
} }
} }
...@@ -163,4 +213,7 @@ export default { ...@@ -163,4 +213,7 @@ export default {
.customer-info-wechat { .customer-info-wechat {
color: #3975c6; color: #3975c6;
} }
.customer-info-qiwechat {
color: #2cca74;
}
</style> </style>
...@@ -42,44 +42,50 @@ ...@@ -42,44 +42,50 @@
<!-- 维保记录 --> <!-- 维保记录 -->
<div class="customer-message"> <div class="customer-message">
<div class="customer-info-title">维保记录</div> <div class="customer-info-title">维保记录</div>
<div class="stepItem" v-for="(item, index) in maintennceList" :key="index"> <template v-if="maintennceList.length">
<div class="sprite-icon icon-maintant"></div> <div class="stepItem" v-for="(item, index) in maintennceList" :key="index">
<div class="stepBox"> <div class="sprite-icon icon-maintant"></div>
<div class="stepBox-left"> <div class="stepBox">
<div class="stepBox-left-name">{{ item.name }}</div> <div class="stepBox-left">
<div class="stepBox-left-title"> <div class="stepBox-left-name">{{ item.name }}</div>
费用: <div class="stepBox-left-title">
<span class="stepBox-left-content">{{ item.price }}</span> 费用:
</div> <span class="stepBox-left-content">{{ item.price }}</span>
<div class="stepBox-left-title"> </div>
跟进人: <div class="stepBox-left-title">
<span class="stepBox-left-content">{{ item.followStaff }}</span> 跟进人:
<span class="stepBox-left-content">{{ item.followStaff }}</span>
</div>
</div> </div>
<div class="stepBox-right">{{ item.date }}</div>
</div> </div>
<div class="stepBox-right">{{ item.date }}</div>
</div> </div>
</div> </template>
<div v-else class="no-data">暂无数据</div>
</div> </div>
<!-- 跟进记录 --> <!-- 跟进记录 -->
<div class="record"> <div class="record">
<div class="customer-info-title">跟进记录</div> <div class="customer-info-title">跟进记录</div>
<div class="stepItem" v-for="(item, index) in recordList" :key="index"> <template v-if="recordList.length">
<div class="sprite-icon icon-followRecord"></div> <div class="stepItem" v-for="(item, index) in recordList" :key="index">
<div class="stepBox"> <div class="sprite-icon icon-followRecord"></div>
<div class="stepBox-left"> <div class="stepBox">
<div class="stepBox-left-name">{{ item.name }}</div> <div class="stepBox-left">
<div class="stepBox-left-title"> <div class="stepBox-left-name">{{ item.name }}</div>
预约时间: <div class="stepBox-left-title">
<span class="stepBox-left-content">{{ item.recordDate ? item.recordDate : '-' }}</span> 预约时间:
</div> <span class="stepBox-left-content">{{ item.recordDate ? item.recordDate : '-' }}</span>
<div class="stepBox-left-title"> </div>
备注: <div class="stepBox-left-title">
<span class="stepBox-left-content">{{ item.tips ? item.tips : '-' }}</span> 备注:
<span class="stepBox-left-content">{{ item.tips ? item.tips : '-' }}</span>
</div>
</div> </div>
<div class="stepBox-right">{{ item.date }}</div>
</div> </div>
<div class="stepBox-right">{{ item.date }}</div>
</div> </div>
</div> </template>
<div v-else class="no-data">暂无数据</div>
</div> </div>
</div> </div>
</van-action-sheet> </van-action-sheet>
...@@ -135,18 +141,18 @@ export default { ...@@ -135,18 +141,18 @@ export default {
}, },
// 维保记录表 // 维保记录表
maintennceList: [ maintennceList: [
{ // {
name: '保养项目A', // name: '保养项目A',
price: '240元', // price: '240元',
followStaff: '续梅厄米', // followStaff: '续梅厄米',
date: '05-28 16:00' // date: '05-28 16:00'
}, // },
{ // {
name: '保养项目B', // name: '保养项目B',
price: '240元', // price: '240元',
followStaff: '续梅厄米', // followStaff: '续梅厄米',
date: '05-28 16:00' // date: '05-28 16:00'
} // }
], ],
// 跟进记录表 // 跟进记录表
recordList: [ recordList: [
...@@ -179,16 +185,20 @@ export default { ...@@ -179,16 +185,20 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.popup-card { .popup-card {
padding: 16px; padding: 0 16px 16px 16px;
} }
.name-title { .name-title {
padding-bottom: 12px; width: 100%;
height: 48px;
background-color: #fff;
position: sticky;
top: 0;
&-text { &-text {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
line-height: 24px; line-height: 48px;
} }
} }
.customer-message { .customer-message {
...@@ -272,6 +282,16 @@ export default { ...@@ -272,6 +282,16 @@ export default {
color: #999999; color: #999999;
line-height: 18px; line-height: 18px;
} }
.no-data {
height: 50px;
width: 100%;
text-align: center;
line-height: 50px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
}
/deep/ .van-action-sheet { /deep/ .van-action-sheet {
max-height: 100%; max-height: 100%;
} }
......
...@@ -51,7 +51,8 @@ import { ...@@ -51,7 +51,8 @@ import {
DatetimePicker, DatetimePicker,
Toast, Toast,
Switch, Switch,
Form Form,
Sticky
} from 'vant' } from 'vant'
export const components = [ export const components = [
Button, Button,
...@@ -97,5 +98,6 @@ export const components = [ ...@@ -97,5 +98,6 @@ export const components = [
DatetimePicker, DatetimePicker,
Toast, Toast,
Switch, Switch,
Form Form,
Sticky
] ]
import Vue from 'vue' import Vue from 'vue'
import { import { Toast, Dialog } from 'vant'
Toast,
Dialog
} from 'vant'
/** /**
* 日期格式化 * 日期格式化
* let time = new Date().format('yyyy-MM-dd hh:mm:ss') * let time = new Date().format('yyyy-MM-dd hh:mm:ss')
*/ */
Date.prototype.format = function(fmt) { Date.prototype.format = function (fmt) {
let o = { let o = {
'M+': this.getMonth() + 1, //月份 'M+': this.getMonth() + 1, //月份
'd+': this.getDate(), //日 'd+': this.getDate(), //日
'h+': this.getHours(), //小时 'h+': this.getHours(), //小时
'm+': this.getMinutes(), //分 'm+': this.getMinutes(), //分
's+': this.getSeconds(), //秒 's+': this.getSeconds(), //秒
//季度 //季度
'q+': Math.floor((this.getMonth() + 3) / 3), 'q+': Math.floor((this.getMonth() + 3) / 3),
'S': this.getMilliseconds() //毫秒 S: this.getMilliseconds() //毫秒
}; }
if (/(y+)/.test(fmt)) { if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
} }
for (let k in o) { for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) { if (new RegExp(`(${k})`).test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length))) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
} }
} }
return fmt return fmt
} }
const throttle = (fn, gapTime) => { const throttle = (fn, gapTime) => {
if (gapTime == null || gapTime == undefined) { if (gapTime == null || gapTime == undefined) {
gapTime = 1500 gapTime = 1500
} }
let _lastTime = null let _lastTime = null
return function() { return function () {
let _nowTime = +new Date() let _nowTime = +new Date()
if (_nowTime - _lastTime > gapTime || !_lastTime) { if (_nowTime - _lastTime > gapTime || !_lastTime) {
fn.apply(this, arguments) fn.apply(this, arguments)
_lastTime = _nowTime _lastTime = _nowTime
}
} }
} }
/**防止重复点击 */ }
/**防止重复点击 */
const showLoading = (title = '加载中...') => { const showLoading = (title = '加载中...') => {
Toast({ Toast({
type: 'loading', type: 'loading',
...@@ -52,27 +49,27 @@ const showLoading = (title = '加载中...') => { ...@@ -52,27 +49,27 @@ const showLoading = (title = '加载中...') => {
}) })
} }
const hideLoading = () => { const hideLoading = () => {
Toast.clear() Toast.clear()
} }
/**num:要转换的数值,fixed:精确几位小数 */ /**num:要转换的数值,fixed:精确几位小数 */
const decimal = (num, fixed) => { const decimal = (num, fixed) => {
let pow = Math.pow(10, fixed) let pow = Math.pow(10, fixed)
return Math.round(num * pow) / pow return Math.round(num * pow) / pow
} }
const showToast = (message = '', callBack) => { const showToast = (message = '', callBack) => {
let params = { let params = {
message, message,
forbidClick: true, forbidClick: true,
duration: 1500 duration: 1500
} }
Toast(params) Toast(params)
if (callBack && typeof callBack == 'function') { if (callBack && typeof callBack == 'function') {
setTimeout(() => { setTimeout(() => {
callBack() callBack()
}, 1500) }, 1500)
}
} }
/**触摸样式 */ }
/**触摸样式 */
const touchstart = e => { const touchstart = e => {
e.target.classList.add('btn-on-leave') e.target.classList.add('btn-on-leave')
} }
...@@ -98,28 +95,28 @@ const removeLocalStorage = key => { ...@@ -98,28 +95,28 @@ const removeLocalStorage = key => {
window.localStorage.removeItem(key) window.localStorage.removeItem(key)
} }
const dialog = (params = {}) => { const dialog = (params = {}) => {
if (!params.confirmButtonColor) params.confirmButtonColor = '#FF7336' if (!params.confirmButtonColor) params.confirmButtonColor = '#FF7336'
return Dialog.confirm(params) return Dialog.confirm(params)
} }
/**拨打电话 */ /**拨打电话 */
const makePhoneCall = phoneNumber => { const makePhoneCall = phoneNumber => {
window.location.href = `tel://${phoneNumber}` window.location.href = `tel://${phoneNumber}`
} }
/**是否全面屏 */ /**是否全面屏 */
const isFullSucreen = () => { const isFullSucreen = () => {
let result = false; let result = false
const rate = window.screen.height / window.screen.width const rate = window.screen.height / window.screen.width
let limit = window.screen.height == window.screen.availHeight ? 1.8 : 1.65 // 临界判断值 let limit = window.screen.height == window.screen.availHeight ? 1.8 : 1.65 // 临界判断值
result = rate > limit result = rate > limit
return result return result
} }
const jumpChildrenPage = (to, params) => { const jumpChildrenPage = (to, params) => {
let { name } = window.vm._route let { name } = window.vm._route
window.vm.$router.push({ name: `${name}.${to}`, params }) window.vm.$router.push({ name: `${name}.${to}`, params })
} }
/**拷贝 */ /**拷贝 */
const setClipboardData = data => { const setClipboardData = data => {
wx.setClipboardData({ wx.setClipboardData({
data, data,
...@@ -127,8 +124,7 @@ const setClipboardData = data => { ...@@ -127,8 +124,7 @@ const setClipboardData = data => {
console.log(res) console.log(res)
Toast('复制成功') Toast('复制成功')
}, },
fail(res){ fail(res) {}
}
}) })
} }
...@@ -165,7 +161,6 @@ const watchPageBack = () => { ...@@ -165,7 +161,6 @@ const watchPageBack = () => {
resolve() resolve()
} }
}) })
} }
const utils = { const utils = {
removeLocalStorage, removeLocalStorage,
...@@ -196,4 +191,4 @@ const utils = { ...@@ -196,4 +191,4 @@ const utils = {
Object.keys(utils).map(key => { Object.keys(utils).map(key => {
Vue.prototype[key] = utils[key] Vue.prototype[key] = utils[key]
}) })
export default utils
\ No newline at end of file \ No newline at end of file
export default utils
...@@ -3,30 +3,11 @@ ...@@ -3,30 +3,11 @@
<tip :title="title"></tip> <tip :title="title"></tip>
<template v-if="customerList.length > 0"> <template v-if="customerList.length > 0">
<div class="customerList-add"> <div class="customerList-add">
<scroll-view <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
class="content" <div class="customer-add" v-for="(item, index) in customerList" :key="index">
@ReachBottom="onReachBottom" <div class="customer-add-portrait" v-if="tabIndex == 3">
ref="scrollView" <img :src="item.avatar" alt="" v-if="item.avatar" />
> <img src="../../assets/images/user.png" alt="" v-else />
<div
class="customer-add"
v-for="(item, index) in customerList"
:key="index"
>
<div
class="customer-add-portrait"
v-if="tabIndex == 3"
>
<img
:src="item.avatar"
alt=""
v-if="item.avatar"
/>
<img
src="../../assets/images/user.png"
alt=""
v-else
/>
</div> </div>
<div :class="{ 'customer-add-info': true, 'customer-add-all-info': tabIndex === 3 }"> <div :class="{ 'customer-add-info': true, 'customer-add-all-info': tabIndex === 3 }">
<div class="customer-add-info-number">{{ item.customerPhone }}</div> <div class="customer-add-info-number">{{ item.customerPhone }}</div>
...@@ -34,48 +15,30 @@ ...@@ -34,48 +15,30 @@
</div> </div>
<template v-if="item.status == 0"> <template v-if="item.status == 0">
<div class="customer-add-friend flex"> <div class="customer-add-friend flex">
<div <div class="sprite-icon icon-customer-add" @click="addFriend(item)"></div>
class="sprite-icon icon-customer-add"
@click="addFriend(item)"
></div>
<div class="customer-add-friend-text">加好友</div> <div class="customer-add-friend-text">加好友</div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div <div class="customer-add-friend flex" @click="callPhone(item.customerPhone)">
class="customer-add-friend flex"
@click="callPhone(item.customerPhone)"
>
<div class="sprite-icon icon-customer-phone"></div> <div class="sprite-icon icon-customer-phone"></div>
<div class="customer-add-friend-text">拨打电话</div> <div class="customer-add-friend-text">拨打电话</div>
</div> </div>
</template> </template>
<div <div class="customer-add-stay" v-else-if="item.status == 1">待通过</div>
class="customer-add-stay" <div class="customer-add-pass" v-else-if="item.status == 2">已通过</div>
v-else-if="item.status == 1"
>待通过</div>
<div
class="customer-add-pass"
v-else-if="item.status == 2"
>已通过</div>
<div class="buttomLine"></div> <div class="buttomLine"></div>
</div> </div>
</scroll-view> </scroll-view>
</div> </div>
<template v-if="tabIndex == 0 && copywriting != ''"> <template v-if="tabIndex == 0 && copywriting != ''">
<div class="copy-box"> <div class="copy-box">
<div <div class="sprite-icon icon-customer-copy" @click="copy"></div>
class="sprite-icon icon-customer-copy"
@click="copy"
></div>
<div class="title">客户好友申请文案</div> <div class="title">客户好友申请文案</div>
<div>{{ copywriting }}</div> <div>{{ copywriting }}</div>
</div> </div>
</template> </template>
</template> </template>
<empty <empty v-else description="暂无数据" />
v-else
description="暂无数据"
/>
</div> </div>
</template> </template>
<script> <script>
...@@ -266,7 +229,7 @@ export default { ...@@ -266,7 +229,7 @@ export default {
.customer-add-stay { .customer-add-stay {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #3975C6; color: #3975c6;
line-height: 17px; line-height: 17px;
margin-left: 78px; margin-left: 78px;
white-space: nowrap; white-space: nowrap;
...@@ -327,4 +290,4 @@ export default { ...@@ -327,4 +290,4 @@ export default {
height: calc(100vh - 220px) !important; height: calc(100vh - 220px) !important;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
<template> <template>
<div> <div>
<van-tabs v-model="tabIndex" sticky> <van-tabs v-model="tabIndex" sticky @change="tabChange">
<van-tab :title="'未送达(' + customerInfo.length + ')'"> <van-tab :title="'未送达(' + customerInfo1.length + ')'">
<div class="reason"> <scroll-view @ReachBottom="onReachBottom" ref="scrollView">
<div>未送达可能原因:</div> <div class="reason">
<div>1. 客户开启消息免打扰,消息发送失败;</div> <div>未送达可能原因:</div>
<div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div> <div>1. 客户开启消息免打扰,消息发送失败;</div>
</div> <div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div>
<customer-card :customerInfo="customerInfo"></customer-card> </div>
<customer-card v-if="customerInfo1.length" :customerInfo="customerInfo1"></customer-card>
<empty v-else></empty>
</scroll-view>
</van-tab> </van-tab>
<van-tab :title="'已送达(' + deliveredNum + ')'"> <van-tab :title="'已送达(' + deliveredNum + ')'">
<div class="statistic-pic flex"> <div class="statistic-pic flex">
...@@ -17,8 +20,8 @@ ...@@ -17,8 +20,8 @@
<div class="statistic-list"> <div class="statistic-list">
<template v-for="(status, index) in reachStatus"> <template v-for="(status, index) in reachStatus">
<div class="font-12 color-2f flex m-b-14" :key="index"> <div class="font-12 color-2f flex m-b-14" :key="index">
<div class="circle" :style="{'background':status.color}"></div> <div class="circle" :style="{ background: status.color }"></div>
{{status.text}} {{ status.text }}
<span class="font-16 color-3 m-l-8 bold">2,000</span> <span class="font-16 color-3 m-l-8 bold">2,000</span>
<span class="font-10 color39 m-l-4 fw5">(100%)</span> <span class="font-10 color39 m-l-4 fw5">(100%)</span>
</div> </div>
...@@ -26,57 +29,132 @@ ...@@ -26,57 +29,132 @@
</div> </div>
</div> </div>
<select-bar :index="3" :list="selectBarList"></select-bar> <select-bar :index="3" :list="selectBarList"></select-bar>
<customer-card :customerInfo="customerInfo"></customer-card> <customer-card :customerInfo="customerInfo2"></customer-card>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
</template> </template>
<script> <script>
import Empty from '../../components/Empty.vue'
import ScrollView from '../../components/ScrollView.vue'
import SelectBar from '../../components/SelectBar.vue' import SelectBar from '../../components/SelectBar.vue'
import { solicitApi } from '@/api'
export default { export default {
components: { SelectBar }, components: { SelectBar, Empty, ScrollView },
data() { data() {
return { return {
tabIndex: 0, tabIndex: 0,
deliveredNum: 0, deliveredNum: 0,
selectBarList: ['已送达', '已查看', '已领取', '已到店'], selectBarList: ['已送达', '已查看', '已领取', '已到店'],
customerInfo: [ // 未送达页码
unSendPageParam: {
pagesize: 10,
pageNum: 1
},
// 送达页码
sendPageParam: {
pagesize: 10,
pageNum: 1
},
// 未送达客户数量
unSendCount: null,
// 送达客户数量
sendCount: null,
// 未送达客户列表
customerInfo1: [
{
id: 1,
name: '崔美女',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '',
type: 1,
wechatnick: '',
SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
},
{
id: 2,
name: '匡先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 2,
wechatnick: '横穿',
SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
},
{
id: 3,
name: 'xu先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 1,
wechatnick: 'BB',
SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
}
],
// 已送达客户列表
customerInfo2: [
{ {
id: 1, id: 1,
name: '林先生', name: '崔美女',
carNumber: '月A8888', followResult: '未接听',
carBrand: 'BMW', checkStatus: '一查看',
result: '未接听', solicitTime: '05-07 15:30',
wechatMarketing: '一查看', updatedTime: '05-07 15:30',
joinWechat: '美女', phoneNumber: '',
date: '05-07 15:30', type: 1,
updateDate: '05-07 15:30', wechatnick: '',
telNumber: '' SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
}, },
{ {
id: 2, id: 2,
name: 'kuang先生', name: '匡先生',
carNumber: '', followResult: '未接听',
carBrand: 'BMW', checkStatus: '一查看',
result: '未接听', solicitTime: '05-07 15:30',
wechatMarketing: '一查看', updatedTime: '05-07 15:30',
joinWechat: '美女', phoneNumber: '18818188989',
date: '05-07 15:30', type: 2,
updateDate: '05-07 15:30', wechatnick: '横穿',
telNumber: '18818188989' SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
}, },
{ {
id: 3, id: 3,
name: 'xu先生', name: 'xu先生',
carNumber: '粤B 8888', followResult: '未接听',
carBrand: '兰博基尼', checkStatus: '一查看',
result: '未接听', solicitTime: '05-07 15:30',
wechatMarketing: '一查看', updatedTime: '05-07 15:30',
joinWechat: '美女', phoneNumber: '18818188989',
date: '05-07 15:30', type: 2,
updateDate: '05-07 15:30', wechatnick: 'BB',
telNumber: '18818188989' SolicitCarResponse: {
carSeries: '奔驰 G63',
carNumber: '粤B 6666'
}
} }
], ],
reachStatus: [ reachStatus: [
...@@ -122,6 +200,56 @@ export default { ...@@ -122,6 +200,56 @@ export default {
} }
] ]
} }
},
mounted() {
// this.getUnSendCustomerList()
// this.getSendCustomerList()
},
methods: {
// tab栏切换
tabChange(e) {
console.log(e)
this.tabIndex = e
},
// 获取未送达客户信息
getUnSendCustomerList() {
var params = { ...this.unSendPageParam }
// followFlag-跟进状态:0待跟进、1已跟进
params.followFlag = 0
// params.groupId =
// params.id =
// params.staffId =
console.log(params)
solicitApi.getCustomerList().then(res => {
console.log(res)
})
},
// 获取送达客户信息
getSendCustomerList() {
var params = { ...this.sendPageParam }
// followFlag-跟进状态:0待跟进、1已跟进
params.followFlag = 1
// params.groupId =
// params.id =
// params.staffId =
console.log(params)
solicitApi.getCustomerList().then(res => {
console.log(res)
})
},
// 下拉触底刷新
onReachBottom() {
console.log('触底')
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
// 未送达页面
if (this.tabIndex == 0) {
this.unSendPageParam.pageNum++
return
}
// 送达页面
this.sendPageParam.pageNum++
}
} }
} }
</script> </script>
...@@ -161,7 +289,7 @@ export default { ...@@ -161,7 +289,7 @@ export default {
margin-right: 6px; margin-right: 6px;
} }
} }
.statistic-list div:nth-child(4){ .statistic-list div:nth-child(4) {
margin-bottom: 0; margin-bottom: 0;
} }
} }
......
...@@ -51,7 +51,7 @@ const spritesmithFunction = data => { ...@@ -51,7 +51,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-test/', // 署应用包时的基本 URL。 vue-router hash 模式使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-kuangyq/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!