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 11 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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 class="search-screen" @click="screenshow">
  13. <image class="search-screen1" src="../../../static/images/screen.png" mode=""></image>
  14. </view>
  15. </view>
  16. </view>
  17. <!-- 选择器 -->
  18. <view class="boxtittab">
  19. <view class="tabbox">
  20. <view :class="{ activecllasscet: activeTotal == 0 }" @click="tabtimetap(0)">今日</view>
  21. </view>
  22. <view class="tabbox">
  23. <view :class="{ activecllasscet: activeTotal == 1 }" @click="tabtimetap(1)">昨日</view>
  24. </view>
  25. <view class="tabbox">
  26. <view :class="{ activecllasscet: activeTotal == 2 }" @click="tabtimetap(2)">近一周</view>
  27. </view>
  28. <view class="tabbox">
  29. <view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
  30. </view>
  31. </view>
  32. <view class="content">
  33. <view class="content-tips">
  34. <view class="content-first">
  35. <view class="left">
  36. <view class="img">
  37. </view>
  38. <view class="name">
  39. 宋幸运
  40. </view>
  41. <view class="status">
  42. 代接待
  43. </view>
  44. </view>
  45. <view class="right">
  46. <view class="point">
  47. </view>
  48. <view class="">
  49. 优秀案例
  50. </view>
  51. </view>
  52. </view>
  53. <view class="content-sec">
  54. <view class="left">
  55. <view class="cus">
  56. 客户:王先生 |
  57. </view>
  58. <view class="arriveNum">
  59. 首次到访
  60. </view>
  61. </view>
  62. <view class="right">
  63. 88% | 55分
  64. </view>
  65. </view>
  66. <view class="content-last">
  67. 2021-07-20 16:00:30 | 80分钟
  68. </view>
  69. </view>
  70. <view class="content-tips">
  71. <view class="content-first">
  72. <view class="left">
  73. <view class="img">
  74. </view>
  75. <view class="name">
  76. 宋幸运
  77. </view>
  78. <view class="status">
  79. 代接待
  80. </view>
  81. </view>
  82. <view class="right">
  83. <view class="point">
  84. </view>
  85. <view class="">
  86. 优秀案例
  87. </view>
  88. </view>
  89. </view>
  90. <view class="content-sec">
  91. <view class="left">
  92. <view class="cus">
  93. 客户:王先生 |
  94. </view>
  95. <view class="arriveNum">
  96. 首次到访
  97. </view>
  98. </view>
  99. <view class="right">
  100. 88% | 55分
  101. </view>
  102. </view>
  103. <view class="content-last">
  104. 2021-07-20 16:00:30 | 80分钟
  105. </view>
  106. </view>
  107. </view>
  108. <u-popup v-model="screenShow" mode="top" height="770">
  109. <view class="screen">
  110. <!-- 顾问选择 -->
  111. <view class="screen-counselor">
  112. <view class="screen-text">
  113. 所属顾问
  114. </view>
  115. <view class="screen-sel">
  116. <u-input v-model="screen.counselorName" type="text" placeholder='请选择' @click="selectshow = true" class="screen-inp" disabled />
  117. <image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image>
  118. </view>
  119. </view>
  120. <!-- 录音标示 -->
  121. <view class="screen-record">
  122. <view class="screen-record-text">
  123. 录音标识
  124. </view>
  125. <view class="screen-record-tab">
  126. <view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="screen.record=0">
  127. 有效录音
  128. </view>
  129. <view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="screen.record=1">
  130. 无效录音
  131. </view>
  132. </view>
  133. </view>
  134. <view class="screen-record">
  135. <view class="screen-record-text">
  136. 标记顾问
  137. </view>
  138. <view class="screen-record-tab">
  139. <view :class="[screen.flag==0?'screen-record-chose':'screen-record-nochose']" @click="screen.flag=0">
  140. 标记
  141. </view>
  142. <view :class="[screen.flag==1?'screen-record-chose':'screen-record-nochose']" @click="screen.flag=1">
  143. 未标记
  144. </view>
  145. </view>
  146. </view>
  147. <view class="screen-record">
  148. <view class="screen-record-text">
  149. 到访次数
  150. </view>
  151. <view class="screen-record-tab">
  152. <view :class="[screen.arriveNum==0?'screen-record-chose':'screen-record-nochose']" @click="screen.arriveNum=0">
  153. 首次到访
  154. </view>
  155. <view :class="[screen.arriveNum==1?'screen-record-chose':'screen-record-nochose']" @click="screen.arriveNum=1">
  156. 第二次
  157. </view>
  158. <view :class="[screen.arriveNum==2?'screen-record-chose':'screen-record-nochose']" @click="screen.arriveNum=2">
  159. 第三次
  160. </view>
  161. <view :class="[screen.arriveNum==3?'screen-record-chose':'screen-record-nochose']" @click="screen.arriveNum=3">
  162. 三次以上
  163. </view>
  164. </view>
  165. </view>
  166. <view class="screen-foot">
  167. <view class="screen-foot-reset" @click="reset">
  168. 重置
  169. </view>
  170. <view class="screen-foot-sure" @click="screensure">
  171. 确定
  172. </view>
  173. </view>
  174. </view>
  175. </u-popup>
  176. <!-- 选择顾问的选择框 -->
  177. <u-select v-model="selectshow" :list="list" @confirm="actionSelectCallback"></u-select>
  178. </view>
  179. </template>
  180. <script>
  181. export default{
  182. data(){
  183. return{
  184. activeTotal: 2,
  185. value:'',
  186. screenShow:false,
  187. selectshow:false,
  188. screen:{
  189. counselorName:'',
  190. record:'0',
  191. flag:'0',
  192. arriveNum:'0'
  193. },
  194. list:[
  195. {
  196. value:1,
  197. label:'1'
  198. },
  199. {
  200. value:2,
  201. label:'2'
  202. },
  203. {
  204. value:3,
  205. label:'3'
  206. },
  207. {
  208. value:4,
  209. label:'4'
  210. },
  211. ],
  212. recordList:[],
  213. }
  214. },
  215. methods:{
  216. tabtimetap(idx){
  217. console.log(idx)
  218. this.activeTotal=idx
  219. },
  220. // 筛选
  221. screenshow(){
  222. this.screenShow=true
  223. },
  224. actionSelectCallback(e){
  225. console.log(e[0].label)
  226. // this.value = this.actionSheetList[index].label;
  227. this.screen.counselorName=e[0].label
  228. },
  229. reset(){
  230. this.screen={
  231. counselorName:'',
  232. record:'0',
  233. flag:'0',
  234. arriveNum:'0'
  235. }
  236. },
  237. screensure(){
  238. console.log(this.screen)
  239. this.screenShow=false
  240. },
  241. goSearch(){
  242. uni.navigateTo({
  243. url: '/pages/center/records/recordSearch'
  244. });
  245. },
  246. },
  247. onLoad() {
  248. console.log('这里是进入')
  249. }
  250. }
  251. </script>
  252. <style lang="scss" scoped>
  253. .box {
  254. width: 100%;
  255. height: 100%;
  256. background: #F8F8F8;
  257. }
  258. .search-box{
  259. width: 100%;
  260. height: 102rpx;
  261. background: #FFFFFF;
  262. display: flex;
  263. align-items: center;
  264. justify-content: center;
  265. .search{
  266. width: 620rpx;
  267. height: 70rpx;
  268. display: flex;
  269. align-items: center;
  270. background: #F8F8F8;
  271. border-radius: 33rpx;
  272. .search-img{
  273. width: 26rpx;
  274. height: 30rpx;
  275. margin-left: 20rpx;
  276. .search-img1{
  277. width: 100%;
  278. height: 100%;
  279. margin-top: 2rpx;
  280. }
  281. }
  282. .search-text{
  283. font-size: 28rpx;
  284. font-weight: 400;
  285. color: #999999;
  286. margin-left:10rpx;
  287. }
  288. }
  289. .search-screen{
  290. width: 40rpx;
  291. height: 40rpx;
  292. margin-left: 30rpx;
  293. .search-screen1{
  294. width: 100%;
  295. height: 100%;
  296. }
  297. }
  298. }
  299. .content{
  300. // background: #F8F8F8;
  301. height: 1000rpx;
  302. overflow: hidden;
  303. .content-tips{
  304. background: #fff;
  305. // height: 210rpx;
  306. padding: 0 20rpx;
  307. box-sizing: border-box;
  308. overflow: hidden;
  309. margin-top: 20rpx;
  310. .content-first{
  311. margin-top: 19rpx;
  312. display: flex;
  313. justify-content: space-between;
  314. .left{
  315. display: flex;
  316. .img{
  317. width: 52rpx;
  318. height: 52rpx;
  319. background: #FFFFFF;
  320. border: 1px solid #C9C9C9;
  321. border-radius: 50%;
  322. text-align: center;
  323. line-height: 52rpx;
  324. }
  325. .name{
  326. font-weight: 600;
  327. color: #333333;
  328. margin-left: 20rpx;
  329. margin-top: 11rpx;
  330. }
  331. .status{
  332. width: 110rpx;
  333. height: 42rpx;
  334. background: #FFF9F5;
  335. border-radius: 4rpx;
  336. font-size: 26rpx;
  337. font-weight: 400;
  338. color: #EC8D49;
  339. line-height: 42rpx;
  340. text-align: center;
  341. margin-left: 19rpx;
  342. margin-top: 11rpx;
  343. }
  344. }
  345. .right{
  346. display: flex;
  347. margin-top: 11rpx;
  348. .point{
  349. width: 12rpx;
  350. height: 12rpx;
  351. background: #2B6EFF;
  352. border-radius: 50%;
  353. margin-right: 9rpx;
  354. margin-top: 16rpx;
  355. }
  356. }
  357. }
  358. .content-sec{
  359. display: flex;
  360. justify-content: space-between;
  361. margin-top: 19rpx;
  362. .left{
  363. display: flex;
  364. .cus{
  365. font-size: 30rpx;
  366. font-weight: 400;
  367. color: #666666;
  368. line-height: 30rpx;
  369. }
  370. .arriveNum{
  371. font-size: 30rpx;
  372. font-weight: 400;
  373. line-height: 30rpx;
  374. margin-left: 10rpx;
  375. }
  376. }
  377. .right{
  378. width: 192rpx;
  379. height: 46rpx;
  380. background: #F4F8FD;
  381. border-radius: 6rpx;
  382. text-align: center;
  383. line-height: 46rpx;
  384. font-weight: 400;
  385. color: #2671E2;
  386. }
  387. }
  388. .content-last{
  389. margin: 30rpx 0;
  390. font-size: 30rpx;
  391. font-weight: 400;
  392. color: #666666;
  393. line-height: 30rpx;
  394. }
  395. }
  396. }
  397. // 这是弹出层
  398. .screen{
  399. // box-sizing: border-box;
  400. // padding: 0 30rpx;
  401. .screen-counselor{
  402. display: flex;
  403. height: 106rpx;
  404. // padding: 40rpx 30rpx 36rpx 30rpx;
  405. padding: 0 30rpx;
  406. box-sizing: border-box;
  407. border-bottom: 1px solid #CCCCCC;
  408. .screen-text{
  409. margin: 40rpx 0 36rpx 0;
  410. font-size: 30rpx;
  411. font-weight: 400;
  412. color: #333333;
  413. line-height: 30rpx;
  414. }
  415. .screen-sel{
  416. display: flex;
  417. justify-content: space-between;
  418. width: 500rpx;
  419. margin-left: 60rpx;
  420. .screen-sel-img{
  421. margin: 40rpx 0 36rpx 0;
  422. width: 14rpx;
  423. height: 30rpx;
  424. }
  425. .screen-inp{
  426. margin-top: 20rpx;
  427. }
  428. }
  429. }
  430. .screen-record{
  431. height: 192rpx;
  432. // width: 100%;
  433. overflow: hidden;
  434. padding: 0 30rpx;
  435. box-sizing: border-box;
  436. border-bottom: 1px solid #CCCCCC;
  437. .screen-record-text{
  438. margin-top: 36rpx;
  439. font-size: 30rpx;
  440. font-weight: 400;
  441. color: #333333;
  442. line-height: 30rpx;
  443. }
  444. .screen-record-tab{
  445. margin-top: 30rpx;
  446. display: flex;
  447. // justify-content: space-around;
  448. .screen-record-chose{
  449. width: 156rpx;
  450. height: 60rpx;
  451. background: #FFFFFF;
  452. border-radius: 4rpx;
  453. border: 1px solid #2671E2;
  454. text-align: center;
  455. line-height: 60rpx;
  456. margin-right: 22rpx;
  457. }
  458. .screen-record-nochose{
  459. width: 156rpx;
  460. height: 60rpx;
  461. background: #FFFFFF;
  462. border-radius: 4rpx;
  463. border: 1px solid #C9C9C9;
  464. text-align: center;
  465. line-height: 60rpx;
  466. margin-right: 22rpx;
  467. }
  468. }
  469. }
  470. .screen-foot{
  471. height: 88rpx;
  472. display: flex;
  473. .screen-foot-reset{
  474. width: 50%;
  475. text-align: center;
  476. line-height: 88rpx;
  477. font-size: 30rpx;
  478. font-weight: 400;
  479. color: #666666;
  480. }
  481. .screen-foot-sure{
  482. width: 50%;
  483. text-align: center;
  484. line-height: 88rpx;
  485. font-size: 30rpx;
  486. font-weight: 400;
  487. color: #FFFFFF;
  488. background: #2671E2;
  489. }
  490. }
  491. }
  492. </style>