index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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. city:'',
  260. }
  261. },
  262. onLoad() {
  263. let that = this
  264. this.defaultAddress()
  265. this.getSearchList()
  266. this.gethdlist()
  267. this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  268. this.lng = uni.getStorageSync('lng')
  269. this.lat = uni.getStorageSync('lat')
  270. this.getShopType()
  271. this.isVip = uni.getStorageSync('isVIP')
  272. uni.getLocation({
  273. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  274. success: function (res) {
  275. // that.lat = res.latitude;
  276. // that.lng = res.longitude;
  277. }
  278. })
  279. },
  280. methods: {
  281. defaultAddress() {
  282. if (uni.getStorageSync('city')) {
  283. this.address = uni.getStorageSync('city')
  284. }
  285. let data = {
  286. page: 1,
  287. limit: 1000
  288. }
  289. this.$Request.get('/app/address/selectAddressList', data).then(res => {
  290. if (res.code == 0 && res.data.list.length) {
  291. this.city=res.data.list[0].city
  292. res.data.list.forEach(res => {
  293. if (res.addressDefault) {
  294. this.city=res.city
  295. }
  296. })
  297. } else {
  298. }
  299. })
  300. },
  301. //筛选活动
  302. searchhd(index, activityId) {
  303. if (index == this.currenthd) {
  304. this.currenthd = -1
  305. this.activityId = ''
  306. this.doSearch(false)
  307. } else {
  308. this.currenthd = index
  309. this.activityId = activityId
  310. this.doSearch(false)
  311. }
  312. },
  313. //获取所有活动
  314. gethdlist() {
  315. this.$Request.get('/app/activityManage/getActivityList').then((res) => {
  316. if (res.code == 0) {
  317. res.data.records.map((item, index) => {
  318. if (item.activityId == 14) {
  319. res.data.records.splice(index, 1)
  320. }
  321. })
  322. this.hdlist = res.data.records
  323. }
  324. })
  325. },
  326. getSelect(e) {
  327. this.options4.forEach((res) => {
  328. if (res.id == e.id) {
  329. res.select = true
  330. this.page = 1
  331. this.shopTypeId = e.id
  332. // this.getShopList();
  333. this.doSearch(this.keyword)
  334. this.isShow = false
  335. } else {
  336. res.select = false
  337. }
  338. })
  339. },
  340. confirm(e) {
  341. console.log(e)
  342. this.page = 1
  343. this.current = e
  344. this.doSearch(this.keyword)
  345. },
  346. confirm2(e) {
  347. console.log(e)
  348. this.page = 1
  349. this.shopTypeId = e
  350. if (e == 0) {
  351. this.title1 = '筛选'
  352. } else {
  353. this.title1 = this.options2[e].label
  354. }
  355. this.doSearch(this.keyword)
  356. },
  357. // 获取搜索历史
  358. getSearchList() {
  359. let data = {
  360. page: this.page,
  361. limit: this.limit
  362. }
  363. this.$Request.get('/app/searchhistory/selectSearchHistory', data).then((res) => {
  364. console.log(res)
  365. if (res.code == 0) {
  366. this.oldKeywordList = res.data.list
  367. }
  368. })
  369. this.$Request.getT('/app/common/type/309').then((res) => {
  370. //订单状态通知
  371. if (res.code == 0) {
  372. this.hotKeywordList = res.data.value.split(',')
  373. }
  374. })
  375. },
  376. //清除历史搜索
  377. oldDelete() {
  378. uni.showModal({
  379. content: '确定清除历史搜索记录?',
  380. success: (res) => {
  381. if (res.confirm) {
  382. console.log('用户点击确定')
  383. this.$Request.get('/app/searchhistory/deleteSearchHistory').then((res) => {
  384. if (res.code == 0) {
  385. this.getSearchList()
  386. }
  387. })
  388. } else if (res.cancel) {
  389. console.log('用户点击取消')
  390. }
  391. }
  392. })
  393. },
  394. //执行搜索
  395. doSearch(keyword) {
  396. this.keyword = keyword === false ? this.keyword : keyword
  397. this.isShowKeywordList = true
  398. if (!this.keyword) {
  399. uni.showToast({
  400. title: '请输入内容',
  401. icon: 'none',
  402. duration: 1000
  403. })
  404. return
  405. }
  406. let data = {
  407. impotr: this.keyword,
  408. screen: this.current,
  409. shopTypeId: this.shopTypeId,
  410. limit: this.limit,
  411. page: this.page,
  412. lng: this.lng,
  413. lat: this.lat,
  414. userId: this.userId,
  415. activityId: this.activityId,
  416. city:this.city
  417. }
  418. this.$Request.get('/app/goods/selectShop', data).then((res) => {
  419. console.log(res,'搜索',data,uni.getStorageSync('city'))
  420. if (res.code == 0) {
  421. this.totalCount = res.data.totalCount
  422. res.data.list.forEach((ret) => {
  423. if (ret.distance > 1000) {
  424. ret.distance = Number(ret.distance / 1000).toFixed(2) + 'km'
  425. } else {
  426. if (ret.distance == 0) {
  427. ret.distance = '0m'
  428. } else {
  429. ret.distance = Number(ret.distance).toFixed(1) + 'm'
  430. }
  431. }
  432. ret.shopLable = ret.shopLable ? ret.shopLable.split(',') : ''
  433. ret.errandTime = Math.round(ret.errandTime)
  434. ret.shopScore = ret.shopScore.toFixed(1)
  435. })
  436. if (this.page == 1) this.keywordList = []
  437. this.keywordList = [...this.keywordList, ...res.data.list]
  438. }
  439. })
  440. },
  441. // 商户类型
  442. getShopType() {
  443. this.$Request.getT('/app/shoptype/selectShopTypeList').then((res) => {
  444. if (res.code == 0) {
  445. res.data.forEach((res) => {
  446. res.select = false
  447. })
  448. this.options4 = [...this.options4, ...res.data]
  449. }
  450. })
  451. },
  452. // 点击取消返回首页
  453. goBack() {
  454. uni.navigateBack()
  455. },
  456. //热门搜索开关
  457. hotToggle() {
  458. this.forbid = this.forbid ? '' : '_forbid'
  459. },
  460. // 跳转商品详情
  461. goDet(goodsId, shopId) {
  462. uni.navigateTo({
  463. url: '/pages/index/shop/goodsDet?goodsId=' + goodsId + '&shopId=' + shopId + '&orderType=1'
  464. })
  465. },
  466. goNav(url, e, shuzu) {
  467. this.shop = e
  468. // console.log(e, '当前店铺')
  469. let myDate = new Date()
  470. let hours = myDate.getHours()
  471. let minute = myDate.getMinutes()
  472. let openTime = this.shop.businessHours.split(':')[0] //开始小时
  473. let openTime1 = this.shop.businessHours.split(':')[1] //开始分钟
  474. let closeTime = this.shop.lockHours.split(':')[0] //结束小时
  475. let closeTime1 = this.shop.lockHours.split(':')[1] //结束分钟.
  476. console.log(hours)
  477. console.log(minute)
  478. console.log(openTime)
  479. console.log(openTime1)
  480. console.log(closeTime)
  481. console.log(closeTime1)
  482. console.log(minute >= closeTime1)
  483. if (hours < openTime) {
  484. this.hintShow = true
  485. return
  486. } else if (hours == openTime && minute < openTime1) {
  487. this.hintShow = true
  488. return
  489. } else if (hours > closeTime) {
  490. this.hintShow = true
  491. return
  492. } else if (hours == closeTime && minute >= closeTime1) {
  493. this.hintShow = true
  494. return
  495. }
  496. console.log(url)
  497. let items = encodeURIComponent(JSON.stringify(shuzu))
  498. // if (this.userId) {
  499. uni.navigateTo({
  500. url: '/pages/index/shop/index?shopId=' + url + '&huoListss=' + items + '&shopTypeId=' + e.shopTypeId+'&lat='+this.lat+'&lng='+this.lng
  501. })
  502. // } else {
  503. // uni.navigateTo({
  504. // url: '/pages/public/login'
  505. // })
  506. // }
  507. },
  508. // 跳转订单
  509. goOrder(e) {
  510. if (this.userId) {
  511. uni.navigateTo({
  512. url: '/pages/index/game/order?id=' + e.id
  513. })
  514. } else {
  515. uni.navigateTo({
  516. url: '/pages/public/login'
  517. })
  518. }
  519. }
  520. },
  521. onReachBottom: function () {
  522. // this.page = this.page + 1;
  523. // this.doSearch(false);
  524. if (this.keywordList.length < this.totalCount) {
  525. this.page = this.page + 1
  526. this.doSearch(false)
  527. } else {
  528. uni.showToast({
  529. title: '已经到底了',
  530. icon: 'none'
  531. })
  532. }
  533. },
  534. onPullDownRefresh: function () {
  535. this.page = 1
  536. this.doSearch(false)
  537. }
  538. }
  539. </script>
  540. <style lang="scss">
  541. page {
  542. /* background-color: #FFFFFF; */
  543. }
  544. .hd {
  545. width: 100%;
  546. height: auto;
  547. // margin-top: 20rpx;
  548. padding-top: 20rpx;
  549. padding-bottom: 20rpx;
  550. background-color: rgb(248, 248, 248);
  551. .hd-box {
  552. width: 686rpx;
  553. height: 100%;
  554. .scroll-view_H {
  555. width: 100%;
  556. white-space: nowrap;
  557. }
  558. .hd-box-item {
  559. display: inline-block;
  560. padding: 10rpx 20rpx 10rpx 20rpx;
  561. background-color: #ffffff;
  562. font-size: 24rpx;
  563. border-radius: 8rpx;
  564. margin-right: 10rpx;
  565. }
  566. }
  567. }
  568. .select {
  569. color: #fcd202;
  570. }
  571. .search-box {
  572. width: 100%;
  573. /* background-color: rgb(242, 242, 242); */
  574. padding: 15upx 0 0;
  575. /* display: flex; */
  576. /* justify-content: space-between; */
  577. position: sticky;
  578. top: 0;
  579. background-color: #fff;
  580. z-index: 99;
  581. }
  582. .search-box .mSearch-input-box {
  583. width: 100%;
  584. }
  585. .search-box .input-box {
  586. width: 85%;
  587. flex-shrink: 1;
  588. display: flex;
  589. justify-content: center;
  590. align-items: center;
  591. }
  592. .search-box .search-btn {
  593. width: 15%;
  594. margin: 0 0 0 2%;
  595. display: flex;
  596. justify-content: center;
  597. align-items: center;
  598. flex-shrink: 0;
  599. font-size: 28upx;
  600. /* color: #fff; */
  601. background: linear-gradient(to right, #ff9801, #ff570a);
  602. border-radius: 60upx;
  603. }
  604. .search-box .input-box > input {
  605. width: 100%;
  606. height: 60upx;
  607. font-size: 32upx;
  608. border: 0;
  609. border-radius: 60upx;
  610. -webkit-appearance: none;
  611. -moz-appearance: none;
  612. appearance: none;
  613. padding: 0 3%;
  614. margin: 0;
  615. background-color: #ffffff;
  616. }
  617. .placeholder-class {
  618. color: #9e9e9e;
  619. }
  620. .search-keyword {
  621. width: 100%;
  622. /* background-color: #111224; */
  623. }
  624. .keyword-list-box {
  625. height: calc(100vh - 110upx);
  626. /* padding-top: 10upx; */
  627. /* border-radius: 20upx 20upx 0 0; */
  628. /* background-color: #fff; */
  629. }
  630. .keyword-entry-tap {
  631. background-color: #eee;
  632. }
  633. .keyword-entry {
  634. width: 94%;
  635. height: 80upx;
  636. margin: 0 3%;
  637. font-size: 30upx;
  638. color: #333;
  639. display: flex;
  640. justify-content: space-between;
  641. align-items: center;
  642. border-bottom: solid 1upx #e7e7e7;
  643. }
  644. .keyword-entry image {
  645. width: 60upx;
  646. height: 60upx;
  647. }
  648. .keyword-entry .keyword-text,
  649. .keyword-entry .keyword-img {
  650. height: 80upx;
  651. display: flex;
  652. align-items: center;
  653. }
  654. .keyword-entry .keyword-text {
  655. width: 90%;
  656. }
  657. .keyword-entry .keyword-img {
  658. width: 10%;
  659. justify-content: center;
  660. }
  661. .keyword-box {
  662. height: calc(100vh - 110upx);
  663. /* border-radius: 20upx 20upx 0 0; */
  664. /* background-color: #111224; */
  665. }
  666. .keyword-box .keyword-block {
  667. padding: 10upx 0;
  668. }
  669. .keyword-box .keyword-block .keyword-list-header {
  670. width: 94%;
  671. padding: 10upx 3%;
  672. font-size: 27upx;
  673. font-weight: 700;
  674. /* color: #FFFFFF; */
  675. display: flex;
  676. justify-content: space-between;
  677. }
  678. .keyword-box .keyword-block .keyword-list-header image {
  679. width: 40upx;
  680. height: 40upx;
  681. }
  682. .keyword-box .keyword-block .keyword {
  683. width: 94%;
  684. padding: 3px 3%;
  685. display: flex;
  686. flex-flow: wrap;
  687. justify-content: flex-start;
  688. }
  689. .keyword-box .keyword-block .hide-hot-tis {
  690. display: flex;
  691. justify-content: center;
  692. font-size: 28upx;
  693. /* color: #FFFFFF; */
  694. }
  695. .keyword-box .keyword-block .keyword > view {
  696. display: flex;
  697. justify-content: center;
  698. align-items: center;
  699. border-radius: 10upx;
  700. padding: 0 20upx;
  701. margin: 10upx 20upx 10upx 0;
  702. height: 60upx;
  703. font-size: 28upx;
  704. background-color: #eee;
  705. /* color: #FFFFFF; */
  706. }
  707. .lable {
  708. border: 1rpx solid #ffe6d9;
  709. height: 40rpx;
  710. padding: 0 14rpx;
  711. background: #ffe6d9;
  712. border-radius: 4rpx;
  713. font-weight: 500;
  714. color: #fd6416;
  715. font-size: 20rpx;
  716. margin-right: 10rpx;
  717. margin-bottom: 10rpx;
  718. }
  719. .hintPopul {
  720. width: 100%;
  721. height: 100vh;
  722. position: fixed;
  723. top: 0;
  724. background: rgba(0, 0, 0, 0.4);
  725. z-index: 999;
  726. }
  727. .content_ {
  728. position: absolute;
  729. left: 0;
  730. right: 0;
  731. top: 0;
  732. bottom: 0;
  733. margin: auto;
  734. text-align: center;
  735. width: 500rpx;
  736. height: 400rpx;
  737. border-radius: 20rpx;
  738. background-color: #fff;
  739. padding-top: 120rpx;
  740. }
  741. .content_ image {
  742. position: absolute;
  743. top: -50rpx;
  744. left: 0;
  745. right: 0;
  746. margin: auto;
  747. }
  748. .hintText {
  749. font-size: 30rpx;
  750. }
  751. .skuBtn {
  752. width: 460rpx;
  753. height: 60rpx;
  754. line-height: 60rpx;
  755. text-align: center;
  756. background: #fcd202;
  757. font-size: 28rpx;
  758. border: 2rpx solid #fcd202;
  759. color: #333333;
  760. border-radius: 50rpx;
  761. font-weight: 700;
  762. margin: auto;
  763. }
  764. </style>