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.
 
 
 

526 lines
11 KiB

  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. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  179. </view>
  180. </template>
  181. <script>
  182. export default{
  183. data(){
  184. return{
  185. activeTotal: 2,
  186. value:'',
  187. screenShow:false,
  188. selectshow:false,
  189. totalTimeShow: false,
  190. screen:{
  191. counselorName:'',
  192. record:'0',
  193. flag:'0',
  194. arriveNum:'0'
  195. },
  196. list:[
  197. {
  198. value:1,
  199. label:'1'
  200. },
  201. {
  202. value:2,
  203. label:'2'
  204. },
  205. {
  206. value:3,
  207. label:'3'
  208. },
  209. {
  210. value:4,
  211. label:'4'
  212. },
  213. ],
  214. recordList:[],
  215. }
  216. },
  217. methods:{
  218. tabtimetap(index){
  219. // console.log(idx)
  220. // this.activeTotal=idx
  221. if (index == 3) {
  222. this.totalTimeShow = true;
  223. } else {
  224. this.activeTotal = index;
  225. }
  226. },
  227. //自定义时间
  228. totalTimeChange(e) {
  229. console.log(e.startDate, e.endDate)
  230. this.activeTotal=3;
  231. },
  232. // 筛选
  233. screenshow(){
  234. this.screenShow=true
  235. },
  236. actionSelectCallback(e){
  237. console.log(e[0].label)
  238. // this.value = this.actionSheetList[index].label;
  239. this.screen.counselorName=e[0].label
  240. },
  241. reset(){
  242. this.screen={
  243. counselorName:'',
  244. record:'0',
  245. flag:'0',
  246. arriveNum:'0'
  247. }
  248. },
  249. screensure(){
  250. console.log(this.screen)
  251. this.screenShow=false
  252. },
  253. goSearch(){
  254. uni.navigateTo({
  255. url: '/pages/center/records/recordSearch'
  256. });
  257. },
  258. },
  259. onLoad() {
  260. console.log('这里是进入')
  261. }
  262. }
  263. </script>
  264. <style lang="scss" scoped>
  265. .box {
  266. width: 100%;
  267. height: 100%;
  268. background: #F8F8F8;
  269. }
  270. .search-box{
  271. width: 100%;
  272. height: 102rpx;
  273. background: #FFFFFF;
  274. display: flex;
  275. align-items: center;
  276. justify-content: center;
  277. .search{
  278. width: 620rpx;
  279. height: 70rpx;
  280. display: flex;
  281. align-items: center;
  282. background: #F8F8F8;
  283. border-radius: 33rpx;
  284. .search-img{
  285. width: 26rpx;
  286. height: 30rpx;
  287. margin-left: 20rpx;
  288. .search-img1{
  289. width: 100%;
  290. height: 100%;
  291. margin-top: 2rpx;
  292. }
  293. }
  294. .search-text{
  295. font-size: 28rpx;
  296. font-weight: 400;
  297. color: #999999;
  298. margin-left:10rpx;
  299. }
  300. }
  301. .search-screen{
  302. width: 40rpx;
  303. height: 40rpx;
  304. margin-left: 30rpx;
  305. .search-screen1{
  306. width: 100%;
  307. height: 100%;
  308. }
  309. }
  310. }
  311. .content{
  312. // background: #F8F8F8;
  313. height: 1000rpx;
  314. overflow: hidden;
  315. .content-tips{
  316. background: #fff;
  317. // height: 210rpx;
  318. padding: 0 20rpx;
  319. box-sizing: border-box;
  320. overflow: hidden;
  321. margin-top: 20rpx;
  322. .content-first{
  323. margin-top: 19rpx;
  324. display: flex;
  325. justify-content: space-between;
  326. .left{
  327. display: flex;
  328. .img{
  329. width: 52rpx;
  330. height: 52rpx;
  331. background: #FFFFFF;
  332. border: 1px solid #C9C9C9;
  333. border-radius: 50%;
  334. text-align: center;
  335. line-height: 52rpx;
  336. }
  337. .name{
  338. font-weight: 600;
  339. color: #333333;
  340. margin-left: 20rpx;
  341. margin-top: 11rpx;
  342. }
  343. .status{
  344. width: 110rpx;
  345. height: 42rpx;
  346. background: #FFF9F5;
  347. border-radius: 4rpx;
  348. font-size: 26rpx;
  349. font-weight: 400;
  350. color: #EC8D49;
  351. line-height: 42rpx;
  352. text-align: center;
  353. margin-left: 19rpx;
  354. margin-top: 11rpx;
  355. }
  356. }
  357. .right{
  358. display: flex;
  359. margin-top: 11rpx;
  360. .point{
  361. width: 12rpx;
  362. height: 12rpx;
  363. background: #2B6EFF;
  364. border-radius: 50%;
  365. margin-right: 9rpx;
  366. margin-top: 16rpx;
  367. }
  368. }
  369. }
  370. .content-sec{
  371. display: flex;
  372. justify-content: space-between;
  373. margin-top: 19rpx;
  374. .left{
  375. display: flex;
  376. .cus{
  377. font-size: 30rpx;
  378. font-weight: 400;
  379. color: #666666;
  380. line-height: 30rpx;
  381. }
  382. .arriveNum{
  383. font-size: 30rpx;
  384. font-weight: 400;
  385. line-height: 30rpx;
  386. margin-left: 10rpx;
  387. }
  388. }
  389. .right{
  390. width: 192rpx;
  391. height: 46rpx;
  392. background: #F4F8FD;
  393. border-radius: 6rpx;
  394. text-align: center;
  395. line-height: 46rpx;
  396. font-weight: 400;
  397. color: #2671E2;
  398. }
  399. }
  400. .content-last{
  401. margin: 30rpx 0;
  402. font-size: 30rpx;
  403. font-weight: 400;
  404. color: #666666;
  405. line-height: 30rpx;
  406. }
  407. }
  408. }
  409. // 这是弹出层
  410. .screen{
  411. // box-sizing: border-box;
  412. // padding: 0 30rpx;
  413. .screen-counselor{
  414. display: flex;
  415. height: 106rpx;
  416. // padding: 40rpx 30rpx 36rpx 30rpx;
  417. padding: 0 30rpx;
  418. box-sizing: border-box;
  419. border-bottom: 1px solid #CCCCCC;
  420. .screen-text{
  421. margin: 40rpx 0 36rpx 0;
  422. font-size: 30rpx;
  423. font-weight: 400;
  424. color: #333333;
  425. line-height: 30rpx;
  426. }
  427. .screen-sel{
  428. display: flex;
  429. justify-content: space-between;
  430. width: 500rpx;
  431. margin-left: 60rpx;
  432. .screen-sel-img{
  433. margin: 40rpx 0 36rpx 0;
  434. width: 14rpx;
  435. height: 30rpx;
  436. }
  437. .screen-inp{
  438. margin-top: 20rpx;
  439. }
  440. }
  441. }
  442. .screen-record{
  443. height: 192rpx;
  444. // width: 100%;
  445. overflow: hidden;
  446. padding: 0 30rpx;
  447. box-sizing: border-box;
  448. border-bottom: 1px solid #CCCCCC;
  449. .screen-record-text{
  450. margin-top: 36rpx;
  451. font-size: 30rpx;
  452. font-weight: 400;
  453. color: #333333;
  454. line-height: 30rpx;
  455. }
  456. .screen-record-tab{
  457. margin-top: 30rpx;
  458. display: flex;
  459. // justify-content: space-around;
  460. .screen-record-chose{
  461. width: 156rpx;
  462. height: 60rpx;
  463. background: #FFFFFF;
  464. border-radius: 4rpx;
  465. border: 1px solid #2671E2;
  466. text-align: center;
  467. line-height: 60rpx;
  468. margin-right: 22rpx;
  469. }
  470. .screen-record-nochose{
  471. width: 156rpx;
  472. height: 60rpx;
  473. background: #FFFFFF;
  474. border-radius: 4rpx;
  475. border: 1px solid #C9C9C9;
  476. text-align: center;
  477. line-height: 60rpx;
  478. margin-right: 22rpx;
  479. }
  480. }
  481. }
  482. .screen-foot{
  483. height: 88rpx;
  484. display: flex;
  485. .screen-foot-reset{
  486. width: 50%;
  487. text-align: center;
  488. line-height: 88rpx;
  489. font-size: 30rpx;
  490. font-weight: 400;
  491. color: #666666;
  492. }
  493. .screen-foot-sure{
  494. width: 50%;
  495. text-align: center;
  496. line-height: 88rpx;
  497. font-size: 30rpx;
  498. font-weight: 400;
  499. color: #FFFFFF;
  500. background: #2671E2;
  501. }
  502. }
  503. }
  504. </style>