classification.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. <template>
  2. <view>
  3. <view style="background-color: #E75F37;padding: 20rpx;">
  4. <u-search placeholder="请输入商品名称" bgColor="#fff" searchIconColor='#E75F37' :actionStyle="{color:'#FFF'}"
  5. :searchIconSize='24' v-model="name" @search="custom()" @custom="custom()"></u-search>
  6. </view>
  7. <scroll-view @scrolltolower="lowerBottom" scroll-y="true" style="max-height: 92vh;" @scroll="scroll"
  8. :scroll-top="scrollTop">
  9. <view class="recentSearches" v-if="recentSearches.length != 0">
  10. <view class="recentSearches-head">
  11. <view class="recentSearches-headLeft">
  12. <u-icon name="clock" color="#C4C4C4"></u-icon>
  13. <view style="font-size: 26rpx;margin-left: 6rpx;">最近搜索</view>
  14. </view>
  15. <view class="recentSearches-headRight">
  16. <u-icon name="trash" size="20px" @click="searchDeleteShow = true" color="#C4C4C4"></u-icon>
  17. </view>
  18. </view>
  19. <view class="recentSearches-text">
  20. <u-tag v-for="(item,index) in recentSearches" :key="index" :text="item" bgColor="#EFEFEF"
  21. color="#414141" borderColor="#EFEFEF" size="medium" closable :show="item"
  22. @close="tagClose(index)" shape="circle" @click.stop="tagSearches(item)"></u-tag>
  23. </view>
  24. <u-modal :show="searchDeleteShow" content="确认删除搜索记录吗?" showCancelButton @confirm="searchDeletefun"
  25. @cancel="searchDeleteShow = false" ref="uModal" :asyncClose="true">
  26. </u-modal>
  27. </view>
  28. <view class="tagClass">
  29. <view v-for="(item, index) in radios" :key="index" style="margin:0 6rpx;">
  30. <u-tag :text="item.label" :bgColor="item.checked?'#E75F37':'#fff'" borderColor='#E75F37'
  31. :color="item.checked?'#fff':'#E75F37'" @click="checkboxChange(item.label,index)" size="mini">
  32. </u-tag>
  33. </view>
  34. <view style="margin:0 6rpx;">
  35. <u-tag text="品牌" bgColor="#fff" borderColor='#E75F37' color="#E75F37" @click="openBrand"
  36. size="mini">
  37. </u-tag>
  38. </view>
  39. <view style="margin:0 6rpx;width: 2rpx;height: 43rpx;background: #E75F37;border-radius: 1rpx;"></view>
  40. <view style="margin:0 6rpx;">
  41. <u-tag text="重置" bgColor="#F8AA09" borderColor='#F8AA09' color="#fff" @click="emptyfun" size="mini">
  42. </u-tag>
  43. </view>
  44. </view>
  45. <view v-for="(item, index) in dataList" :key="index">
  46. <view class="card" @click="selectProduct(item)">
  47. <image :src="item.url" class="cardImg" mode="scaleToFill">
  48. </image>
  49. <view class="">
  50. <view style="display: flex;align-items: center;">
  51. <view class="cardTitle">
  52. <view class="cardName">
  53. {{item.cname}}
  54. </view>
  55. <view class="cardRetailPrice">
  56. <view v-if="item.suggestedRetailPrice">
  57. 建议零售价:¥{{item.suggestedRetailPrice}}
  58. </view>
  59. </view>
  60. </view>
  61. <image src="/static/images/tabBar/carIcon@2x.png" @click.stop="shoppingCartfun(item)"
  62. style="width: 54rpx;height: 54rpx;margin-left: 32rpx;" mode="scaleToFill">
  63. </image>
  64. </view>
  65. <view style="display: flex;align-items: center;">
  66. <view class="cardTab">
  67. <image src="/static/images/tabBar/280@2x.png" style="width: 142rpx;height: 36rpx;"
  68. mode="scaleToFill">
  69. </image>
  70. <image src="/static/images/tabBar/6@2x.png"
  71. style="width: 78rpx;height: 20rpx;position: absolute;left:10rpx;top:8rpx"
  72. mode="scaleToFill">
  73. </image>
  74. <view class="cardKc">
  75. {{Number(item.inventoryLocal) > 10?'充足':Number(item.inventoryLocal)}}
  76. </view>
  77. </view>
  78. <view>
  79. <view class="cardTab" style="margin-left: 10rpx;">
  80. <image src="/static/images/tabBar/2801@2x.png" style="width: 142rpx;height: 36rpx;"
  81. mode="scaleToFill">
  82. </image>
  83. <image src="/static/images/tabBar/7@2x.png"
  84. style="width: 78rpx;height: 20rpx;position: absolute;left:10rpx;top:8rpx"
  85. mode="scaleToFill">
  86. </image>
  87. <view class="cardKc">
  88. {{Number(item.inventoryShare) > 10?'充足':Number(item.inventoryShare)}}
  89. </view>
  90. </view>
  91. </view>
  92. <view class="cardPrice">
  93. ¥{{checkStatus == '通过'?item.mallPrice:'***'}}
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <u-empty v-if="page.total == 0" mode="list" icon="/static/images/tabBar/emptylist.jpg" text='暂无数据' />
  100. <u-loadmore v-if="page.total !== 0 && dataList.length != 0" :status="status" />
  101. </scroll-view>
  102. <u-back-top :scroll-top="old.scrollTop" @tap="goTop"></u-back-top>
  103. <uni-popup ref="popup" background-color="#fff" type="bottom">
  104. <view style="padding: 40rpx 0 0 0;">
  105. <scroll-view scroll-y="true" style="max-height: 74vh;">
  106. <uni-row>
  107. <uni-col :span="6" v-for="(item,index) in tabbarTwo" :key="index">
  108. <view class="brandImg" @click="swichMenu(item,index)">
  109. <image :src="item.brandFilesList[0].url" mode="aspectFit"
  110. style="width:110rpx;height: 110rpx;border-radius:6rpx;border: 2rpx solid #EBEBEB;" />
  111. <text class='text'>{{item.cname}}</text>
  112. </view>
  113. </uni-col>
  114. </uni-row>
  115. </scroll-view>
  116. </view>
  117. </uni-popup>
  118. <view v-if="userInfo.tenant_id != '000000'" class="suspensionBox" @click="opensalesman">
  119. <u-icon name="server-fill" color="#2979ff" size="30"></u-icon>
  120. </view>
  121. <u-modal :show="salesmanShow" title="业务员联系方式" showCancelButton confirmText="拨号" cancelText="关闭"
  122. @confirm="clickCall" @cancel="salesmanShow=false">
  123. <view class="slot-content">
  124. <view style="margin-bottom: 10rpx;">业务员:{{salesmanName?salesmanName:''}}</view>
  125. <view>电话:{{phoneNumber?phoneNumber:''}}</view>
  126. </view>
  127. </u-modal>
  128. </view>
  129. </template>
  130. <script>
  131. import {
  132. listAll2,
  133. goodsList,
  134. goodsListNew
  135. } from '@/api/tabBar/classification.js'
  136. import {
  137. details,
  138. nameDetail
  139. } from '@/api/views/personalInformation/index.js'
  140. import {
  141. appDetail,
  142. addToCart,
  143. appDetailNew,
  144. } from '@/api/tabBar/homeNew.js'
  145. export default {
  146. data() {
  147. return {
  148. scrollTop: 0,
  149. old: {
  150. scrollTop: 0
  151. },
  152. radios: [{
  153. label: '静音棉',
  154. checked: false,
  155. },
  156. {
  157. label: '自修补',
  158. checked: false,
  159. },
  160. {
  161. label: '防爆',
  162. checked: false,
  163. },
  164. ],
  165. current: 0, // 预设当前项的值
  166. tabbar: [],
  167. dataList: [],
  168. show: false,
  169. status: 'loadmore',
  170. filesList: [],
  171. tabbarTwo: [],
  172. name: '',
  173. page: {
  174. total: 0,
  175. size: 10,
  176. current: 1
  177. },
  178. search: {
  179. whether: '0'
  180. },
  181. checkStatus: null,
  182. recentSearches: [], // 搜索数据
  183. searchDeleteShow: false, // 搜索全部删除弹窗
  184. form: {}, // 详情数据
  185. checkboxValue: [], // 多选
  186. salesmanName: '', // 业务员姓名
  187. phoneNumber: '', // 业务员联系电话
  188. salesmanShow: false, // 联系业务员弹窗
  189. userInfo: {}, // 当前用户数据
  190. }
  191. },
  192. mounted() {},
  193. onLoad(data) {
  194. listAll2({
  195. type: 'PP',
  196. enableOrNot: '1',
  197. whetherIntegral: '0'
  198. }).then(res => {
  199. console.log(res.data.sort(this.compare('sort')), 111111)
  200. let arr = []
  201. arr = res.data.sort(this.compare('sort'))
  202. this.tabbarTwo = arr
  203. this.page = {
  204. total: 0,
  205. size: 10,
  206. current: 1
  207. }
  208. this.dataList = []
  209. if (uni.getStorageSync('cname')) {
  210. this.$set(this.search, 'cname', JSON.parse(JSON.stringify(uni.getStorageSync('cname'))))
  211. uni.removeStorage('cname')
  212. this.page = {
  213. total: 0,
  214. size: 10,
  215. current: 1
  216. }
  217. this.dataList = []
  218. this.onSearch()
  219. } else {
  220. this.name = null
  221. if (this.current == -1) {
  222. this.current = 0
  223. }
  224. this.search = {
  225. whether: '0',
  226. }
  227. this.onSearch()
  228. }
  229. })
  230. },
  231. onShow() {
  232. this.getUpdate()
  233. // 获取审核状态
  234. details().then(res => {
  235. this.checkStatus = res.data.checkStatus
  236. uni.setStorageSync('checkStatus', res.data.checkStatus);
  237. // if (this.checkStatus != '通过') {
  238. // uni.showToast({
  239. // title: "当前用户未授权,请联系客服",
  240. // icon: "none",
  241. // mask:true
  242. // });
  243. // // uni.switchTab({
  244. // // url: '/pages/tabBar/home'
  245. // // })
  246. // return
  247. // }
  248. this.salesmanName = res.data.salesmanName
  249. // 查询业务员详情拿取手机号
  250. if (!this.phoneNumber) {
  251. nameDetail({
  252. id: res.data.salesmanId
  253. }).then(res => {
  254. this.phoneNumber = res.data.phone
  255. })
  256. }
  257. })
  258. this.userInfo = uni.getStorageSync('userInfo')
  259. // 获取最近搜索数据
  260. if (uni.getStorageSync('recentSearches')) {
  261. this.recentSearches = uni.getStorageSync('recentSearches').slice(0, 8);
  262. }
  263. },
  264. methods: {
  265. getUpdate() {
  266. const updateManager = uni.getUpdateManager();
  267. updateManager.onCheckForUpdate(function(res) {
  268. // 请求完新版本信息的回调
  269. if (res.hasUpdate) {
  270. updateManager.onUpdateReady(function() {
  271. uni.showModal({
  272. title: '更新提示',
  273. content: '新版本已经准备好,是否重启应用?',
  274. success: function(res) {
  275. if (res.confirm) {
  276. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  277. updateManager.applyUpdate();
  278. }
  279. }
  280. });
  281. });
  282. updateManager.onUpdateFailed(function() {
  283. // 新的版本下载失败
  284. uni.showModal({
  285. title: '已经有新版本了哟~',
  286. content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
  287. });
  288. });
  289. }
  290. });
  291. },
  292. opensalesman() {
  293. if (this.checkStatus != '通过') {
  294. uni.showToast({
  295. title: "当前用户未授权,请联系客服",
  296. icon: "none",
  297. mask: true
  298. });
  299. return
  300. }
  301. this.salesmanShow = true
  302. },
  303. openBrand() {
  304. if (this.checkStatus != '通过') {
  305. uni.showToast({
  306. title: "当前用户未授权,请联系客服",
  307. icon: "none",
  308. mask: true
  309. });
  310. return
  311. }
  312. this.$refs.popup.open('bottom')
  313. },
  314. goTop(e) {
  315. // 解决view层不同步的问题
  316. this.scrollTop = this.old.scrollTop
  317. this.$nextTick(() => {
  318. this.scrollTop = 0
  319. this.old.scrollTop = 0
  320. });
  321. },
  322. scroll(e) {
  323. this.old.scrollTop = e.detail.scrollTop
  324. },
  325. // 数组排序 property:根据什么属性排序
  326. compare(property) {
  327. return function(a, b) {
  328. var value1 = a[property]
  329. var value2 = b[property]
  330. return value1 - value2
  331. }
  332. },
  333. // 点击联系业务员
  334. clickCall() {
  335. uni.makePhoneCall({
  336. phoneNumber: this.phoneNumber,
  337. success: function() {
  338. console.log('拨打电话成功');
  339. },
  340. fail() {
  341. console.log('打电话失败了');
  342. }
  343. })
  344. },
  345. // 清空搜索条件
  346. emptyfun() {
  347. this.name = ''
  348. this.current = -1
  349. this.radios.map((item, index) => {
  350. item.checked = false
  351. });
  352. this.checkboxValue = []
  353. this.search = {
  354. whether: '0'
  355. }
  356. this.page = {
  357. total: 0,
  358. size: 10,
  359. current: 1
  360. }
  361. this.dataList = []
  362. this.onSearch()
  363. },
  364. checkboxChange(value, index) {
  365. if (this.checkStatus != '通过') {
  366. uni.showToast({
  367. title: "当前用户未授权,请联系客服",
  368. icon: "none",
  369. mask: true
  370. });
  371. return
  372. }
  373. this.radios.map((item, index) => {
  374. item.checked = item.label === value ? true : false;
  375. });
  376. this.checkboxValue = value
  377. this.search.originalFactory = null
  378. this.search.selfRecovery = null
  379. this.search.explosionProof = null
  380. if (this.checkboxValue.indexOf('静音棉') != -1) {
  381. this.search.originalFactory = 1
  382. }
  383. if (this.checkboxValue.indexOf('自修补') != -1) {
  384. this.search.selfRecovery = 1
  385. }
  386. if (this.checkboxValue.indexOf('防爆') != -1) {
  387. this.search.explosionProof = 1
  388. }
  389. this.page = {
  390. total: 0,
  391. size: 10,
  392. current: 1
  393. }
  394. this.dataList = []
  395. this.onSearch()
  396. },
  397. // 加入购物车
  398. shoppingCartfun(row) {
  399. if (this.checkStatus != '通过') {
  400. uni.showToast({
  401. title: "当前用户未授权,请联系客服",
  402. icon: "none",
  403. mask: true
  404. });
  405. return
  406. }
  407. if (row.inventory == 0) {
  408. uni.showToast({
  409. title: "当前商品库存为零",
  410. icon: "none",
  411. mask: true,
  412. duration: 2500
  413. });
  414. return
  415. }
  416. uni.showLoading({
  417. title: '加载中',
  418. mask: true
  419. });
  420. if (uni.getStorageSync('whether_openShare') == 1) {
  421. // 获取详情数据
  422. appDetailNew({
  423. id: row.id
  424. }).then(res => {
  425. if (res.data.type == 0) {
  426. this.form = res.data.thisLocality
  427. } else {
  428. this.form = res.data.offsite
  429. }
  430. addToCart({
  431. ...this.form,
  432. whetherIntegral: '0',
  433. detailsText: ''
  434. }).then(res => {
  435. uni.showToast({
  436. title: "加入购物车成功",
  437. icon: "none",
  438. mask: true,
  439. duration: 2500
  440. });
  441. uni.switchTab({
  442. url: '/pages/tabBar/shoppingCart',
  443. })
  444. uni.hideLoading();
  445. }).catch(err => {
  446. uni.hideLoading();
  447. })
  448. })
  449. } else {
  450. // 获取详情数据
  451. appDetail({
  452. id: row.id
  453. }).then(res => {
  454. if (res.data.type == 0) {
  455. this.form = res.data.thisLocality
  456. } else {
  457. this.form = res.data.offsite
  458. }
  459. addToCart({
  460. ...this.form,
  461. whetherIntegral: '0',
  462. detailsText: ''
  463. }).then(res => {
  464. uni.showToast({
  465. title: "加入购物车成功",
  466. icon: "none",
  467. mask: true,
  468. duration: 2500
  469. });
  470. uni.switchTab({
  471. url: '/pages/tabBar/shoppingCart',
  472. })
  473. uni.hideLoading();
  474. }).catch(err => {
  475. uni.hideLoading();
  476. })
  477. })
  478. }
  479. },
  480. // 搜索全部删除
  481. searchDeletefun() {
  482. this.recentSearches = []
  483. uni.setStorageSync('recentSearches', this.recentSearches);
  484. this.searchDeleteShow = false
  485. },
  486. // 点击搜索
  487. tagSearches(name) {
  488. this.name = name
  489. this.search.cname = name
  490. this.custom()
  491. },
  492. // 最近搜索点击关闭按钮
  493. tagClose(index) {
  494. this.recentSearches.splice(index, 1)
  495. uni.setStorageSync('recentSearches', this.recentSearches.slice(0, 8));
  496. },
  497. selectProduct(item) {
  498. if (this.checkStatus != '通过') {
  499. uni.showToast({
  500. title: "当前用户未授权,请联系客服",
  501. icon: "none",
  502. mask: true
  503. });
  504. return
  505. }
  506. uni.$u.route('/pages/views/buyGoods/commodityDetails', {
  507. id: item.id
  508. });
  509. },
  510. inSearch() {
  511. // uni.navigateTo({
  512. // url: `/pages/tabBar/searchPage?searchData=${this.name?this.name:''}`
  513. // })
  514. },
  515. lowerBottom() {
  516. this.status = 'loading'
  517. if (this.dataList.length < this.page.total) {
  518. this.page.current++
  519. this.onSearch()
  520. } else {
  521. this.status = 'nomore'
  522. }
  523. },
  524. // 搜索
  525. custom() {
  526. if (this.userInfo.tenant_id == '000000') {
  527. uni.showToast({
  528. title: '请点右下角<我的> 授权登录!',
  529. icon: 'none'
  530. });
  531. return
  532. }
  533. if (this.checkStatus != '通过') {
  534. uni.showToast({
  535. title: "当前用户未授权,请联系客服",
  536. icon: "none",
  537. mask: true
  538. });
  539. return
  540. }
  541. this.current = -1
  542. this.page = {
  543. total: 0,
  544. size: 10,
  545. current: 1
  546. }
  547. if (this.name) {
  548. this.recentSearches.unshift(this.name)
  549. // 去重
  550. this.recentSearches = this.recentSearches.filter((item, index) => this.recentSearches.indexOf(item) ===
  551. index).slice(0, 8);
  552. uni.setStorageSync('recentSearches', this.recentSearches.slice(0, 8));
  553. }
  554. delete this.search.brandId
  555. this.search.cname = this.name
  556. this.dataList = []
  557. this.onSearch()
  558. },
  559. // 左侧选择
  560. swichMenu(row, index) {
  561. // this.current = index;
  562. this.page = {
  563. total: 0,
  564. size: 10,
  565. current: 1
  566. }
  567. this.search.brandId = row.id
  568. this.search.cname = this.name ? this.name : null
  569. this.dataList = []
  570. this.onSearch()
  571. this.$refs.popup.close()
  572. },
  573. // 列表数据获取
  574. onSearch() {
  575. uni.showLoading({
  576. title: '加载中',
  577. mask: true
  578. });
  579. if (uni.getStorageSync('whether_openShare') == 1) {
  580. goodsListNew({
  581. size: this.page.size,
  582. current: this.page.current,
  583. ...this.search,
  584. whetherIntegral: '0'
  585. }).then(res => {
  586. this.dataList = this.dataList.concat(res.data.records)
  587. this.page.total = res.data.total
  588. if (this.dataList.length == res.data.total) {
  589. this.status = 'nomore'
  590. }
  591. uni.hideLoading();
  592. }).catch(err => {
  593. uni.hideLoading();
  594. })
  595. } else {
  596. goodsList({
  597. size: this.page.size,
  598. current: this.page.current,
  599. ...this.search,
  600. whetherIntegral: '0'
  601. }).then(res => {
  602. this.dataList = this.dataList.concat(res.data.records)
  603. this.page.total = res.data.total
  604. if (this.dataList.length == res.data.total) {
  605. this.status = 'nomore'
  606. }
  607. uni.hideLoading();
  608. }).catch(err => {
  609. uni.hideLoading();
  610. })
  611. }
  612. },
  613. }
  614. }
  615. </script>
  616. <style lang="scss" scoped>
  617. .suspensionBox {
  618. width: 80rpx;
  619. height: 80rpx;
  620. background: #fff;
  621. border-radius: 50%;
  622. position: fixed;
  623. top: 92%;
  624. right: 40rpx;
  625. box-shadow: 4px 4px 8px 1px rgba(0, 0, 0, .5);
  626. display: flex;
  627. align-items: center;
  628. justify-content: center;
  629. }
  630. .brandImg {
  631. display: flex;
  632. flex-direction: column;
  633. align-items: center;
  634. justify-content: center;
  635. margin: 10rpx 0;
  636. .text {
  637. white-space: nowrap;
  638. overflow: hidden;
  639. text-overflow: ellipsis;
  640. width: 130rpx;
  641. text-align: center;
  642. font-size: 24rpx;
  643. color: #797979;
  644. }
  645. }
  646. .tagClass {
  647. display: flex;
  648. padding: 8rpx 63rpx 18rpx 63rpx;
  649. background-color: #fff;
  650. justify-content: space-around;
  651. ::v-deep .u-tag--mini {
  652. font-size: 28rpx;
  653. line-height: 22px;
  654. padding: 0rpx 24rpx;
  655. }
  656. }
  657. .card {
  658. display: flex;
  659. align-items: center;
  660. background-color: #fff;
  661. width: 100%;
  662. margin-top: 28rpx;
  663. .cardImg {
  664. margin: 31rpx;
  665. width: 180rpx;
  666. height: 180rpx;
  667. border: 2rpx solid #E7E7E7;
  668. }
  669. .cardName {
  670. font-weight: 400;
  671. font-size: 24rpx;
  672. height: 64rpx;
  673. width: 400rpx;
  674. color: #797979;
  675. display: -webkit-box;
  676. -webkit-box-orient: vertical;
  677. -webkit-line-clamp: 2;
  678. overflow: hidden;
  679. text-overflow: ellipsis;
  680. // margin-bottom: 28rpx;
  681. }
  682. .cardTitle {
  683. font-weight: 400;
  684. font-size: 24rpx;
  685. width: 400rpx;
  686. .cardRetailPrice {
  687. display: flex;
  688. color: #909399;
  689. font-size: 22rpx;
  690. height: 28rpx;
  691. }
  692. }
  693. .cardTab {
  694. position: relative;
  695. top: 4rpx;
  696. .cardKc {
  697. text-align: center;
  698. position: absolute;
  699. right: 0rpx;
  700. top: 3rpx;
  701. font-size: 22rpx;
  702. color: #FFFFFF;
  703. font-weight: 500;
  704. width: 49rpx;
  705. height: 26rpx;
  706. }
  707. }
  708. .cardPrice {
  709. margin-left: 10rpx;
  710. color: #E75F37;
  711. font-size: 32rpx;
  712. font-weight: 500;
  713. }
  714. }
  715. .recentSearches {
  716. padding: 8rpx 12rpx;
  717. background-color: #fff;
  718. .recentSearches-head {
  719. display: flex;
  720. align-items: center;
  721. justify-content: space-between;
  722. color: #C4C4C4;
  723. .recentSearches-headLeft {
  724. display: flex;
  725. align-items: center;
  726. }
  727. .recentSearches-headRight {}
  728. }
  729. .recentSearches-text {
  730. display: flex;
  731. flex-wrap: wrap;
  732. align-items: baseline;
  733. ::v-deep .u-tag__close {
  734. z-index: 99 !important;
  735. }
  736. }
  737. }
  738. </style>