Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

1420 linhas
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) {
  527. uni.navigateTo({
  528. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  529. .marketingId + '&type=0'
  530. })
  531. }
  532. },
  533. tipupon() {
  534. if (!this.customerInfo.demand.cusSemanticWordsList) return
  535. this.tipshow = true
  536. },
  537. changeshow(item, type) {
  538. item.show = !item.show
  539. },
  540. changeshow2(item, type) {
  541. item.show = !item.show
  542. },
  543. // 获取评分
  544. getRatelist() {
  545. this.$u.get("/customer/findzkMByCusId", {
  546. cusId: this.customerId
  547. }).then(res => {
  548. if (res.length) {
  549. let level1 = []
  550. res.forEach(item => {
  551. if (item.pid == 0) {
  552. level1.push({
  553. id: item.marketingId,
  554. rate: item.fraction,
  555. name: item.name,
  556. sort: item.sort,
  557. viewFlag: item.viewFlag,
  558. show: false,
  559. ratepercent: 0,
  560. children: []
  561. })
  562. }
  563. })
  564. // this.totalRate = level2rate;
  565. res.forEach(subitem => {
  566. let subitempid = subitem.pid
  567. level1.forEach(item => {
  568. if (subitempid == item.id) {
  569. if (subitem.selected == 0) {
  570. item.ratepercent += subitem.fraction
  571. }
  572. item.children.push({
  573. id: subitem.id,
  574. rate: subitem.fraction,
  575. selected: subitem.selected,
  576. name: subitem.name,
  577. viewFlag: subitem.viewFlag,
  578. show: false,
  579. marketingId: subitem.marketingId,
  580. children: []
  581. })
  582. }
  583. })
  584. })
  585. res.forEach(subitem => {
  586. let subitempid = subitem.pid
  587. level1.forEach(chen => {
  588. chen.children.forEach(zxc => {
  589. if (subitempid == zxc.marketingId) {
  590. zxc.children.push({
  591. id: subitem.id,
  592. rate: subitem.fraction,
  593. selected: subitem.selected,
  594. viewFlag: subitem.viewFlag,
  595. name: subitem.name,
  596. marketingId: subitem.marketingId,
  597. })
  598. }
  599. })
  600. })
  601. })
  602. level1[0].show = true;
  603. level1[0].children[0].show = true;
  604. this.ratelist = level1
  605. }
  606. })
  607. },
  608. }
  609. }
  610. </script>
  611. <style lang="scss" scoped>
  612. .rotatearrow {
  613. transform: rotate(270deg);
  614. }
  615. // 评分
  616. .rate-box {
  617. padding: 10rpx 20rpx;
  618. background-color: #FFFFFF;
  619. .date {
  620. width: 300rpx;
  621. height: 33rpx;
  622. font-size: 24rpx;
  623. font-weight: 400;
  624. color: #333333;
  625. line-height: 33rpx;
  626. letter-spacing: 1rpx;
  627. margin-bottom: 8rpx;
  628. }
  629. .title {
  630. width: 100%;
  631. height: 42rpx;
  632. font-size: 30rpx;
  633. font-weight: 500;
  634. color: #333333;
  635. line-height: 42rpx;
  636. letter-spacing: 2rpx;
  637. margin-bottom: 20rpx;
  638. }
  639. .level1 {
  640. display: flex;
  641. align-items: center;
  642. .level-name {
  643. width: 104rpx;
  644. height: 33rpx;
  645. font-size: 24rpx;
  646. font-weight: 500;
  647. color: #333333;
  648. line-height: 33rpx;
  649. letter-spacing: 1rpx;
  650. margin-right: 10rpx;
  651. }
  652. .level-progress {
  653. flex: 1;
  654. border-radius: 11rpx;
  655. height: 21rpx;
  656. background-color: #BEE4FF;
  657. position: relative;
  658. .color {
  659. width: 0;
  660. position: absolute;
  661. top: 0;
  662. left: 0;
  663. height: 21rpx;
  664. border-radius: 11rpx 0 0 11rpx;
  665. background-color: #008EF2;
  666. }
  667. }
  668. .level-rate {
  669. width: 65rpx;
  670. height: 33rpx;
  671. font-size: 24rpx;
  672. font-weight: 500;
  673. color: #333333;
  674. line-height: 33rpx;
  675. letter-spacing: 1rpx;
  676. margin: 0 20rpx 0 15rpx;
  677. }
  678. .arrow {
  679. width: 37rpx;
  680. height: 21rpx;
  681. padding: 5rpx 20rpx;
  682. }
  683. .rotatearrow {
  684. transform: rotate(270deg);
  685. }
  686. }
  687. .level1-subbox {
  688. display: flex;
  689. margin-top: 20rpx;
  690. flex-wrap: wrap;
  691. .sub-name {
  692. width: 50%;
  693. display: flex;
  694. margin-bottom: 18rpx;
  695. .subitem-name {
  696. width: 104rpx;
  697. height: 33rpx;
  698. font-size: 24rpx;
  699. font-weight: 400;
  700. color: #999999;
  701. line-height: 33rpx;
  702. letter-spacing: 1rpx;
  703. margin-right: 12rpx;
  704. }
  705. .checkimg {
  706. width: 27rpx;
  707. height: 27rpx;
  708. }
  709. }
  710. }
  711. }
  712. .Level-box {
  713. padding-bottom: 2rpx;
  714. .hhhbox {
  715. width: 100%;
  716. padding-left: 30rpx;
  717. padding-right: 30rpx;
  718. border-bottom: 1rpx solid #E0E0E0;
  719. background: #FFFFFF;
  720. // padding-bottom: 32rpx;
  721. .hsnrtest {
  722. height: 24rpx;
  723. font-size: 24rpx;
  724. font-weight: 400;
  725. color: #666666;
  726. line-height: 24rpx;
  727. }
  728. .Level3che {
  729. width: 100%;
  730. height: 28rpx;
  731. display: flex;
  732. line-height: 28rpx;
  733. align-items: center;
  734. margin-top: 30rpx;
  735. .title1 {
  736. flex: 1;
  737. font-size: 28rpx;
  738. color: #2671E2;
  739. font-weight: 400;
  740. }
  741. .jiantobox {
  742. width: 30rpx;
  743. height: 30rpx;
  744. display: flex;
  745. align-items: center;
  746. .arrow {
  747. width: 28rpx;
  748. height: 28rpx;
  749. }
  750. }
  751. }
  752. }
  753. .Level2che {
  754. width: 100%;
  755. height: 88rpx;
  756. display: flex;
  757. line-height: 88rpx;
  758. align-items: center;
  759. .title1 {
  760. flex: 3;
  761. font-size: 28rpx;
  762. color: #333333;
  763. font-weight: 400;
  764. }
  765. .leve1-jindu {
  766. flex: 3;
  767. display: flex;
  768. justify-content: center;
  769. align-items: center;
  770. .zhixing {
  771. width: 108rpx;
  772. height: 44rpx;
  773. background: #2671E2;
  774. border-radius: 4rpx;
  775. font-size: 28rpx;
  776. text-align: center;
  777. line-height: 44rpx;
  778. color: #FFFFFF;
  779. }
  780. .zhixing2 {
  781. width: 108rpx;
  782. height: 44rpx;
  783. background: #F8F8F8;
  784. border-radius: 4rpx;
  785. font-size: 28rpx;
  786. text-align: center;
  787. line-height: 44rpx;
  788. color: #999999;
  789. }
  790. }
  791. .jiantobox {
  792. width: 30rpx;
  793. height: 30rpx;
  794. display: flex;
  795. align-items: center;
  796. .arrow {
  797. width: 30rpx;
  798. height: 18rpx;
  799. }
  800. }
  801. }
  802. .Level1che {
  803. width: 100%;
  804. height: 94rpx;
  805. background: #F5F5F5;
  806. display: flex;
  807. line-height: 94rpx;
  808. align-items: center;
  809. padding-left: 30rpx;
  810. padding-right: 30rpx;
  811. .title1 {
  812. flex: 2;
  813. font-size: 30rpx;
  814. color: #333333;
  815. font-weight: 400;
  816. }
  817. .leve1-jindu {
  818. flex: 3;
  819. .jindutiao {
  820. width: 96%;
  821. height: 28rpx;
  822. background: #D5EEE2;
  823. line-height: 28rpx;
  824. border-radius: 14rpx;
  825. position: relative;
  826. .huanxing {
  827. height: 100%;
  828. background: #4FC78F;
  829. border-radius: 14rpx;
  830. }
  831. .text {
  832. position: absolute;
  833. top: 0rpx;
  834. right: 0rpx;
  835. font-size: 28rpx;
  836. font-weight: 400;
  837. color: #333333;
  838. }
  839. }
  840. }
  841. .jiantobox {
  842. width: 30rpx;
  843. height: 30rpx;
  844. display: flex;
  845. align-items: center;
  846. .arrow {
  847. width: 30rpx;
  848. height: 18rpx;
  849. }
  850. }
  851. }
  852. }
  853. .cccccc {
  854. text-align: center;
  855. height: 140rpx;
  856. line-height: 140rpx;
  857. font-size: 30rpx;
  858. }
  859. .ratecenter {
  860. background-color: #FFFFFF;
  861. padding-bottom: 30rpx;
  862. width: 100%;
  863. .my-tab{
  864. padding: 20rpx 0;
  865. display: flex;
  866. justify-content: space-around;
  867. align-items: center;
  868. border-bottom: 1px solid #E0E0E0;
  869. .tab-item{
  870. padding: 0 30rpx;
  871. height: 56rpx;
  872. font-size: 28rpx;
  873. font-family: PingFangSC-Regular, PingFang SC;
  874. font-weight: 400;
  875. color: #666666;
  876. line-height: 56rpx;
  877. text-shadow: 0px 1px 0px #E0E0E0;
  878. }
  879. .tabactive{
  880. height: 56rpx;
  881. background: rgba(38, 113, 226, 0.1);
  882. box-shadow: 0px 1px 0px 0px #E0E0E0;
  883. border-radius: 28rpx;
  884. font-weight: 600;
  885. color: #2671E2;
  886. }
  887. }
  888. .ratetetle {
  889. padding: 30rpx;
  890. font-size: 30rpx;
  891. font-weight: 400;
  892. color: #333333;
  893. padding-bottom: 6rpx;
  894. }
  895. .rateyuanbox {
  896. width: 100%;
  897. height: 210rpx;
  898. padding-bottom: 30rpx;
  899. border-bottom: 1rpx solid #E0E0E0;
  900. display: flex;
  901. padding-left: 80rpx;
  902. padding-right: 80rpx;
  903. .rateyuanboxzuo {
  904. width: 30%;
  905. height: 100%;
  906. }
  907. .rateyuanboxyou {
  908. width: 40%;
  909. height: 100%;
  910. }
  911. .boxzuoview {
  912. width: 100%;
  913. height: 140rpx;
  914. }
  915. }
  916. }
  917. .box {
  918. width: 100%;
  919. height: 100%;
  920. background: #F8F8F8;
  921. }
  922. .tab {
  923. height: 88rpx;
  924. // border-bottom: 1px solid #E0E0E0;
  925. background: #FFFFFF;
  926. display: flex;
  927. align-items: center;
  928. .tabbox {
  929. flex: 1;
  930. height: 100%;
  931. text-align: center;
  932. line-height: 92rpx;
  933. color: #666666;
  934. font-size: 28rpx;
  935. display: flex;
  936. justify-content: center;
  937. .activecllasscet {
  938. border-bottom: 2px solid #2671E2;
  939. color: #2671E2;
  940. font-weight: 600;
  941. }
  942. }
  943. }
  944. .content {
  945. // height: 1000rpx;/
  946. overflow: hidden;
  947. border-top: 1px solid #E0E0E0;
  948. .content-tips {
  949. background: #fff;
  950. // box-sizing: border-box;
  951. margin-bottom: 20rpx;
  952. overflow: hidden;
  953. .content-first {
  954. padding: 19rpx 30rpx;
  955. display: flex;
  956. justify-content: space-between;
  957. box-sizing: border-box;
  958. font-weight: 400;
  959. color: #292929;
  960. height: 90rpx;
  961. font-size: 30rpx;
  962. line-height: 30rpx;
  963. .left {
  964. display: flex;
  965. .img {
  966. width: 52rpx;
  967. height: 52rpx;
  968. border-radius: 50%;
  969. text-align: center;
  970. line-height: 50rpx;
  971. margin-right: 20rpx;
  972. color: #fff;
  973. font-size: 30rpx;
  974. background: #9f61c8;
  975. }
  976. .test {
  977. margin-top: 11rpx;
  978. font-weight: 500;
  979. color: #333333;
  980. }
  981. .edit {
  982. height: 30rpx;
  983. width: 30rpx;
  984. margin-left: 30rpx;
  985. margin-top: 11rpx;
  986. image {
  987. width: 100%;
  988. height: 100%;
  989. }
  990. }
  991. }
  992. .right {
  993. display: flex;
  994. .test {
  995. margin-top: 11rpx;
  996. .blue {
  997. font-size: 32rpx;
  998. font-family: PingFangSC-Medium, PingFang SC;
  999. font-weight: 500;
  1000. color: #2671e2;
  1001. }
  1002. }
  1003. }
  1004. }
  1005. .content-sec {
  1006. border-top: 1px solid #E0E0E0;
  1007. padding: 0 30rpx;
  1008. position: relative;
  1009. .content-sec-lab {
  1010. margin-top: 28rpx;
  1011. display: flex;
  1012. justify-content: space-between;
  1013. font-size: 30rpx;
  1014. font-weight: 400;
  1015. color: #666666;
  1016. line-height: 46rpx;
  1017. .content-sec-lab1 {
  1018. color: #333333;
  1019. .look{
  1020. font-size: 32rpx;
  1021. font-family: PingFangSC-Semibold, PingFang SC;
  1022. font-weight: 600;
  1023. color: #2671E2;
  1024. }
  1025. .look1{
  1026. height: 42rpx;
  1027. font-size: 30rpx;
  1028. font-family: PingFangSC-Regular, PingFang SC;
  1029. font-weight: 400;
  1030. color: #2671E2;
  1031. line-height: 42rpx;
  1032. margin-left: 60rpx;
  1033. }
  1034. }
  1035. .content-sec-tips {
  1036. max-width: 120rpx;
  1037. height: 46rpx;
  1038. background: #F2F2F2;
  1039. border-radius: 6rpx;
  1040. text-align: center;
  1041. line-height: 26rpx;
  1042. overflow: hidden;
  1043. text-overflow: ellipsis;
  1044. white-space: nowrap;
  1045. font-size: 26rpx;
  1046. font-weight: 400;
  1047. color: #333333;
  1048. margin-right: 20rpx;
  1049. box-sizing: border-box;
  1050. padding: 10rpx 24rpx;
  1051. }
  1052. }
  1053. .content-sec-num {
  1054. position: absolute;
  1055. width: 200rpx;
  1056. height: 90rpx;
  1057. background: #F4F8FD;
  1058. border-radius: 12rpx;
  1059. font-weight: 400;
  1060. color: #2671E2;
  1061. line-height: 45rpx;
  1062. bottom: 100rpx;
  1063. right: 30rpx;
  1064. text-align: center;
  1065. }
  1066. }
  1067. .content-last {
  1068. padding: 30rpx;
  1069. .content-last-con {
  1070. width: 690rpx;
  1071. min-height: 108rpx;
  1072. background: #F8F8F8;
  1073. border-radius: 8rpx;
  1074. padding: 14rpx 20rpx;
  1075. font-size: 28rpx;
  1076. font-weight: 400;
  1077. color: #333333;
  1078. line-height: 40rpx;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. .tabchange {
  1084. overflow: hidden;
  1085. .tabactive1 {
  1086. padding-bottom: 100rpx;
  1087. .content-tips {
  1088. background: #fff;
  1089. padding: 0 30rpx;
  1090. box-sizing: border-box;
  1091. overflow: hidden;
  1092. margin-bottom: 20rpx;
  1093. .content-first {
  1094. margin-top: 19rpx;
  1095. display: flex;
  1096. justify-content: space-between;
  1097. .left {
  1098. display: flex;
  1099. .img {
  1100. width: 52rpx;
  1101. height: 52rpx;
  1102. background: #FFFFFF;
  1103. border: 1px solid #C9C9C9;
  1104. border-radius: 50%;
  1105. text-align: center;
  1106. line-height: 52rpx;
  1107. margin-right: 20rpx;
  1108. }
  1109. .name {
  1110. font-weight: 600;
  1111. color: #333333;
  1112. // margin-left: 20rpx;
  1113. margin-top: 11rpx;
  1114. }
  1115. .status {
  1116. width: 110rpx;
  1117. height: 42rpx;
  1118. background: #FFF9F5;
  1119. border-radius: 4rpx;
  1120. font-size: 26rpx;
  1121. font-weight: 400;
  1122. color: #EC8D49;
  1123. line-height: 42rpx;
  1124. text-align: center;
  1125. margin-left: 19rpx;
  1126. margin-top: 11rpx;
  1127. }
  1128. }
  1129. .right {
  1130. display: flex;
  1131. margin-top: 11rpx;
  1132. .point {
  1133. width: 12rpx;
  1134. height: 12rpx;
  1135. background: #2B6EFF;
  1136. border-radius: 50%;
  1137. margin-right: 9rpx;
  1138. margin-top: 16rpx;
  1139. }
  1140. }
  1141. }
  1142. .content-sec {
  1143. display: flex;
  1144. justify-content: space-between;
  1145. margin-top: 19rpx;
  1146. .left {
  1147. display: flex;
  1148. .cus {
  1149. font-size: 30rpx;
  1150. font-weight: 400;
  1151. color: #666666;
  1152. line-height: 30rpx;
  1153. }
  1154. .arriveNum {
  1155. font-size: 30rpx;
  1156. font-weight: 400;
  1157. line-height: 30rpx;
  1158. margin-left: 10rpx;
  1159. }
  1160. }
  1161. .right {
  1162. width: 192rpx;
  1163. height: 46rpx;
  1164. background: #F4F8FD;
  1165. border-radius: 6rpx;
  1166. text-align: center;
  1167. line-height: 46rpx;
  1168. font-weight: 400;
  1169. color: #2671E2;
  1170. }
  1171. }
  1172. .content-last {
  1173. margin: 30rpx 0;
  1174. font-size: 30rpx;
  1175. font-weight: 400;
  1176. color: #666666;
  1177. line-height: 30rpx;
  1178. }
  1179. }
  1180. }
  1181. .tabactive2 {
  1182. .tab2-tips {
  1183. background: #fff;
  1184. // height: 270rpx;
  1185. overflow: auto;
  1186. margin-bottom: 20rpx;
  1187. .tab2-first {
  1188. // height: 150rpx;
  1189. border-bottom: 1px solid #E0E0E0;
  1190. padding: 0 30rpx;
  1191. margin-top: 19rpx;
  1192. box-sizing: border-box;
  1193. .tab2-first-1 {
  1194. display: flex;
  1195. justify-content: space-between;
  1196. // height: 75rpx;
  1197. .tab2-first-left {
  1198. display: flex;
  1199. .img {
  1200. width: 52rpx;
  1201. height: 52rpx;
  1202. background: #FFFFFF;
  1203. border: 1px solid #C9C9C9;
  1204. border-radius: 50%;
  1205. text-align: center;
  1206. line-height: 52rpx;
  1207. }
  1208. .name {
  1209. font-weight: 600;
  1210. color: #333333;
  1211. margin-left: 20rpx;
  1212. margin-top: 11rpx;
  1213. }
  1214. }
  1215. .tab2-first-right {
  1216. font-size: 30rpx;
  1217. font-weight: 400;
  1218. color: #666666;
  1219. margin-top: 11rpx;
  1220. }
  1221. }
  1222. .tab2-first-foot {
  1223. margin-top: 19rpx;
  1224. margin-bottom: 30rpx;
  1225. font-size: 30rpx;
  1226. font-weight: 400;
  1227. color: #666666;
  1228. line-height: 30rpx;
  1229. }
  1230. }
  1231. .tab2-sec {
  1232. height: 120rpx;
  1233. padding: 30rpx;
  1234. float: right;
  1235. .tab-sec-edit {
  1236. width: 156rpx;
  1237. height: 60rpx;
  1238. background: #FFFFFF;
  1239. border-radius: 4px;
  1240. border: 1px solid #2671E2;
  1241. text-align: center;
  1242. line-height: 60rpx;
  1243. font-weight: 400;
  1244. color: #2671E2;
  1245. }
  1246. }
  1247. }
  1248. }
  1249. }
  1250. .pon-foot {
  1251. position: sticky;
  1252. bottom: 0;
  1253. width: 750rpx;
  1254. height: 100rpx;
  1255. background: #FFFFFF;
  1256. box-shadow: 0px -2rpx 8rpx 0rpx rgba(224, 224, 224, 0.5);
  1257. display: flex;
  1258. justify-content: space-around;
  1259. align-items: center;
  1260. // padding-top: 24rpx;
  1261. box-sizing: border-box;
  1262. // padding: ;
  1263. .foot-tab {
  1264. text-align: center;
  1265. width: 270rpx;
  1266. height: 70rpx;
  1267. line-height: 70rpx;
  1268. background: #2671E2;
  1269. box-shadow: 0px -2rpx 8rpx 0px rgba(224, 224, 224, 0.5);
  1270. border-radius: 6rpx;
  1271. font-size: 30rpx;
  1272. font-weight: 400;
  1273. color: #FFFFFF;
  1274. }
  1275. }
  1276. .upon-sec-tips {
  1277. min-width:96rpx;
  1278. height: 46rpx;
  1279. background: #F2F2F2;
  1280. border-radius: 6rpx;
  1281. text-align: center;
  1282. line-height: 46rpx;
  1283. // overflow: hidden;
  1284. // text-overflow: ellipsis;
  1285. // white-space: nowrap;
  1286. font-size: 26rpx;
  1287. font-weight: 400;
  1288. color: #333333;
  1289. margin: 0 20rpx 20rpx 0;
  1290. padding: 0 10rpx;
  1291. box-sizing: border-box;
  1292. }
  1293. .conmsg-msg-lab-img {
  1294. width: 14rpx;
  1295. height: 30rpx;
  1296. margin-top: 6rpx;
  1297. margin-left: auto;
  1298. image {
  1299. width: 100%;
  1300. height: 100%;
  1301. }
  1302. }
  1303. </style>