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.
 
 
 

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