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.
 
 
 

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