Commit 260d699e by zhouzy
2 parents b3d01605 a0b6a992
<template>
<van-empty class="custom-image" :image="empty" :description="description" />
<van-empty class="custom-image" :image="empty" :description="description" />
</template>
<script>
export default {
name: 'empty',
data(){
return {
empty: require('../assets/images/empty.png')
}
},
props:{
description:{
type:String,
default:'暂无数据'
}
data() {
return {
empty: require('../assets/images/empty.png')
}
},
props: {
description: {
type: String,
default: '暂无数据'
}
}
}
</script>
<style lang="scss" scoped>
.custom-image{
padding-top:79px;
.custom-image {
padding-top: 79px;
}
.custom-image .van-empty__image {
.custom-image /deep/ .van-empty__image {
width: 88px;
height: 56px;
}
</style>
\ No newline at end of file
......@@ -38,4 +38,7 @@ export default {
overflow-y: scroll;
box-sizing: border-box;
}
.van-list{
background-color: #ffffff;
}
</style>
\ No newline at end of file
......@@ -26,15 +26,15 @@ Vue.prototype.api = api
Vue.prototype.bus = bus
Vue.prototype.tools = tools
Vue.prototype.local = local
Vue.prototype.to = function(name, params) {
if (name === -1) {
router.go(-1)
return
}
router.push({ name, params })
Vue.prototype.to = function (name, params) {
if (name === -1) {
router.go(-1)
return
}
// 移动端适配 rem
// import 'lib-flexible/flexible.js'
router.push({ name, params })
}
// 移动端适配 rem
// import 'lib-flexible/flexible.js'
Vue.config.productionTip = false
......@@ -47,7 +47,7 @@ fetchConfig(!isMock).then(res => {
// 设置 js中可以访问 $cdn
Vue.use(cfg)
window.$fetchConfig = res
/**登录过期 重新登录 */
/**登录过期 重新登录 */
window.reLogin = () => {
console.log('重新登录')
util.clearSessionId()
......@@ -59,4 +59,4 @@ fetchConfig(!isMock).then(res => {
store,
render: h => h(App)
})
})
\ No newline at end of file
})
const pages = {
customerGroup: [{
name: 'index',
name: 'index'
},
{ name: 'mass' }
],
......@@ -37,6 +37,12 @@ const pages = {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}, {
name: 'editDetail',
meta: {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}]
......
......@@ -125,6 +125,9 @@ const setClipboardData = data => {
data,
success(res) {
Toast('复制成功')
},
fail(res){
console.log(res)
}
})
}
......
<template>
<div style="padding-bottom: 30px">
<div class="detail-bg detail-first">
<div class="detail-customer">
<div class="sprite-icon icon-avatar"></div>
<div class="detail-customer-name">
<span class="name">小晶</span>
<span class="wechat">@微信</span>
<div>女</div>
</div>
</div>
<div class="detail-member">
<span class="name">所属成员</span>
<span>陈晓凯、熬浓</span>
</div>
</div>
<div class="detail-second">
<van-cell-group :class="[isMore ? '' : 'more-hidden']" inset>
<van-cell title="添加时间" value="内容" />
<van-cell title="添加渠道" value="内容" />
<van-cell title="联系电话" value="2324" is-link @click="toEdit('设置联系电话')" />
<van-cell title="身份证号码" value="123412412" is-link @click="toEdit('设置身份证号码')" />
<van-cell title="购车日期" :value="date" @click="show = true" is-link />
<van-cell title="近期保养日期" :value="date" @click="show = true" is-link />
<van-cell title="近期到店日期" :value="date" @click="show = true" is-link />
<van-cell title="商业险到期日期" :value="date" @click="show = true" is-link />
<van-cell title="车系" value="123412412" is-link @click="toEdit('设置车系')" />
<van-cell title="车型" value="123412412" is-link @click="toEdit('设置车型')" />
<van-calendar v-model="show" color="#6760ff" @confirm="onConfirm" />
</van-cell-group>
<div class="detail-more" @click="moreInfo">{{ isMore ? '收起' : '更多信息' }}</div>
</div>
<div class="detail-bg detail-third">
<div class="title">客户标签</div>
<div class="detail-label">
<div v-if="labelist.length == 0" class="no-label">
<div class="btn">
<van-icon name="plus" />
<span>标签</span>
</div>
</div>
<div class="has-label" v-else>
<div>
<div v-for="item in labelist" :key="item.id" class="label-text">{{ item.name }}</div>
</div>
<div class="btn-box">
<div class="btn">
<van-icon name="plus" />
<span>标签</span>
</div>
</div>
</div>
</div>
</div>
<div class="detail-bg detail-fourth">
<div class="title">所属群聊</div>
<div class="detail-group">
<div v-if="groupList.length == 0" class="no-data">暂无数据</div>
<div v-else>
<div v-for="itm in groupList" :key="itm.id" class="group-item">
<div class="group-avatar"></div>
<div class="name">{{ itm.groupName }}({{ itm.num }})</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
show: false,
date: '',
value: '',
isMore: false,
labelist: [
{
id: 1,
name: '即将离开'
},
{
id: 2,
name: '大四'
},
{
id: 3,
name: '大四'
},
{
id: 4,
name: '大四'
},
{
id: 5,
name: '大四'
},
{
id: 6,
name: '大四'
}
],
groupList: [
{
id: 1,
groupName: '发发呆',
num: 2
},
{
id: 2,
groupName: '烦的还是挺好的发挥地方',
num: 4
},
{
id: 3,
groupName: '和任何人聚',
num: 6
}
]
}
},
methods: {
onConfirm(date) {
console.log(date)
// const [start, end] = date
this.show = false
this.date = date
// this.date = `${this.formatDate(start)} - ${this.formatDate(end)}`
},
moreInfo() {
this.isMore = !this.isMore
},
toEdit(title, value) {
this.$router.push({
name: 'customer.editDetail',
params: { title }
})
}
}
}
</script>
<style lang="scss" scope>
.detail-bg {
background-color: #fff;
border-radius: 4px;
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
}
.detail-first {
padding: 22px 10px 0;
margin: 10px 16px;
.detail-customer {
display: flex;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding: 0 10px 21px;
&-name {
font-size: 16px;
margin-left: 16px;
color: #333;
.name {
font-weight: 600;
margin-right: 6px;
}
.wechat {
color: #6760ff;
}
div {
font-size: 14px;
}
}
}
.detail-member {
display: flex;
align-items: center;
font-size: 14px;
height: 42px;
color: #333;
.name {
color: #999;
padding: 0 10px;
// border-right: 1px solid #999;
margin-right: 10px;
position: relative;
&::after {
content: '';
display: block;
width: 1px;
height: 14px;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
background-color: #999;
}
}
}
}
.detail-second {
.van-cell-group {
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
}
.more-hidden {
max-height: 132px;
overflow: hidden;
}
.detail-more {
background-color: #ededed;
border-radius: 0 0 4px 4px;
color: #999;
font-size: 12px;
text-align: center;
line-height: 18px;
padding: 5px 0;
margin: 0 16px;
}
}
.detail-third {
margin: 10px 16px;
padding: 10px 16px;
.title {
font-size: 16px;
color: #333;
font-weight: 600;
}
.detail-label {
position: relative;
min-height: 65px;
.no-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.btn {
width: 60px;
height: 20px;
background-color: #5850ff;
color: #fff;
font-size: 12px;
text-align: center;
border-radius: 11px;
padding: 4px;
}
.has-label {
// display: flex;
margin-top: 20px;
.btn-box {
display: flex;
justify-content: flex-end;
}
}
.label-text {
display: inline-block;
margin: 0 4px 4px 0;
max-width: 66px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: break-all;
border-radius: 14px;
background-color: rgba(88, 80, 255, 0.15);
font-size: 14px;
color: #5850ff;
line-height: 20px;
padding: 4px 12px;
text-align: center;
box-sizing: border-box;
}
}
}
.detail-fourth {
margin: 10px 16px;
padding: 10px 16px 0;
.detail-group {
min-height: 81px;
position: relative;
margin-top: 4px;
.no-data {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 12px;
color: #999;
}
.group-item {
display: flex;
align-items: center;
padding: 17px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
&:last-child {
border-bottom: none;
}
.group-avatar {
width: 44px;
height: 44px;
background-color: #e1e1e1;
}
.name {
font-size: 16px;
color: #333;
font-weight: 500;
margin-left: 10px;
}
}
}
}
</style>
<template>
<div class="edit-wrapper">
<van-field v-model="value" placeholder="请输入" />
<div class="submit">保存</div>
</div>
</template>
<script>
export default {
data() {
return {
value: ''
}
},
created() {
document.title = this.$route.params.title
}
}
</script>
<style lang="scss" scope>
.edit-wrapper {
position: relative;
width: 100%;
height: 100%;
}
.submit {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
width: 343px;
height: 42px;
background-color: #5859ff;
border-radius: 21px;
font-size: 14px;
color: #fff;
}
</style>
\ No newline at end of file
<template>
<div class="layout">
<div class="tips flex">
请完善以下客户信息
</div>
<div class="tips flex">请完善以下客户信息</div>
<template>
<template>
<scroll-view
class="content"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<template v-for="(item,index) in 10">
<div
:key="index"
class="item flex"
>
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-for="(item, index) in customerList">
<div :key="index" class="item flex">
<div class="avatar">
<div class="sprite-icon icon-avatar"></div>
</div>
<div class="info">
<div class="phone flex">
恒河猴
</div>
<div class="phone flex name">{{ item.customerName }}</div>
<div class="tags flex">
<template v-for="(i,ind) in 5">
<div
:key="ind"
class="tag text-center"
>
{{index}}{{ind}}恒河猴
</div>
<template v-for="(i, ind) in 5">
<div :key="ind" class="tag text-center">{{ index }}{{ ind }}恒河猴</div>
</template>
</div>
</div>
......@@ -45,17 +29,155 @@
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
data() {
return {
customerList: []
}
},
mounted () {
created() {
this.init()
},
methods: {
onReachBottom () {
onReachBottom() {
console.log('触底')
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
},
// 消息盒子-好友列表
init() {
let search = {
taskId: 'cb3b9128e620413c931601a6d439d365',
status: this.status
}
this.customerList = [
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
}
]
console.log(this.customerList)
groupCustomer.getCustomerList(search).then(res => {
console.log(res)
if (res.code == 0) {
this.customerList = res.data
}
})
}
}
}
......@@ -71,6 +193,12 @@ export default {
height: auto;
padding: 16px 16px 12px 16px;
box-sizing: border-box;
.name {
width: 50px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.tags {
flex-wrap: wrap;
.tag {
......
<template>
<div :class="['container-add', `page-type-${tabIndex}`]">
<tip :title="title"></tip>
<template v-if="customerList.length > 0">
<template v-if="data.length > 0">
<div class="customerList-add">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="customer-add" v-for="(item, index) in customerList" :key="index">
<div class="customer-add" v-for="(item, index) in data" :key="index">
<div class="customer-add-portrait" v-if="tabIndex == 3">
<img :src="item.avatar" />
</div>
......
......@@ -20,7 +20,130 @@ export default {
isTitle: false, //是否显示search组件
tabIndex: 0,
status: 0,
customerList: []
taskId: this.$route.query.taskId?this.$route.query.taskId:'',
customerList: [],
// customerList : [
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// }
// ],
}
},
components: {
......@@ -34,135 +157,11 @@ export default {
// 消息盒子-好友列表
init() {
let search = {
taskId: 'cb3b9128e620413c931601a6d439d365',
taskId:this.taskId,
status: this.status
}
this.customerList = [
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
customerName: '王欣伟',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
type: 1,
createdTime: '2021-11-14 17:17:38',
status: 2
},
{
id: null,
userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
customerName: '曾琪aaaa啊啊啊啊啊啊啊啊aaaaaaaa嗷嗷嗷',
customerPhone: '13476670746',
avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
type: 2,
createdTime: '2021-09-18 14:27:35',
status: 1
},
{
id: null,
userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
customerName: '爱就在一起',
customerPhone: '13476670746',
avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
type: 1,
createdTime: '2021-08-31 14:51:06',
status: 0
},
{
id: null,
userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
customerName: '李崇源',
customerPhone: '13476670746',
avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
type: 2,
createdTime: '2021-08-24 09:39:05',
status: 1
},
]
console.log(this.customerList)
groupCustomer.getCustomerList(search).then(res => {
console.log(res)
console.log(res)
if (res.code == 0) {
this.customerList = res.data
}
......
......@@ -75,7 +75,7 @@ export default {
}
],
checkAll: [],
tagShow: true
tagShow: false
}
},
created() {
......
......@@ -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'
......@@ -51,7 +50,6 @@ const spritesmithFunction = data => {
module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-group-chat/',
// 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: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir: 'dist', // 生产环境构建文件的目录
......@@ -134,11 +132,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'))
......@@ -148,7 +144,6 @@ module.exports = {
.set('components', resolve('src/components'))
.set('plugins', resolve('src/components'))
.set('utils', resolve('src/utils'))
/**
* 添加CDN参数到htmlWebpackPlugin配置中
*/
......@@ -160,7 +155,6 @@ module.exports = {
// }
// return args
// })
/**
* 设置保留空格
*/
......@@ -184,7 +178,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!