AI销管
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.
 
 
 
 

1209 regels
28 KiB

  1. <template>
  2. <view class="box">
  3. <view style="flex-shrink: 0;">
  4. <view class="search-box">
  5. <view class="search" @click="goSearch">
  6. <view class="search-img">
  7. <image class="search-img1" src="../../../static/images/search.png" mode=""></image>
  8. </view>
  9. <view class="search-text">输入客户姓名/手机号</view>
  10. </view>
  11. <image @click="filterFun" class="filter" src="../../../static/images/filter.png" mode="" />
  12. </view>
  13. </view>
  14. <!-- 选择器 -->
  15. <view class="boxtittab">
  16. <view class="tabbox" @click="tapsoltishow">
  17. {{ sortFilter }}
  18. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  19. </view>
  20. <view class="tabbox" @click="taptimeisshow">
  21. {{ arriveFilter }}
  22. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  23. </view>
  24. <view class="tabbox" @click="taptimetuisshow">
  25. {{ receptionDuration }}
  26. <u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  27. </view>
  28. <view class="tabbox" @click="screenshow">
  29. 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  30. </view>
  31. </view>
  32. <!-- 筛选后的数量 -->
  33. <view class="count" v-if="recordList.length > 0">
  34. 筛选结果:<text>{{totalRecords}} </text>条
  35. </view>
  36. <view class="content">
  37. <view v-if="recordList.length==0" style="width: 100%;height: 100%;display: flex;align-items: center;">
  38. <view style="width: 100%;height: 100%;padding-top: 200rpx;">
  39. <view style="width: 100%;text-align: center;">
  40. <image style="width: 220rpx;height: 200rpx;"
  41. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  42. </view>
  43. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  44. </view>
  45. </view>
  46. <view v-if="recordList.length" class="content-tips" v-for="(item,index) in recordList" :key='index'
  47. @click="gotoDetail(item.id)">
  48. <view class="content-first">
  49. <view class="left">
  50. <view class="test">{{item.name}}</view>
  51. <template v-if="item.level > 0">
  52. <view class="img" :class="colorName[item.level]">{{ item.level | levelText }}</view>
  53. </template>
  54. <view v-if="item.clientStageName" class="clientStageName">{{ item.clientStageName }}</view>
  55. </view>
  56. <view class="right">
  57. <image class="right-img" src="../../../static/images/arrow-right.png" mode=""></image>
  58. </view>
  59. </view>
  60. <view class="content-sec">
  61. <view class="content-sec-lab">
  62. 客户手机:<view class="content-sec-lab1">{{item.phone | phoneText}}</view>
  63. </view>
  64. <view class="content-sec-lab">
  65. 负责顾问:<view class="content-sec-lab1">{{item.agentName || ''}}</view>
  66. </view>
  67. <view class="content-sec-lab" style="line-height: 46rpx;">
  68. 客户意向:
  69. <text v-if="item.demand.cusSemanticWordsList==null">暂无</text>
  70. <template v-else>
  71. <block v-for="(che,ind) in item.demand.cusSemanticWordsList" :key='ind'>
  72. <view class="content-sec-tips">{{che.name}}</view>
  73. </block>
  74. </template>
  75. </view>
  76. <view class="content-sec-lab">
  77. 添加时间:<view class="content-sec-lab1">{{item.createTime | formatTime}}</view>
  78. </view>
  79. <view class="content-sec-num">
  80. <view>到访{{item.visitRecord || '--'}}次</view>
  81. <view>
  82. {{item.mm || '0'}}min/{{item.fraction || '0'}}%
  83. </view>
  84. </view>
  85. </view>
  86. <template v-if="permissions.commonly2">
  87. <view class="content-last">
  88. <!-- <view class="content-last-tab">
  89. <image src="/static/images/genjin-icon.png" mode="" />添加提醒</view>
  90. <view class="content-last-tab">
  91. <image src="/static/images/genjin-icon.png" mode="" />
  92. 打电话</view> -->
  93. <view class="content-last-tab" @click.stop="gotoFollowUp(item)">
  94. <image src="/static/images/genjin-icon.png" mode="" />
  95. 写跟进</view>
  96. </view>
  97. </template>
  98. </view>
  99. </view>
  100. <u-popup v-model="screenShow" mode="top">
  101. <view class="screen">
  102. <!-- 顾问选择 -->
  103. <view class="screen-counselor">
  104. <view class="screen-text">
  105. 所属顾问
  106. </view>
  107. <view class="screen-sel" @tap="selectshow = true">
  108. <input v-model="screen.agentIdtext" type="text" placeholder="请选择" class="screen-inp" disabled />
  109. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  110. </view>
  111. </view>
  112. <view class="screen-counselor">
  113. <view class="screen-text">
  114. 客户标签
  115. </view>
  116. <view class="screen-sel" @tap="selectTipshow = true">
  117. <input v-model="screen.cunsumerTips" type="text" placeholder="请选择" class="screen-inp"
  118. disabled />
  119. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  120. </view>
  121. </view>
  122. <!-- 录音标示 -->
  123. <view class="screen-record">
  124. <view class="screen-record-text">
  125. 客户等级
  126. </view>
  127. <view class="screen-record-tab">
  128. <block v-for="(item,index) in levelList" :key="index">
  129. <view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  130. @click="choiceLevel(index,item.value)">
  131. {{item.label}}
  132. </view>
  133. </block>
  134. </view>
  135. </view>
  136. <!-- 客户来源 -->
  137. <template v-if="list.length > 0">
  138. <view class="screen-record">
  139. <view class="screen-record-text">
  140. 客户来源
  141. </view>
  142. <view class="screen-record-tab">
  143. <block v-for="(item, index) in list" :key="index">
  144. <view @tap="sourceId = item.id; sourceIndex = index "
  145. :class="[sourceIndex == index ? 'screen-record-chose':'screen-record-nochose']">
  146. {{ item.sourceName }}
  147. </view>
  148. </block>
  149. </view>
  150. </view>
  151. </template>
  152. <view class="screen-record">
  153. <view class="screen-record-text">
  154. 到访次数
  155. </view>
  156. <view class="screen-record-tab">
  157. <block v-for="(item,index) in visitList" :key="index">
  158. <view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  159. @click="choice(index, item.value)">
  160. {{item.label}}
  161. </view>
  162. </block>
  163. <!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']"
  164. @click="screenvisitRecord(1)">
  165. 首次到访
  166. </view>
  167. <view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']"
  168. @click="screenvisitRecord(2)">
  169. 2次到访
  170. </view>
  171. <view :class="[screen.visitRecord==3?'screen-record-chose':'screen-record-nochose']"
  172. @click="screenvisitRecord(3)">
  173. 3次到访
  174. </view>
  175. <view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']"
  176. @click="screenvisitRecord(4)">
  177. 3次以上
  178. </view> -->
  179. </view>
  180. </view>
  181. <view class="screen-foot">
  182. <view class="screen-foot-reset" @click="reset">
  183. 重置
  184. </view>
  185. <view class="screen-foot-sure" @click="screensure">
  186. 确定
  187. </view>
  188. </view>
  189. </view>
  190. </u-popup>
  191. <!-- 选择顾问的选择框 -->
  192. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  193. <!-- 客户标签 -->
  194. <u-select v-model="selectTipshow" :list="findKeywordsList" @confirm="selectCallback"></u-select>
  195. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  196. <u-popup v-model="timeshow" mode="bottom">
  197. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }"
  198. @click="tabtimetap(5, '到访时间')">
  199. 全部</view>
  200. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }"
  201. @click="tabtimetap(0, '今天')">
  202. 今天</view>
  203. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }"
  204. @click="tabtimetap(1, '昨天')">
  205. 昨天</view>
  206. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }"
  207. @click="tabtimetap(2, '近7天')">
  208. 近7天</view>
  209. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }"
  210. @click="tabtimetap(3, '近30天')">
  211. 近30天</view>
  212. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4)">
  213. 自定义</view>
  214. </u-popup>
  215. <u-popup v-model="timetushow" mode="bottom">
  216. <view class="timeview" :style="{ color: activeTotal2 == 0 ? '#2B6EFF' : '#333333' }"
  217. @click="timetap(0, '接待时长')">全部
  218. </view>
  219. <view class="timeview" :style="{ color: activeTotal2 == 1 ? '#2B6EFF' : '#333333' }"
  220. @click="timetap(1, '0~15min')">
  221. 0~15min</view>
  222. <view class="timeview" :style="{ color: activeTotal2 == 2 ? '#2B6EFF' : '#333333' }"
  223. @click="timetap(2, '15~30min')">
  224. 15~30min</view>
  225. <view class="timeview" :style="{ color: activeTotal2 == 3 ? '#2B6EFF' : '#333333' }"
  226. @click="timetap(3, '30~60min')">
  227. 30~60min</view>
  228. <view class="timeview" :style="{ color: activeTotal2 == 4 ? '#2B6EFF' : '#333333' }"
  229. @click="timetap(4, '60~90min')">
  230. 60~90min</view>
  231. <view class="timeview" :style="{ color: activeTotal2 == 5 ? '#2B6EFF' : '#333333' }"
  232. @click="timetap(5, '90min以上')">
  233. 90min以上</view>
  234. </u-popup>
  235. <u-popup v-model="soltishow" mode="bottom">
  236. <view class="soltishow" @tap.stop @touchmove.stop>
  237. <block v-for="(item, index) in orderBylist" :key="index">
  238. <view class="soltishow-item" @click="selectCallback2(item)">
  239. {{ item.label }}
  240. </view>
  241. </block>
  242. </view>
  243. </u-popup>
  244. <!-- <u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select> -->
  245. <!-- 底部导航栏 -->
  246. <!-- <u-tabbar :mid-button="true" activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList">
  247. </u-tabbar> -->
  248. </view>
  249. </template>
  250. <script>
  251. import tabbarList from '@/utils/tabbar.js'
  252. let _this
  253. export default {
  254. data() {
  255. return {
  256. // tabbar配置项
  257. current: 1,
  258. tabbarList: tabbarList,
  259. //--- end --- tabbar配置项
  260. orderBylist: [{
  261. label: '创建时间倒序',
  262. value: '1'
  263. },
  264. {
  265. label: '创建时间正序',
  266. value: '2'
  267. },
  268. {
  269. label: '接待时间倒序',
  270. value: '3'
  271. },
  272. {
  273. label: '接待时间正序',
  274. value: '4'
  275. },
  276. {
  277. label: '执行率正序',
  278. value: '5'
  279. },
  280. {
  281. label: '执行率倒序',
  282. value: '6'
  283. },
  284. {
  285. label: '接访次数正序',
  286. value: '7'
  287. },
  288. {
  289. label: '接访次数倒序',
  290. value: '8'
  291. },
  292. ],
  293. value: '',
  294. screenShow: false,
  295. selectshow: false,
  296. selectTipshow: false,
  297. buildingID: '',
  298. screen: {
  299. agentId: '',
  300. agentIdtext: '',
  301. visitRecord: [],
  302. record: [],
  303. cunsumerTips: '',
  304. cunsumerTipsid: '',
  305. },
  306. stageList: ['未知', '到访', '意向', '定金', '成交'],
  307. recordList: [],
  308. nextPage: 1,
  309. totalRecord: '',
  310. totalRecords: '', // 总条数
  311. freeList: [],
  312. userInfo: {},
  313. findKeywordsList: [],
  314. isnorefresh: '',
  315. activeTotal: 5,
  316. activeTotal2: 0,
  317. totalTimeShow: false,
  318. timeshow: false,
  319. timetushow: false,
  320. soltishow: false,
  321. staTime: '',
  322. endtime: '',
  323. orderBy: '', // 排序的id
  324. permissions: {
  325. commonly1: false,
  326. commonly2: false
  327. },
  328. list: [], // 客户来源列表
  329. sourceId: '', // 选中的客户来源id
  330. sourceIndex: -1, // 选中项的下标
  331. // 不同等级之间的颜色
  332. colorName: [
  333. '', "A", "B", "C", "D"
  334. ],
  335. // 筛选文字展示
  336. sortFilter: '排序',
  337. arriveFilter: '到访时间',
  338. receptionDuration: '接待时长',
  339. visitList: [{
  340. label: '首次到访',
  341. value: 1,
  342. isShow: false,
  343. }, {
  344. label: '2次到访',
  345. value: 2,
  346. isShow: false,
  347. }, {
  348. label: '3次到访',
  349. value: 3,
  350. isShow: false,
  351. }, {
  352. label: '3次以上',
  353. value: 4,
  354. isShow: false,
  355. }, ],
  356. levelList: [{
  357. label: 'A',
  358. value: 1,
  359. isShow: false,
  360. }, {
  361. label: 'B',
  362. value: 2,
  363. isShow: false,
  364. }, {
  365. label: 'C',
  366. value: 3,
  367. isShow: false,
  368. }, {
  369. label: 'D',
  370. value: 4,
  371. isShow: false,
  372. }, ],
  373. isRefresh: false
  374. }
  375. },
  376. onLoad(options) {
  377. _this = this
  378. this.isnorefresh = 'refresh';
  379. this.userInfo = uni.getStorageSync("weapp_session_userInfo_data")
  380. console.log(this.userInfo.showPhoneStatus)
  381. if (this.isnorefresh == 'refresh') {
  382. this.buildingID = uni.getStorageSync('buildingID').id;
  383. this.nextPage = 1;
  384. this.recordList = []
  385. this.getFreeList()
  386. this.getfindKeywordsList()
  387. this.getFromSource();
  388. this.isRefresh = false;
  389. this.getMyCustom()
  390. }
  391. },
  392. onPullDownRefresh() {
  393. this.nextPage = 1;
  394. this.isRefresh = true;
  395. this.resetFilter()
  396. this.reset()
  397. this.getFreeList()
  398. this.getfindKeywordsList()
  399. this.getFromSource();
  400. this.getMyCustom();
  401. setTimeout(() => {
  402. uni.stopPullDownRefresh()
  403. }, 2000)
  404. },
  405. onShow() {
  406. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  407. this.permissions.commonly1 = newmenulist.khgl_ck;
  408. this.permissions.commonly2 = newmenulist.khgl_gj;
  409. },
  410. onReachBottom() {
  411. if (this.totalRecord == this.nextPage) {
  412. uni.showToast({
  413. icon: 'none',
  414. title: '到底了',
  415. duration: 2000
  416. });
  417. return
  418. } else {
  419. this.isRefresh = false;
  420. this.nextPage += 1;
  421. this.getMyCustom();
  422. }
  423. },
  424. methods: {
  425. filterFun(){
  426. },
  427. // 过滤
  428. resetFilter() {
  429. this.sortFilter = '排序';
  430. this.orderBy = null;
  431. this.arriveFilter = '到访时间';
  432. this.staTime = '';
  433. this.endtime = '';
  434. this.nextPage = 1;
  435. this.activeTotal = 5;
  436. this.recordList = [];
  437. this.receptionDuration = '接待时长';
  438. this.activeTotal2 = 0;
  439. },
  440. // 获取客户来源
  441. getFromSource() {
  442. this.$u.get('customer/findCustomerSourceList', {
  443. houseId: this.buildingID
  444. }).then(res => {
  445. console.log('我进来了')
  446. this.list = res
  447. })
  448. },
  449. tapsoltishow() {
  450. this.soltishow = true;
  451. },
  452. taptimetuisshow() {
  453. this.timetushow = true;
  454. },
  455. taptimeisshow() {
  456. this.timeshow = true;
  457. },
  458. //选择标签
  459. selectCallback2(e) {
  460. this.sortFilter = e.label;
  461. this.orderBy = e.value;
  462. this.nextPage = 1;
  463. this.recordList = [];
  464. this.soltishow = false
  465. this.isRefresh = false;
  466. this.getMyCustom();
  467. },
  468. //选择录音时长
  469. timetap(index, text) {
  470. if (text) this.receptionDuration = text
  471. this.timetushow = false;
  472. this.activeTotal2 = index;
  473. this.nextPage = 1;
  474. this.recordList = [];
  475. this.isRefresh = false;
  476. this.getMyCustom();
  477. },
  478. //时间选择
  479. tabtimetap(index, text) {
  480. this.timeshow = false;
  481. if (text) this.arriveFilter = text
  482. if (index == 4) {
  483. this.totalTimeShow = true;
  484. } else {
  485. this.activeTotal = index;
  486. this.staTime = '';
  487. this.endtime = '';
  488. this.nextPage = 1;
  489. this.isRefresh = false;
  490. this.recordList = [];
  491. this.getMyCustom();
  492. }
  493. },
  494. //自定义时间
  495. totalTimeChange(e) {
  496. this.staTime = e.startDate;
  497. this.endtime = e.endDate;
  498. this.activeTotal = 4;
  499. this.nextPage = 1;
  500. this.recordList = [];
  501. this.isRefresh = false;
  502. this.getMyCustom();
  503. },
  504. recordclick(i) {
  505. if (this.screen.record == i) {
  506. this.screen.record = null
  507. } else {
  508. this.screen.record = i
  509. }
  510. },
  511. choice(index, e) {
  512. if (this.visitList[index].isShow == true) {
  513. this.visitList[index].isShow = false;
  514. for (var i = 0; i < this.screen.visitRecord.length; i++) {
  515. if (this.screen.visitRecord[i] === e) {
  516. this.screen.visitRecord.splice(i, 1);
  517. }
  518. }
  519. } else {
  520. this.visitList[index].isShow = true;
  521. console.log(this.screen)
  522. this.screen.visitRecord.push(e)
  523. }
  524. },
  525. choiceLevel(index, e) {
  526. if (this.levelList[index].isShow == true) {
  527. this.levelList[index].isShow = false;
  528. for (var i = 0; i < this.screen.record.length; i++) {
  529. if (this.screen.record[i] === e) {
  530. this.screen.record.splice(i, 1);
  531. }
  532. }
  533. } else {
  534. this.levelList[index].isShow = true;
  535. this.screen.record.push(e)
  536. }
  537. },
  538. screenvisitRecord(i) {
  539. if (this.screen.visitRecord == i) {
  540. this.screen.visitRecord = ''
  541. } else {
  542. this.screen.visitRecord = i
  543. }
  544. },
  545. // 客户详情
  546. gotoDetail(id) {
  547. if (this.permissions.commonly1 == true) {
  548. uni.navigateTo({
  549. url: `/pages/center/consumer/consumerDetail?id=${id}`
  550. })
  551. }
  552. },
  553. getMyCustom() {
  554. let dateType = 0;
  555. let recDurationInterval = 0;
  556. let orderBy = 0;
  557. if (this.activeTotal == 5) {
  558. dateType = null;
  559. } else if (this.activeTotal == 4) {
  560. dateType = null;
  561. } else {
  562. dateType = this.activeTotal;
  563. }
  564. if (this.activeTotal2 == 0) {
  565. recDurationInterval = null
  566. } else {
  567. recDurationInterval = this.activeTotal2
  568. }
  569. if (this.orderBy == 0) {
  570. orderBy = null;
  571. } else {
  572. orderBy = this.orderBy;
  573. }
  574. var parames = {
  575. pageNum: this.nextPage,
  576. pageSize: 10,
  577. query: {
  578. projectId: this.buildingID,
  579. keywordsId: this.screen.cunsumerTipsid,
  580. agentId: this.screen.agentId,
  581. dateType: dateType,
  582. staDate: this.staTime,
  583. endDate: this.endtime,
  584. recDurationInterval: recDurationInterval,
  585. orderBy: orderBy,
  586. sourceId: this.sourceId
  587. }
  588. };
  589. console.log(this.screen.visitRecord)
  590. if (this.screen.visitRecord.length > 0) {
  591. parames.query.visitRecords = this.screen.visitRecord.join(',');
  592. }
  593. if (this.screen.record.length > 0) {
  594. parames.query.level = this.screen.record.join(',');
  595. }
  596. this.$u.post("/customer/customerManagement", parames).then(data => {
  597. if (this.staTime && this.endtime) {
  598. this.receptionDuration = `${this.staTime}-${this.endtime}`
  599. }
  600. var list = data.results || [];
  601. console.log(list)
  602. list.forEach(item => {
  603. if (item.demand.cusSemanticWordsList != null) {
  604. item.demand.cusSemanticWordsList.forEach(che => {
  605. if (che.isInterval == 0) {
  606. che.name = che.name + che.unit + '-' + che.endName + che.unit;
  607. }
  608. })
  609. }
  610. })
  611. if (this.isRefresh) {
  612. this.recordList = list;
  613. } else {
  614. this.recordList = [...this.recordList, ...list];
  615. }
  616. this.totalRecord = data.totalPage;
  617. this.totalRecords = data.totalRecord;
  618. })
  619. },
  620. //获取顾问列表
  621. getFreeList() {
  622. this.freeList = []
  623. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {
  624. houseId: this.buildingID
  625. }).then(res => {
  626. this.freeList = res;
  627. this.freeList.forEach(item => {
  628. item.label = item.name;
  629. item.value = item.accountId
  630. })
  631. })
  632. },
  633. //获取客户标签
  634. getfindKeywordsList() {
  635. this.findKeywordsList = []
  636. this.$u.post("/customer/findKeywords", {
  637. houseId: this.buildingID
  638. }).then(res => {
  639. res.forEach(item => {
  640. if (item.isInterval == 0) {
  641. item.label = item.name + item.unit + '-' + item.endName + item.unit;
  642. } else {
  643. item.label = item.name
  644. }
  645. item.value = item.id;
  646. })
  647. this.findKeywordsList = res;
  648. })
  649. },
  650. // 筛选
  651. screenshow() {
  652. this.screenShow = true
  653. },
  654. //选择顾问
  655. actionSelectCallback(e) {
  656. this.screen.agentId = e[0].value;
  657. this.screen.agentIdtext = e[0].label;
  658. },
  659. //选择标签
  660. selectCallback(e) {
  661. this.screen.cunsumerTips = e[0].label;
  662. this.screen.cunsumerTipsid = e[0].value;
  663. },
  664. //重置
  665. reset() {
  666. this.screen = {
  667. agentId: '',
  668. agentIdtext: '',
  669. visitRecord: [],
  670. record: [],
  671. cunsumerTips: '',
  672. cunsumerTipsid: '',
  673. level: ''
  674. }
  675. this.visitList.map(i => {
  676. i.isShow = false
  677. })
  678. this.levelList.map(i => {
  679. i.isShow = false
  680. })
  681. this.nextPage = 1;
  682. this.recordList = [];
  683. this.sourceId = '';
  684. this.sourceIndex = -1;
  685. this.isRefresh = false;
  686. this.getMyCustom();
  687. },
  688. //筛选确认
  689. screensure() {
  690. this.nextPage = 1;
  691. this.recordList = [];
  692. this.screenShow = false;
  693. this.isRefresh = false;
  694. this.getMyCustom();
  695. },
  696. goSearch() {
  697. uni.navigateTo({
  698. url: '/pages/center/consumer/consumerSearch'
  699. });
  700. },
  701. gotoFollowUp(item) {
  702. uni.navigateTo({
  703. url: `/pages/center/consumer/newFollowup/newFollowup?id=${item.id}&level=${item.level}&clientStageName=${item.clientStageName}`
  704. })
  705. },
  706. },
  707. filters: {
  708. // 筛选等级展示文字
  709. levelText(level) {
  710. let str = '';
  711. switch (Number(level)) {
  712. case 1:
  713. str = "A"
  714. break;
  715. case 2:
  716. str = "B"
  717. break;
  718. case 3:
  719. str = "C"
  720. break;
  721. case 4:
  722. str = "D"
  723. break;
  724. default:
  725. str = ''
  726. break;
  727. }
  728. return str
  729. },
  730. // 加密手机
  731. phoneText(mobile) {
  732. if (!mobile) return '--'
  733. if (_this.userInfo.showPhoneStatus == 1) return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  734. else return mobile
  735. },
  736. // 格式化时间
  737. formatTime(time) {
  738. if (!time) return
  739. return time.substring(5, time.length)
  740. }
  741. }
  742. }
  743. </script>
  744. <style lang="scss" scoped>
  745. .box {
  746. width: 100vw;
  747. min-height: calc(100vh - var(--window-top));
  748. background: #F8F8F8;
  749. display: flex;
  750. flex-direction: column;
  751. .content {
  752. flex-grow: 1;
  753. }
  754. }
  755. .timeview {
  756. height: 80rpx;
  757. line-height: 80rpx;
  758. width: 100%;
  759. text-align: center;
  760. border-bottom: 1px solid #F8F8F8;
  761. }
  762. //时间切换的样式
  763. .boxtittab {
  764. position: sticky;
  765. top: var(--window-top);
  766. z-index: 999;
  767. width: 100;
  768. height: 72rpx;
  769. background: #FFFFFF;
  770. flex-shrink: 0;
  771. display: flex;
  772. align-items: center;
  773. .tabbox {
  774. flex: 1;
  775. height: 100%;
  776. text-align: center;
  777. line-height: 72rpx;
  778. color: #666666;
  779. font-size: 28rpx;
  780. overflow: hidden;
  781. text-overflow: ellipsis;
  782. display: -webkit-box;
  783. /* 将对象作为弹性伸缩盒子模型显示 */
  784. -webkit-line-clamp: 1;
  785. /* 控制最多显示几行 */
  786. -webkit-box-orient: vertical;
  787. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  788. }
  789. }
  790. .soltishow {
  791. width: 100%;
  792. min-height: 40vh;
  793. .soltishow-item {
  794. width: 100%;
  795. height: 80rpx;
  796. display: flex;
  797. align-items: center;
  798. justify-content: center;
  799. }
  800. }
  801. .search-box {
  802. width: 100%;
  803. height: 102rpx;
  804. background: #FFFFFF;
  805. display: flex;
  806. align-items: center;
  807. justify-content: center;
  808. .filter{
  809. width: 40rpx;
  810. height: 40rpx;
  811. margin-left: 30rpx;
  812. }
  813. .search {
  814. width: 620rpx;
  815. height: 70rpx;
  816. display: flex;
  817. align-items: center;
  818. background: #F8F8F8;
  819. border-radius: 33rpx;
  820. .search-img {
  821. width: 26rpx;
  822. height: 30rpx;
  823. margin-left: 20rpx;
  824. .search-img1 {
  825. width: 100%;
  826. height: 100%;
  827. margin-top: 2rpx;
  828. }
  829. }
  830. .search-text {
  831. font-size: 28rpx;
  832. font-weight: 400;
  833. color: #999999;
  834. margin-left: 10rpx;
  835. }
  836. }
  837. .search-screen {
  838. width: 40rpx;
  839. height: 40rpx;
  840. margin-left: 30rpx;
  841. .search-screen1 {
  842. width: 100%;
  843. height: 100%;
  844. }
  845. }
  846. }
  847. .count {
  848. width: 100%;
  849. height: 82rpx;
  850. line-height: 82rpx;
  851. display: flex;
  852. align-items: center;
  853. justify-content: center;
  854. background-color: #f8f8f8;
  855. font-size: 30rpx;
  856. font-family: PingFangSC-Regular, PingFang SC;
  857. font-weight: 400;
  858. color: #333333;
  859. text {
  860. color: #E7483C;
  861. }
  862. }
  863. .content {
  864. .content-tips {
  865. background: #fff;
  866. margin-bottom: 20rpx;
  867. .content-first {
  868. padding: 19rpx 30rpx;
  869. display: flex;
  870. justify-content: space-between;
  871. align-items: center;
  872. box-sizing: border-box;
  873. color: #292929;
  874. height: 90rpx;
  875. font-size: 30rpx;
  876. .left {
  877. display: flex;
  878. align-items: center;
  879. .img {
  880. width: 48rpx;
  881. height: 48rpx;
  882. line-height: 48rpx;
  883. text-align: center;
  884. margin-right: 16rpx;
  885. background: #E6625B;
  886. border-radius: 6rpx;
  887. font-size: 28rpx;
  888. font-family: PingFangSC-Regular, PingFang SC;
  889. font-weight: 400;
  890. color: #FFFFFF;
  891. }
  892. .clientStageName {
  893. margin-right: 20rpx;
  894. padding: 0 16rpx;
  895. font-size: 28rpx;
  896. font-family: PingFangSC-Regular, PingFang SC;
  897. font-weight: 400;
  898. color: #FF981E;
  899. height: 48rpx;
  900. line-height: 48rpx;
  901. background: #FFFFFF;
  902. border-radius: 4rpx;
  903. border: 1rpx solid #FF981E;
  904. }
  905. .A {
  906. background: #E6625B;
  907. }
  908. .B {
  909. background: #F29819;
  910. }
  911. .C {
  912. background: #19AC09;
  913. }
  914. .D {
  915. background: #1396F6;
  916. }
  917. .test {
  918. height: 42rpx;
  919. font-size: 30rpx;
  920. font-family: PingFangSC-Medium, PingFang SC;
  921. font-weight: 500;
  922. color: #333333;
  923. line-height: 42rpx;
  924. margin-right: 16rpx;
  925. }
  926. }
  927. .right {
  928. display: flex;
  929. align-items: center;
  930. color: #2671E2;
  931. font-size: 30rpx;
  932. .right-img {
  933. margin: 5rpx 0 0 10rpx;
  934. width: 14rpx;
  935. height: 30rpx;
  936. }
  937. }
  938. }
  939. .content-sec {
  940. border-top: 1px solid #E0E0E0;
  941. padding: 0 30rpx;
  942. padding-bottom: 30rpx;
  943. position: relative;
  944. .content-sec-lab {
  945. margin-top: 28rpx;
  946. display: flex;
  947. font-size: 30rpx;
  948. font-weight: 400;
  949. color: #333;
  950. line-height: 42rpx;
  951. .content-sec-lab1 {
  952. color: #333333;
  953. }
  954. .content-sec-tips {
  955. padding: 0 20rpx;
  956. height: 48rpx;
  957. background: #F4F8FD;
  958. border-radius: 6rpx;
  959. max-width: 160rpx;
  960. text-align: center;
  961. line-height: 48rpx;
  962. overflow: hidden;
  963. text-overflow: ellipsis;
  964. white-space: nowrap;
  965. font-weight: 400;
  966. margin-right: 12rpx;
  967. box-sizing: border-box;
  968. font-size: 28rpx;
  969. font-family: PingFangSC-Regular, PingFang SC;
  970. color: #2671E2;
  971. }
  972. }
  973. .content-sec-num {
  974. position: absolute;
  975. width: 196rpx;
  976. height: 112rpx;
  977. border-radius: 8rpx;
  978. top: 28rpx;
  979. right: 30rpx;
  980. padding: 16rpx 20rpx;
  981. background: #F4F8FD;
  982. color: #2671E2;
  983. line-height: 40rpx;
  984. text-align: center;
  985. }
  986. }
  987. .content-last {
  988. height: 108rpx;
  989. display: flex;
  990. justify-content: flex-end;
  991. align-items: center;
  992. .content-last-tab {
  993. width: 214rpx;
  994. height: 70rpx;
  995. background: #FFFFFF;
  996. border-radius: 8rpx;
  997. border: 1rpx solid #2671E2;
  998. font-family: PingFangSC-Regular, PingFang SC;
  999. font-weight: 400;
  1000. color: #2671E2;
  1001. font-size: 30rpx;
  1002. margin-right: 30rpx;
  1003. display: flex;
  1004. align-items: center;
  1005. justify-content: center;
  1006. image{
  1007. width: 40rpx;
  1008. height: 40rpx;
  1009. margin-right: 12rpx;
  1010. }
  1011. }
  1012. }
  1013. }
  1014. }
  1015. // 这是弹出层
  1016. .screen {
  1017. // box-sizing: border-box;
  1018. // padding: 0 30rpx;
  1019. .screen-counselor {
  1020. display: flex;
  1021. height: 106rpx;
  1022. // padding: 40rpx 30rpx 36rpx 30rpx;
  1023. padding: 0 30rpx;
  1024. box-sizing: border-box;
  1025. border-bottom: 1px solid #E0E0E0;
  1026. .screen-text {
  1027. flex-shrink: 0;
  1028. margin: 40rpx 0 36rpx 0;
  1029. font-size: 30rpx;
  1030. font-weight: 400;
  1031. color: #333333;
  1032. line-height: 30rpx;
  1033. }
  1034. .screen-sel {
  1035. flex-grow: 1;
  1036. display: flex;
  1037. justify-content: flex-end;
  1038. align-items: center;
  1039. margin-left: 60rpx;
  1040. .screen-sel-img {
  1041. flex-shrink: 0;
  1042. margin: 40rpx 0 36rpx 0;
  1043. width: 14rpx;
  1044. height: 30rpx;
  1045. }
  1046. .screen-inp {
  1047. padding: 0 20rpx;
  1048. text-align: right;
  1049. }
  1050. }
  1051. }
  1052. .screen-record {
  1053. height: 192rpx;
  1054. // width: 100%;
  1055. overflow: hidden;
  1056. padding: 0 30rpx;
  1057. box-sizing: border-box;
  1058. border-bottom: 1px solid #E0E0E0;
  1059. .screen-record-text {
  1060. margin-top: 36rpx;
  1061. font-size: 30rpx;
  1062. font-weight: 400;
  1063. color: #333333;
  1064. line-height: 30rpx;
  1065. }
  1066. .screen-record-tab {
  1067. margin-top: 30rpx;
  1068. display: flex;
  1069. // justify-content: space-around;
  1070. .screen-record-chose {
  1071. width: 156rpx;
  1072. height: 60rpx;
  1073. background: #2671E2;
  1074. border-radius: 4rpx;
  1075. border: 1px solid #2671E2;
  1076. text-align: center;
  1077. line-height: 60rpx;
  1078. margin-right: 22rpx;
  1079. color: #FFFFFF;
  1080. }
  1081. .screen-record-nochose {
  1082. width: 156rpx;
  1083. height: 60rpx;
  1084. background: #FFFFFF;
  1085. border-radius: 4rpx;
  1086. border: 1px solid #C9C9C9;
  1087. text-align: center;
  1088. line-height: 60rpx;
  1089. margin-right: 22rpx;
  1090. }
  1091. }
  1092. }
  1093. .screen-foot {
  1094. width: 100%;
  1095. height: 88rpx;
  1096. display: flex;
  1097. .screen-foot-reset {
  1098. width: 50%;
  1099. text-align: center;
  1100. height: 88rpx;
  1101. line-height: 88rpx;
  1102. font-size: 30rpx;
  1103. font-weight: 400;
  1104. color: #666666;
  1105. }
  1106. .screen-foot-sure {
  1107. width: 50%;
  1108. text-align: center;
  1109. line-height: 88rpx;
  1110. height: 88rpx;
  1111. font-size: 30rpx;
  1112. font-weight: 400;
  1113. color: #FFFFFF;
  1114. background: #2671E2;
  1115. }
  1116. }
  1117. }
  1118. </style>