|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418 |
- <template>
- <view class="box">
- <view class="content">
- <view class="content-tips" @click="goedit()">
- <view class="content-first">
- <view class="left">
- <view v-if="customerInfo.level.length==0"></view>
- <view class="img" v-else-if="customerInfo.level==1">A</view>
- <view class="img" v-else-if="customerInfo.level==2">B</view>
- <view class="img" v-else-if="customerInfo.level==3">C</view>
- <view class="img" v-else-if="customerInfo.level==4">D</view>
- <view class="test">{{customerInfo.name || '--'}}</view>
- <view class="edit" v-if="isEdit">
- <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&&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.wordFraction || 0 }}%</view
- >
- <view class="content-sec-lab1" @click.stop="tipupon" style="width: 44%"
- >画像标签:<text class="look">{{
- customerInfo.demand.cusSemanticWordsList?customerInfo.demand.cusSemanticWordsList.length:0}}</text><text class="look1" >查看</text></view
- >
- </view>
- <view class="content-sec-lab">
- <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>
- <view class="content-last">
- <view class="content-last-con">
- 备注:{{customerInfo.remarks ? customerInfo.remarks : "暂无"}}
- </view>
- </view>
- </view>
- </view>
-
- <view class="tabchange">
- <view class="tab">
- <view class="tabbox">
- <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">接待记录</view>
- </view>
- <view class="tabbox">
- <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">跟进记录</view>
- </view>
- <view class="tabbox">
- <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">销讲执行率</view>
- </view>
- <view class="tabbox">
- <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">挖掘执行率</view>
- </view>
- </view>
-
- <!-- 接待记录 -->
- <view class="tabactive1" v-if="activeTotal==0" style="min-height: 800rpx;">
- <view v-if="Thevisitingrecords.length==0"
- style="width: 100%;height: 100%;display: flex;align-items: center;">
- <view style="width: 100%;padding-top: 60rpx;">
- <view style="width: 100%;text-align: center;">
- <image style="width: 220rpx;height: 200rpx;"
- src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
- </view>
- <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
- </view>
- </view>
- <view v-if="Thevisitingrecords.length!=0" class="content-tips"
- v-for="(item,index) in Thevisitingrecords" :key="index" @click="tapThevisiting(item)">
- <view class="content-first">
- <view class="left">
- <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="name">{{item.agentName || '--'}}</view>
- <view class="status" v-if="item.replaceReception==1">代接待</view>
- </view>
- <!-- <view class="right">
- <view class="point"></view>
- <view class="">优秀案例</view>
- </view> -->
- </view>
-
- <view class="content-sec">
- <view class="left">
- <view class="cus" style="line-height: 46rpx;">客户:{{item.name || '--'}} |</view>
- <view style="line-height: 46rpx;" class="arriveNum">{{item.visitRecord || '0'}}次到访</view>
- </view>
- <view class="right">{{item.fraction || '0'}}%</view>
- </view>
-
- <view class="content-last">{{item.createTime}} | {{item.mm || 0}}min</view>
- </view>
- </view>
-
- <!-- 跟进记录 -->
- <view class="tabactive2" v-if="activeTotal==1" style="min-height: 600rpx;">
- <view v-if="fllowList.length==0"
- style="width: 100%;height:600rpx;display: flex;align-items: center;background-color: #FFFFFF;">
- <view style="width: 100%;padding-top: 60rpx;">
- <view style="width: 100%;text-align: center;">
- <image style="width: 220rpx;height: 200rpx;"
- src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
- </view>
- <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
- </view>
- </view>
- <view v-if="fllowList.length!=0" class="tab2-tips" v-for="(item,index) in fllowList" :key="index">
- <view class="tab2-first">
- <view class="tab2-first-1">
- <view class="tab2-first-left">
- <view class="img">{{item.agentName.slice(0,1) || '--'}}</view>
- <view class="name">{{item.agentName || '||'}}</view>
- </view>
- <view class="tab2-first-right">{{item.createTime}}</view>
- </view>
- <view class="tab2-first-foot">跟进内容:{{item.remarks || '暂无'}}</view>
- </view>
- <!-- <view class="tab2-sec">
- <view class="tab-sec-edit">编辑记录</view>
- </view> -->
- </view>
- </view>
-
- <!-- 销讲执行率 -->
- <view class="ratecenter" v-if="activeTotal==2">
- <view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
- <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
- <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
- </view>
- </view>
- <view v-if="ratelist.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
- <view style="width: 100%;padding-top: 60rpx;">
- <view style="width: 100%;text-align: center;">
- <image style="width: 220rpx;height: 200rpx;"
- src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
- </view>
- <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
- </view>
- </view>
-
- <view class="Level-box" v-if="ratelist.length!=0" v-for="(item,index) in ratelist" :key="index">
- <view class="Level1che" @click="changeshow(item,1)">
- <view class="title1">{{item.name}}</view>
- <view class="leve1-jindu">
- <view class="jindutiao">
- <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
- <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
- </view>
- </view>
- <view class="jiantobox">
- <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
- <image v-else class="arrow" src="/static/images/up.png" mode="" />
- </view>
- </view>
- <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
- <view class="Level2che" @click="changeshow2(subitem,1)">
- <view class="title1 u-line-1">{{subitem.name}}</view>
- <view class="leve1-jindu">
- <view class="zhixing" v-if="!subitem.selected">已执行</view>
- <view class="zhixing2" v-else>未执行</view>
- </view>
- <view class="jiantobox">
- <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
- mode="" />
- <image v-else class="arrow" src="/static/images/up.png" mode="" />
- </view>
- </view>
- <view class="hsnrtest" v-if="subitem.show">话术内容</view>
- <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show"
- v-for="(che,inc) in subitem.children" :key='inc'>
- <!-- che.selected==0 为本次接待-蓝色 ,viewFlag==1 为2次接待-黄色 未执行-灰色-->
- <view class="title1" :style="che.viewFlag==1?'color:#FF8C13':che.selected!=0?'color: #666':''">{{inc+1}}.{{che.name}}</view>
- <view class="jiantobox">
- <image v-if="che.selected==0&&che.viewFlag != 1" class="arrow" src="/static/images/rate-checked.png"
- mode="" />
- <image v-else-if="che.selected==0&&che.viewFlag == 1" class="arrow" src="/static/images/checked-yellow.png"
- mode="" />
- <image v-else class="arrow" src="/static/images/rate-nocheck.png" mode="" />
- </view>
- </view>
- <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
- </view>
- </view>
- </view>
- <!-- 需求挖掘执行率 -->
- <view class="xuqiu" v-if="activeTotal==3">
- <view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;background: #fff;">
- <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
- <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
- </view>
- </view>
- <!-- 暂无数据 -->
- <view v-if="KeyWordsfractionList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
- <view style="width: 100%;padding-top: 60rpx;">
- <view style="width: 100%;text-align: center;">
- <image style="width: 220rpx;height: 200rpx;"
- src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
- </view>
- <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
- </view>
- </view>
- <!-- 挖掘执行话术展示 -->
- <view class="Level-box" v-else v-for="(item,index) in KeyWordsfractionList" :key="index">
- <view class="Level1che" @click="changeshowlevel1(item,1)">
- <view class="title1">{{item.name}}</view>
- <view class="leve1-jindu">
- <view class="jindutiao">
- <view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}"></view>
- <view class="huanxing" v-else style="width: 0"></view>
- <view class="text">{{item.selected==0?item.fraction:0}}%</view>
- </view>
- </view>
- <view class="jiantobox">
- <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
- <image v-else class="arrow" src="/static/images/up.png" mode="" />
- </view>
- </view>
- <!-- 话术在一级下 -->
- <view v-if="item.showLevel==1">
- <view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
- <view class="hsnrtest">话术内容</view>
- <view class="Level3che"
- v-for="(che,inc) in item.questionList" :key='inc'>
- <view class="title1" :style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
- <view class="jiantobox">
- <!-- 0本次选中 1未选中 2上次选中 -->
- <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
- mode="" />
- <image v-else-if="che.selected==2" class="arrow" src="/static/images/checked-yellow.png"
- mode="" />
- <image v-else class="arrow" src="/static/images/rate-nocheck.png"
- mode="" />
- </view>
- </view>
- </view>
- </view>
- <!-- 话术在二级下 -->
- <view v-if="item.showLevel==2">
- <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
- <view class="Level2che" @click="changeshow2(subitem,1)">
- <view class="title1 u-line-1">{{subitem.name}}</view>
- <view class="leve1-jindu">
- <view class="zhixing" v-if="!subitem.selected">已执行</view>
- <view class="zhixing2" v-else>未执行</view>
- </view>
- <view class="jiantobox">
- <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
- mode="" />
- <image v-else class="arrow" src="/static/images/up.png" mode="" />
- </view>
- </view>
- <view v-if="subitem.show" style="padding: 30rpx 0;">
- <view class="hsnrtest">话术内容</view>
- <view class="Level3che"
- v-for="(che,inc) in subitem.questionList" :key='inc'>
- <view class="title1" :style="che.selected==2?'color:#FF8C13':che.selected==1?'color: #666':''">{{inc+1}}.{{che.question}}</view>
- <view class="jiantobox">
- <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
- mode="" />
- <image v-else-if="che.selected==2" class="arrow" src="/static/images/checked-yellow.png"
- mode="" />
- <image v-else class="arrow" src="/static/images/rate-nocheck.png"
- mode="" />
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- <view class="pon-foot" v-if="buttonisshow">
- <view class="foot-tab" @click="goRemind">添加提醒</view>
- <!-- <view class="foot-tab">拨打电话</view> -->
- <view class="foot-tab" @click="followRecordAdd()">写跟进</view>
- </view>
- <!-- closeable -->
- <u-popup v-model="tipshow" mode="center" mask-close-able width="560rpx" border-radius="14">
- <scroll-view scroll-y="true" style="height: 440rpx;">
- <view style="display: flex; flex-wrap: wrap; padding:20rpx;">
- <view class="upon-sec-tips" v-for="(item,index) in customerInfo.demand.cusSemanticWordsList"
- :key="index">
- {{item.name}}
- </view>
- </view>
- </scroll-view>
- </u-popup>
- <!-- 加载组件 -->
- <loading v-model="LOADING"></loading>
- </view>
- </template>
-
- <script>
- import loading from "@/components/loading/index.vue"
- export default {
- components: {
- loading
- },
- data() {
- return {
- tabactive: 0,
- activeTotal: 0,
- customerId: '',
- tipshow: false,
- customerInfo: {
- name: '',
- createTime: '',
- agentName: ''
- },
- Thevisitingrecords: [],
- totalRate: [],
- ratelist: [],
- fllowList: [],
- KeyWordsfractionList: [],//需求挖掘话术list
- userInfo: {},
- buttonisshow: false
- }
- },
- computed: {
- isEdit() {
- let arr = uni.getStorageSync('weapp_session_Menu_data')
- return arr.findIndex(item => {
- return item.name == '客户编辑'
- }) == -1 ? false : true
- }
- },
- onLoad(options) {
- this.LOADING = true
- this.customerId = options.id;
- },
- onShow() {
- this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
- if (this.userInfo.dataCode == 6) {
- this.buttonisshow = true;
- } else {
- this.buttonisshow = false
- }
- this.getCustomerInfo()
- this.tabtimetap(0)
- },
- methods: {
- changeshowlevel1(item,type){
- console.log(item)
- item.show = !item.show
- },
- // 客户详情需求挖掘话术
- getfindKeyWordsBycusId() {
- this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
- // console.log(res)
- if(res.length){
- res.forEach(item=>{
- item.show = false
- item.children.forEach(obj=>{
- obj.show = false
- if(obj.questionList.length){
- obj.questionList.forEach(subobj=>{
- subobj.show =false
- })
- }
- })
- if(item.questionList.length){
- item.questionList.forEach(obj=>{
- obj.show =false
- })
- }
- })
- this.KeyWordsfractionList = res
- }else{
- this.KeyWordsfractionList = []
- }
- })
- },
- // 获取到访记录
- getVisitList() {
- this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId, ).then(res => {
- this.Thevisitingrecords = res
- })
- },
- // 获取客户信息
- getCustomerInfo() {
- const that = this;
- this.$u.get("/customer/findById", {
- id: this.customerId
- }).then(res => {
- this.LOADING = false
- if (res.fraction == null) {
- res.fraction = '0';
- }
- if (res.demand.cusSemanticWordsList != null) {
- res.demand.cusSemanticWords = res.demand.cusSemanticWordsList
- res.demand.cusSemanticWordsList.forEach(che => {
- if (che.isInterval == 0) {
- che.name = che.name + che.unit + '-' + che.endName + che.unit;
- }
- })
- // res.demand.cusSemanticWordsList = res.demand.cusSemanticWordsList.slice(0, 3)
- }
-
- // console.log(res.demand.cusSemanticWords,'关键字')
- this.customerInfo = res;
- }).catch(e => {
- this.LOADING = false
- })
- },
- tabtimetap(idx) {
- this.activeTotal = idx
- if (idx == 0) {
- this.getVisitList()
- } else if (idx == 1) {
- this.getFollowList()
- } else {
- this.getRatelist()
- this.getfindKeyWordsBycusId()
- }
- },
- tapThevisiting(item) {
- uni.showLoading({
- title: '加载中',
- mask: true
- });
- if (item.yon != 0) {
- setTimeout(function() {
- uni.hideLoading();
- }, 2000);
- uni.showToast({
- icon: 'none',
- title: '暂无录音',
- duration: 2000
- });
- return
- } else {
- const parames = {
- pageNum: 1,
- pageSize: 100,
- query: {
- customerId: item.id,
- }
- }
- var item = {
- bg: 0,
- customerId: item.id,
- id: ''
- }
- uni.setStorageSync("entrance", 1); //写入缓存
- uni.setStorageSync("searchobj", item); //写入缓存
- this.$u.post("/corpus/findByPage", parames).then(res => {
- setTimeout(function() {
- uni.hideLoading();
- }, 2000);
- if (res == null) {
- uni.showToast({
- icon: "none",
- title: "暂无音频"
- })
- return
- }
- if (res[0].merge == 0) {
- let newobj = res[0];
- uni.navigateTo({
- url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=2&wordFraction=${this.customerInfo.wordFraction}`
- })
- } else {
- let newobj = res[0];
- uni.navigateTo({
- url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=1&wordFraction=${this.customerInfo.wordFraction}`
- })
- }
- })
- }
- },
- // 获取跟进记录
- getFollowList() {
- this.fllowList = [];
- this.$u.post("/customer/getCusStage", {
- customerId: this.customerId
- }).then(res => {
- res.forEach(item => {
- item.agentName = this.customerInfo.agentName
- })
-
-
- this.fllowList = res;
- })
- },
- // 新增跟进
- followRecordAdd() {
- uni.navigateTo({
- url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}`
- })
- },
- // 去编辑
- goedit() {
- // console.log('去编辑')
- if (!this.isEdit) return
- uni.navigateTo({
- url: `/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}`
- })
- },
- // 去添加提醒
- goRemind() {
- uni.navigateTo({
- url: `/pages/center/consumer/remind?str=${this.customerInfo.name+'/'+this.customerInfo.phone}&customerId=${this.customerId}`
- })
- },
- //评分点击
- clickaudeopal(item) {
- if (item.selected == 0 && item.viewFlag !=1) {
- uni.navigateTo({
- url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item.marketingId + '&type=0'
- })
- }
- },
- tipupon() {
- if (!this.customerInfo.demand.cusSemanticWordsList) return
- this.tipshow = true
- },
- changeshow(item, type) {
- item.show = !item.show
- },
- changeshow2(item, type) {
- item.show = !item.show
- },
- // 获取评分
- getRatelist() {
- this.$u.get("/customer/findzkMByCusId", {
- cusId: this.customerId
- }).then(res => {
- if (res.length) {
- let level1 = []
- res.forEach(item => {
- if (item.pid == 0) {
- level1.push({
- id: item.marketingId,
- rate: item.fraction,
- name: item.name,
- sort: item.sort,
- viewFlag: item.viewFlag,
- show: false,
- ratepercent: 0,
- children: []
- })
- }
- })
- // this.totalRate = level2rate;
- res.forEach(subitem => {
- let subitempid = subitem.pid
- level1.forEach(item => {
- if (subitempid == item.id) {
- if (subitem.selected == 0) {
- item.ratepercent += subitem.fraction
- }
- item.children.push({
- id: subitem.id,
- rate: subitem.fraction,
- selected: subitem.selected,
- name: subitem.name,
- viewFlag: subitem.viewFlag,
- show: false,
- marketingId: subitem.marketingId,
- children: []
- })
- }
- })
- })
- res.forEach(subitem => {
- let subitempid = subitem.pid
- level1.forEach(chen => {
- chen.children.forEach(zxc => {
- if (subitempid == zxc.marketingId) {
- zxc.children.push({
- id: subitem.id,
- rate: subitem.fraction,
- selected: subitem.selected,
- viewFlag: subitem.viewFlag,
- name: subitem.name,
- marketingId: subitem.marketingId,
- })
- }
- })
- })
- })
- level1[0].show = true;
- level1[0].children[0].show = true;
- this.ratelist = level1
- }
- })
- },
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .rotatearrow {
- transform: rotate(270deg);
- }
-
- // 评分
- .rate-box {
- padding: 10rpx 20rpx;
- background-color: #FFFFFF;
-
- .date {
- width: 300rpx;
- height: 33rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #333333;
- line-height: 33rpx;
- letter-spacing: 1rpx;
- margin-bottom: 8rpx;
- }
-
- .title {
- width: 100%;
- height: 42rpx;
- font-size: 30rpx;
- font-weight: 500;
- color: #333333;
- line-height: 42rpx;
- letter-spacing: 2rpx;
- margin-bottom: 20rpx;
- }
-
- .level1 {
- display: flex;
- align-items: center;
-
- .level-name {
- width: 104rpx;
- height: 33rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #333333;
- line-height: 33rpx;
- letter-spacing: 1rpx;
- margin-right: 10rpx;
- }
-
- .level-progress {
- flex: 1;
- border-radius: 11rpx;
- height: 21rpx;
- background-color: #BEE4FF;
- position: relative;
-
- .color {
- width: 0;
- position: absolute;
- top: 0;
- left: 0;
- height: 21rpx;
- border-radius: 11rpx 0 0 11rpx;
- background-color: #008EF2;
- }
- }
-
- .level-rate {
- width: 65rpx;
- height: 33rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #333333;
- line-height: 33rpx;
- letter-spacing: 1rpx;
- margin: 0 20rpx 0 15rpx;
- }
-
- .arrow {
- width: 37rpx;
- height: 21rpx;
- padding: 5rpx 20rpx;
- }
-
- .rotatearrow {
- transform: rotate(270deg);
- }
- }
-
- .level1-subbox {
- display: flex;
- margin-top: 20rpx;
- flex-wrap: wrap;
-
- .sub-name {
- width: 50%;
- display: flex;
- margin-bottom: 18rpx;
-
- .subitem-name {
- width: 104rpx;
- height: 33rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #999999;
- line-height: 33rpx;
- letter-spacing: 1rpx;
- margin-right: 12rpx;
- }
-
- .checkimg {
- width: 27rpx;
- height: 27rpx;
- }
-
- }
- }
- }
-
- .Level-box {
- padding-bottom: 2rpx;
-
- .hhhbox {
- width: 100%;
- padding-left: 30rpx;
- padding-right: 30rpx;
- border-bottom: 1rpx solid #E0E0E0;
- background: #FFFFFF;
-
- // padding-bottom: 32rpx;
- .hsnrtest {
- height: 24rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #666666;
- line-height: 24rpx;
- }
-
- .Level3che {
- width: 100%;
- height: 28rpx;
- display: flex;
- line-height: 28rpx;
- align-items: center;
- margin-top: 30rpx;
-
- .title1 {
- flex: 1;
- font-size: 28rpx;
- color: #2671E2;
- font-weight: 400;
- }
-
- .jiantobox {
- width: 30rpx;
- height: 30rpx;
- display: flex;
- align-items: center;
-
- .arrow {
- width: 28rpx;
- height: 28rpx;
- }
- }
- }
- }
-
- .Level2che {
- width: 100%;
- height: 88rpx;
- display: flex;
- line-height: 88rpx;
- align-items: center;
-
- .title1 {
- flex: 3;
- font-size: 28rpx;
- color: #333333;
- font-weight: 400;
- }
-
- .leve1-jindu {
- flex: 3;
- display: flex;
- justify-content: center;
- align-items: center;
-
- .zhixing {
- width: 108rpx;
- height: 44rpx;
- background: #2671E2;
- border-radius: 4rpx;
- font-size: 28rpx;
- text-align: center;
- line-height: 44rpx;
- color: #FFFFFF;
- }
-
- .zhixing2 {
- width: 108rpx;
- height: 44rpx;
- background: #F8F8F8;
- border-radius: 4rpx;
- font-size: 28rpx;
- text-align: center;
- line-height: 44rpx;
- color: #999999;
- }
- }
-
- .jiantobox {
- width: 30rpx;
- height: 30rpx;
- display: flex;
- align-items: center;
-
- .arrow {
- width: 30rpx;
- height: 18rpx;
- }
- }
- }
-
- .Level1che {
- width: 100%;
- height: 94rpx;
- background: #F5F5F5;
- display: flex;
- line-height: 94rpx;
- align-items: center;
- padding-left: 30rpx;
- padding-right: 30rpx;
-
- .title1 {
- flex: 2;
- font-size: 30rpx;
- color: #333333;
- font-weight: 400;
- }
-
- .leve1-jindu {
- flex: 3;
-
- .jindutiao {
- width: 96%;
- height: 28rpx;
- background: #D5EEE2;
- line-height: 28rpx;
- border-radius: 14rpx;
- position: relative;
-
- .huanxing {
- height: 100%;
- background: #4FC78F;
- border-radius: 14rpx;
- }
-
- .text {
- position: absolute;
- top: 0rpx;
- right: 0rpx;
- font-size: 28rpx;
- font-weight: 400;
- color: #333333;
- }
- }
- }
-
- .jiantobox {
- width: 30rpx;
- height: 30rpx;
- display: flex;
- align-items: center;
-
- .arrow {
- width: 30rpx;
- height: 18rpx;
- }
- }
- }
- }
-
-
-
- .cccccc {
- text-align: center;
- height: 140rpx;
- line-height: 140rpx;
- font-size: 30rpx;
- }
-
- .ratecenter {
- background-color: #FFFFFF;
- padding-bottom: 30rpx;
- width: 100%;
- .my-tab{
- padding: 20rpx 0;
- display: flex;
- justify-content: space-around;
- align-items: center;
- border-bottom: 1px solid #E0E0E0;
- .tab-item{
- padding: 0 30rpx;
- height: 56rpx;
- font-size: 28rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #666666;
- line-height: 56rpx;
- text-shadow: 0px 1px 0px #E0E0E0;
- }
- .tabactive{
- height: 56rpx;
- background: rgba(38, 113, 226, 0.1);
- box-shadow: 0px 1px 0px 0px #E0E0E0;
- border-radius: 28rpx;
- font-weight: 600;
- color: #2671E2;
- }
-
- }
-
- .ratetetle {
- padding: 30rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- padding-bottom: 6rpx;
- }
-
- .rateyuanbox {
- width: 100%;
- height: 210rpx;
- padding-bottom: 30rpx;
- border-bottom: 1rpx solid #E0E0E0;
- display: flex;
- padding-left: 80rpx;
- padding-right: 80rpx;
-
- .rateyuanboxzuo {
- width: 30%;
- height: 100%;
- }
-
- .rateyuanboxyou {
- width: 40%;
- height: 100%;
- }
-
- .boxzuoview {
- width: 100%;
- height: 140rpx;
- }
- }
- }
-
- .box {
- width: 100%;
- height: 100%;
- background: #F8F8F8;
- }
-
- .tab {
- height: 88rpx;
- // border-bottom: 1px solid #E0E0E0;
- background: #FFFFFF;
- display: flex;
- align-items: center;
-
- .tabbox {
- flex: 1;
- height: 100%;
- text-align: center;
- line-height: 92rpx;
- color: #666666;
- font-size: 28rpx;
- display: flex;
- justify-content: center;
-
- .activecllasscet {
- border-bottom: 2px solid #2671E2;
- color: #2671E2;
- font-weight: 600;
- }
- }
- }
-
- .content {
- // height: 1000rpx;/
- overflow: hidden;
- border-top: 1px solid #E0E0E0;
-
- .content-tips {
- background: #fff;
- // box-sizing: border-box;
- margin-bottom: 20rpx;
- overflow: hidden;
-
- .content-first {
- padding: 19rpx 30rpx;
- display: flex;
- justify-content: space-between;
- box-sizing: border-box;
- font-weight: 400;
- color: #292929;
- height: 90rpx;
- font-size: 30rpx;
- line-height: 30rpx;
-
- .left {
- display: flex;
-
- .img {
- width: 52rpx;
- height: 52rpx;
- border-radius: 50%;
- text-align: center;
- line-height: 50rpx;
- margin-right: 20rpx;
- color: #fff;
- font-size: 30rpx;
- background: #9f61c8;
- }
-
- .test {
- margin-top: 11rpx;
- font-weight: 500;
- color: #333333;
- }
-
- .edit {
- height: 30rpx;
- width: 30rpx;
- margin-left: 30rpx;
- margin-top: 11rpx;
-
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
-
- .right {
- display: flex;
- .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: 28rpx;
- display: flex;
- justify-content: space-between;
- font-size: 30rpx;
- font-weight: 400;
- 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: 120rpx;
- height: 46rpx;
- background: #F2F2F2;
- border-radius: 6rpx;
- text-align: center;
- line-height: 26rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: 26rpx;
- font-weight: 400;
- color: #333333;
- margin-right: 20rpx;
- box-sizing: border-box;
- padding: 10rpx 24rpx;
- }
- }
-
- .content-sec-num {
- position: absolute;
- width: 200rpx;
- height: 90rpx;
- background: #F4F8FD;
- border-radius: 12rpx;
- font-weight: 400;
- color: #2671E2;
- line-height: 45rpx;
- bottom: 100rpx;
- right: 30rpx;
- text-align: center;
- }
- }
-
- .content-last {
- padding: 30rpx;
-
- .content-last-con {
- width: 690rpx;
- min-height: 108rpx;
- background: #F8F8F8;
- border-radius: 8rpx;
- padding: 14rpx 20rpx;
- font-size: 28rpx;
- font-weight: 400;
- color: #333333;
- line-height: 40rpx;
- }
- }
-
- }
- }
-
- .tabchange {
- overflow: hidden;
-
- .tabactive1 {
- padding-bottom: 100rpx;
-
- .content-tips {
- background: #fff;
- padding: 0 30rpx;
- box-sizing: border-box;
- overflow: hidden;
- margin-bottom: 20rpx;
-
- .content-first {
- margin-top: 19rpx;
- display: flex;
- justify-content: space-between;
-
- .left {
- display: flex;
-
- .img {
- width: 52rpx;
- height: 52rpx;
- background: #FFFFFF;
- border: 1px solid #C9C9C9;
- border-radius: 50%;
- text-align: center;
- line-height: 52rpx;
- margin-right: 20rpx;
- }
-
- .name {
- font-weight: 600;
- color: #333333;
- // margin-left: 20rpx;
- margin-top: 11rpx;
- }
-
- .status {
- width: 110rpx;
- height: 42rpx;
- background: #FFF9F5;
- border-radius: 4rpx;
- font-size: 26rpx;
- font-weight: 400;
- color: #EC8D49;
- line-height: 42rpx;
- text-align: center;
- margin-left: 19rpx;
- margin-top: 11rpx;
- }
- }
-
- .right {
- display: flex;
- margin-top: 11rpx;
-
- .point {
- width: 12rpx;
- height: 12rpx;
- background: #2B6EFF;
- border-radius: 50%;
- margin-right: 9rpx;
- margin-top: 16rpx;
-
- }
- }
- }
-
-
- .content-sec {
- display: flex;
- justify-content: space-between;
- margin-top: 19rpx;
-
- .left {
- display: flex;
-
- .cus {
- font-size: 30rpx;
- font-weight: 400;
- color: #666666;
- line-height: 30rpx;
- }
-
- .arriveNum {
- font-size: 30rpx;
- font-weight: 400;
- line-height: 30rpx;
- margin-left: 10rpx;
- }
- }
-
- .right {
- width: 192rpx;
- height: 46rpx;
- background: #F4F8FD;
- border-radius: 6rpx;
- text-align: center;
- line-height: 46rpx;
- font-weight: 400;
- color: #2671E2;
- }
- }
-
- .content-last {
- margin: 30rpx 0;
- font-size: 30rpx;
- font-weight: 400;
- color: #666666;
- line-height: 30rpx;
- }
-
- }
- }
-
- .tabactive2 {
- .tab2-tips {
- background: #fff;
- // height: 270rpx;
- overflow: auto;
- margin-bottom: 20rpx;
-
- .tab2-first {
- // height: 150rpx;
- border-bottom: 1px solid #E0E0E0;
- padding: 0 30rpx;
- margin-top: 19rpx;
- box-sizing: border-box;
-
- .tab2-first-1 {
- display: flex;
- justify-content: space-between;
-
- // height: 75rpx;
- .tab2-first-left {
- display: flex;
-
- .img {
- width: 52rpx;
- height: 52rpx;
- background: #FFFFFF;
- border: 1px solid #C9C9C9;
- border-radius: 50%;
- text-align: center;
- line-height: 52rpx;
- }
-
- .name {
- font-weight: 600;
- color: #333333;
- margin-left: 20rpx;
- margin-top: 11rpx;
- }
- }
-
- .tab2-first-right {
- font-size: 30rpx;
- font-weight: 400;
- color: #666666;
- margin-top: 11rpx;
- }
- }
-
- .tab2-first-foot {
- margin-top: 19rpx;
- margin-bottom: 30rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #666666;
- line-height: 30rpx;
- }
- }
-
- .tab2-sec {
- height: 120rpx;
- padding: 30rpx;
- float: right;
-
- .tab-sec-edit {
- width: 156rpx;
- height: 60rpx;
- background: #FFFFFF;
- border-radius: 4px;
- border: 1px solid #2671E2;
- text-align: center;
- line-height: 60rpx;
- font-weight: 400;
- color: #2671E2;
- }
- }
- }
- }
- }
-
- .pon-foot {
- position: sticky;
- bottom: 0;
- width: 750rpx;
- height: 100rpx;
- background: #FFFFFF;
- box-shadow: 0px -2rpx 8rpx 0rpx rgba(224, 224, 224, 0.5);
- display: flex;
- justify-content: space-around;
- align-items: center;
- // padding-top: 24rpx;
- box-sizing: border-box;
-
- // padding: ;
- .foot-tab {
- text-align: center;
- width: 270rpx;
- height: 70rpx;
- line-height: 70rpx;
- background: #2671E2;
- box-shadow: 0px -2rpx 8rpx 0px rgba(224, 224, 224, 0.5);
- border-radius: 6rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #FFFFFF;
- }
- }
-
- .upon-sec-tips {
- min-width:96rpx;
- height: 46rpx;
- background: #F2F2F2;
- border-radius: 6rpx;
- text-align: center;
- line-height: 46rpx;
- // overflow: hidden;
- // text-overflow: ellipsis;
- // white-space: nowrap;
- font-size: 26rpx;
- font-weight: 400;
- color: #333333;
- margin: 0 20rpx 20rpx 0;
- padding: 0 10rpx;
- box-sizing: border-box;
- }
-
- .conmsg-msg-lab-img {
- width: 14rpx;
- height: 30rpx;
- margin-top: 6rpx;
- margin-left: auto;
-
- image {
- width: 100%;
- height: 100%;
- }
- }
- </style>
|