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.
 
 
 

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