No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

1089 líneas
27 KiB

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