index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <template>
  2. <view class="content">
  3. <view class="search-box">
  4. <!-- mSearch组件 如果使用原样式,删除组件元素-->
  5. <!-- <mSearch class="mSearch-input-box" :mode="2" button="inside" :placeholder="defaultKeyword"
  6. @search="doSearch(false)" @input="inputChange" @confirm="doSearch(false)" v-model="keyword"></mSearch> -->
  7. <!-- 原样式 如果使用原样式,恢复下方注销代码 -->
  8. <!-- <view class="input-box">
  9. <input type="text" :adjust-position="true" :placeholder="defaultKeyword" @input="inputChange" v-model="keyword" @confirm="doSearch(false)"
  10. placeholder-class="placeholder-class" confirm-type="search">
  11. </view>
  12. <view class="search-btn" @tap="doSearch(false)">搜索</view> -->
  13. <view class="margin-lr">
  14. <u-search
  15. style="width: 100%"
  16. placeholder="请输入商家或者商品名称"
  17. :focus="true"
  18. v-model="keyword"
  19. :show-action="true"
  20. :animation="true"
  21. shape="square"
  22. action-text="取消"
  23. @custom="goBack()"
  24. @search="doSearch(false)"
  25. ></u-search>
  26. </view>
  27. <!-- <u-dropdown v-show="isShowKeywordList">
  28. <u-dropdown-item v-model="value1" :title="title" :options="options1" @change="confirm">
  29. </u-dropdown-item>
  30. <u-dropdown-item v-model="value2" :title="title1" :options="options2" @change="confirm2">
  31. </u-dropdown-item>
  32. </u-dropdown> -->
  33. <view v-show="isShowKeywordList" style="width: 100%; z-index: 999">
  34. <view class="flex justify-between align-center bg-white padding-tb padding-lr-sm">
  35. <view class="flex-sub text-center" :class="current == 1 ? 'select' : ''" @click="confirm(1)">综合排序</view>
  36. <view class="flex-sub text-center" :class="current == 3 ? 'select' : ''" @click="confirm(3)">距离优先</view>
  37. <view class="flex-sub text-center" :class="current == 4 ? 'select' : ''" @click="confirm(4)">销量优先</view>
  38. <view class="flex-sub text-center flex" @click="isShow = !isShow">
  39. <view class="flex align-center" style="margin: 0 auto">
  40. <view :class="isShow ? 'select' : ''">筛选</view>
  41. <u-icon v-if="!isShow" name="arrow-down" size="28"></u-icon>
  42. <u-icon v-if="isShow" name="arrow-up" color="#FCD202" size="28"></u-icon>
  43. </view>
  44. </view>
  45. </view>
  46. <view v-if="isShow" style="position: absolute; top: 150rpx; width: 100%; z-index: 1000; background: rgba(0, 0, 0, 0.5); height: 100vh" @click="isShow = false">
  47. <view class="padding-lr bg-white">
  48. <view class="flex justify-between align-center padding-tb-sm u-border-bottom" v-for="(item, index) in options4" :key="index" @click.stop="getSelect(item)">
  49. <view class="text-df" :class="item.select ? 'select' : ''">{{ item.shopTypeName }}</view>
  50. <u-icon v-if="item.select" name="checkmark" color="#FCD202" size="28"></u-icon>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 原样式 end -->
  56. <!-- 活动筛选 -->
  57. <view class="hd flex justify-center" v-if="hdlist.length > 0 && isShowKeywordList">
  58. <view class="hd-box">
  59. <scroll-view scroll-x="true" class="scroll-view_H">
  60. <view
  61. class="hd-box-item"
  62. :style="currenthd == index ? 'background-color:#fcd202;font-weight:bold' : ''"
  63. @click="searchhd(index, item.activityId)"
  64. v-for="(item, index) in hdlist"
  65. :key="index"
  66. >
  67. {{ item.activityTitle }}
  68. </view>
  69. </scroll-view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="search-keyword">
  74. <view class="keyword-list-box" v-show="isShowKeywordList" scroll-y>
  75. <view class="padding-lr">
  76. <view class="" v-for="(item, index) in keywordList" :key="index">
  77. <view class="flex justify-between bg-white padding" style="margin-bottom: 20rpx" @click="goNav(item.shopId, item, item.shopActivityList)">
  78. <image :src="item.shopCover" class="radius" style="width: 160rpx; height: 160rpx"></image>
  79. <view class="margin-left-sm" style="width: 450rpx">
  80. <view class="flex flex-direction justify-between">
  81. <view class="text-lg text-bold text-black">{{ item.shopName }}</view>
  82. <view class="flex align-center margin-top-xs" style="width: 100%">
  83. <u-icon name="star-fill" color="#FD6416" size="28"></u-icon>
  84. <text class="text-lg" style="">{{ item.shopScore ? item.shopScore : 0 }}</text>
  85. <text class="text-gray flex-sub margin-left-xs">销量{{ item.shopSales ? item.shopSales : 0 }}</text>
  86. <text class="text-gray margin-left-xs">{{ item.errandTime }}分钟</text>
  87. <text class="text-gray margin-left-xs">{{ item.distance }}</text>
  88. </view>
  89. <view class="text-gray margin-top-xs flex justify-between">
  90. <view>起送 ¥{{ item.minimumDelivery }} 配送 ¥{{ item.errandMoney ? item.errandMoney : 0 }}</view>
  91. <view style="color: #fcd202">{{ item.autoSendOrder == 1 ? '商家配送' : '平台配送' }}</view>
  92. </view>
  93. <view class="text-gray margin-top-xs" v-if="item.businessHours && item.lockHours">营业时间:{{ item.businessHours }}-{{ item.lockHours }}</view>
  94. <view class="flex margin-top-xs justify-between align-start" style="width: 100%">
  95. <view class="flex flex-wrap align-center" style="width: 100%; height: 100%; overflow: hidden">
  96. <!-- <view class="lable flex justify-center align-center" v-if="item.enableFullReductionFlag==1">
  97. 不参与配送费满减</view> -->
  98. <view class="lable flex justify-center align-center" v-if="item.enableFullReductionFlag == 0 && item.exemptMinMoney">
  99. 满{{ item.exemptMinMoney }}免配送费
  100. </view>
  101. <!-- <view class="lable flex justify-center align-center" v-if="item.exemptMinMoney">满{{item.exemptMinMoney}}免配送费</view> -->
  102. <view v-for="(ite, ind) in item.shopActivityList" :key="ind" v-if="item.shopActivityList && ite.activityType != '1'">
  103. <view
  104. class="lable flex justify-center align-center"
  105. style="border-radius: 4rpx; background-color: #ffffff; color: red; box-sizing: border-box"
  106. >
  107. <text v-if="ite.activityType == '2'">时段</text>
  108. <text v-if="ite.activityType == '3'">满额</text>
  109. <text v-if="ite.activityType == '4'">全场</text>
  110. <text style="margin-left: 3px">|</text>
  111. <text style="margin-left: 3px">{{ ite.activityName }}</text>
  112. </view>
  113. <!-- <view class="lable flex justify-center align-center"
  114. style="border-radius: 4rpx;border: 1rpx solid red;background-color: #ffffff;color: red;box-sizing: border-box;"
  115. >{{ite.activityName}}
  116. </view> -->
  117. </view>
  118. <view class="lable flex justify-center align-center" v-for="(ite, ind) in item.shopLable" :key="ind" v-if="item.shopLable">
  119. {{ ite }}
  120. </view>
  121. <view
  122. class="lable flex justify-center align-center"
  123. v-if="item.couponList"
  124. style="border-radius: 4rpx; border: 1rpx solid red; background-color: #ffffff; color: red; box-sizing: border-box"
  125. v-for="(it, ide) in item.couponList"
  126. :key="ide"
  127. >
  128. <text>优惠券</text>
  129. <text style="margin-left: 3px">|</text>
  130. <text style="margin-left: 3px">满{{ it.minMoney }}减{{ it.money }}</text>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="flex margin-top-xs">
  136. <view v-for="(ite, ind) in item.goodsList" :key="ind" @click.stop="goDet(ite.goodsId, item.shopId)" style="width: 33%">
  137. <image :src="ite.goodsCover" style="width: 120rpx; height: 120rpx" class="radius" mode=""></image>
  138. <view class="u-line-1 text-df text-bold margin-top-xs">{{ ite.goodsName }}</view>
  139. <view class="text-bold margin-top-xs" style="color: #fd6416">
  140. <text class="text-sm">¥</text>
  141. {{ ite.goodsMoney }}
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <!-- <view v-if="keywordList.length == 0">
  150. 暂无数据
  151. </view> -->
  152. <empty v-if="keywordList.length == 0"></empty>
  153. </view>
  154. <view class="keyword-box" v-show="!isShowKeywordList" scroll-y>
  155. <view class="keyword-block" v-if="hotKeywordList.length > 0">
  156. <view class="keyword-list-header">
  157. <view>热门搜索</view>
  158. <view>
  159. <image @tap="hotToggle" :src="'/static/images/index/attention' + forbid + '.png'"></image>
  160. </view>
  161. </view>
  162. <view class="keyword" v-if="forbid == ''">
  163. <view v-for="(keyword, index) in hotKeywordList" @tap="doSearch(keyword)" :key="index">
  164. {{ keyword }}
  165. </view>
  166. </view>
  167. <view class="hide-hot-tis" v-else>
  168. <view>当前搜热已隐藏</view>
  169. </view>
  170. </view>
  171. <view class="keyword-block" v-if="oldKeywordList.length > 0">
  172. <view class="keyword-list-header">
  173. <view>历史记录</view>
  174. <view>
  175. <image @tap="oldDelete" src="/static/images/index/delete.png"></image>
  176. </view>
  177. </view>
  178. <view class="keyword">
  179. <view v-for="(keyword, index) in oldKeywordList" @tap="doSearch(keyword.message)" :key="index">
  180. {{ keyword.message }}
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <!-- 打样提示 -->
  187. <view v-if="hintShow" class="hintPopul" @click.stop="hintShow = false">
  188. <view class="content_">
  189. <image src="../../../static/images/index/shop.png" mode="" style="width: 200rpx; height: 180rpx"></image>
  190. <view class="text-xl text-bold">店铺打烊啦</view>
  191. <view class="hintText margin-top-sm text-gray">现在店铺已经打烊了,营业时间</view>
  192. <view class="margin-top-xs text-gray margin-bottom">{{ shop.businessHours }}-{{ shop.lockHours }}</view>
  193. <view class="skuBtn" @click="hintShow = false">知道了</view>
  194. </view>
  195. </view>
  196. </view>
  197. </template>
  198. <script>
  199. import empty from '@/components/empty.vue'
  200. export default {
  201. components: {
  202. empty
  203. },
  204. data() {
  205. return {
  206. hintShow: false,
  207. shop: {},
  208. currenthd: -1,
  209. hdlist: [],
  210. activityId: '',
  211. isShow: false,
  212. defaultKeyword: '',
  213. keyword: '',
  214. oldKeywordList: [], //历史记录
  215. hotKeywordList: [], //热搜
  216. keywordList: [], //搜索列表
  217. forbid: '',
  218. isShowKeywordList: false,
  219. limit: 10,
  220. page: 1,
  221. userId: '',
  222. isVip: false,
  223. lng: '',
  224. lat: '',
  225. value1: 1,
  226. value2: 0,
  227. options1: [
  228. {
  229. label: '综合排序',
  230. value: 1
  231. },
  232. {
  233. label: '距离优先',
  234. value: 3
  235. },
  236. {
  237. label: '销量优先',
  238. value: 4
  239. }
  240. ],
  241. options2: [
  242. {
  243. value: '',
  244. label: '全部'
  245. }
  246. ],
  247. options4: [
  248. {
  249. id: '',
  250. select: true,
  251. shopTypeName: '全部'
  252. }
  253. ],
  254. current: 1,
  255. shopTypeId: '',
  256. title: '综合排序',
  257. title1: '筛选',
  258. totalCount: 0
  259. }
  260. },
  261. onLoad() {
  262. let that = this
  263. this.getSearchList()
  264. this.gethdlist()
  265. this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  266. this.lng = uni.getStorageSync('lng')
  267. this.lat = uni.getStorageSync('lat')
  268. this.getShopType()
  269. this.isVip = uni.getStorageSync('isVIP')
  270. uni.getLocation({
  271. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  272. success: function (res) {
  273. // that.lat = res.latitude;
  274. // that.lng = res.longitude;
  275. }
  276. })
  277. },
  278. methods: {
  279. //筛选活动
  280. searchhd(index, activityId) {
  281. if (index == this.currenthd) {
  282. this.currenthd = -1
  283. this.activityId = ''
  284. this.doSearch(false)
  285. } else {
  286. this.currenthd = index
  287. this.activityId = activityId
  288. this.doSearch(false)
  289. }
  290. },
  291. //获取所有活动
  292. gethdlist() {
  293. this.$Request.get('/app/activityManage/getActivityList').then((res) => {
  294. if (res.code == 0) {
  295. res.data.records.map((item, index) => {
  296. if (item.activityId == 14) {
  297. res.data.records.splice(index, 1)
  298. }
  299. })
  300. this.hdlist = res.data.records
  301. }
  302. })
  303. },
  304. getSelect(e) {
  305. this.options4.forEach((res) => {
  306. if (res.id == e.id) {
  307. res.select = true
  308. this.page = 1
  309. this.shopTypeId = e.id
  310. // this.getShopList();
  311. this.doSearch(this.keyword)
  312. this.isShow = false
  313. } else {
  314. res.select = false
  315. }
  316. })
  317. },
  318. confirm(e) {
  319. console.log(e)
  320. this.page = 1
  321. this.current = e
  322. this.doSearch(this.keyword)
  323. },
  324. confirm2(e) {
  325. console.log(e)
  326. this.page = 1
  327. this.shopTypeId = e
  328. if (e == 0) {
  329. this.title1 = '筛选'
  330. } else {
  331. this.title1 = this.options2[e].label
  332. }
  333. this.doSearch(this.keyword)
  334. },
  335. // 获取搜索历史
  336. getSearchList() {
  337. let data = {
  338. page: this.page,
  339. limit: this.limit
  340. }
  341. this.$Request.get('/app/searchhistory/selectSearchHistory', data).then((res) => {
  342. console.log(res)
  343. if (res.code == 0) {
  344. this.oldKeywordList = res.data.list
  345. }
  346. })
  347. this.$Request.getT('/app/common/type/309').then((res) => {
  348. //订单状态通知
  349. if (res.code == 0) {
  350. this.hotKeywordList = res.data.value.split(',')
  351. }
  352. })
  353. },
  354. //清除历史搜索
  355. oldDelete() {
  356. uni.showModal({
  357. content: '确定清除历史搜索记录?',
  358. success: (res) => {
  359. if (res.confirm) {
  360. console.log('用户点击确定')
  361. this.$Request.get('/app/searchhistory/deleteSearchHistory').then((res) => {
  362. if (res.code == 0) {
  363. this.getSearchList()
  364. }
  365. })
  366. } else if (res.cancel) {
  367. console.log('用户点击取消')
  368. }
  369. }
  370. })
  371. },
  372. //执行搜索
  373. doSearch(keyword) {
  374. this.keyword = keyword === false ? this.keyword : keyword
  375. this.isShowKeywordList = true
  376. if (!this.keyword) {
  377. uni.showToast({
  378. title: '请输入内容',
  379. icon: 'none',
  380. duration: 1000
  381. })
  382. return
  383. }
  384. let data = {
  385. impotr: this.keyword,
  386. screen: this.current,
  387. shopTypeId: this.shopTypeId,
  388. limit: this.limit,
  389. page: this.page,
  390. lng: this.lng,
  391. lat: this.lat,
  392. userId: this.userId,
  393. activityId: this.activityId
  394. }
  395. this.$Request.get('/app/goods/selectShop', data).then((res) => {
  396. if (res.code == 0) {
  397. this.totalCount = res.data.totalCount
  398. res.data.list.forEach((ret) => {
  399. if (ret.distance > 1000) {
  400. ret.distance = Number(ret.distance / 1000).toFixed(2) + 'km'
  401. } else {
  402. if (ret.distance == 0) {
  403. ret.distance = '0m'
  404. } else {
  405. ret.distance = Number(ret.distance).toFixed(1) + 'm'
  406. }
  407. }
  408. ret.shopLable = ret.shopLable ? ret.shopLable.split(',') : ''
  409. ret.errandTime = Math.round(ret.errandTime)
  410. ret.shopScore = ret.shopScore.toFixed(1)
  411. })
  412. if (this.page == 1) this.keywordList = []
  413. this.keywordList = [...this.keywordList, ...res.data.list]
  414. }
  415. })
  416. },
  417. // 商户类型
  418. getShopType() {
  419. this.$Request.getT('/app/shoptype/selectShopTypeList').then((res) => {
  420. if (res.code == 0) {
  421. res.data.forEach((res) => {
  422. res.select = false
  423. })
  424. this.options4 = [...this.options4, ...res.data]
  425. }
  426. })
  427. },
  428. // 点击取消返回首页
  429. goBack() {
  430. uni.navigateBack()
  431. },
  432. //热门搜索开关
  433. hotToggle() {
  434. this.forbid = this.forbid ? '' : '_forbid'
  435. },
  436. // 跳转商品详情
  437. goDet(goodsId, shopId) {
  438. uni.navigateTo({
  439. url: '/pages/index/shop/goodsDet?goodsId=' + goodsId + '&shopId=' + shopId + '&orderType=1'
  440. })
  441. },
  442. goNav(url, e, shuzu) {
  443. this.shop = e
  444. // console.log(e, '当前店铺')
  445. let myDate = new Date()
  446. let hours = myDate.getHours()
  447. let minute = myDate.getMinutes()
  448. let openTime = this.shop.businessHours.split(':')[0] //开始小时
  449. let openTime1 = this.shop.businessHours.split(':')[1] //开始分钟
  450. let closeTime = this.shop.lockHours.split(':')[0] //结束小时
  451. let closeTime1 = this.shop.lockHours.split(':')[1] //结束分钟.
  452. console.log(hours)
  453. console.log(minute)
  454. console.log(openTime)
  455. console.log(openTime1)
  456. console.log(closeTime)
  457. console.log(closeTime1)
  458. console.log(minute >= closeTime1)
  459. if (hours < openTime) {
  460. this.hintShow = true
  461. return
  462. } else if (hours == openTime && minute < openTime1) {
  463. this.hintShow = true
  464. return
  465. } else if (hours > closeTime) {
  466. this.hintShow = true
  467. return
  468. } else if (hours == closeTime && minute >= closeTime1) {
  469. this.hintShow = true
  470. return
  471. }
  472. console.log(url)
  473. let items = encodeURIComponent(JSON.stringify(shuzu))
  474. // if (this.userId) {
  475. uni.navigateTo({
  476. url: '/pages/index/shop/index?shopId=' + url + '&huoListss=' + items + '&shopTypeId=' + e.shopTypeId
  477. })
  478. // } else {
  479. // uni.navigateTo({
  480. // url: '/pages/public/login'
  481. // })
  482. // }
  483. },
  484. // 跳转订单
  485. goOrder(e) {
  486. if (this.userId) {
  487. uni.navigateTo({
  488. url: '/pages/index/game/order?id=' + e.id
  489. })
  490. } else {
  491. uni.navigateTo({
  492. url: '/pages/public/login'
  493. })
  494. }
  495. }
  496. },
  497. onReachBottom: function () {
  498. // this.page = this.page + 1;
  499. // this.doSearch(false);
  500. if (this.keywordList.length < this.totalCount) {
  501. this.page = this.page + 1
  502. this.doSearch(false)
  503. } else {
  504. uni.showToast({
  505. title: '已经到底了',
  506. icon: 'none'
  507. })
  508. }
  509. },
  510. onPullDownRefresh: function () {
  511. this.page = 1
  512. this.doSearch(false)
  513. }
  514. }
  515. </script>
  516. <style lang="scss">
  517. page {
  518. /* background-color: #FFFFFF; */
  519. }
  520. .hd {
  521. width: 100%;
  522. height: auto;
  523. // margin-top: 20rpx;
  524. padding-top: 20rpx;
  525. padding-bottom: 20rpx;
  526. background-color: rgb(248, 248, 248);
  527. .hd-box {
  528. width: 686rpx;
  529. height: 100%;
  530. .scroll-view_H {
  531. width: 100%;
  532. white-space: nowrap;
  533. }
  534. .hd-box-item {
  535. display: inline-block;
  536. padding: 10rpx 20rpx 10rpx 20rpx;
  537. background-color: #ffffff;
  538. font-size: 24rpx;
  539. border-radius: 8rpx;
  540. margin-right: 10rpx;
  541. }
  542. }
  543. }
  544. .select {
  545. color: #fcd202;
  546. }
  547. .search-box {
  548. width: 100%;
  549. /* background-color: rgb(242, 242, 242); */
  550. padding: 15upx 0 0;
  551. /* display: flex; */
  552. /* justify-content: space-between; */
  553. position: sticky;
  554. top: 0;
  555. background-color: #fff;
  556. z-index: 99;
  557. }
  558. .search-box .mSearch-input-box {
  559. width: 100%;
  560. }
  561. .search-box .input-box {
  562. width: 85%;
  563. flex-shrink: 1;
  564. display: flex;
  565. justify-content: center;
  566. align-items: center;
  567. }
  568. .search-box .search-btn {
  569. width: 15%;
  570. margin: 0 0 0 2%;
  571. display: flex;
  572. justify-content: center;
  573. align-items: center;
  574. flex-shrink: 0;
  575. font-size: 28upx;
  576. /* color: #fff; */
  577. background: linear-gradient(to right, #ff9801, #ff570a);
  578. border-radius: 60upx;
  579. }
  580. .search-box .input-box > input {
  581. width: 100%;
  582. height: 60upx;
  583. font-size: 32upx;
  584. border: 0;
  585. border-radius: 60upx;
  586. -webkit-appearance: none;
  587. -moz-appearance: none;
  588. appearance: none;
  589. padding: 0 3%;
  590. margin: 0;
  591. background-color: #ffffff;
  592. }
  593. .placeholder-class {
  594. color: #9e9e9e;
  595. }
  596. .search-keyword {
  597. width: 100%;
  598. /* background-color: #111224; */
  599. }
  600. .keyword-list-box {
  601. height: calc(100vh - 110upx);
  602. /* padding-top: 10upx; */
  603. /* border-radius: 20upx 20upx 0 0; */
  604. /* background-color: #fff; */
  605. }
  606. .keyword-entry-tap {
  607. background-color: #eee;
  608. }
  609. .keyword-entry {
  610. width: 94%;
  611. height: 80upx;
  612. margin: 0 3%;
  613. font-size: 30upx;
  614. color: #333;
  615. display: flex;
  616. justify-content: space-between;
  617. align-items: center;
  618. border-bottom: solid 1upx #e7e7e7;
  619. }
  620. .keyword-entry image {
  621. width: 60upx;
  622. height: 60upx;
  623. }
  624. .keyword-entry .keyword-text,
  625. .keyword-entry .keyword-img {
  626. height: 80upx;
  627. display: flex;
  628. align-items: center;
  629. }
  630. .keyword-entry .keyword-text {
  631. width: 90%;
  632. }
  633. .keyword-entry .keyword-img {
  634. width: 10%;
  635. justify-content: center;
  636. }
  637. .keyword-box {
  638. height: calc(100vh - 110upx);
  639. /* border-radius: 20upx 20upx 0 0; */
  640. /* background-color: #111224; */
  641. }
  642. .keyword-box .keyword-block {
  643. padding: 10upx 0;
  644. }
  645. .keyword-box .keyword-block .keyword-list-header {
  646. width: 94%;
  647. padding: 10upx 3%;
  648. font-size: 27upx;
  649. font-weight: 700;
  650. /* color: #FFFFFF; */
  651. display: flex;
  652. justify-content: space-between;
  653. }
  654. .keyword-box .keyword-block .keyword-list-header image {
  655. width: 40upx;
  656. height: 40upx;
  657. }
  658. .keyword-box .keyword-block .keyword {
  659. width: 94%;
  660. padding: 3px 3%;
  661. display: flex;
  662. flex-flow: wrap;
  663. justify-content: flex-start;
  664. }
  665. .keyword-box .keyword-block .hide-hot-tis {
  666. display: flex;
  667. justify-content: center;
  668. font-size: 28upx;
  669. /* color: #FFFFFF; */
  670. }
  671. .keyword-box .keyword-block .keyword > view {
  672. display: flex;
  673. justify-content: center;
  674. align-items: center;
  675. border-radius: 10upx;
  676. padding: 0 20upx;
  677. margin: 10upx 20upx 10upx 0;
  678. height: 60upx;
  679. font-size: 28upx;
  680. background-color: #eee;
  681. /* color: #FFFFFF; */
  682. }
  683. .lable {
  684. border: 1rpx solid #ffe6d9;
  685. height: 40rpx;
  686. padding: 0 14rpx;
  687. background: #ffe6d9;
  688. border-radius: 4rpx;
  689. font-weight: 500;
  690. color: #fd6416;
  691. font-size: 20rpx;
  692. margin-right: 10rpx;
  693. margin-bottom: 10rpx;
  694. }
  695. .hintPopul {
  696. width: 100%;
  697. height: 100vh;
  698. position: fixed;
  699. top: 0;
  700. background: rgba(0, 0, 0, 0.4);
  701. z-index: 999;
  702. }
  703. .content_ {
  704. position: absolute;
  705. left: 0;
  706. right: 0;
  707. top: 0;
  708. bottom: 0;
  709. margin: auto;
  710. text-align: center;
  711. width: 500rpx;
  712. height: 400rpx;
  713. border-radius: 20rpx;
  714. background-color: #fff;
  715. padding-top: 120rpx;
  716. }
  717. .content_ image {
  718. position: absolute;
  719. top: -50rpx;
  720. left: 0;
  721. right: 0;
  722. margin: auto;
  723. }
  724. .hintText {
  725. font-size: 30rpx;
  726. }
  727. .skuBtn {
  728. width: 460rpx;
  729. height: 60rpx;
  730. line-height: 60rpx;
  731. text-align: center;
  732. background: #fcd202;
  733. font-size: 28rpx;
  734. border: 2rpx solid #fcd202;
  735. color: #333333;
  736. border-radius: 50rpx;
  737. font-weight: 700;
  738. margin: auto;
  739. }
  740. </style>