@@ -4,48 +4,55 @@ | |||
<view class="content-tips"> | |||
<view class="content-first"> | |||
<view class="left"> | |||
<view v-if="customerInfo.showLevel.length==0"></view> | |||
<view class="img A" v-else-if="customerInfo.showLevel==1">A</view> | |||
<view class="img B" v-else-if="customerInfo.showLevel==2">B</view> | |||
<view class="img C" v-else-if="customerInfo.showLevel==3">C</view> | |||
<view class="img D" v-else-if="customerInfo.showLevel==4">D</view> | |||
<view class="test"> | |||
{{customerInfo.name || '--'}} | |||
<view v-if="customerInfo.showLevel.length==0"></view> | |||
<view class="img A" v-else-if="customerInfo.showLevel==1">A</view> | |||
<view class="img B" v-else-if="customerInfo.showLevel==2">B</view> | |||
<view class="img C" v-else-if="customerInfo.showLevel==3">C</view> | |||
<view class="img D" v-else-if="customerInfo.showLevel==4">D</view> | |||
<view v-if="customerInfo.clientStageName" class="clientStageName"> | |||
{{ customerInfo.clientStageName }} | |||
</view> | |||
</view> | |||
<view v-if="customerInfo.clientStageName" class="clientStageName"> | |||
{{ customerInfo.clientStageName }} | |||
</view> | |||
<view class="edit" @click="goedit()" v-if="isHavePermission"> | |||
<image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image> | |||
</view> | |||
</view> | |||
<view class="right"> | |||
<view class="test">销讲执行:<text class="blue">{{ customerInfo.fraction || 0 }}%</text></view> | |||
</view> | |||
</view> | |||
<view class="content-sec"> | |||
<view class="content-sec-lab"> | |||
手机号码:<view class="content-sec-lab1"> | |||
{{customerInfo.phone | phoneText}} | |||
<view class="content-sec-lab1"> | |||
手机号码:{{customerInfo.phone&&customerInfo.isShow==1?customerInfo.phone.length==11?customerInfo.phone.substr(0, 3) + '****' + customerInfo.phone.substr(7):customerInfo.phone:customerInfo.phone&&customerInfo.isShow!=1?customerInfo.phone: '--'}} | |||
</view> | |||
<view class="content-sec-lab1" style="width: 44%">到访次数:{{ customerInfo.visitRecord || 0 }}次/{{ | |||
customerInfo.mm || 0 | |||
}}min</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
顾问姓名:<view class="content-sec-lab1">{{customerInfo.agentName||'--'}}</view> | |||
<view class="content-sec-lab1">挖掘执行:{{ customerInfo.wordFraction || 0 }}%</view> | |||
<view class="content-sec-lab1" style="width: 44%"> | |||
挖掘成功:{{ customerInfo.wordFinishFraction || 0 }}%</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
<view class="u-flex" style="flex:1"> | |||
挖掘执行:<view class="content-sec-lab1">{{customerInfo.wordFraction||0}}%</view> | |||
</view> | |||
<view class="u-flex" style="flex:1"> | |||
挖掘成功:<view class="content-sec-lab1">{{customerInfo.wordFinishFraction||0}}%</view> | |||
<view class="content-sec-lab1">所属顾问:{{ customerInfo.agentName || "--" }}</view> | |||
<view class="content-sec-lab1" style="width: 44%">客户阶段:{{ customerInfo.stageName || "--" }} | |||
</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
添加时间:<view class="content-sec-lab1">{{customerInfo.createTime}}</view> | |||
</view> | |||
<view class="content-sec-num"> | |||
<view>到访{{customerInfo.visitRecord || '--'}}次</view> | |||
<view> | |||
{{customerInfo.mm || '0'}}min/{{customerInfo.fraction || '0'}}% | |||
<view class="content-sec-lab1" @click.stop="showIntentionRate = true"> | |||
客户意向率:{{ `${customerInfo.levelFraction||'0'}%` }} <text | |||
style="margin-left: 20rpx;color: #0066CC;">查看</text> | |||
</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
<view class="content-sec-lab1">上次到访:{{ customerInfo.createTime || "--" }}</view> | |||
</view> | |||
</view> | |||
<view class="content-last"> | |||
<view class="content-last-con"> | |||
@@ -362,6 +369,31 @@ | |||
</u-popup> | |||
<u-popup v-model="showIntentionRate" mode="center" mask-close-able width="560rpx" border-radius="14"> | |||
<!-- intentionRateList --> | |||
<view class="intentionRateList-title"> | |||
客户意向{{ `${customerInfo.levelFraction||'0'}%` }} | |||
<image class="close" @click="showIntentionRate = false" src="@/static/images/close.png" mode=""></image> | |||
</view> | |||
<scroll-view scroll-y="true" style="height: 50vh;"> | |||
<view class="intentionRateList"> | |||
<block v-for="(item, index) in intentionRateList" :key="index"> | |||
<view class="first-title"> | |||
{{ item.name }} | |||
</view> | |||
<view class="second"> | |||
<block v-for="(second, secondIndex) in item.children" :key="secondIndex"> | |||
<view class="second-item"> | |||
{{ second.name }} | |||
</view> | |||
</block> | |||
</view> | |||
</block> | |||
</view> | |||
</scroll-view> | |||
</u-popup> | |||
<!-- 销讲业务 --> | |||
<u-select :mask-close-able="false" label-name="templateName" value-name="cusId" v-model="showTemplate" | |||
mode="single-column" :list="templateList" @cancel="templateCancel" @confirm="templateConfirm"></u-select> | |||
@@ -399,6 +431,12 @@ | |||
showBeText: '全部业务', // | |||
templateList: [], // 销讲业务 | |||
showTemplate: false, // 展示选择销讲业务弹窗 | |||
showIntentionRate: false, // 客户意向率命中词弹窗 | |||
intentionRateList: [], // 客户意向率列表 | |||
customerIds: '', // 给评分传值的 | |||
} | |||
}, | |||
onLoad(options) { | |||
@@ -418,12 +456,58 @@ | |||
this.getCustomerInfo() | |||
this.tabtimetap(0) | |||
this.getMarketingBusiness() | |||
this.getListByType() | |||
let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | |||
if (newmenulist.khgl_bj == true || newmenulist.khgl_gj == true) { | |||
this.isHavePermission = true | |||
} | |||
}, | |||
methods: { | |||
// 字典表接口 | |||
getListByType() { | |||
this.$u.get("/matchKeywords/findPersonalMatchData", { | |||
customerId: this.customerId | |||
}) | |||
.then(res => { | |||
let arr = [] | |||
res.forEach(item1 => { | |||
item1.children.map(item => { | |||
if (item.isInterval == 0) { | |||
item.label = item.name + item.unit + '-' + item.endName + item | |||
.unit; | |||
} else { | |||
item.label = item.name | |||
} | |||
item.value = item.id; | |||
if (item.selected == 0) { | |||
arr.push({ | |||
name: item.label, | |||
fName: item1.name | |||
}) | |||
} | |||
}) | |||
}) | |||
let arr1 = [] | |||
arr.map(item => { | |||
let index = arr1.findIndex(items => items.name == item.fName) | |||
if (index != -1) { | |||
arr1[index].children.push({ | |||
name: item.name | |||
}) | |||
} else { | |||
arr1.push({ | |||
name: item.fName, | |||
children: [{ | |||
name: item.name | |||
}] | |||
}) | |||
} | |||
}) | |||
this.intentionRateList = arr1 | |||
}) | |||
}, | |||
// 销讲业务方法 | |||
templateCancel() { | |||
this.showTemplate = false; | |||
@@ -1150,129 +1234,123 @@ | |||
font-size: 30rpx; | |||
line-height: 30rpx; | |||
.left { | |||
flex-grow: 1; | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
.img { | |||
width: 48rpx; | |||
height: 48rpx; | |||
line-height: 48rpx; | |||
width: 52rpx; | |||
height: 52rpx; | |||
border-radius: 50%; | |||
text-align: center; | |||
margin-left: 16rpx; | |||
border-radius: 6rpx; | |||
font-size: 28rpx; | |||
font-family: PingFangSC-Regular, PingFang SC; | |||
font-weight: 400; | |||
color: #FFFFFF; | |||
line-height: 50rpx; | |||
margin-right: 20rpx; | |||
color: #fff; | |||
font-size: 30rpx; | |||
background: #9f61c8; | |||
} | |||
.test { | |||
height: 48rpx; | |||
font-size: 30rpx; | |||
font-family: PingFangSC-Medium, PingFang SC; | |||
margin-top: 11rpx; | |||
font-weight: 500; | |||
color: #333333; | |||
line-height: 48rpx; | |||
margin-right: 16rpx; | |||
display: flex; | |||
} | |||
.clientStageName { | |||
height: 48rpx; | |||
line-height: 48rpx; | |||
background: #FFFFFF; | |||
border-radius: 4rpx; | |||
border: 1rpx solid #FF981E; | |||
box-sizing: border-box; | |||
font-size: 28rpx; | |||
font-family: PingFangSC-Regular, PingFang SC; | |||
font-weight: 400; | |||
color: #FF981E; | |||
margin-left: 16rpx; | |||
padding: 0 16rpx; | |||
} | |||
.edit { | |||
flex-shrink: 0; | |||
height: 40rpx; | |||
width: 40rpx; | |||
height: 30rpx; | |||
width: 30rpx; | |||
margin-left: 30rpx; | |||
margin-top: 11rpx; | |||
image { | |||
width: 100%; | |||
height: 100%; | |||
} | |||
} | |||
} | |||
.right { | |||
display: flex; | |||
.point { | |||
width: 12rpx; | |||
height: 12rpx; | |||
background: #2B6EFF; | |||
border-radius: 50%; | |||
margin-right: 9rpx; | |||
margin-top: 20rpx; | |||
} | |||
.test { | |||
margin-top: 11rpx; | |||
.blue { | |||
font-size: 32rpx; | |||
font-family: PingFangSC-Medium, PingFang SC; | |||
font-weight: 500; | |||
color: #2671e2; | |||
} | |||
} | |||
} | |||
} | |||
.content-sec { | |||
border-top: 1px solid #E0E0E0; | |||
padding: 0 30rpx; | |||
position: relative; | |||
.content-sec-lab { | |||
margin-top: 30rpx; | |||
margin-top: 28rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
font-size: 30rpx; | |||
font-weight: 400; | |||
color: #333; | |||
line-height: 42rpx; | |||
color: #666666; | |||
line-height: 46rpx; | |||
.content-sec-lab1 { | |||
color: #333333; | |||
.look { | |||
font-size: 32rpx; | |||
font-family: PingFangSC-Semibold, PingFang SC; | |||
font-weight: 600; | |||
color: #2671E2; | |||
} | |||
.look1 { | |||
height: 42rpx; | |||
font-size: 30rpx; | |||
font-family: PingFangSC-Regular, PingFang SC; | |||
font-weight: 400; | |||
color: #2671E2; | |||
line-height: 42rpx; | |||
margin-left: 60rpx; | |||
} | |||
} | |||
.content-sec-tips { | |||
max-width: 175rpx; | |||
max-width: 120rpx; | |||
height: 46rpx; | |||
background: #F2F2F2; | |||
border-radius: 6rpx; | |||
text-align: center; | |||
line-height: 48rpx; | |||
line-height: 26rpx; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
white-space: nowrap; | |||
font-size: 26rpx; | |||
font-weight: 400; | |||
color: #2671E2; | |||
margin-right: 12rpx; | |||
color: #333333; | |||
margin-right: 20rpx; | |||
box-sizing: border-box; | |||
padding: 0 20rpx; | |||
height: 48rpx; | |||
background: #F4F8FD; | |||
border-radius: 6rpx; | |||
padding: 10rpx 24rpx; | |||
} | |||
} | |||
.content-sec-num { | |||
position: absolute; | |||
width: 196rpx; | |||
height: 112rpx; | |||
width: 200rpx; | |||
height: 90rpx; | |||
background: #F4F8FD; | |||
border-radius: 8rpx; | |||
top: 28rpx; | |||
right: 30rpx; | |||
padding: 16rpx 20rpx; | |||
border-radius: 12rpx; | |||
font-weight: 400; | |||
color: #2671E2; | |||
line-height: 40rpx; | |||
line-height: 45rpx; | |||
bottom: 100rpx; | |||
right: 30rpx; | |||
text-align: center; | |||
} | |||
} | |||
@@ -1590,4 +1668,56 @@ | |||
color: #2671E2; | |||
border-bottom: 1rpx solid #ccc; | |||
} | |||
.intentionRateList-title { | |||
position: relative; | |||
height: 90rpx; | |||
background: #fff; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
.close { | |||
position: absolute; | |||
right: 10rpx; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
width: 45rpx; | |||
height: 45rpx; | |||
text-align: center; | |||
} | |||
} | |||
.intentionRateList { | |||
padding: 0 20rpx; | |||
width: 100%; | |||
display: flex; | |||
flex-direction: column; | |||
.first-title { | |||
width: 100%; | |||
height: 90rpx; | |||
display: flex; | |||
align-items: center; | |||
} | |||
.second { | |||
width: 100%; | |||
display: flex; | |||
flex-wrap: wrap; | |||
.second-item { | |||
margin: 0 20rpx 25rpx 0; | |||
padding: 0 10rpx; | |||
height: 60rpx; | |||
border: 1px solid #E0E0E0; | |||
border-radius: 12rpx; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
} | |||
} | |||
</style> |
@@ -9,51 +9,44 @@ | |||
筛选结果:<text class="result-num">{{ totalRecord }}</text>条 | |||
</view> | |||
<view class="content"> | |||
<view class="content-tips" v-for="(item, index) in recordList" :key="index" @click="gotoDetail(item.id)"> | |||
<view class="content-tips" v-for="(item,index) in recordList" :key='index' @click="gotoDetail(item.id)"> | |||
<view class="content-first"> | |||
<view class="left"> | |||
<template v-if="item.level > 0"> | |||
<view class="img">{{ item.level | levelText }}</view> | |||
</template> | |||
<view class="test">{{ item.name }}</view> | |||
</view> | |||
<view class="right"> | |||
{{ item.fraction || "0" }}% | |||
<image class="right-img" src="../../../static/images/arrow-right.png" mode=""></image> | |||
<view v-if="item.level.length==0"></view> | |||
<view class="img" v-else-if="item.level==1">A</view> | |||
<view class="img" v-else-if="item.level==2">B</view> | |||
<view class="img" v-else-if="item.level==3">C</view> | |||
<view class="img" v-else-if="item.level==4">D</view> | |||
<view class="test">{{item.name}}</view> | |||
</view> | |||
</view> | |||
<view class="content-sec"> | |||
<view class="content-sec-lab"> | |||
客户手机:<view class="content-sec-lab1">{{ | |||
item.phone | phoneText | |||
}}</view> | |||
手机号码:<view class="content-sec-lab1">{{item.phone || '--'}}</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
负责顾问:<view class="content-sec-lab1">{{ item.agentName }}</view> | |||
客户标签: | |||
<text v-if="item.demand.cusSemanticWordsList.length==0">暂无</text> | |||
<view v-else style="display: flex;align-items: center;"> | |||
<view v-if="ind<3" class="content-sec-tips" | |||
v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view> | |||
</view> | |||
</view> | |||
<view class="content-sec-lab" style="line-height: 46rpx"> | |||
客户意向: | |||
<text v-if="item.demand.cusSemanticWordsList == null">暂无</text> | |||
<template v-else> | |||
<block v-for="(che, ind) in item.demand.cusSemanticWordsList" :key="ind"> | |||
<view class="content-sec-tips">{{ che.name }}</view> | |||
</block> | |||
</template> | |||
<view class="content-sec-lab"> | |||
顾问姓名:<view class="content-sec-lab1">{{item.agentName}}</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
添加时间:<view class="content-sec-lab1">{{ | |||
item.createTime | formatTime | |||
}}</view> | |||
添加时间:<view class="content-sec-lab1">{{item.createTime}}</view> | |||
</view> | |||
<view class="content-sec-num"> | |||
<view class="">{{ item.visitRecord || "--" }}次到访 | {{ item.mm || "0" | |||
}}<text style="font-size: 24rpx">min</text></view> | |||
<view class="">{{item.visitRecord || '--'}}次到访</view> | |||
<view class="">{{item.fraction || '0'}}% | {{item.mm || '0'}}<text | |||
style="font-size: 24rpx;">min</text></view> | |||
</view> | |||
</view> | |||
<view style="width: 100%;height: 20rpx;background: #F8F8F8;"></view> | |||
</view> | |||
<view v-if="recordList.length == 0" style="background:#fff;height: 100vh"> | |||
@@ -134,7 +127,7 @@ | |||
}, | |||
}; | |||
this.$u.post("/customer/customerManagement", parames).then((data) => { | |||
var list = data.results || []; | |||
var list = data.records || []; | |||
list.forEach((item) => { | |||
if (item.demand.cusSemanticWordsList != null) { | |||
@@ -146,7 +139,7 @@ | |||
} | |||
}); | |||
this.recordList = [...this.recordList, ...list]; | |||
this.totalRecord = data.totalRecord; | |||
this.totalRecord = data.total; | |||
}); | |||
}, | |||
}, | |||
@@ -228,27 +221,31 @@ | |||
padding: 0 0 20rpx 0; | |||
.content-tips { | |||
margin-top: 20rpx; | |||
background: #fff; | |||
// box-sizing: border-box; | |||
// margin-bottom: 20rpx; | |||
overflow: hidden; | |||
.content-first { | |||
padding: 19rpx 30rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
box-sizing: border-box; | |||
// border-top: 1px solid #E0E0E0; | |||
font-weight: 400; | |||
color: #292929; | |||
height: 90rpx; | |||
font-size: 30rpx; | |||
line-height: 30rpx; | |||
.left { | |||
display: flex; | |||
align-items: center; | |||
.img { | |||
// margin-top: 19rpx; | |||
width: 52rpx; | |||
height: 52rpx; | |||
border: 1px solid #e0e0e0; | |||
border: 1px solid #E0E0E0; | |||
border-radius: 50%; | |||
text-align: center; | |||
line-height: 50rpx; | |||
@@ -256,6 +253,8 @@ | |||
} | |||
.test { | |||
margin-top: 11rpx; | |||
// margin-left: 20rpx; | |||
font-weight: 500; | |||
color: #333333; | |||
} | |||
@@ -263,22 +262,27 @@ | |||
.right { | |||
display: flex; | |||
align-items: center; | |||
color: #2671e2; | |||
font-size: 30rpx; | |||
.right-img { | |||
margin: 5rpx 0 0 10rpx; | |||
width: 14rpx; | |||
height: 30rpx; | |||
.point { | |||
width: 12rpx; | |||
height: 12rpx; | |||
background: #2B6EFF; | |||
border-radius: 50%; | |||
margin-right: 9rpx; | |||
margin-top: 20rpx; | |||
} | |||
.test { | |||
margin-top: 11rpx; | |||
} | |||
} | |||
} | |||
.content-sec { | |||
border-top: 1px solid #e0e0e0; | |||
border-top: 1px solid #E0E0E0; | |||
padding: 0 30rpx; | |||
padding-bottom: 30rpx; | |||
// height: 270rpx; | |||
position: relative; | |||
.content-sec-lab { | |||
@@ -296,7 +300,7 @@ | |||
.content-sec-tips { | |||
max-width: 160rpx; | |||
height: 46rpx; | |||
background: #f2f2f2; | |||
background: #F2F2F2; | |||
border-radius: 6rpx; | |||
text-align: center; | |||
line-height: 26rpx; | |||
@@ -314,20 +318,22 @@ | |||
.content-sec-num { | |||
position: absolute; | |||
bottom: 25rpx; | |||
right: 30rpx; | |||
padding: 3rpx 12rpx; | |||
background: #f4f8fd; | |||
border-radius: 6rpx; | |||
color: #2671e2; | |||
width: 190rpx; | |||
height: 90rpx; | |||
background: #F4F8FD; | |||
border-radius: 12rpx; | |||
font-weight: 400; | |||
color: #2671E2; | |||
line-height: 45rpx; | |||
bottom: 30rpx; | |||
right: 30rpx; | |||
text-align: center; | |||
} | |||
} | |||
.content-last { | |||
display: flex; | |||
border-top: 1px solid #e0e0e0; | |||
border-top: 1px solid #E0E0E0; | |||
// padding: 0 30rpx; | |||
height: 78rpx; | |||
@@ -338,9 +344,10 @@ | |||
font-weight: 400; | |||
color: #333333; | |||
line-height: 78rpx; | |||
border-right: 1px solid #e0e0e0; | |||
border-right: 1px solid #E0E0E0; | |||
} | |||
} | |||
} | |||
} | |||
</style> |
@@ -72,45 +72,46 @@ | |||
<view class="content-sec"> | |||
<view class="content-sec-lab"> | |||
客户手机:<view class="content-sec-lab1">{{item.phone | phoneText}}</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
负责顾问:<view class="content-sec-lab1">{{item.agentName || ''}}</view> | |||
<view class="content-sec-lab1">手机号码:{{ item.phone || "--" }}</view> | |||
<view class="content-sec-lab1" style="width: 44%">到访次数:{{ item.visitRecord || 0 }}次/{{ | |||
item.mm || 0 | |||
}}min</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
<view class="u-flex" style="flex:1"> | |||
挖掘执行:<view class="content-sec-lab1">{{item.wordFraction||0}}%</view> | |||
</view> | |||
<view class="u-flex" style="flex:1"> | |||
挖掘成功:<view class="content-sec-lab1">{{item.wordFinishFraction||0}}%</view> | |||
<view class="content-sec-lab1"> | |||
挖掘执行/成功:{{ max100(item.wordFraction) }}%/{{ max100(item.wordFinishFraction) }}%</view> | |||
<view class="content-sec-lab1" style="width: 44%"> | |||
客户意向率:{{ `${item.levelFraction||'0'}%` }} | |||
</view> | |||
</view> | |||
<view class="content-sec-lab"> | |||
添加时间:<view class="content-sec-lab1">{{item.createTime | formatTime}}</view> | |||
<view class="content-sec-lab1">所属顾问:{{ item.agentName || "--" }}</view> | |||
<view class="content-sec-lab1" style="width: 44%">客户阶段:{{ item.stageName || "--" }}</view> | |||
</view> | |||
<view class="content-sec-num"> | |||
<view>到访{{item.visitRecord || '--'}}次</view> | |||
<view> | |||
{{item.mm || '0'}}min/{{item.fraction || '0'}}% | |||
</view> | |||
<view class="content-sec-lab"> | |||
<view class="content-sec-lab1">上次到访:{{ item.createTime || "--" }}</view> | |||
</view> | |||
</view> | |||
<template v-if="permissions.commonly2"> | |||
<view class="content-last"> | |||
<!-- <view class="content-last-tab"> | |||
<image src="/static/images/genjin-icon.png" mode="" />添加提醒</view> | |||
<view class="content-last-tab"> | |||
<image src="/static/images/genjin-icon.png" mode="" /> | |||
打电话</view> --> | |||
<view class="content-last"> | |||
<template v-if="permissions.commonly2"> | |||
<view class="content-last-tab" @click.stop="gotoFollowUp(item)"> | |||
<image src="/static/images/genjin-icon.png" mode="" /> | |||
写跟进 | |||
</view> | |||
</view> | |||
</template> | |||
</template> | |||
<template v-if="CHECKAUTHORITY('khgl_bj')"> | |||
<view class="content-last-tab" @click.stop="goedit(item)"> | |||
<image class="icon" src="https://static.quhouse.com/5daebdec0aad4f63a62d3720437034bc.png" | |||
mode="" /> | |||
打标签 | |||
</view> | |||
</template> | |||
</view> | |||
</view> | |||
</view> | |||
<!-- 更多筛选 --> | |||
<u-popup v-model="screenShow" mode="top" height="900"> | |||
@@ -658,6 +659,12 @@ | |||
}, | |||
methods: { | |||
// 跳转编辑 | |||
goedit(data) { | |||
uni.navigateTo({ | |||
url: `/pages/center/consumer/edit?id=${data.id}&projectId=${data.projectId}` | |||
}) | |||
}, | |||
// 获取客户阶段数据 | |||
getCustomPhase() { | |||
this.phaseList = []; | |||
@@ -698,6 +705,17 @@ | |||
} | |||
}) | |||
}, | |||
max100(num) { | |||
if (num > 100) { | |||
return 100 | |||
} else if (!num) { | |||
return 0; | |||
} else { | |||
return num; | |||
} | |||
}, | |||
// 获取销讲业务 | |||
getMarketingBusiness() { | |||
this.$u.get('/customer/marketingBusiness', { | |||
@@ -1408,54 +1426,57 @@ | |||
} | |||
} | |||
.content-sec { | |||
border-top: 1rpx solid #E0E0E0; | |||
padding: 0 28rpx 28rpx; | |||
border-top: 1px solid #e0e0e0; | |||
padding: 0 30rpx; | |||
position: relative; | |||
.content-sec-lab { | |||
margin-top: 28rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
font-size: 30rpx; | |||
font-weight: 400; | |||
color: #333; | |||
color: #666666; | |||
line-height: 42rpx; | |||
.content-sec-lab1 { | |||
color: #333333; | |||
word-break: break-all; | |||
} | |||
.content-sec-tips { | |||
padding: 0 20rpx; | |||
height: 48rpx; | |||
background: #F4F8FD; | |||
border-radius: 6rpx; | |||
max-width: 160rpx; | |||
height: 46rpx; | |||
background: #f2f2f2; | |||
border-radius: 6rpx; | |||
text-align: center; | |||
line-height: 48rpx; | |||
line-height: 26rpx; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
white-space: nowrap; | |||
font-size: 26rpx; | |||
font-weight: 400; | |||
margin-right: 12rpx; | |||
color: #333333; | |||
margin-right: 20rpx; | |||
box-sizing: border-box; | |||
font-size: 28rpx; | |||
font-family: PingFangSC-Regular, PingFang SC; | |||
color: #2671E2; | |||
padding: 10rpx 24rpx; | |||
} | |||
} | |||
.content-sec-num { | |||
position: absolute; | |||
width: 196rpx; | |||
height: 112rpx; | |||
border-radius: 8rpx; | |||
top: 28rpx; | |||
width: 200rpx; | |||
height: 90rpx; | |||
background: #f4f8fd; | |||
border-radius: 12rpx; | |||
font-weight: 400; | |||
color: #2671e2; | |||
line-height: 45rpx; | |||
bottom: 30rpx; | |||
right: 30rpx; | |||
padding: 16rpx 20rpx; | |||
background: #F4F8FD; | |||
color: #2671E2; | |||
line-height: 40rpx; | |||
text-align: center; | |||
} | |||
} | |||
@@ -1488,6 +1509,13 @@ | |||
height: 40rpx; | |||
margin-right: 12rpx; | |||
} | |||
.icon { | |||
width: 40rpx; | |||
height: 40rpx; | |||
margin-right: 12rpx; | |||
} | |||
} | |||
} | |||
@@ -3,6 +3,10 @@ | |||
<view class="top" style="margin-top: 30rpx;"> | |||
<view class="title"> | |||
<view class="call_record_time">{{date}}</view> | |||
<view class="hash" @click="delTheFullText" v-if="CHECKAUTHORITY('ccal')"> | |||
删除案例 | |||
</view> | |||
<view class="hash" @click="gotoChat" v-if="commentList.length != 0"> | |||
查看全部评论 | |||
</view> | |||
@@ -215,7 +219,7 @@ | |||
isPageHide: false, // 是否息屏 | |||
duration: '', // 播放时长 | |||
marketingId: 0, // 当前选中的id | |||
nowPlaying: 0, // 当前播放位置 | |||
stepPosition: 0, // 需要跳转的播放位置 | |||
}; | |||
@@ -287,6 +291,46 @@ | |||
}, | |||
methods: { | |||
// 删除优秀案例 | |||
delTheFullText() { | |||
uni.showModal({ | |||
title: '提示', | |||
content: `确认删除该案例吗?`, | |||
showCancel: true, | |||
cancelText: '取消', | |||
confirmText: '确认删除', | |||
confirmColor: "#FA3534", | |||
success: res => { | |||
console.log(res) | |||
if (res.confirm) { | |||
this.delATD() | |||
} | |||
} | |||
}) | |||
}, | |||
// 优秀案例删除 | |||
delATD() { | |||
this.$u.get('/addtodigest/delATD', { | |||
carId: this.customerId | |||
}).then(res => { | |||
console.log(res) | |||
// if () | |||
uni.showToast({ | |||
title: '操作成功', | |||
icon: 'none', | |||
duration: 2000 | |||
}); | |||
setTimeout(() => { | |||
uni.navigateBack() | |||
}, 2000) | |||
}).catch(e => { | |||
uni.showToast({ | |||
title: e.data.message, | |||
icon: 'none', | |||
duration: 2000 | |||
}); | |||
}) | |||
}, | |||
borderColor(index) { | |||
let obj = { | |||
color: '', | |||
@@ -834,7 +878,7 @@ | |||
this.$zaudio.setAudio(data) | |||
//渲染第一首音频 | |||
this.$zaudio.setRender(0) | |||
if (this.stepPosition != 0) { | |||
setTimeout(() => { | |||
this.stepPlay(this.stepPosition) | |||
@@ -253,7 +253,7 @@ | |||
height: 48rpx; | |||
line-height: 48rpx; | |||
padding: 23rpx 23rpx 23rpx 78rpx; | |||
font-size: 28rpx; | |||
font-size: 32rpx !important; | |||
font-family: PingFangSC-Regular, PingFang SC; | |||
color: #000; | |||
} | |||