index.vue 22 KB

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