dmTopSearchView.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <template>
  2. <view class="searchContainer" :style="{'background': isBackThemeColor ? backgorundThemeColor || '#F1F5F9' : '#fff'}">
  3. <view class="liveContent" :style="`border: 2rpx solid ${themeColor25};`">
  4. <block v-if="isScreen && selectObj!=null">
  5. <view class="leftDiv" @click="showPicker">
  6. <view class="leftTex">{{selectObj.title}}</view>
  7. <image class="leftIcon" src="../../static/icons/icon_dropDown@2x.png" mode=""></image>
  8. </view>
  9. <view class="line"></view>
  10. </block>
  11. <block v-if="!isScreen">
  12. <view class="leftDiv" @click="showOptionPicker">
  13. <view class="leftTex">{{selectOption.title}}</view>
  14. <image class="leftIcon" src="../../static/icons/icon_dropDown@2x.png" mode=""></image>
  15. </view>
  16. <view class="line"></view>
  17. </block>
  18. <view class="searchIcon">
  19. <image style="width: 100%; height: 100%; margin-top: 0; margin-left: 0;" src="../../static/icons/icon_search@2x.png"
  20. mode=""></image>
  21. </view>
  22. <!-- :style="`width: ${isScreen ? '280rpx' : '450rpx'};`" -->
  23. <input class="searchInput" v-model="keyword" confirm-type='search' type="text" maxlength="50" :placeholder="selectOption.placeholder"
  24. @confirm='searchAction' @focus="focusAtion" @blur="blurAction" />
  25. <view v-if="keyword.length > 0" class="clearBtn" style="background: url(../../static/icons/lightGrayClearIcon.png) center/100% 100% no-repeat;"
  26. @click="clearAction"></view>
  27. <view class="clearBtn" v-else></view>
  28. <view class="searchBtn" :style="`background-color: ${themeColor};`" @click="searchAction">搜索</view>
  29. </view>
  30. <dm-picker-view ref="picker" :options="screenList" v-if="selectObj!=null" :value="selectObj.value" title="搜索台账"
  31. @confirm="confirmAction"></dm-picker-view>
  32. <dm-picker-view ref="optionPicker" :options="currentOption" v-if="!isScreen" :value="selectOption.value" title="搜索条件"
  33. @confirm="optionConfirm"></dm-picker-view>
  34. </view>
  35. </template>
  36. <script>
  37. import dmPickerView from './dmPickerView.vue'
  38. import menuCodeConfig from '../../menuCodeConfig/menuCodeConfig.js'
  39. export default {
  40. props: {
  41. placeholder: {
  42. type: String,
  43. default: '搜索姓名,手机号'
  44. },
  45. isScreen: {
  46. type: Boolean,
  47. default: true
  48. },
  49. selChartId: {
  50. type: String,
  51. default: ''
  52. },
  53. houseList: {
  54. type: Array,
  55. default: () => {
  56. return []
  57. }
  58. },
  59. isBackThemeColor: {
  60. type: Boolean,
  61. default: false
  62. },
  63. isJiTuanCeng: { //有没有选全集团
  64. type: Boolean,
  65. default: false
  66. },
  67. secondTab: [Number, String]
  68. },
  69. data() {
  70. return {
  71. themeColor: '',
  72. themeColor25: '',
  73. backgorundThemeColor: '',
  74. tempScreenList: [{
  75. title: '线上获客',
  76. chartId: 'huoke',
  77. isShow: false,
  78. value: 1,
  79. menuCode: menuCodeConfig.c_huoke_list
  80. },
  81. {
  82. title: '获电情况',
  83. chartId: 'huodian',
  84. isShow: false,
  85. value: 2,
  86. menuCode: menuCodeConfig.c_huodian_list
  87. },
  88. {
  89. title: '客户跟进',
  90. chartId: 'genjin',
  91. isShow: false,
  92. value: 3,
  93. menuCode: menuCodeConfig.c_genjin_list
  94. },
  95. {
  96. title: '案场到访',
  97. chartId: 'daofang',
  98. isShow: false,
  99. value: 4,
  100. menuCode: menuCodeConfig.c_daofang_list
  101. },
  102. {
  103. title: '客户成交',
  104. chartId: 'chengjiao',
  105. isShow: false,
  106. value: 5,
  107. menuCode: menuCodeConfig.c_chengjiao_list
  108. },
  109. {
  110. title: '客户成交',
  111. chartId: 'chengjiao2',
  112. isShow: false,
  113. value: 5,
  114. menuCode: menuCodeConfig.c_chengjiao_list2
  115. },
  116. {
  117. title: '客户抢单',
  118. chartId: 'qiangdan',
  119. isShow: false,
  120. value: 6,
  121. menuCode: menuCodeConfig.c_qiangdan_list
  122. },
  123. {
  124. title: '公客分派',
  125. chartId: 'kehufenpai',
  126. isShow: false,
  127. value: 7,
  128. menuCode: menuCodeConfig.c_kehufenpai_list
  129. },
  130. {
  131. title: '特例审核',
  132. chartId: 'telishenhe',
  133. isShow: false,
  134. value: 8,
  135. menuCode: menuCodeConfig.c_telishenhe_list
  136. },
  137. {
  138. title: '渠道认证',
  139. chartId: 'renzheng',
  140. isShow: false,
  141. value: 9,
  142. menuCode: menuCodeConfig.c_renzheng_list
  143. },
  144. {
  145. title: '渠道报备',
  146. chartId: 'baobei',
  147. isShow: false,
  148. value: 10,
  149. menuCode: menuCodeConfig.c_baobei_list
  150. },
  151. {
  152. title: '到访凭证',
  153. chartId: 'daofangpingzheng',
  154. isShow: false,
  155. value: 11,
  156. menuCode: menuCodeConfig.c_daofangpingzheng_list
  157. },
  158. {
  159. title: '结佣凭证',
  160. chartId: 'jieyongpingzheng',
  161. isShow: false,
  162. value: 12,
  163. menuCode: menuCodeConfig.c_jieyongpingzheng_list
  164. },
  165. {
  166. title: '结佣凭证',
  167. chartId: 'jieyongpingzheng2',
  168. isShow: false,
  169. value: 13,
  170. menuCode: menuCodeConfig.c_jieyongpingzheng_list2
  171. },
  172. {
  173. title: '邀约台账',
  174. chartId: 'yaoyuetaizhang',
  175. isShow: false,
  176. value: 14,
  177. menuCode: menuCodeConfig.c_yaoyue_list
  178. },
  179. {
  180. title: '获券核销',
  181. chartId: 'huoquanhexiao',
  182. isShow: false,
  183. value: 15,
  184. menuCode: menuCodeConfig.c_hexiao
  185. },
  186. {
  187. title: '识别结果',
  188. chartId: 'shibiejieguo',
  189. isShow: false,
  190. value: 16,
  191. menuCode: menuCodeConfig.c_shibiejieguo_list
  192. },
  193. {
  194. title: '到访抓拍',
  195. chartId: 'daofangjilu',
  196. isShow: false,
  197. value: 17,
  198. menuCode: menuCodeConfig.c_daofangjilu_list
  199. },
  200. {
  201. title: '认证结果',
  202. chartId: 'renzhengjilu',
  203. isShow: false,
  204. value: 18,
  205. menuCode: menuCodeConfig.c_renzhengjilu_list
  206. },
  207. {
  208. title: '活动数据',
  209. chartId: 'huodongshuju',
  210. isShow: false,
  211. value: 19,
  212. menuCode: menuCodeConfig.c_activeData
  213. }
  214. ],
  215. screenList: [],
  216. selectObj: null,
  217. keyword: '',
  218. isSingleProject: false,
  219. backgorundThemeColor: '',
  220. searctOptions: [{
  221. menuId: 'huoke',
  222. placeholder: '可搜索姓名、完整号码或后四位号码',
  223. items: [{
  224. title: '客户',
  225. value: 0
  226. }]
  227. },
  228. {
  229. menuId: 'huodian',
  230. placeholder: '可搜索姓名、完整号码或后四位号码',
  231. items: [{
  232. title: '客户',
  233. value: 0
  234. },
  235. {
  236. title: '关系人',
  237. value: 2
  238. }
  239. ]
  240. },
  241. {
  242. menuId: 'genjin',
  243. placeholder: '可搜索姓名、完整号码或后四位号码',
  244. items: [{
  245. title: '客户',
  246. value: 0
  247. },
  248. {
  249. title: '顾问',
  250. value: 1
  251. }
  252. ]
  253. },
  254. {
  255. menuId: 'daofang',
  256. placeholder: '可搜索姓名、完整号码或后四位号码',
  257. items: [{
  258. title: '客户',
  259. value: 0
  260. },
  261. {
  262. title: '顾问',
  263. value: 1
  264. },
  265. {
  266. title: '关系人',
  267. value: 2
  268. }
  269. ]
  270. },
  271. {
  272. menuId: 'chengjiao',
  273. placeholder: '可搜索姓名、手机号码',
  274. items: [{
  275. title: '客户',
  276. value: 0
  277. }
  278. // {
  279. // title: '顾问',
  280. // value: 1
  281. // },
  282. // {
  283. // title: '关系人',
  284. // value: 2
  285. // }
  286. ]
  287. },
  288. {
  289. menuId: 'chengjiao2',
  290. placeholder: '可搜索姓名、完整号码或后四位号码',
  291. items: [{
  292. title: '客户',
  293. value: 0
  294. },
  295. {
  296. title: '顾问',
  297. value: 1
  298. },
  299. {
  300. title: '关系人',
  301. value: 2
  302. },
  303. {
  304. title: '成交房间',
  305. value: 3
  306. }
  307. ]
  308. },
  309. {
  310. menuId: 'kehufenpai',
  311. placeholder: '可搜索姓名、完整号码或后四位号码',
  312. items: [{
  313. title: '客户',
  314. value: 0
  315. },
  316. {
  317. title: '关系人',
  318. value: 2
  319. },
  320. {
  321. title: '上次跟进顾问',
  322. value: 3
  323. }
  324. ]
  325. },
  326. {
  327. menuId: 'qiangdan',
  328. placeholder: '可搜索姓名、完整号码或后四位号码',
  329. items: [{
  330. title: '客户',
  331. value: 0
  332. }]
  333. },
  334. {
  335. menuId: 'telishenhe',
  336. placeholder: '可搜索姓名、完整号码或后四位号码',
  337. items: [{
  338. title: '客户',
  339. value: 0
  340. }]
  341. },
  342. {
  343. menuId: 'daofangpingzheng',
  344. placeholder: '可搜索姓名、完整号码或后四位号码',
  345. items: [{
  346. title: '客户',
  347. value: 0
  348. },
  349. {
  350. title: '顾问',
  351. value: 1
  352. },
  353. {
  354. title: '关系人',
  355. value: 2
  356. }
  357. ]
  358. },
  359. {
  360. menuId: 'jieyongpingzheng',
  361. placeholder: '可搜索客户姓名、手机号或后四位',
  362. items: [{
  363. title: '客户',
  364. value: 0
  365. },
  366. {
  367. title: '顾问',
  368. value: 1
  369. },
  370. {
  371. title: '关系人',
  372. value: 2
  373. }
  374. ]
  375. },
  376. {
  377. menuId: 'jieyongpingzheng2',
  378. placeholder: '可搜索客户姓名、手机号或后四位',
  379. items: [{
  380. title: '客户',
  381. value: 0
  382. }
  383. // {
  384. // title: '顾问',
  385. // value: 1
  386. // },
  387. // {
  388. // title: '关系人',
  389. // value: 2
  390. // }
  391. ]
  392. },
  393. {
  394. menuId: 'yaoyuetaizhang',
  395. placeholder: '可搜索客户姓名、手机号或后四位',
  396. items: [{
  397. title: '客户',
  398. value: 0
  399. },
  400. {
  401. title: '邀约人',
  402. value: 1
  403. }
  404. ]
  405. },
  406. {
  407. menuId: 'huoquanhexiao',
  408. placeholder: '可搜索完整号码或后四位号码',
  409. items: [{
  410. title: '客户',
  411. value: 0
  412. },
  413. {
  414. title: '活动名称',
  415. value: 1
  416. }
  417. ]
  418. },
  419. {
  420. menuId: 'renzheng',
  421. placeholder: '可搜索姓名、完整号码或后四位号码',
  422. items: [{
  423. title: '客户',
  424. value: 0
  425. },
  426. {
  427. title: '关系人',
  428. value: 2
  429. }
  430. ]
  431. },
  432. {
  433. menuId: 'baobei',
  434. placeholder: '可搜索姓名、完整号码或后四位号码',
  435. items: [{
  436. title: '客户',
  437. value: 0
  438. },
  439. {
  440. title: '顾问',
  441. value: 1
  442. },
  443. {
  444. title: '关系人',
  445. value: 2
  446. }
  447. ]
  448. },
  449. {
  450. menuId: 'shibiejieguo',
  451. placeholder: '输入客户ID搜索',
  452. items: [{
  453. title: '客户',
  454. value: 0
  455. }]
  456. },
  457. {
  458. menuId: 'renzhengjilu',
  459. placeholder: '输入客户姓名、身份证号搜索',
  460. items: [{
  461. title: '客户',
  462. value: 0
  463. }]
  464. },
  465. {
  466. menuId: 'huodongshuju',
  467. placeholder: '请输入...',
  468. items: [
  469. {
  470. title: '页面ID',
  471. value: 0
  472. },
  473. {
  474. title: '页面名称',
  475. value: 1
  476. },
  477. {
  478. title: '活动ID',
  479. value: 2
  480. },
  481. {
  482. title: '活动名称',
  483. value: 3
  484. }
  485. ]
  486. }
  487. ],
  488. selectOption: {
  489. title: '客户',
  490. menuId: 'huoke',
  491. placeholder: '可搜索姓名、完整号码或后四位号码',
  492. value: 0
  493. },
  494. currentOption: [],
  495. roleMenuList: []
  496. }
  497. },
  498. mounted() {
  499. let globalData = getApp().globalData
  500. this.themeColor = globalData.themeColor
  501. this.themeColor25 = globalData.themeColor25
  502. this.backgorundThemeColor = globalData.backgorundThemeColor;
  503. var self = this
  504. uni.getStorage({
  505. key: 'userInfo',
  506. success: (res) => {
  507. if (res.data) {
  508. self.roleMenuList = res.data.roleMenuList || []
  509. self.reloadMenuStatus(self.roleMenuList)
  510. }
  511. }
  512. })
  513. this.reloadSecondAction()
  514. this.keyword = uni.getStorageSync('keyword')
  515. if (this.keyword.length > 0) {
  516. this.$emit('topSearchAction', null, this.keyword)
  517. }
  518. },
  519. methods: {
  520. reloadMenuStatus(list) {
  521. var self = this
  522. list.forEach((item, index) => {
  523. if (item.childMenus && item.childMenus.length > 0) {
  524. item.childMenus.forEach((item1, index1) => {
  525. self.tempScreenList.forEach((scrItem) => {
  526. if (item.menuCode == scrItem.menuCode) {
  527. scrItem.isShow = true
  528. if (self.selectObj && self.selectObj.chartId == scrItem.chartId) {
  529. self.selectObj.isShow = true
  530. }
  531. }
  532. else if (item1.menuCode == scrItem.menuCode) {
  533. // console.log(scrItem.title + ':' + scrItem.menuCode + ':' + item.menuCode)
  534. scrItem.isShow = true
  535. if (self.selectObj && self.selectObj.chartId == scrItem.chartId) {
  536. self.selectObj.isShow = true
  537. }
  538. }
  539. })
  540. })
  541. }
  542. })
  543. this.screenList = []
  544. this.tempScreenList.forEach((item, index) => {
  545. if (item.isShow == true) {
  546. self.screenList.push(item)
  547. if (self.selectObj == null) {
  548. self.selectObj = item
  549. }
  550. }
  551. })
  552. this.screenList = []
  553. this.tempScreenList.forEach((item, index) => {
  554. if (item.isShow == true) {
  555. self.screenList.push(item)
  556. if (self.selectObj == null) {
  557. self.selectObj = item
  558. }
  559. }
  560. })
  561. },
  562. showPicker() {
  563. this.$refs.picker.show()
  564. },
  565. confirmAction(e) {
  566. this.selectObj = e.selItem
  567. },
  568. showOptionPicker() {
  569. this.$refs.optionPicker.show()
  570. },
  571. optionConfirm(e) {
  572. if(this.selectOption.menuId=="kehufenpai"){
  573. if(e.selItem.title=='上次跟进顾问'){
  574. this.selectOption.placeholder = '请输入上次跟进顾问姓名'
  575. }else{
  576. this.selectOption.placeholder = '可搜索姓名、完整号码或后四位号码'
  577. }
  578. }
  579. else if(this.selectOption.menuId=="huoquanhexiao"){
  580. if(e.selItem.title=='客户'){
  581. this.selectOption.placeholder = '可搜索完整号码或后四位号码'
  582. }else{
  583. this.selectOption.placeholder = '请输入活动名称进行搜索'
  584. }
  585. }
  586. this.selectOption.title = e.selItem.title
  587. this.selectOption.value = e.selItem.value
  588. this.$emit('selectSearchOption', e.selItem.value)
  589. },
  590. searchAction() {
  591. // this.reloadSelectObj()
  592. this.reloadMenuStatus(this.roleMenuList)
  593. if (this.keyword == '') {
  594. uni.showToast({
  595. icon: 'none',
  596. title: '请输入内容后搜索'
  597. })
  598. // return
  599. }
  600. if (this.selectObj && !this.selectObj.isShow) {
  601. uni.showToast({
  602. icon: 'none',
  603. title: '暂无数据,请在其他台账尝试搜索'
  604. })
  605. return
  606. }
  607. if (!this.isSingleProject && !(this.selChartId == 'huoke'&&this.secondTab==4) && this.selChartId!='huodongshuju') {
  608. uni.showToast({
  609. icon: 'none',
  610. title: '请选择项目后再进行搜索'
  611. })
  612. return
  613. }
  614. uni.onSocketOpen(function() {
  615. uni.closeSocket({
  616. complete(res) {
  617. // console.log('关闭socket', res)
  618. // debugger
  619. }
  620. })
  621. })
  622. if (this.$myRequest.requestTask) {
  623. this.$myRequest.requestTask.abort()
  624. }
  625. this.$emit('topSearchAction', this.selectObj, this.keyword)
  626. if (this.isScreen == true) {
  627. this.keyword = ''
  628. }
  629. },
  630. clearAction() {
  631. this.keyword = ''
  632. uni.setStorageSync('keyword', '')
  633. this.$emit('topSearchAction', this.selectObj, '', true)
  634. this.$emit('searchFocus', false)
  635. },
  636. reloadSelectObj() {
  637. var self = this
  638. this.tempScreenList.forEach((item) => {
  639. if (item.chartId == this.selChartId) {
  640. item.isShow = true
  641. self.selectObj = JSON.parse(JSON.stringify(item))
  642. }
  643. })
  644. this.searctOptions.forEach((item, idx) => {
  645. if (item.menuId == self.selChartId) {
  646. self.selectOption = {
  647. title: self.selChartId == 'huodongshuju' ? '页面ID' : '客户',
  648. menuId: item.menuId,
  649. placeholder: item.placeholder,
  650. value: 0
  651. }
  652. self.currentOption = item.items || []
  653. this.$emit('selectSearchOption', 0)
  654. }
  655. })
  656. },
  657. focusAtion() {
  658. // 关闭socket
  659. uni.onSocketOpen(function() {
  660. uni.closeSocket({
  661. complete(res) {
  662. console.log('关闭socket', res)
  663. }
  664. })
  665. })
  666. // console.log('this.$myRequest.requestTask:', this.$myRequest.requestTask)
  667. if (this.$myRequest.requestTask) {
  668. this.$myRequest.requestTask.abort()
  669. }
  670. this.$emit('searchFocus', true)
  671. },
  672. blurAction() {
  673. if (this.keyword.length == 0) {
  674. this.$emit('searchFocus', false)
  675. }
  676. },
  677. reloadScreenList() {
  678. var self = this
  679. this.screenList = []
  680. if (this.isJiTuanCeng) {
  681. this.tempScreenList.forEach((item) => {
  682. if ((item.chartId == 'huoke' || item.chartId == 'huodian') && item.isShow) {
  683. self.screenList.push(item)
  684. }
  685. })
  686. } else {
  687. this.tempScreenList.forEach((item) => {
  688. if (item.isShow) {
  689. self.screenList.push(item)
  690. }
  691. })
  692. }
  693. },
  694. reloadSecondAction() {
  695. if (this.selChartId != 'huoke') {
  696. return
  697. }
  698. if (this.secondTab == 4) {
  699. this.searctOptions[0].items[0] = {
  700. title: '项目',
  701. value: 0
  702. }
  703. this.selectOption.title = '项目'
  704. this.selectOption.placeholder = '按项目名称模糊查询'
  705. } else {
  706. this.searctOptions[0].items[0] = {
  707. title: '客户',
  708. value: 0
  709. }
  710. this.selectOption.title = '客户'
  711. this.selectOption.placeholder = '可搜索姓名、完整号码或后四位号码'
  712. }
  713. this.$forceUpdate()
  714. }
  715. },
  716. watch: {
  717. selChartId: {
  718. handler(newName, oldName) {
  719. this.reloadSelectObj()
  720. if (!oldName || oldName.length == 0) {
  721. return
  722. }
  723. if (!this.isScreen) {
  724. var self = this
  725. var tempKeyword = uni.getStorageSync('keyword')
  726. if (this.keyword != tempKeyword) {
  727. setTimeout(function() {
  728. self.keyword = tempKeyword
  729. self.$emit('topSearchAction', null, self.keyword)
  730. }, 500);
  731. }
  732. }
  733. this.reloadSecondAction()
  734. },
  735. immediate: true
  736. },
  737. houseList: {
  738. handler(e) {
  739. if (e.length == 1) {
  740. this.isSingleProject = true
  741. } else {
  742. this.isSingleProject = false
  743. }
  744. if (e.length == 0 && this.isJiTuanCeng) {
  745. this.isSingleProject = true
  746. }
  747. },
  748. deep: true,
  749. immediate: true
  750. },
  751. isJiTuanCeng: { //有没有选全集团
  752. handler(e) {
  753. console.log('e:', e)
  754. var placeholder = '可搜索姓名、完整号码或后四位号码'
  755. if (e == true) {
  756. placeholder = '可搜索姓名、完整号码'
  757. this.searctOptions[1].items = [{
  758. title: '客户',
  759. value: 0
  760. }]
  761. if (this.houseList.length == 0) {
  762. this.isSingleProject = true
  763. }
  764. } else {
  765. this.searctOptions[1].items = [{
  766. title: '客户',
  767. value: 0
  768. },
  769. {
  770. title: '关系人',
  771. value: 2
  772. }
  773. ]
  774. }
  775. this.searctOptions[0].placeholder = placeholder
  776. this.searctOptions[1].placeholder = placeholder
  777. if (this.selChartId == 'huoke' || this.selChartId == 'huodian') {
  778. this.selectOption.placeholder = placeholder
  779. }
  780. this.reloadScreenList()
  781. this.$forceUpdate()
  782. },
  783. deep: true,
  784. immediate: true
  785. },
  786. secondTab: {
  787. handler(e) {
  788. this.reloadSecondAction()
  789. },
  790. immediate: true
  791. }
  792. },
  793. components: {
  794. dmPickerView
  795. }
  796. }
  797. </script>
  798. <style scoped lang="scss">
  799. .searchContainer {
  800. width: 100%;
  801. padding: 20rpx;
  802. box-sizing: border-box;
  803. // background-color: #F4F7F7;
  804. .liveContent {
  805. height: 64rpx;
  806. min-height: 64rpx;
  807. display: flex;
  808. align-items: center;
  809. justify-content: space-between;
  810. font-family: Verdana;
  811. border-radius: 32rpx;
  812. white-space: nowrap;
  813. padding-left: 20rpx;
  814. box-sizing: border-box;
  815. background-color: #FFFFFF;
  816. .leftDiv {
  817. // margin-left: 20rpx;
  818. height: 100%;
  819. display: flex;
  820. align-items: center;
  821. font-size: 24rpx;
  822. .leftTex {
  823. width: 90rpx;
  824. min-width: 90rpx;
  825. text-align: center;
  826. }
  827. .leftIcon {
  828. width: 28rpx;
  829. height: 28rpx;
  830. margin-left: 8rpx;
  831. }
  832. }
  833. .line {
  834. width: 2rpx;
  835. height: 26rpx;
  836. background-color: #E0E0E0;
  837. }
  838. .searchIcon {
  839. width: 44rpx;
  840. min-width: 44rpx;
  841. height: 44rpx;
  842. // background-color: #DD524D;
  843. }
  844. .searchInput {
  845. width: 360rpx;
  846. min-width: 360rpx;
  847. max-width: 360rpx;
  848. font-size: 24rpx;
  849. }
  850. .clearBtn {
  851. width: 32rpx;
  852. height: 32rpx;
  853. }
  854. .searchBtn {
  855. font-size: 24rpx;
  856. border-radius: 32rpx;
  857. height: 100%;
  858. width: 112rpx;
  859. text-align: center;
  860. line-height: 60rpx;
  861. color: #FFFFFF;
  862. }
  863. }
  864. }
  865. </style>