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.

index.vue 24 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. <template>
  2. <view class="box">
  3. <!-- 搜索框点击跳转 -->
  4. <!-- <view>
  5. <view class="search-box">
  6. <view class="search" @click="goSearch">
  7. <view class="search-img">
  8. <image class="search-img1" src="../../../static/images/search.png" mode=""></image>
  9. </view>
  10. <view class="search-text">输入客户姓名/手机号</view>
  11. </view>
  12. </view>
  13. </view>
  14. -->
  15. <!-- 选择器 -->
  16. <view class="boxtittab">
  17. <view class="tabbox" @click="taptimeisshow">
  18. {{ startFilterTime }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  19. </view>
  20. <view class="tabbox" @click="taptimetuisshow">
  21. {{ receptionDuration }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  22. </view>
  23. <view class="tabbox" @click="tapsoltishow">
  24. {{ sortText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  25. </view>
  26. <view class="tabbox" @click="screenshow">
  27. 更多筛选<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
  28. </view>
  29. </view>
  30. <!-- 筛选后的数量 -->
  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"
  36. style="width: 100%;height: 100%;display: flex;align-items: center;background: #FFFFFF;">
  37. <view style="width: 100%;padding-top: 200rpx;">
  38. <view style="width: 100%;text-align: center;">
  39. <image style="width: 220rpx;height: 200rpx;"
  40. src="https://static.quhouse.com/zhikong_xcx_img/nodatalist.png" mode=""></image>
  41. </view>
  42. <view style="text-align: center;width: 100%;margin-top: 20rpx;color: #999999;">暂无数据</view>
  43. </view>
  44. </view>
  45. <view v-if="recordList.length!=0" class="content-tips" v-for="(item,index) in recordList" :key='index'
  46. @click="tapThevisiting(item)">
  47. <view class="content-first">
  48. <view class="left">
  49. <view class="adviser">顾</view>
  50. <view class="name">{{item.agentName}}</view>
  51. <!-- <view class="status" v-if="item.replaceReception==1">代接待</view> -->
  52. </view>
  53. <view class="right" v-if="item.recording!=0">
  54. <view v-if="item.receptionStatusName" style="margin-right: 6rpx;color: red;">{{item.receptionStatusName.slice(0, 2) || ''}}</view>
  55. <text style="margin-right: 6rpx;" v-if="item.receptionStatusName"> |</text>
  56. <view v-if="methodsisshow">
  57. <text style="margin-right: 6rpx;color: red;" v-if="item.taboo==1">违禁</text>
  58. <text style="margin-right: 6rpx;" v-if="item.taboo==1"> |</text>
  59. </view>
  60. <view v-if="item.validInvalidName" style="margin-right: 6rpx;">{{item.validInvalidName.slice(0, 2)||''}}</view>
  61. <text style="margin-right: 6rpx;" v-if="item.validInvalidName"> |</text>
  62. <view v-if="item.markAdvisor==0" class="">未标记</view>
  63. <view v-if="item.markAdvisor==1" class="">已标记</view>
  64. </view>
  65. <view class="right" v-else>
  66. <view class="">无录音</view>
  67. </view>
  68. </view>
  69. <view class="content-sec">
  70. <view class="left">
  71. <view class="adviser">客</view>
  72. <view class="cus">{{item.name || '--'}}</view>
  73. <!-- <view class="arriveNum">第{{item.visitRecord || "--"}}次接待</view> -->
  74. <view class="arriveNum">{{ item.phone | encryption }}</view>
  75. </view>
  76. <view class="right">
  77. <image src="../static/img/power.png" class="img" mode=""></image>
  78. {{item.fraction || '0'}}%
  79. </view>
  80. </view>
  81. <view class="content-last">
  82. <view class="c-items">
  83. <image src="../static/img/people.png" class="c-items-img" mode=""></image>
  84. {{ item.visitRecord || "--" }}次到访
  85. </view>
  86. <view class="c-items">
  87. <image src="../static/img/time.png" class="c-items-img" mode=""></image>
  88. {{ item.createTime }}
  89. </view>
  90. <view class="c-items">
  91. <image src="../static/img/voice.png" class="c-items-img" mode=""></image>
  92. {{ item.mm || '0' }}min
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <u-popup v-model="screenShow" mode="top" height="780">
  98. <view class="screen">
  99. <!-- 顾问选择 -->
  100. <view class="screen-counselor">
  101. <view class="screen-text">
  102. 所属顾问
  103. </view>
  104. <view class="screen-sel" @click="selectshow = true">
  105. <input v-model="screen.counselorName" type="text" placeholder='请选择'
  106. class="screen-inp" disabled />
  107. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  108. </view>
  109. </view>
  110. <view class="screen-record">
  111. <view class="screen-record-text">
  112. 录音标识
  113. </view>
  114. <view class="screen-record-tab">
  115. <view :class="[screen.validInvalid==0?'screen-record-chose':'screen-record-nochose']"
  116. @click="screenvisivalidInvalid(0)">
  117. 有效接待
  118. </view>
  119. <view :class="[screen.validInvalid==1?'screen-record-chose':'screen-record-nochose']"
  120. @click="screenvisivalidInvalid(1)">
  121. 无效接待
  122. </view>
  123. </view>
  124. </view>
  125. <view class="screen-record">
  126. <view class="screen-record-text">
  127. 标记顾问
  128. </view>
  129. <view class="screen-record-tab">
  130. <view :class="[screen.markAdvisor==1?'screen-record-chose':'screen-record-nochose']"
  131. @click="screenvisitRecord(1)">
  132. 标记
  133. </view>
  134. <view :class="[screen.markAdvisor==0?'screen-record-chose':'screen-record-nochose']"
  135. @click="screenvisitRecord(0)">
  136. 未标记
  137. </view>
  138. </view>
  139. </view>
  140. <view class="screen-record">
  141. <view class="screen-record-text">
  142. 到访次数
  143. </view>
  144. <view class="screen-record-tab">
  145. <block v-for="(item,index) in visitList" :key="index">
  146. <view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
  147. @click="choice(index,item.value)">
  148. {{item.label}}
  149. </view>
  150. </block>
  151. <!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']"
  152. @click="recordclick(1)">
  153. 首次到访
  154. </view>
  155. <view :class="[screen.visitRecord==2?'screen-record-chose':'screen-record-nochose']"
  156. @click="recordclick(2)">
  157. 2次到访
  158. </view>
  159. <view :class="[screen.visitRecord==3?'screen-record-chose':'screen-record-nochose']"
  160. @click="recordclick(3)">
  161. 3次到访
  162. </view>
  163. <view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']"
  164. @click="recordclick(4)">
  165. 3次以上
  166. </view> -->
  167. </view>
  168. </view>
  169. <view class="screen-foot">
  170. <view class="screen-foot-reset" @click="reset">
  171. 重置
  172. </view>
  173. <view class="screen-foot-sure" @click="screensure">
  174. 确定
  175. </view>
  176. </view>
  177. </view>
  178. </u-popup>
  179. <!-- 选择顾问的选择框 -->
  180. <u-select v-model="selectshow" :list="freeList" @confirm="actionSelectCallback"></u-select>
  181. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  182. <u-popup v-model="timeshow" mode="bottom">
  183. <view class="timeview" :style="{ color: activeTotal == 5 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(5, '接待时间')">
  184. 全部</view>
  185. <view class="timeview" :style="{ color: activeTotal == 0 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(0, '今天')">
  186. 今天</view>
  187. <view class="timeview" :style="{ color: activeTotal == 1 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(1, '昨天')">
  188. 昨天</view>
  189. <view class="timeview" :style="{ color: activeTotal == 2 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(2, '近7天')">
  190. 近7天</view>
  191. <view class="timeview" :style="{ color: activeTotal == 3 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(3, '近30天')">
  192. 近30天</view>
  193. <view class="timeview" :style="{ color: activeTotal == 4 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(4)">
  194. 自定义</view>
  195. </u-popup>
  196. <u-popup v-model="timetushow" mode="bottom">
  197. <view class="timeview" :style="{ color: activeTotal2 == 0 ? '#2B6EFF' : '#333333' }" @click="timetap(0, '接待时长')">全部
  198. </view>
  199. <view class="timeview" :style="{ color: activeTotal2 == 1 ? '#2B6EFF' : '#333333' }" @click="timetap(1, '0~15min')">
  200. 0~15min</view>
  201. <view class="timeview" :style="{ color: activeTotal2 == 2 ? '#2B6EFF' : '#333333' }" @click="timetap(2, '15~30min')">
  202. 15~30min</view>
  203. <view class="timeview" :style="{ color: activeTotal2 == 3 ? '#2B6EFF' : '#333333' }" @click="timetap(3, '30~60min')">
  204. 30~60min</view>
  205. <view class="timeview" :style="{ color: activeTotal2 == 4 ? '#2B6EFF' : '#333333' }" @click="timetap(4, '60~90min')">
  206. 60~90min</view>
  207. <view class="timeview" :style="{ color: activeTotal2 == 5 ? '#2B6EFF' : '#333333' }" @click="timetap(5, '90min以上')">
  208. 90min以上</view>
  209. </u-popup>
  210. <u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select>
  211. </view>
  212. </template>
  213. <script>
  214. export default {
  215. data() {
  216. return {
  217. orderBylist: [
  218. // {
  219. // label: '全部',
  220. // value: '0'
  221. // },
  222. {
  223. label: '创建时间倒序',
  224. value: '1'
  225. },
  226. {
  227. label: '创建时间正序',
  228. value: '2'
  229. },
  230. {
  231. label: '接待时间倒序',
  232. value: '3'
  233. },
  234. {
  235. label: '接待时间正序',
  236. value: '4'
  237. },
  238. {
  239. label: '执行率正序',
  240. value: '5'
  241. },
  242. {
  243. label: '执行率倒序',
  244. value: '6'
  245. },
  246. {
  247. label: '接访次数正序',
  248. value: '7'
  249. },
  250. {
  251. label: '接访次数倒序',
  252. value: '8'
  253. },
  254. ],
  255. activeTotal: 5,
  256. value: '',
  257. screenShow: false,
  258. selectshow: false,
  259. totalTimeShow: false,
  260. totalRecords: '',
  261. screen: {
  262. agentId: '', //顾问id
  263. record: '0',
  264. markAdvisor: null,
  265. visitRecord: [],
  266. validInvalid: null
  267. },
  268. freeList: [], //顾问
  269. recordList: [],
  270. buildingID: '',
  271. nextPage: 1,
  272. totalRecord: "",
  273. staTime: '',
  274. endtime: '',
  275. isnorefresh: '',
  276. activeTotal2: 0,
  277. timeshow: false,
  278. timetushow: false,
  279. soltishow: false,
  280. orderBy: '',
  281. methodsisshow: false,
  282. userInfo: {},
  283. startFilterTime: '接待时间', // s筛选状态展示
  284. receptionDuration: '接待时长', // 筛选状态展示
  285. sortText: '排序', //
  286. visitList: [{
  287. label: '首次到访',
  288. value: 1,
  289. isShow: false,
  290. }, {
  291. label: '2次到访',
  292. value: 2,
  293. isShow: false,
  294. }, {
  295. label: '3次到访',
  296. value: 3,
  297. isShow: false,
  298. }, {
  299. label: '3次以上',
  300. value: 4,
  301. isShow: false,
  302. }, ]
  303. }
  304. },
  305. onLoad(options) {
  306. this.isnorefresh = options.refresh;
  307. if (options.activeTotal) {
  308. this.activeTotal = options.activeTotal
  309. }
  310. if (options.markAdvisor) {
  311. this.screen.markAdvisor = options.markAdvisor
  312. }
  313. if (options.validInvalid) {
  314. this.screen.validInvalid = options.validInvalid
  315. }
  316. if (options.staTime) {
  317. this.staTime = options.staTime;
  318. this.endtime = options.endtime;
  319. }
  320. },
  321. onShow() {
  322. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  323. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  324. this.methodsisshow = false;
  325. } else {
  326. this.methodsisshow = true;
  327. }
  328. if (this.isnorefresh == 'refresh') {
  329. this.buildingID = uni.getStorageSync('buildingID').id;
  330. this.recordList = [];
  331. this.nextPage = 1;
  332. this.getMyCustom()
  333. this.getFreeList();
  334. this.isnorefresh = '';
  335. }
  336. },
  337. onPullDownRefresh(){
  338. this.getMyCustom()
  339. setTimeout(function () {
  340. uni.stopPullDownRefresh();
  341. }, 1000);
  342. },
  343. onReachBottom() {
  344. if (this.totalRecord == this.nextPage) {
  345. uni.showToast({
  346. icon: 'none',
  347. title: '到底了',
  348. duration: 2000
  349. });
  350. return
  351. } else {
  352. this.nextPage += 1;
  353. this.getMyCustom();
  354. }
  355. },
  356. methods: {
  357. tapsoltishow() {
  358. this.soltishow = true;
  359. },
  360. taptimetuisshow() {
  361. this.timetushow = true;
  362. },
  363. taptimeisshow() {
  364. this.timeshow = true;
  365. },
  366. //选择标签
  367. selectCallback2(e) {
  368. this.orderBy = e[0].value;
  369. this.sortText = e[0].label
  370. this.nextPage = 1;
  371. this.recordList = [];
  372. this.getMyCustom();
  373. },
  374. //选择录音时长
  375. timetap(index, text) {
  376. if (text) this.receptionDuration = text
  377. this.timetushow = false;
  378. this.activeTotal2 = index;
  379. this.nextPage = 1;
  380. this.recordList = [];
  381. this.getMyCustom();
  382. },
  383. //时间选择
  384. tabtimetap(index, text) {
  385. this.timeshow = false;
  386. if(text) {
  387. this.startFilterTime = text
  388. }
  389. if (index == 4) {
  390. this.totalTimeShow = true;
  391. } else {
  392. this.activeTotal = index;
  393. this.staTime = '';
  394. this.endtime = '';
  395. this.nextPage = 1;
  396. this.recordList = [];
  397. this.getMyCustom();
  398. }
  399. },
  400. //自定义时间
  401. totalTimeChange(e) {
  402. this.staTime = e.startDate;
  403. this.endtime = e.endDate;
  404. this.activeTotal = 4;
  405. this.nextPage = 1;
  406. this.recordList = [];
  407. this.getMyCustom();
  408. },
  409. tapThevisiting(item) {
  410. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  411. if (newmenulist.jdjl_ck != true) {
  412. return
  413. }
  414. uni.showLoading({
  415. title: '加载中',
  416. mask: true
  417. });
  418. if (item.status == 0) {
  419. setTimeout(function() {
  420. uni.hideLoading();
  421. }, 2000);
  422. uni.showToast({
  423. icon: "none",
  424. title: "排队中"
  425. })
  426. return
  427. } else {
  428. const parames = {
  429. pageNum: 1,
  430. pageSize: 100,
  431. query: {
  432. customerId: item.id,
  433. }
  434. }
  435. var item = {
  436. bg: 0,
  437. customerId: item.id,
  438. }
  439. uni.setStorageSync("searchobj", item); //写入缓存
  440. uni.setStorageSync("entrance", 1); //写入缓存
  441. this.$u.post("/corpus/findByPage", parames).then(res => {
  442. if (res == null) {
  443. setTimeout(function() {
  444. uni.hideLoading();
  445. }, 2000);
  446. uni.showToast({
  447. icon: "none",
  448. title: "暂无音频"
  449. })
  450. return
  451. } else {
  452. setTimeout(function() {
  453. uni.hideLoading();
  454. }, 2000);
  455. let newobj = res[0];
  456. if (res[0].merge == 0) {
  457. uni.navigateTo({
  458. url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}`
  459. })
  460. } else {
  461. uni.navigateTo({
  462. url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}`
  463. })
  464. }
  465. }
  466. })
  467. }
  468. },
  469. getMyCustom() {
  470. let dateType = 0;
  471. let recDurationInterval = 0;
  472. let orderBy = 0;
  473. if (this.activeTotal == 5) {
  474. dateType = null;
  475. } else if (this.activeTotal == 4) {
  476. dateType = null;
  477. } else {
  478. dateType = this.activeTotal;
  479. }
  480. if (this.activeTotal2 == 0) {
  481. recDurationInterval = null
  482. } else {
  483. recDurationInterval = this.activeTotal2
  484. }
  485. if (this.orderBy == 0) {
  486. orderBy = null;
  487. } else {
  488. orderBy = this.orderBy;
  489. }
  490. var parames = {
  491. pageNum: this.nextPage,
  492. pageSize: 10,
  493. query: {
  494. projectId: this.buildingID,
  495. time: 1,
  496. staDate: this.staTime,
  497. endDate: this.endtime,
  498. visitRecords: this.screen.visitRecord.join(","),
  499. markAdvisor: this.screen.markAdvisor,
  500. dateType: dateType,
  501. recDurationInterval: recDurationInterval,
  502. orderBy: orderBy,
  503. validInvalid: this.screen.validInvalid
  504. }
  505. };
  506. if (this.screen.agentId) {
  507. parames.query.agentId = this.screen.agentId
  508. }
  509. this.$u.post("/customer/findbypage", parames).then(data => {
  510. var list = data.results || [];
  511. this.recordList = [...this.recordList, ...list];
  512. this.totalRecord = data.totalPage;
  513. this.totalRecords = data.totalRecord;
  514. if(this.staTime && this.endtime) {
  515. this.startFilterTime = `${this.staTime}-${this.endtime}`
  516. }
  517. })
  518. },
  519. //获取顾问列表
  520. getFreeList() {
  521. this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", {houseId: this.buildingID}).then(res => {
  522. this.freeList = res;
  523. this.freeList.forEach(item => {
  524. item.label = item.name;
  525. item.value = item.accountId
  526. })
  527. })
  528. },
  529. // 筛选
  530. screenshow() {
  531. this.screenShow = true
  532. },
  533. actionSelectCallback(e) {
  534. this.screen.agentId = e[0].value;
  535. this.screen.counselorName = e[0].label
  536. this.recordList = [];
  537. this.nextPage = 1;
  538. this.getMyCustom();
  539. },
  540. reset() {
  541. this.screen = {
  542. counselorName: '',
  543. record: '0',
  544. markAdvisor: null,
  545. visitRecord: null,
  546. validInvalid: null
  547. }
  548. // this.screenShow = false;
  549. this.nextPage = 1;
  550. this.recordList = [];
  551. this.getMyCustom();
  552. },
  553. choice(index,e) {
  554. if (this.visitList[index].isShow == true) {
  555. this.visitList[index].isShow = false;
  556. for (var i = 0; i < this.screen.visitRecord.length; i++) {
  557. if (this.screen.visitRecord[i] === e) {
  558. this.screen.visitRecord.splice(i, 1);
  559. }
  560. }
  561. } else {
  562. this.visitList[index].isShow = true;
  563. this.screen.visitRecord.push(e)
  564. }
  565. },
  566. recordclick(i) {
  567. if (this.screen.visitRecord == i) {
  568. this.screen.visitRecord = null
  569. } else {
  570. this.screen.visitRecord = i
  571. }
  572. },
  573. screenvisitRecord(i) {
  574. if (this.screen.markAdvisor == i) {
  575. this.screen.markAdvisor = null
  576. } else {
  577. this.screen.markAdvisor = i
  578. }
  579. },
  580. screenvisivalidInvalid(i) {
  581. console.log(this.screen.validInvalid, i)
  582. if (this.screen.validInvalid == i) {
  583. this.screen.validInvalid = null
  584. } else {
  585. this.screen.validInvalid = i
  586. }
  587. },
  588. screensure() {
  589. this.screenShow = false;
  590. this.recordList = [];
  591. this.nextPage = 1;
  592. this.getMyCustom();
  593. },
  594. goSearch() {
  595. uni.navigateTo({
  596. url: '/pages/center/records/recordSearch'
  597. });
  598. },
  599. },
  600. filters: {
  601. // 加密手机号
  602. encryption(phone) {
  603. if (!phone) return
  604. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  605. }
  606. }
  607. }
  608. </script>
  609. <style lang="scss" scoped>
  610. .box {
  611. width: 100%;
  612. height: 100%;
  613. background: #F8F8F8;
  614. }
  615. .timeview {
  616. height: 80rpx;
  617. line-height: 80rpx;
  618. width: 100%;
  619. text-align: center;
  620. border-bottom: 1px solid #F8F8F8;
  621. }
  622. //时间切换的样式
  623. .boxtittab {
  624. position: sticky;
  625. top: var(--window-top);
  626. z-index: 999;
  627. width: 100;
  628. height: 92rpx;
  629. background: #FFFFFF;
  630. border: 1px solid #E0E0E0;
  631. display: flex;
  632. align-items: center;
  633. .tabbox {
  634. flex-shrink: 0;
  635. flex-grow: 1;
  636. height: 100%;
  637. text-align: center;
  638. line-height: 92rpx;
  639. color: #666666;
  640. font-size: 28rpx;
  641. overflow: hidden;
  642. text-overflow: ellipsis;
  643. display: -webkit-box;
  644. /* 将对象作为弹性伸缩盒子模型显示 */
  645. -webkit-line-clamp: 1;
  646. /* 控制最多显示几行 */
  647. -webkit-box-orient: vertical;
  648. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  649. }
  650. }
  651. .search-box {
  652. width: 100%;
  653. height: 102rpx;
  654. background: #FFFFFF;
  655. display: flex;
  656. align-items: center;
  657. justify-content: center;
  658. .search {
  659. width: 94%;
  660. height: 70rpx;
  661. display: flex;
  662. align-items: center;
  663. background: #F8F8F8;
  664. border-radius: 33rpx;
  665. .search-img {
  666. width: 26rpx;
  667. height: 30rpx;
  668. margin-left: 20rpx;
  669. .search-img1 {
  670. width: 100%;
  671. height: 100%;
  672. margin-top: 2rpx;
  673. }
  674. }
  675. .search-text {
  676. font-size: 28rpx;
  677. font-weight: 400;
  678. color: #999999;
  679. margin-left: 10rpx;
  680. }
  681. }
  682. .search-screen {
  683. width: 40rpx;
  684. height: 40rpx;
  685. margin-left: 30rpx;
  686. .search-screen1 {
  687. width: 100%;
  688. height: 100%;
  689. }
  690. }
  691. }
  692. .count {
  693. width: 100%;
  694. height: 90rpx;
  695. display: flex;
  696. align-items: center;
  697. justify-content: center;
  698. background-color: #FBE4E4;
  699. text {
  700. color: #F71616;
  701. }
  702. }
  703. .content {
  704. .content-tips {
  705. background: #fff;
  706. box-sizing: border-box;
  707. overflow: hidden;
  708. margin-top: 20rpx;
  709. .content-first {
  710. margin-top: 19rpx;
  711. padding: 0 30rpx;
  712. height: 92rpx;
  713. border-bottom: 1rpx solid rgba($color: #2671E2, $alpha: .1);
  714. display: flex;
  715. align-items: center;
  716. justify-content: space-between;
  717. .left {
  718. flex-shrink: 0;
  719. min-width: 50%;
  720. display: flex;
  721. align-items: center;
  722. overflow: hidden;
  723. .adviser {
  724. margin-right: 10rpx;
  725. padding: 5rpx 11rpx;
  726. border-radius: 50%;
  727. border: 1rpx solid #2671E2;
  728. font-size: 30rpx;
  729. color: #2671E2;
  730. }
  731. .img {
  732. width: 52rpx;
  733. height: 52rpx;
  734. background: #FFFFFF;
  735. border: 1px solid #C9C9C9;
  736. border-radius: 50%;
  737. text-align: center;
  738. }
  739. .name {
  740. color: #333333;
  741. font-size: 32rpx;
  742. font-weight: bold;
  743. }
  744. .status {
  745. margin-left: 19rpx;
  746. width: 110rpx;
  747. background: #FFF9F5;
  748. border-radius: 4rpx;
  749. font-size: 26rpx;
  750. font-weight: 400;
  751. color: #EC8D49;
  752. text-align: center;
  753. }
  754. }
  755. .right {
  756. max-width: 50%;
  757. display: flex;
  758. font-size: 30rpx;
  759. view,
  760. text {
  761. flex-shrink: 0;
  762. }
  763. .point {
  764. flex-shrink: 0;
  765. width: 12rpx;
  766. height: 12rpx;
  767. background: #2B6EFF;
  768. border-radius: 50%;
  769. margin-right: 9rpx;
  770. margin-top: 16rpx;
  771. }
  772. }
  773. }
  774. .content-sec {
  775. padding: 28rpx 30rpx 32rpx;
  776. display: flex;
  777. justify-content: space-between;
  778. .left {
  779. display: flex;
  780. align-items: center;
  781. .adviser {
  782. margin-right: 10rpx;
  783. padding: 5rpx 11rpx;
  784. border-radius: 50%;
  785. border: 1rpx solid #2671E2;
  786. background: #2671E2;
  787. font-size: 30rpx;
  788. color: #fff;
  789. }
  790. .cus {
  791. font-size: 30rpx;
  792. font-weight: 400;
  793. color: #666666;
  794. // line-height: 30rpx;
  795. overflow: hidden;
  796. text-overflow: ellipsis;
  797. display: -webkit-box;
  798. line-height: 23px;
  799. max-height: 46px;
  800. -webkit-line-clamp: 1;
  801. -webkit-box-orient: vertical;
  802. }
  803. .arriveNum {
  804. font-size: 30rpx;
  805. font-weight: 400;
  806. margin-left: 10rpx;
  807. }
  808. }
  809. .right {
  810. font-size: 28rpx;
  811. font-weight: 400;
  812. color: #2671E2;
  813. display: flex;
  814. align-items: center;
  815. .img {
  816. margin-right: 10rpx;
  817. width: 32rpx;
  818. height: 32rpx;
  819. }
  820. }
  821. }
  822. .content-last {
  823. padding: 0 30rpx 34rpx;
  824. font-size: 30rpx;
  825. font-weight: 400;
  826. color: #666666;
  827. display: flex;
  828. align-items: center;
  829. justify-content: space-between;
  830. .c-items {
  831. flex-shrink: 0;
  832. display: flex;
  833. align-items: center;
  834. font-size: 28rpx;
  835. .c-items-img {
  836. margin-right: 10rpx;
  837. width: 32rpx;
  838. height: 32rpx;
  839. }
  840. }
  841. }
  842. }
  843. }
  844. // 这是弹出层
  845. .screen {
  846. // box-sizing: border-box;
  847. // padding: 0 30rpx;
  848. position: absolute;
  849. .screen-counselor {
  850. display: flex;
  851. align-items: center;
  852. height: 106rpx;
  853. // padding: 40rpx 30rpx 36rpx 30rpx;
  854. padding: 0 30rpx;
  855. box-sizing: border-box;
  856. border-bottom: 1px solid #EEEEEE;
  857. .screen-text {
  858. font-size: 30rpx;
  859. font-weight: 400;
  860. color: #333333;
  861. line-height: 30rpx;
  862. }
  863. .screen-sel {
  864. display: flex;
  865. justify-content: flex-end;
  866. align-items: center;
  867. width: 500rpx;
  868. margin-left: 60rpx;
  869. .screen-sel-img {
  870. flex-shrink: 0;
  871. width: 14rpx;
  872. height: 30rpx;
  873. }
  874. .screen-inp {
  875. padding: 0 20rpx;
  876. text-align: right;
  877. }
  878. }
  879. }
  880. .screen-record {
  881. height: 192rpx;
  882. // width: 100%;
  883. overflow: hidden;
  884. padding: 0 30rpx;
  885. box-sizing: border-box;
  886. border-bottom: 1px solid #EEEEEE;
  887. .screen-record-text {
  888. margin-top: 36rpx;
  889. font-size: 30rpx;
  890. font-weight: 400;
  891. color: #333333;
  892. line-height: 30rpx;
  893. }
  894. .screen-record-tab {
  895. margin-top: 30rpx;
  896. display: flex;
  897. // justify-content: space-around;
  898. .screen-record-chose {
  899. width: 156rpx;
  900. height: 60rpx;
  901. background: #2671E2;
  902. border-radius: 4rpx;
  903. border: 1px solid #2671E2;
  904. text-align: center;
  905. line-height: 60rpx;
  906. margin-right: 22rpx;
  907. color: #FFFFFF;
  908. }
  909. .screen-record-nochose {
  910. width: 156rpx;
  911. height: 60rpx;
  912. background: #FFFFFF;
  913. border-radius: 4rpx;
  914. border: 1px solid #C9C9C9;
  915. text-align: center;
  916. line-height: 60rpx;
  917. margin-right: 22rpx;
  918. }
  919. }
  920. }
  921. .screen-foot {
  922. width: 100%;
  923. height: 100rpx;
  924. display: flex;
  925. .screen-foot-reset {
  926. width: 50%;
  927. text-align: center;
  928. height: 100rpx;
  929. line-height: 100rpx;
  930. font-size: 30rpx;
  931. font-weight: 400;
  932. color: #666666;
  933. }
  934. .screen-foot-sure {
  935. width: 50%;
  936. text-align: center;
  937. line-height: 100rpx;
  938. height: 100rpx;
  939. font-size: 30rpx;
  940. font-weight: 400;
  941. color: #FFFFFF;
  942. background: #2671E2;
  943. }
  944. }
  945. }
  946. </style>