You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1437 line
36 KiB

  1. <template>
  2. <view class="box">
  3. <view class="content">
  4. <view class="content-tips" @click="goedit()">
  5. <view class="content-first">
  6. <view class="left">
  7. <view v-if="customerInfo.level.length==0"></view>
  8. <view class="img" v-else-if="customerInfo.level==1">A</view>
  9. <view class="img" v-else-if="customerInfo.level==2">B</view>
  10. <view class="img" v-else-if="customerInfo.level==3">C</view>
  11. <view class="img" v-else-if="customerInfo.level==4">D</view>
  12. <view class="test">{{customerInfo.name || '--'}}</view>
  13. <view class="edit" v-if="isEdit">
  14. <image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image>
  15. </view>
  16. </view>
  17. <!-- <view class="right">
  18. <view class="point"></view>
  19. <view class="test">定金</view>
  20. </view> -->
  21. </view>
  22. <view class="content-sec">
  23. <view class="content-sec-lab">
  24. 手机号码:<view class="content-sec-lab1">
  25. {{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: '--'}}
  26. </view>
  27. </view>
  28. <view class="content-sec-lab" @click.stop="tipupon">
  29. 客户标签:
  30. <text v-if="!customerInfo.demand.cusSemanticWordsList">暂无</text>
  31. <view v-else class="content-sec-tips"
  32. v-for="(che,ind) in customerInfo.demand.cusSemanticWordsList" :key='ind'>{{che.name}}</view>
  33. <view class="conmsg-msg-lab-img" v-if="customerInfo.demand.cusSemanticWordsList.length>0">
  34. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="content-sec-lab">
  38. 顾问姓名:<view class="content-sec-lab1">{{customerInfo.ownerName||'--'}}</view>
  39. </view>
  40. <view class="content-sec-lab">
  41. 需求挖掘:<view class="content-sec-lab1">{{customerInfo.wordFraction||0}}%</view>
  42. </view>
  43. <view class="content-sec-lab">
  44. 添加时间:<view class="content-sec-lab1">{{customerInfo.createTime}}</view>
  45. </view>
  46. <view class="content-sec-num">
  47. <view class="">{{customerInfo.visitRecord || '--'}}次到访</view>
  48. <view class="">{{customerInfo.fraction || '0'}}% | {{customerInfo.mm || '0'}}<text
  49. style="font-size: 24rpx;">min</text></view>
  50. </view>
  51. </view>
  52. <view class="content-last">
  53. <view class="content-last-con">
  54. 备注:{{customerInfo.remarks ? customerInfo.remarks : "暂无"}}
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="tabchange">
  60. <view class="tab">
  61. <view class="tabbox">
  62. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">接待记录</view>
  63. </view>
  64. <view class="tabbox">
  65. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">跟进记录</view>
  66. </view>
  67. <view class="tabbox">
  68. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">执行率</view>
  69. </view>
  70. </view>
  71. <!-- 接待记录 -->
  72. <view class="tabactive1" v-if="activeTotal==0" style="min-height: 800rpx;">
  73. <view v-if="Thevisitingrecords.length==0"
  74. style="width: 100%;height: 100%;display: flex;align-items: center;">
  75. <view style="width: 100%;padding-top: 60rpx;">
  76. <view style="width: 100%;text-align: center;">
  77. <image style="width: 220rpx;height: 200rpx;"
  78. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  79. </view>
  80. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  81. </view>
  82. </view>
  83. <view v-if="Thevisitingrecords.length!=0" class="content-tips"
  84. v-for="(item,index) in Thevisitingrecords" :key="index" @click="tapThevisiting(item)">
  85. <view class="content-first">
  86. <view class="left">
  87. <view v-if="item.level.length==0"></view>
  88. <view class="img" v-else-if="item.level==1">A</view>
  89. <view class="img" v-else-if="item.level==2">B</view>
  90. <view class="img" v-else-if="item.level==3">C</view>
  91. <view class="img" v-else-if="item.level==4">D</view>
  92. <view class="name">{{item.agentName || '--'}}</view>
  93. <view class="status" v-if="item.replaceReception==1">代接待</view>
  94. </view>
  95. <!-- <view class="right">
  96. <view class="point"></view>
  97. <view class="">优秀案例</view>
  98. </view> -->
  99. </view>
  100. <view class="content-sec">
  101. <view class="left">
  102. <view class="cus" style="line-height: 46rpx;">客户:{{item.name || ''}} |</view>
  103. <view style="line-height: 46rpx;" class="arriveNum">{{item.visitRecord || '--'}}次到访</view>
  104. </view>
  105. <view class="right">{{item.fraction || '0'}}%</view>
  106. </view>
  107. <view class="content-last">{{item.createTime}} | {{item.mm || '--'}}min</view>
  108. </view>
  109. </view>
  110. <!-- 跟进记录 -->
  111. <view class="tabactive2" v-if="activeTotal==1" style="min-height: 600rpx;">
  112. <view v-if="fllowList.length==0"
  113. style="width: 100%;height:600rpx;display: flex;align-items: center;background-color: #FFFFFF;">
  114. <view style="width: 100%;padding-top: 60rpx;">
  115. <view style="width: 100%;text-align: center;">
  116. <image style="width: 220rpx;height: 200rpx;"
  117. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  118. </view>
  119. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  120. </view>
  121. </view>
  122. <view v-if="fllowList.length!=0" class="tab2-tips" v-for="(item,index) in fllowList" :key="index">
  123. <view class="tab2-first">
  124. <view class="tab2-first-1">
  125. <view class="tab2-first-left">
  126. <view class="img">{{item.agentName.slice(0,1) || '--'}}</view>
  127. <view class="name">{{item.agentName || '||'}}</view>
  128. </view>
  129. <view class="tab2-first-right">{{item.createTime}}</view>
  130. </view>
  131. <view class="tab2-first-foot">跟进内容:{{item.remarks || '暂无'}}</view>
  132. </view>
  133. <!-- <view class="tab2-sec">
  134. <view class="tab-sec-edit">编辑记录</view>
  135. </view> -->
  136. </view>
  137. </view>
  138. <!-- 评分 -->
  139. <view class="ratecenter" v-if="activeTotal==2">
  140. <view class="my-tab">
  141. <view class="tab-item" :class="tabactive==0?'tabactive':''" @click="tabactive=0">销讲执行率</view>
  142. <view class="tab-item" :class="tabactive==1?'tabactive':''" @click="tabactive=1">需求挖掘执行率</view>
  143. </view>
  144. <view class="xiaojiang" v-if="tabactive==0">
  145. <view class="ratetetle">执行总览</view>
  146. <view class="rateyuanbox">
  147. <view class="rateyuanboxzuo">
  148. <view class="boxzuoview cccccc">{{customerInfo.visitRecord || '--'}}次</view>
  149. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">接待次数</view>
  150. </view>
  151. <view class="rateyuanboxyou">
  152. <view class="boxzuoview" style="width: 100%;display: flex;justify-content: center;">
  153. <u-circle-progress active-color="#4FC78F" width='139' :percent="customerInfo.fraction">
  154. <view style="text-align: center;color: #4FC78F;">{{customerInfo.fraction}}%</view>
  155. </u-circle-progress>
  156. </view>
  157. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">销讲执行率</view>
  158. </view>
  159. <view class="rateyuanboxzuo">
  160. <view class="boxzuoview cccccc">{{customerInfo.mm}}min</view>
  161. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">接待时长</view>
  162. </view>
  163. </view>
  164. <view
  165. style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
  166. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
  167. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
  168. </view>
  169. </view>
  170. <view v-if="ratelist.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  171. <view style="width: 100%;padding-top: 60rpx;">
  172. <view style="width: 100%;text-align: center;">
  173. <image style="width: 220rpx;height: 200rpx;"
  174. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  175. </view>
  176. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  177. </view>
  178. </view>
  179. <view class="Level-box" v-if="ratelist.length!=0" v-for="(item,index) in ratelist" :key="index">
  180. <view class="Level1che" @click="changeshow(item,1)">
  181. <view class="title1">{{item.name}}</view>
  182. <view class="leve1-jindu">
  183. <view class="jindutiao">
  184. <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  185. <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  186. </view>
  187. </view>
  188. <view class="jiantobox">
  189. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  190. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  191. </view>
  192. </view>
  193. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  194. <view class="Level2che" @click="changeshow2(subitem,1)">
  195. <view class="title1 u-line-1">{{subitem.name}}</view>
  196. <view class="leve1-jindu">
  197. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  198. <view class="zhixing2" v-else>未执行</view>
  199. </view>
  200. <view class="jiantobox">
  201. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
  202. mode="" />
  203. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  204. </view>
  205. </view>
  206. <view class="hsnrtest" v-if="subitem.show">话术内容</view>
  207. <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show"
  208. v-for="(che,inc) in subitem.children" :key='inc'>
  209. <view class="title1">{{inc+1}}.{{che.name}}</view>
  210. <view class="jiantobox">
  211. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
  212. mode="" />
  213. <image v-if="che.selected==1" class="arrow" src="/static/images/rate-nocheck.png"
  214. mode="" />
  215. </view>
  216. </view>
  217. <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
  218. </view>
  219. </view>
  220. </view>
  221. <view class="xuqiu" v-if="tabactive==1">
  222. <view class="ratetetle">执行总览</view>
  223. <view class="rateyuanbox">
  224. <view class="rateyuanboxzuo">
  225. <view class="boxzuoview cccccc">{{customerInfo.visitRecord || '--'}}次</view>
  226. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">到访次数</view>
  227. </view>
  228. <view class="rateyuanboxyou">
  229. <view class="boxzuoview" style="width: 100%;display: flex;justify-content: center;">
  230. <u-circle-progress active-color="#4FC78F" width='139' :percent="customerInfo.wordFraction||0">
  231. <view style="text-align: center;color: #4FC78F;">{{customerInfo.wordFraction||0}}%</view>
  232. </u-circle-progress>
  233. </view>
  234. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">需求挖掘执行率</view>
  235. </view>
  236. <view class="rateyuanboxzuo">
  237. <view class="boxzuoview cccccc">{{customerInfo.mm}}min</view>
  238. <view style="color: #333333;font-size: 28rpx;font-weight: 400;text-align: center;">接待时长</view>
  239. </view>
  240. </view>
  241. <view
  242. style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
  243. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
  244. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率
  245. </view>
  246. </view>
  247. <!-- 暂无数据 -->
  248. <view v-if="KeyWordsfractionList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  249. <view style="width: 100%;padding-top: 60rpx;">
  250. <view style="width: 100%;text-align: center;">
  251. <image style="width: 220rpx;height: 200rpx;"
  252. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  253. </view>
  254. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  255. </view>
  256. </view>
  257. <!-- 挖掘执行话术展示 -->
  258. <view class="Level-box" v-else v-for="(item,index) in KeyWordsfractionList" :key="index">
  259. <view class="Level1che" @click="changeshowlevel1(item,1)">
  260. <view class="title1">{{item.name}}</view>
  261. <view class="leve1-jindu">
  262. <view class="jindutiao">
  263. <view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}"></view>
  264. <view class="huanxing" v-else style="width: 0"></view>
  265. <view class="text">{{item.selected==0?item.fraction:0}}%</view>
  266. </view>
  267. </view>
  268. <view class="jiantobox">
  269. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  270. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  271. </view>
  272. </view>
  273. <!-- 话术在一级下 -->
  274. <view v-if="item.showLevel==1">
  275. <view class="hhhbox" v-if="item.show" style="padding: 30rpx;">
  276. <view class="hsnrtest">话术内容</view>
  277. <view class="Level3che"
  278. v-for="(che,inc) in item.questionList" :key='inc'>
  279. <view class="title1">{{inc+1}}.{{che.question}}</view>
  280. <view class="jiantobox">
  281. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
  282. mode="" />
  283. <image v-else class="arrow" src="/static/images/rate-nocheck.png"
  284. mode="" />
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. <!-- 话术在二级下 -->
  290. <view v-if="item.showLevel==2">
  291. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  292. <view class="Level2che" @click="changeshow2(subitem,1)">
  293. <view class="title1 u-line-1">{{subitem.name}}</view>
  294. <view class="leve1-jindu">
  295. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  296. <view class="zhixing2" v-else>未执行</view>
  297. </view>
  298. <view class="jiantobox">
  299. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png"
  300. mode="" />
  301. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  302. </view>
  303. </view>
  304. <view v-if="subitem.show" style="padding: 30rpx 0;">
  305. <view class="hsnrtest">话术内容</view>
  306. <view class="Level3che"
  307. v-for="(che,inc) in subitem.questionList" :key='inc'>
  308. <view class="title1">{{inc+1}}.{{che.question}}</view>
  309. <view class="jiantobox">
  310. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png"
  311. mode="" />
  312. <image v-else class="arrow" src="/static/images/rate-nocheck.png"
  313. mode="" />
  314. </view>
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. </view>
  321. </view>
  322. </view>
  323. <view class="pon-foot" v-if="buttonisshow">
  324. <view class="foot-tab" @click="goRemind">添加提醒</view>
  325. <!-- <view class="foot-tab">拨打电话</view> -->
  326. <view class="foot-tab" @click="followRecordAdd()">写跟进</view>
  327. </view>
  328. <!-- closeable -->
  329. <u-popup v-model="tipshow" mode="center" width="500rpx" height="500rpx" closeable>
  330. <scroll-view scroll-y="true" style="height: 440rpx;">
  331. <view style="margin-top: 60rpx; display: flex; flex-wrap: wrap; padding-left: 20rpx;">
  332. <view class="upon-sec-tips" v-for="(item,index) in customerInfo.demand.cusSemanticWords"
  333. :key="index">
  334. {{item.name}}
  335. </view>
  336. </view>
  337. </scroll-view>
  338. </u-popup>
  339. <!-- 加载组件 -->
  340. <loading v-model="LOADING"></loading>
  341. </view>
  342. </template>
  343. <script>
  344. import loading from "@/components/loading/index.vue"
  345. export default {
  346. components: {
  347. loading
  348. },
  349. data() {
  350. return {
  351. tabactive: 0,
  352. activeTotal: 0,
  353. customerId: '',
  354. tipshow: false,
  355. customerInfo: {
  356. name: '',
  357. createTime: '',
  358. agentName: ''
  359. },
  360. Thevisitingrecords: [],
  361. totalRate: [],
  362. ratelist: [],
  363. fllowList: [],
  364. KeyWordsfractionList: [],//需求挖掘话术list
  365. userInfo: {},
  366. buttonisshow: false
  367. }
  368. },
  369. computed: {
  370. isEdit() {
  371. let arr = uni.getStorageSync('weapp_session_Menu_data')
  372. return arr.findIndex(item => {
  373. return item.name == '客户编辑'
  374. }) == -1 ? false : true
  375. }
  376. },
  377. onLoad(options) {
  378. this.LOADING = true
  379. this.customerId = options.id;
  380. },
  381. onShow() {
  382. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  383. if (this.userInfo.dataCode == 6) {
  384. this.buttonisshow = true;
  385. } else {
  386. this.buttonisshow = false
  387. }
  388. this.getCustomerInfo()
  389. this.tabtimetap(0)
  390. },
  391. methods: {
  392. changeshowlevel1(item,type){
  393. console.log(item)
  394. item.show = !item.show
  395. },
  396. // 客户详情需求挖掘话术
  397. getfindKeyWordsBycusId() {
  398. this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
  399. console.log(res)
  400. if(res.length){
  401. res.forEach(item=>{
  402. item.show = false
  403. item.children.forEach(obj=>{
  404. obj.show = false
  405. if(obj.questionList.length){
  406. obj.questionList.forEach(subobj=>{
  407. subobj.show =false
  408. })
  409. }
  410. })
  411. if(item.questionList.length){
  412. item.questionList.forEach(obj=>{
  413. obj.show =false
  414. })
  415. }
  416. })
  417. this.KeyWordsfractionList = res
  418. }else{
  419. this.KeyWordsfractionList = []
  420. }
  421. })
  422. },
  423. // 获取到访记录
  424. getVisitList() {
  425. this.$u.get("/customer/findByPhoneAndProject?id=" + this.customerId, ).then(res => {
  426. this.Thevisitingrecords = res
  427. })
  428. },
  429. // 获取客户信息
  430. getCustomerInfo() {
  431. const that = this;
  432. this.$u.get("/customer/findById", {
  433. id: this.customerId
  434. }).then(res => {
  435. this.LOADING = false
  436. if (res.fraction == null) {
  437. res.fraction = '0';
  438. }
  439. if (res.demand.cusSemanticWordsList != null) {
  440. res.demand.cusSemanticWords = res.demand.cusSemanticWordsList
  441. res.demand.cusSemanticWordsList.forEach(che => {
  442. if (che.isInterval == 0) {
  443. che.name = che.name + che.unit + '-' + che.endName + che.unit;
  444. }
  445. })
  446. res.demand.cusSemanticWordsList = res.demand.cusSemanticWordsList.slice(0, 3)
  447. }
  448. // console.log(res.demand.cusSemanticWords,'关键字')
  449. this.customerInfo = res;
  450. }).catch(e => {
  451. this.LOADING = false
  452. })
  453. },
  454. tabtimetap(idx) {
  455. this.activeTotal = idx
  456. if (idx == 0) {
  457. this.getVisitList()
  458. } else if (idx == 1) {
  459. this.getFollowList()
  460. } else {
  461. this.getRatelist()
  462. this.getfindKeyWordsBycusId()
  463. }
  464. },
  465. tapThevisiting(item) {
  466. uni.showLoading({
  467. title: '加载中',
  468. mask: true
  469. });
  470. if (item.yon != 0) {
  471. setTimeout(function() {
  472. uni.hideLoading();
  473. }, 2000);
  474. uni.showToast({
  475. icon: 'none',
  476. title: '暂无录音',
  477. duration: 2000
  478. });
  479. return
  480. } else {
  481. const parames = {
  482. pageNum: 1,
  483. pageSize: 100,
  484. query: {
  485. customerId: item.id,
  486. }
  487. }
  488. var item = {
  489. bg: 0,
  490. customerId: item.id,
  491. id: ''
  492. }
  493. uni.setStorageSync("entrance", 1); //写入缓存
  494. uni.setStorageSync("searchobj", item); //写入缓存
  495. this.$u.post("/corpus/findByPage", parames).then(res => {
  496. setTimeout(function() {
  497. uni.hideLoading();
  498. }, 2000);
  499. if (res == null) {
  500. uni.showToast({
  501. icon: "none",
  502. title: "暂无音频"
  503. })
  504. return
  505. }
  506. if (res[0].merge == 0) {
  507. let newobj = res[0];
  508. uni.navigateTo({
  509. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
  510. })
  511. } else {
  512. let newobj = res[0];
  513. uni.navigateTo({
  514. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  515. })
  516. }
  517. })
  518. }
  519. },
  520. // 获取跟进记录
  521. getFollowList() {
  522. this.fllowList = [];
  523. this.$u.post("/customer/getCusStage", {
  524. customerId: this.customerId
  525. }).then(res => {
  526. res.forEach(item => {
  527. item.agentName = this.customerInfo.agentName
  528. })
  529. this.fllowList = res;
  530. })
  531. },
  532. // 新增跟进
  533. followRecordAdd() {
  534. uni.navigateTo({
  535. url: `/pages/center/consumer/newFollowup/newFollowup?id=${this.customerId}`
  536. })
  537. },
  538. // 去编辑
  539. goedit() {
  540. // console.log('去编辑')
  541. if (!this.isEdit) return
  542. uni.navigateTo({
  543. url: `/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}`
  544. })
  545. },
  546. // 去添加提醒
  547. goRemind() {
  548. uni.navigateTo({
  549. url: `/pages/center/consumer/remind?str=${this.customerInfo.name+'/'+this.customerInfo.phone}&customerId=${this.customerId}`
  550. })
  551. },
  552. //评分点击
  553. clickaudeopal(item) {
  554. if (item.selected == 0) {
  555. uni.navigateTo({
  556. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  557. .marketingId + '&type=0'
  558. })
  559. }
  560. },
  561. tipupon() {
  562. if (!this.customerInfo.demand.cusSemanticWordsList) return
  563. this.tipshow = true
  564. },
  565. changeshow(item, type) {
  566. item.show = !item.show
  567. },
  568. changeshow2(item, type) {
  569. item.show = !item.show
  570. },
  571. // 获取评分
  572. getRatelist() {
  573. this.$u.get("/customer/findzkMByCusId", {
  574. cusId: this.customerId
  575. }).then(res => {
  576. if (res.length) {
  577. let level1 = []
  578. res.forEach(item => {
  579. if (item.pid == 0) {
  580. level1.push({
  581. id: item.marketingId,
  582. rate: item.fraction,
  583. name: item.name,
  584. sort: item.sort,
  585. show: false,
  586. ratepercent: 0,
  587. children: []
  588. })
  589. }
  590. })
  591. // this.totalRate = level2rate;
  592. res.forEach(subitem => {
  593. let subitempid = subitem.pid
  594. level1.forEach(item => {
  595. if (subitempid == item.id) {
  596. if (subitem.selected == 0) {
  597. item.ratepercent += subitem.fraction
  598. }
  599. item.children.push({
  600. id: subitem.id,
  601. rate: subitem.fraction,
  602. selected: subitem.selected,
  603. name: subitem.name,
  604. show: false,
  605. marketingId: subitem.marketingId,
  606. children: []
  607. })
  608. }
  609. })
  610. })
  611. res.forEach(subitem => {
  612. let subitempid = subitem.pid
  613. level1.forEach(chen => {
  614. chen.children.forEach(zxc => {
  615. if (subitempid == zxc.marketingId) {
  616. zxc.children.push({
  617. id: subitem.id,
  618. rate: subitem.fraction,
  619. selected: subitem.selected,
  620. name: subitem.name,
  621. marketingId: subitem.marketingId,
  622. })
  623. }
  624. })
  625. })
  626. })
  627. level1[0].show = true;
  628. level1[0].children[0].show = true;
  629. this.ratelist = level1
  630. }
  631. })
  632. },
  633. }
  634. }
  635. </script>
  636. <style lang="scss" scoped>
  637. .rotatearrow {
  638. transform: rotate(270deg);
  639. }
  640. // 评分
  641. .rate-box {
  642. padding: 10rpx 20rpx;
  643. background-color: #FFFFFF;
  644. .date {
  645. width: 300rpx;
  646. height: 33rpx;
  647. font-size: 24rpx;
  648. font-weight: 400;
  649. color: #333333;
  650. line-height: 33rpx;
  651. letter-spacing: 1rpx;
  652. margin-bottom: 8rpx;
  653. }
  654. .title {
  655. width: 100%;
  656. height: 42rpx;
  657. font-size: 30rpx;
  658. font-weight: 500;
  659. color: #333333;
  660. line-height: 42rpx;
  661. letter-spacing: 2rpx;
  662. margin-bottom: 20rpx;
  663. }
  664. .level1 {
  665. display: flex;
  666. align-items: center;
  667. .level-name {
  668. width: 104rpx;
  669. height: 33rpx;
  670. font-size: 24rpx;
  671. font-weight: 500;
  672. color: #333333;
  673. line-height: 33rpx;
  674. letter-spacing: 1rpx;
  675. margin-right: 10rpx;
  676. }
  677. .level-progress {
  678. flex: 1;
  679. border-radius: 11rpx;
  680. height: 21rpx;
  681. background-color: #BEE4FF;
  682. position: relative;
  683. .color {
  684. width: 0;
  685. position: absolute;
  686. top: 0;
  687. left: 0;
  688. height: 21rpx;
  689. border-radius: 11rpx 0 0 11rpx;
  690. background-color: #008EF2;
  691. }
  692. }
  693. .level-rate {
  694. width: 65rpx;
  695. height: 33rpx;
  696. font-size: 24rpx;
  697. font-weight: 500;
  698. color: #333333;
  699. line-height: 33rpx;
  700. letter-spacing: 1rpx;
  701. margin: 0 20rpx 0 15rpx;
  702. }
  703. .arrow {
  704. width: 37rpx;
  705. height: 21rpx;
  706. padding: 5rpx 20rpx;
  707. }
  708. .rotatearrow {
  709. transform: rotate(270deg);
  710. }
  711. }
  712. .level1-subbox {
  713. display: flex;
  714. margin-top: 20rpx;
  715. flex-wrap: wrap;
  716. .sub-name {
  717. width: 50%;
  718. display: flex;
  719. margin-bottom: 18rpx;
  720. .subitem-name {
  721. width: 104rpx;
  722. height: 33rpx;
  723. font-size: 24rpx;
  724. font-weight: 400;
  725. color: #999999;
  726. line-height: 33rpx;
  727. letter-spacing: 1rpx;
  728. margin-right: 12rpx;
  729. }
  730. .checkimg {
  731. width: 27rpx;
  732. height: 27rpx;
  733. }
  734. }
  735. }
  736. }
  737. .Level-box {
  738. padding-bottom: 2rpx;
  739. .hhhbox {
  740. width: 100%;
  741. padding-left: 30rpx;
  742. padding-right: 30rpx;
  743. border-bottom: 1rpx solid #E0E0E0;
  744. background: #FFFFFF;
  745. // padding-bottom: 32rpx;
  746. .hsnrtest {
  747. height: 24rpx;
  748. font-size: 24rpx;
  749. font-weight: 400;
  750. color: #666666;
  751. line-height: 24rpx;
  752. }
  753. .Level3che {
  754. width: 100%;
  755. height: 28rpx;
  756. display: flex;
  757. line-height: 28rpx;
  758. align-items: center;
  759. margin-top: 30rpx;
  760. .title1 {
  761. flex: 1;
  762. font-size: 28rpx;
  763. color: #2671E2;
  764. font-weight: 400;
  765. }
  766. .jiantobox {
  767. width: 30rpx;
  768. height: 30rpx;
  769. display: flex;
  770. align-items: center;
  771. .arrow {
  772. width: 28rpx;
  773. height: 28rpx;
  774. }
  775. }
  776. }
  777. }
  778. .Level2che {
  779. width: 100%;
  780. height: 88rpx;
  781. display: flex;
  782. line-height: 88rpx;
  783. align-items: center;
  784. .title1 {
  785. flex: 3;
  786. font-size: 28rpx;
  787. color: #333333;
  788. font-weight: 400;
  789. }
  790. .leve1-jindu {
  791. flex: 3;
  792. display: flex;
  793. justify-content: center;
  794. align-items: center;
  795. .zhixing {
  796. width: 108rpx;
  797. height: 44rpx;
  798. background: #2671E2;
  799. border-radius: 4rpx;
  800. font-size: 28rpx;
  801. text-align: center;
  802. line-height: 44rpx;
  803. color: #FFFFFF;
  804. }
  805. .zhixing2 {
  806. width: 108rpx;
  807. height: 44rpx;
  808. background: #F8F8F8;
  809. border-radius: 4rpx;
  810. font-size: 28rpx;
  811. text-align: center;
  812. line-height: 44rpx;
  813. color: #999999;
  814. }
  815. }
  816. .jiantobox {
  817. width: 30rpx;
  818. height: 30rpx;
  819. display: flex;
  820. align-items: center;
  821. .arrow {
  822. width: 30rpx;
  823. height: 18rpx;
  824. }
  825. }
  826. }
  827. .Level1che {
  828. width: 100%;
  829. height: 94rpx;
  830. background: #F5F5F5;
  831. display: flex;
  832. line-height: 94rpx;
  833. align-items: center;
  834. padding-left: 30rpx;
  835. padding-right: 30rpx;
  836. .title1 {
  837. flex: 2;
  838. font-size: 30rpx;
  839. color: #333333;
  840. font-weight: 400;
  841. }
  842. .leve1-jindu {
  843. flex: 3;
  844. .jindutiao {
  845. width: 96%;
  846. height: 28rpx;
  847. background: #D5EEE2;
  848. line-height: 28rpx;
  849. border-radius: 14rpx;
  850. position: relative;
  851. .huanxing {
  852. height: 100%;
  853. background: #4FC78F;
  854. border-radius: 14rpx;
  855. }
  856. .text {
  857. position: absolute;
  858. top: 0rpx;
  859. right: 0rpx;
  860. font-size: 28rpx;
  861. font-weight: 400;
  862. color: #333333;
  863. }
  864. }
  865. }
  866. .jiantobox {
  867. width: 30rpx;
  868. height: 30rpx;
  869. display: flex;
  870. align-items: center;
  871. .arrow {
  872. width: 30rpx;
  873. height: 18rpx;
  874. }
  875. }
  876. }
  877. }
  878. .cccccc {
  879. text-align: center;
  880. height: 140rpx;
  881. line-height: 140rpx;
  882. font-size: 30rpx;
  883. }
  884. .ratecenter {
  885. background-color: #FFFFFF;
  886. padding-bottom: 30rpx;
  887. width: 100%;
  888. .my-tab{
  889. padding: 20rpx 0;
  890. display: flex;
  891. justify-content: space-around;
  892. align-items: center;
  893. border-bottom: 1px solid #E0E0E0;
  894. .tab-item{
  895. padding: 0 30rpx;
  896. height: 56rpx;
  897. font-size: 28rpx;
  898. font-family: PingFangSC-Regular, PingFang SC;
  899. font-weight: 400;
  900. color: #666666;
  901. line-height: 56rpx;
  902. text-shadow: 0px 1px 0px #E0E0E0;
  903. }
  904. .tabactive{
  905. height: 56rpx;
  906. background: rgba(38, 113, 226, 0.1);
  907. box-shadow: 0px 1px 0px 0px #E0E0E0;
  908. border-radius: 28rpx;
  909. font-weight: 600;
  910. color: #2671E2;
  911. }
  912. }
  913. .ratetetle {
  914. padding: 30rpx;
  915. font-size: 30rpx;
  916. font-weight: 400;
  917. color: #333333;
  918. padding-bottom: 6rpx;
  919. }
  920. .rateyuanbox {
  921. width: 100%;
  922. height: 210rpx;
  923. padding-bottom: 30rpx;
  924. border-bottom: 1rpx solid #E0E0E0;
  925. display: flex;
  926. padding-left: 80rpx;
  927. padding-right: 80rpx;
  928. .rateyuanboxzuo {
  929. width: 30%;
  930. height: 100%;
  931. }
  932. .rateyuanboxyou {
  933. width: 40%;
  934. height: 100%;
  935. }
  936. .boxzuoview {
  937. width: 100%;
  938. height: 140rpx;
  939. }
  940. }
  941. }
  942. .box {
  943. width: 100%;
  944. height: 100%;
  945. background: #F8F8F8;
  946. }
  947. .tab {
  948. height: 88rpx;
  949. // border-bottom: 1px solid #E0E0E0;
  950. background: #FFFFFF;
  951. display: flex;
  952. align-items: center;
  953. .tabbox {
  954. flex: 1;
  955. height: 100%;
  956. text-align: center;
  957. line-height: 92rpx;
  958. color: #666666;
  959. font-size: 28rpx;
  960. display: flex;
  961. justify-content: center;
  962. .activecllasscet {
  963. border-bottom: 2px solid #2671E2;
  964. color: #2671E2;
  965. font-weight: 600;
  966. }
  967. }
  968. }
  969. .content {
  970. // height: 1000rpx;/
  971. overflow: hidden;
  972. border-top: 1px solid #E0E0E0;
  973. .content-tips {
  974. background: #fff;
  975. // box-sizing: border-box;
  976. margin-bottom: 20rpx;
  977. overflow: hidden;
  978. .content-first {
  979. padding: 19rpx 30rpx;
  980. display: flex;
  981. justify-content: space-between;
  982. box-sizing: border-box;
  983. // border-top: 1px solid #E0E0E0;
  984. font-weight: 400;
  985. color: #292929;
  986. height: 90rpx;
  987. font-size: 30rpx;
  988. line-height: 30rpx;
  989. .left {
  990. display: flex;
  991. .img {
  992. // margin-top: 19rpx;
  993. width: 52rpx;
  994. height: 52rpx;
  995. border: 1px solid #E0E0E0;
  996. border-radius: 50%;
  997. text-align: center;
  998. line-height: 50rpx;
  999. margin-right: 20rpx;
  1000. }
  1001. .test {
  1002. margin-top: 11rpx;
  1003. font-weight: 500;
  1004. color: #333333;
  1005. }
  1006. .edit {
  1007. height: 30rpx;
  1008. width: 30rpx;
  1009. margin-left: 30rpx;
  1010. margin-top: 11rpx;
  1011. image {
  1012. width: 100%;
  1013. height: 100%;
  1014. }
  1015. }
  1016. }
  1017. .right {
  1018. display: flex;
  1019. .point {
  1020. width: 12rpx;
  1021. height: 12rpx;
  1022. background: #2B6EFF;
  1023. border-radius: 50%;
  1024. margin-right: 9rpx;
  1025. margin-top: 20rpx;
  1026. }
  1027. .test {
  1028. margin-top: 11rpx;
  1029. }
  1030. }
  1031. }
  1032. .content-sec {
  1033. border-top: 1px solid #E0E0E0;
  1034. padding: 0 30rpx;
  1035. position: relative;
  1036. .content-sec-lab {
  1037. margin-top: 30rpx;
  1038. display: flex;
  1039. font-size: 30rpx;
  1040. font-weight: 400;
  1041. color: #666666;
  1042. line-height: 46rpx;
  1043. .content-sec-lab1 {
  1044. color: #333333;
  1045. }
  1046. .content-sec-tips {
  1047. max-width: 120rpx;
  1048. height: 46rpx;
  1049. background: #F2F2F2;
  1050. border-radius: 6rpx;
  1051. text-align: center;
  1052. line-height: 26rpx;
  1053. overflow: hidden;
  1054. text-overflow: ellipsis;
  1055. white-space: nowrap;
  1056. font-size: 26rpx;
  1057. font-weight: 400;
  1058. color: #333333;
  1059. margin-right: 20rpx;
  1060. box-sizing: border-box;
  1061. padding: 10rpx 24rpx;
  1062. }
  1063. }
  1064. .content-sec-num {
  1065. position: absolute;
  1066. width: 200rpx;
  1067. height: 90rpx;
  1068. background: #F4F8FD;
  1069. border-radius: 12rpx;
  1070. font-weight: 400;
  1071. color: #2671E2;
  1072. line-height: 45rpx;
  1073. bottom: 100rpx;
  1074. right: 30rpx;
  1075. text-align: center;
  1076. }
  1077. }
  1078. .content-last {
  1079. padding: 30rpx;
  1080. height: 168rpx;
  1081. .content-last-con {
  1082. width: 690rpx;
  1083. height: 108rpx;
  1084. background: #F8F8F8;
  1085. border-radius: 8rpx;
  1086. padding: 14rpx 20rpx;
  1087. font-size: 28rpx;
  1088. font-weight: 400;
  1089. color: #333333;
  1090. line-height: 40rpx;
  1091. }
  1092. }
  1093. }
  1094. }
  1095. .tabchange {
  1096. // background: #FFFFFF;
  1097. overflow: hidden;
  1098. .tabactive1 {
  1099. padding-bottom: 100rpx;
  1100. .content-tips {
  1101. background: #fff;
  1102. padding: 0 30rpx;
  1103. box-sizing: border-box;
  1104. overflow: hidden;
  1105. margin-bottom: 20rpx;
  1106. .content-first {
  1107. margin-top: 19rpx;
  1108. display: flex;
  1109. justify-content: space-between;
  1110. .left {
  1111. display: flex;
  1112. .img {
  1113. width: 52rpx;
  1114. height: 52rpx;
  1115. background: #FFFFFF;
  1116. border: 1px solid #C9C9C9;
  1117. border-radius: 50%;
  1118. text-align: center;
  1119. line-height: 52rpx;
  1120. margin-right: 20rpx;
  1121. }
  1122. .name {
  1123. font-weight: 600;
  1124. color: #333333;
  1125. // margin-left: 20rpx;
  1126. margin-top: 11rpx;
  1127. }
  1128. .status {
  1129. width: 110rpx;
  1130. height: 42rpx;
  1131. background: #FFF9F5;
  1132. border-radius: 4rpx;
  1133. font-size: 26rpx;
  1134. font-weight: 400;
  1135. color: #EC8D49;
  1136. line-height: 42rpx;
  1137. text-align: center;
  1138. margin-left: 19rpx;
  1139. margin-top: 11rpx;
  1140. }
  1141. }
  1142. .right {
  1143. display: flex;
  1144. margin-top: 11rpx;
  1145. .point {
  1146. width: 12rpx;
  1147. height: 12rpx;
  1148. background: #2B6EFF;
  1149. border-radius: 50%;
  1150. margin-right: 9rpx;
  1151. margin-top: 16rpx;
  1152. }
  1153. }
  1154. }
  1155. .content-sec {
  1156. display: flex;
  1157. justify-content: space-between;
  1158. margin-top: 19rpx;
  1159. .left {
  1160. display: flex;
  1161. .cus {
  1162. font-size: 30rpx;
  1163. font-weight: 400;
  1164. color: #666666;
  1165. line-height: 30rpx;
  1166. }
  1167. .arriveNum {
  1168. font-size: 30rpx;
  1169. font-weight: 400;
  1170. line-height: 30rpx;
  1171. margin-left: 10rpx;
  1172. }
  1173. }
  1174. .right {
  1175. width: 192rpx;
  1176. height: 46rpx;
  1177. background: #F4F8FD;
  1178. border-radius: 6rpx;
  1179. text-align: center;
  1180. line-height: 46rpx;
  1181. font-weight: 400;
  1182. color: #2671E2;
  1183. }
  1184. }
  1185. .content-last {
  1186. margin: 30rpx 0;
  1187. font-size: 30rpx;
  1188. font-weight: 400;
  1189. color: #666666;
  1190. line-height: 30rpx;
  1191. }
  1192. }
  1193. }
  1194. .tabactive2 {
  1195. .tab2-tips {
  1196. background: #fff;
  1197. // height: 270rpx;
  1198. overflow: auto;
  1199. margin-bottom: 20rpx;
  1200. .tab2-first {
  1201. // height: 150rpx;
  1202. border-bottom: 1px solid #E0E0E0;
  1203. padding: 0 30rpx;
  1204. margin-top: 19rpx;
  1205. box-sizing: border-box;
  1206. .tab2-first-1 {
  1207. display: flex;
  1208. justify-content: space-between;
  1209. // height: 75rpx;
  1210. .tab2-first-left {
  1211. display: flex;
  1212. .img {
  1213. width: 52rpx;
  1214. height: 52rpx;
  1215. background: #FFFFFF;
  1216. border: 1px solid #C9C9C9;
  1217. border-radius: 50%;
  1218. text-align: center;
  1219. line-height: 52rpx;
  1220. }
  1221. .name {
  1222. font-weight: 600;
  1223. color: #333333;
  1224. margin-left: 20rpx;
  1225. margin-top: 11rpx;
  1226. }
  1227. }
  1228. .tab2-first-right {
  1229. font-size: 30rpx;
  1230. font-weight: 400;
  1231. color: #666666;
  1232. margin-top: 11rpx;
  1233. }
  1234. }
  1235. .tab2-first-foot {
  1236. margin-top: 19rpx;
  1237. margin-bottom: 30rpx;
  1238. font-size: 30rpx;
  1239. font-weight: 400;
  1240. color: #666666;
  1241. line-height: 30rpx;
  1242. }
  1243. }
  1244. .tab2-sec {
  1245. height: 120rpx;
  1246. padding: 30rpx;
  1247. float: right;
  1248. .tab-sec-edit {
  1249. width: 156rpx;
  1250. height: 60rpx;
  1251. background: #FFFFFF;
  1252. border-radius: 4px;
  1253. border: 1px solid #2671E2;
  1254. text-align: center;
  1255. line-height: 60rpx;
  1256. font-weight: 400;
  1257. color: #2671E2;
  1258. }
  1259. }
  1260. }
  1261. }
  1262. }
  1263. .pon-foot {
  1264. position: fixed;
  1265. width: 750rpx;
  1266. height: 100rpx;
  1267. background: #FFFFFF;
  1268. box-shadow: 0px -2rpx 8rpx 0rpx rgba(224, 224, 224, 0.5);
  1269. bottom: 0;
  1270. display: flex;
  1271. justify-content: space-around;
  1272. align-items: center;
  1273. // padding-top: 24rpx;
  1274. box-sizing: border-box;
  1275. // padding: ;
  1276. .foot-tab {
  1277. text-align: center;
  1278. width: 270rpx;
  1279. height: 70rpx;
  1280. line-height: 70rpx;
  1281. background: #2671E2;
  1282. box-shadow: 0px -2rpx 8rpx 0px rgba(224, 224, 224, 0.5);
  1283. border-radius: 6rpx;
  1284. font-size: 30rpx;
  1285. font-weight: 400;
  1286. color: #FFFFFF;
  1287. }
  1288. }
  1289. .upon-sec-tips {
  1290. // max-width:120rpx ;
  1291. height: 46rpx;
  1292. background: #F2F2F2;
  1293. border-radius: 6rpx;
  1294. text-align: center;
  1295. line-height: 26rpx;
  1296. overflow: hidden;
  1297. text-overflow: ellipsis;
  1298. white-space: nowrap;
  1299. font-size: 26rpx;
  1300. font-weight: 400;
  1301. color: #333333;
  1302. margin-right: 20rpx;
  1303. margin-top: 20rpx;
  1304. box-sizing: border-box;
  1305. padding: 10rpx 24rpx;
  1306. }
  1307. .conmsg-msg-lab-img {
  1308. width: 14rpx;
  1309. height: 30rpx;
  1310. margin-top: 6rpx;
  1311. margin-left: auto;
  1312. image {
  1313. width: 100%;
  1314. height: 100%;
  1315. }
  1316. }
  1317. </style>