index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. <template>
  2. <view :style="viewColor">
  3. <view class='productList'>
  4. <view class='search acea-row row-between-wrapper'>
  5. <!--#ifdef H5-->
  6. <view class="back" @click='set_where(1)'>
  7. <view class="iconfont icon-xiangzuo"></view>
  8. </view>
  9. <!--#endif-->
  10. <view class='input acea-row row-between-wrapper'><text class='iconfont icon-sousuo'></text>
  11. <input placeholder='输入商品名称搜索' placeholder-class='placeholder' confirm-type='search' name="search" :value='where.keyword'
  12. @confirm="searchSubmit"></input>
  13. </view>
  14. </view>
  15. <view class="nav-wrapper">
  16. <view class='nav acea-row row-middle'>
  17. <view class='item' @click="downStatus = !downStatus" :class="{'t-color':downKey>0 && firstKey == 0}">
  18. {{downMenu[downKey].title}}
  19. <text v-if="!downStatus" class="iconfont icon-xiala1 spin"></text>
  20. <text v-else class="iconfont icon-xiala1"></text>
  21. </view>
  22. <view class='item' :class="{'t-color':firstKey == 3}" @click='set_where(3)'>
  23. 销量
  24. </view>
  25. <view class='item' :class="{'t-color':firstKey == 2}" @click='set_where(2)'>
  26. 价格
  27. <image v-if="price==1" :src="domain+'/static/diy/up'+keyColor+'.png'"></image>
  28. <image v-else-if="price==2" :src="domain+'/static/diy/down'+keyColor+'.png'"></image>
  29. <image v-else :src='`${domain}/static/images/horn.png`'></image>
  30. </view>
  31. <!-- down -->
  32. <view class='item' :class="{'t-color':firstKey == 4}" @click='bindRight'>
  33. 筛选
  34. <text class="iconfont icon-shaixuan"></text>
  35. </view>
  36. </view>
  37. </view>
  38. <block>
  39. <view class="container">
  40. <view v-if="productList.length>0" class="coupon_count acea-row">
  41. <text class="text">以下商品适用于</text>
  42. <text class="coupon_used" :style="{ 'background-image': `url(${domain}/static/diy/coupon${keyColor}.png)` }">满{{couponData.use_min_price}}减{{couponData.coupon_price}}</text>
  43. </view>
  44. <!-- 商品 -->
  45. <view class='list acea-row row-between-wrapper on'>
  46. <view class='item on' hover-class='none' v-for="(item,index) in productList" :key="index"
  47. @click.stop="godDetail(item)">
  48. <view class='pictrue on'>
  49. <image :src='item.image' class="on"></image>
  50. </view>
  51. <view class='text on acea-row row-between-wrapper'>
  52. <view class='name line1'>
  53. <text class="text_name line1">{{item.store_name}}</text>
  54. </view>
  55. <view class="item_bot">
  56. <view class="acea-row">
  57. <view class='money t-color on'>
  58. ¥<text class='num'>{{item.price}}</text>
  59. </view>
  60. <view v-if="item.show_svip_info.show_svip_price && item.svip_price" class="acea-row row-middle svip-count">
  61. <text class='vip-money'>¥{{item.svip_price}}</text>
  62. <view class="vipImg">
  63. <image :src="`${domain}/static/images/svip.png`"></image>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="item_tags acea-row">
  68. <text v-if="item.merchant.type_name && item.product_type == 0" class="font-bg-red">{{item.merchant.type_name}}</text>
  69. <text v-else-if="item.merchant.is_trader && item.product_type == 0" class="font-bg-red">自营</text>
  70. <text v-if="item.product_type != 0" :class="'font_bg-red type'+item.product_type">{{item.product_type == 1 ? "秒杀" : item.product_type == 2 ? "预售" : item.product_type == 3 ? "助力" : item.product_type == 4 ? "拼团" : ""}}</text>
  71. <text class="tags_item ticket" v-if="item.issetCoupon">领券</text>
  72. <text class="tags_item delivery" v-if="item.delivery_free == 1">包邮</text>
  73. </view>
  74. <view class="score">{{item.rate}}评分 {{item.reply_count}}条评论</view>
  75. <view class="company" v-if="item.merchant" @click.stop="goShop(item.mer_id)">
  76. <text class="line1">{{item.merchant.mer_name}}</text>
  77. <view class="flex">
  78. 进店
  79. <text class="iconfont icon-xiangyou"></text>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class='noCommodity' v-if="productList.length==0 && where.page > 1">
  88. <view class='pictrue' style="margin: 60rpx auto;">
  89. <image :src="`${domain}/static/images/noCart.png`"></image>
  90. <view>暂无商品,去看点什么吧</view>
  91. </view>
  92. <recommend v-if="recommend_switch == 1" :hostProduct="hostProduct" :isLogin="isLogin"></recommend>
  93. </view>
  94. </block>
  95. <rightSlider v-if="rightBox&&brandStataus&&parmasStatus" :price_on="where.price_on" :price_off="where.price_off" :status="rightBox&&brandStataus&&parmasStatus" :brandList="brandList" :storeTypeArr="storeTypeArr" :parmasList="parmasList" @confirm="confirm" @close="close"></rightSlider>
  96. </view>
  97. <view class="down-wrapper" v-if="downStatus">
  98. <view class="bg" @click="downStatus=false"></view>
  99. <view class="down-box">
  100. <view class="down-item" v-for="(item,index) in downMenu" :key="item.key" :class="{'on':index == downKey}" @click="bindDown(item,index)">
  101. {{item.title}}
  102. <text v-if="index == downKey" class="iconfont icon-gou"></text>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- #ifndef H5 -->
  107. <passwordPopup></passwordPopup>
  108. <!-- #endif -->
  109. </view>
  110. </template>
  111. <script>
  112. // +----------------------------------------------------------------------
  113. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  114. // +----------------------------------------------------------------------
  115. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  116. // +----------------------------------------------------------------------
  117. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  118. // +----------------------------------------------------------------------
  119. // | Author: CRMEB Team <admin@crmeb.com>
  120. // +----------------------------------------------------------------------
  121. import { getCouponProductlist, getProductHot, getBrandlist, getParmasList, getStoreTypeApi } from '@/api/store.js';
  122. import recommend from '@/components/recommend';
  123. import rightSlider from '@/components/rightSlider.vue'
  124. import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlow.vue'
  125. import {initiateAssistApi} from '@/api/activity.js';
  126. import { mapGetters } from "vuex";
  127. import { configMap } from "@/utils";
  128. import { HTTP_REQUEST_URL } from '@/config/app';
  129. import { toLogin } from '@/libs/login.js';
  130. // #ifndef H5
  131. import passwordPopup from '@/components/passwordPopup';
  132. // #endif
  133. import { goShopDetail } from '@/libs/order.js'
  134. const app = getApp();
  135. export default {
  136. computed: configMap({hide_mer_status: 1,recommend_switch:0},mapGetters(['uid','isLogin','scrollTop','viewColor','keyColor'])),
  137. components: {
  138. // #ifndef H5
  139. passwordPopup,
  140. // #endif
  141. recommend,
  142. rightSlider,
  143. WaterfallsFlow,
  144. },
  145. watch:{
  146. },
  147. data() {
  148. return {
  149. domain: HTTP_REQUEST_URL,
  150. productList: [],
  151. couponData: {},
  152. list: [],
  153. where: {
  154. coupon_id: '',
  155. cate_id: '',
  156. order: '',
  157. price_on: '',
  158. price_off: '',
  159. brand_id: '',
  160. keyword:'',
  161. page:1,
  162. limit:30
  163. },
  164. price: 0,
  165. stock: 0,
  166. nows: false,
  167. loadend: false,
  168. loading: false,
  169. loadTitle: '加载更多',
  170. title: '',
  171. hostProduct: [],
  172. hotPage: 1,
  173. hotLimit: 10,
  174. hotScroll: false,
  175. // 筛选框
  176. rightBox: false,
  177. brandStataus: false,
  178. parmasStatus: false,
  179. //品牌列表
  180. brandList: [],
  181. parmasList: [],
  182. storeTypeArr: [],
  183. downKey: 0,
  184. downStatus: false,
  185. // 下拉菜单
  186. downMenu: [{
  187. title: '综合排序',
  188. key: 1,
  189. },
  190. {
  191. title: '评分',
  192. key: 2,
  193. },
  194. {
  195. title: '新品',
  196. key: 3,
  197. }
  198. ],
  199. // 是否第一个
  200. firstKey:0,
  201. // tab切换
  202. tabIndex: 1,
  203. // 商铺列表
  204. storeList: [],
  205. sotreParam:{
  206. keyword:'',
  207. page:1,
  208. limit:30,
  209. order:''
  210. },
  211. storeKey:0,
  212. storeScroll:true,
  213. };
  214. },
  215. // 滚动监听
  216. onPageScroll() {
  217. uni.$emit('scroll');
  218. },
  219. onLoad: function(options) {
  220. this.$set(this.where, 'cate_id', options.id || '');
  221. this.$set(this.where, 'coupon_id', options.coupon_id || '');
  222. this.title = options.title || '';
  223. this.$set(this.where, 'keyword', options.searchValue || '');
  224. this.get_product_list(true);
  225. this.get_host_product();
  226. },
  227. onReady(){},
  228. mounted: function() {
  229. this.get_product_list(true);
  230. },
  231. methods: {
  232. // 去店铺
  233. goShop(id){
  234. if(this.hide_mer_status != 1){
  235. uni.navigateTo({
  236. url:`/pages/store/home/index?id=${id}`
  237. })
  238. }
  239. },
  240. // 店铺排序
  241. storeTab(key){
  242. this.storeKey = key
  243. if(key == 0){
  244. this.sotreParam.order = ''
  245. }else if(key == 1){
  246. this.sotreParam.order = 'sales'
  247. }else{
  248. this.sotreParam.order = 'rate'
  249. }
  250. this.sotreParam.page = 1
  251. this.storeScroll = true
  252. this.storeList = []
  253. },
  254. // 右侧切换
  255. bindRight(){
  256. this.price = 0;
  257. this.firstKey = 4
  258. if(!this.brandList.length)this.getBrandlist()
  259. if(!this.storeTypeArr.length)this.getStoreType()
  260. if(!this.parmasList.length)this.getParmasList()
  261. this.rightBox = true
  262. },
  263. // 获取店铺类型
  264. async getStoreType() {
  265. let temp = []
  266. getStoreTypeApi()
  267. .then(res => {
  268. temp = res.data.map(item => {
  269. return {
  270. ...item,
  271. check: false
  272. }
  273. })
  274. this.storeTypeArr = temp
  275. })
  276. .catch(res => {
  277. this.$util.Tips({
  278. title: res
  279. });
  280. });
  281. },
  282. // 获取参数列表
  283. async getParmasList(){
  284. let temp = []
  285. getParmasList({
  286. cate_pid:this.where.cate_pid,
  287. keyword:this.where.keyword
  288. })
  289. .then(res => {
  290. this.parmasStatus = true
  291. temp = res.data.map(item => {
  292. return {
  293. ...item,
  294. check: false,
  295. showValue: false,
  296. parmasValue: []
  297. }
  298. })
  299. this.parmasList = temp
  300. })
  301. .catch(res => {
  302. this.$util.Tips({
  303. title: res
  304. });
  305. });
  306. },
  307. // 品牌列表
  308. getBrandlist(){
  309. let temp = []
  310. getBrandlist({
  311. cate_id:this.where.cate_id,
  312. keyword:this.where.keyword
  313. }).then(res=>{
  314. this.brandStataus = true
  315. temp = res.data.list.map(item=>{
  316. return {
  317. ...item,
  318. check:false
  319. }
  320. })
  321. this.brandList = temp
  322. })
  323. },
  324. // 去详情页
  325. godDetail(item) {
  326. goShopDetail(item, this.uid).then(res => {
  327. if (this.isLogin) {
  328. initiateAssistApi(item.activity_id).then(res => {
  329. let id = res.data.product_assist_set_id;
  330. uni.navigateTo({
  331. url: '/pages/activity/assist_detail/index?id=' + id
  332. });
  333. }).catch((err) => {
  334. uni.showToast({
  335. title: err,
  336. icon: 'none'
  337. })
  338. });
  339. } else {
  340. toLogin()
  341. }
  342. })
  343. },
  344. // 组件确定
  345. confirm(data) {
  346. let arr = []
  347. if(data.brandList.length == 0){
  348. this.where.brand_id = ''
  349. }else{
  350. data.brandList.forEach(item =>{
  351. arr.push(item.brand_id)
  352. })
  353. this.where.brand_id =arr
  354. }
  355. this.rightBox = data.status
  356. this.where.price_on = data.price_on
  357. this.where.price_off = data.price_off
  358. this.loadend = false;
  359. this.$set(this.where, 'page', 1)
  360. this.get_product_list(true);
  361. },
  362. // 组件关闭
  363. close() {
  364. this.rightBox = false
  365. },
  366. // 下拉选项
  367. bindDown(item, index) {
  368. this.firstKey = 0
  369. if(index == 0){
  370. this.where.order = ''
  371. }else if(index == 1){
  372. this.where.order = 'rate'
  373. }else if(index == 2){
  374. this.where.order = 'is_new'
  375. }
  376. this.downKey = index
  377. this.downStatus = false
  378. this.loadend = false;
  379. this.$set(this.where, 'page', 1)
  380. this.get_product_list(true);
  381. },
  382. searchSubmit: function(e) {
  383. let that = this;
  384. that.$set(that.where, 'keyword', e.detail.value);
  385. that.loadend = false;
  386. that.$set(that.where, 'page', 1)
  387. this.get_product_list(true);
  388. },
  389. /**
  390. * 获取我的推荐
  391. */
  392. get_host_product: function() {
  393. let that = this;
  394. if (that.hotScroll) return
  395. getProductHot(
  396. that.hotPage,
  397. that.hotLimit,
  398. ).then(res => {
  399. that.hotPage++
  400. that.hotScroll = res.data.length < that.hotLimit
  401. that.hostProduct = that.hostProduct.concat(res.data.list)
  402. // that.$set(that, 'hostProduct', res.data)
  403. });
  404. },
  405. //点击事件处理
  406. set_where: function(e) {
  407. switch (e) {
  408. case 1:
  409. uni.setStorageSync('storeIndex', this.where.cate_id);
  410. uni.navigateBack()
  411. break
  412. case 2:
  413. this.firstKey = e
  414. if (this.price == 0){
  415. this.price = 1;
  416. this.where.order = 'price_asc'
  417. }else if (this.price == 1){
  418. this.price = 2;
  419. this.where.order = 'price_desc'
  420. }else if (this.price == 2){
  421. this.price = 0;
  422. this.where.order = ''
  423. }
  424. this.$set(this.where, 'page', 1)
  425. this.get_product_list(true);
  426. break;
  427. case 3:
  428. this.price = 0;
  429. this.loadend = false;
  430. this.$set(this.where, 'order', 'sales')
  431. this.$set(this.where, 'page', 1)
  432. this.get_product_list(true);
  433. this.firstKey = e
  434. break;
  435. }
  436. this.loadend = false;
  437. this.$set(this.where, 'page', 1);
  438. this.get_product_list(true);
  439. },
  440. //查找产品
  441. get_product_list: function(isPage) {
  442. let that = this;
  443. if (that.loadend) return;
  444. if (that.loading) return;
  445. if (isPage === true) that.$set(that, 'productList', []);
  446. that.loading = true;
  447. that.loadTitle = '';
  448. getCouponProductlist(that.where).then(res => {
  449. this.couponData = res.data.coupon;
  450. let list = res.data.list;
  451. let productList = that.$util.SplitArray(list, that.productList);
  452. let loadend = list.length < that.where.limit;
  453. that.loadend = loadend;
  454. that.loading = false;
  455. that.loadTitle = loadend ? '已全部加载' : '加载更多';
  456. that.$set(that, 'productList', productList);
  457. that.$set(that.where, 'page', that.where.page + 1);
  458. }).catch(err => {
  459. that.loading = false;
  460. that.loadTitle = '加载更多';
  461. });
  462. },
  463. },
  464. onPullDownRefresh() {
  465. },
  466. onReachBottom() {
  467. if (this.productList.length > 0) {
  468. this.get_product_list('');
  469. } else {
  470. this.get_host_product();
  471. }
  472. },
  473. onPullDownRefresh(){
  474. // 模拟上拉刷新
  475. setTimeout(()=>{
  476. const newList = this.productList.reverse();
  477. this.productList = newList;
  478. uni.stopPullDownRefresh();
  479. },500)
  480. }
  481. }
  482. </script>
  483. <style lang="scss" scoped>
  484. .productList .search {
  485. width: 100%;
  486. height: 86rpx;
  487. padding: 0 20rpx;
  488. box-sizing: border-box;
  489. position: fixed;
  490. left: 0;
  491. top: 0;
  492. z-index: 9;
  493. background-color: var(--view-theme);
  494. }
  495. .productList .search .back {
  496. display: flex;
  497. align-items: center;
  498. width: 40rpx;
  499. height: 60rpx;
  500. .iconfont {
  501. color: #fff;
  502. font-size: 36rpx;
  503. }
  504. }
  505. .font-bg-red {
  506. background-color: var(--view-theme);
  507. &.type2{
  508. background-color: #FD6523;
  509. }
  510. }
  511. .productList .search .input {
  512. /*#ifdef H5*/
  513. width: 650rpx;
  514. /*#endif*/
  515. /*#ifndef H5*/
  516. width: 100%;
  517. /*#endif*/
  518. height: 60rpx;
  519. background-color: #fff;
  520. border-radius: 50rpx;
  521. padding: 0 20rpx;
  522. box-sizing: border-box;
  523. }
  524. .productList .search .input input {
  525. flex: 1;
  526. height: 100%;
  527. font-size: 26rpx;
  528. margin-left: 10rpx;
  529. }
  530. .productList .search .input .placeholder {
  531. color: #999;
  532. }
  533. .productList .search .input .iconfont {
  534. font-size: 35rpx;
  535. color: #555;
  536. }
  537. .productList .search .icon-pailie,
  538. .productList .search .icon-tupianpailie {
  539. color: #fff;
  540. width: 62rpx;
  541. font-size: 40rpx;
  542. height: 86rpx;
  543. line-height: 86rpx;
  544. }
  545. .productList .nav-wrapper {
  546. z-index: 9;
  547. position: fixed;
  548. left: 0;
  549. top: 0;
  550. width: 100%;
  551. margin-top: 86rpx;
  552. background-color: var(--view-theme);
  553. .tab-bar {
  554. display: flex;
  555. align-items: center;
  556. .tab-item {
  557. position: relative;
  558. flex: 1;
  559. display: flex;
  560. justify-content: center;
  561. align-items: center;
  562. padding: 8rpx 0 20rpx;
  563. color: #fff;
  564. font-size: 28rpx;
  565. font-weight: bold;
  566. &::after {
  567. content: ' ';
  568. position: absolute;
  569. left: 50%;
  570. bottom: 18rpx;
  571. width: 30rpx;
  572. height: 3rpx;
  573. background: transparent;
  574. transform: translateX(-50%);
  575. }
  576. &.on {
  577. &::after {
  578. background: #fff;
  579. }
  580. }
  581. }
  582. }
  583. }
  584. .productList .nav {
  585. height: 86rpx;
  586. color: #454545;
  587. font-size: 28rpx;
  588. background-color: #fff;
  589. display: flex;
  590. justify-content: space-between;
  591. padding: 0 28rpx;
  592. }
  593. .productList .nav .item {
  594. display: flex;
  595. align-items: center;
  596. justify-content: center;
  597. flex: 1;
  598. }
  599. .productList .nav .item.t-color {
  600. font-weight: bold;
  601. }
  602. .productList .nav .item image {
  603. width: 15rpx;
  604. height: 19rpx;
  605. margin-left: 10rpx;
  606. }
  607. .productList .list {
  608. padding: 0 20rpx;
  609. }
  610. .productList .list.on {
  611. background-color: #fff;
  612. border-top: 1px solid #f6f6f6;
  613. }
  614. .item_tags{
  615. margin-top: 8rpx;
  616. }
  617. .item_tags .tags_item {
  618. display: inline-block;
  619. font-size: 20rpx;
  620. text-align: center;
  621. border-radius: 5rpx;
  622. padding: 0 4rpx;
  623. line-height: 28rpx;
  624. margin-right: 8rpx;
  625. }
  626. .item_tags .tags_item.ticket{
  627. color: var(--view-theme);
  628. border: 1rpx solid var(--view-theme);
  629. }
  630. .item_tags .tags_item.delivery{
  631. color: #FF9000;
  632. border: 1rpx solid #FF9000;
  633. }
  634. .container{
  635. margin-top: 168rpx;
  636. }
  637. .coupon_count{
  638. background: var(--view-minorColor);
  639. padding: 15rpx 30rpx 12rpx;
  640. color: var(--view-theme);
  641. font-size: 26rpx;
  642. line-height: 36rpx;
  643. .text{
  644. padding: 4rpx 0;
  645. }
  646. }
  647. .coupon_used{
  648. display: flex;
  649. align-items: center;
  650. justify-content: center;
  651. max-width: 300rpx;
  652. padding: 3rpx 16rpx;
  653. margin-left: 10rpx;
  654. background-size: 100% 100%;
  655. font-size: 24rpx;
  656. font-weight: normal;
  657. color: var(--view-priceColor);
  658. }
  659. .svip-count{
  660. position: relative;
  661. top: 4rpx;
  662. }
  663. .vip-money {
  664. color: #282828;
  665. font-size: 22rpx;
  666. margin-left: 6rpx;
  667. font-weight: bold;
  668. }
  669. .vipImg {
  670. width: 65rpx;
  671. height: 28rpx;
  672. margin-left: 4rpx;
  673. image {
  674. width: 100%;
  675. height: 100%;
  676. display: block;
  677. }
  678. }
  679. .noCommodity {
  680. background-color: #fff;
  681. padding-bottom: 30rpx;
  682. }
  683. .spin {
  684. display: block;
  685. transform: rotate(180deg);
  686. font-size: 36rpx;
  687. }
  688. .icon-xiala1 {
  689. margin-top: 6rpx;
  690. }
  691. .icon-shaixuan {
  692. font-size: 30rpx;
  693. margin-left: 10rpx;
  694. }
  695. .down-wrapper {
  696. .bg {
  697. z-index: 8;
  698. position: fixed;
  699. left: 0;
  700. top: 0;
  701. width: 100%;
  702. height: 100%;
  703. background: rgba(0, 0, 0, .5);
  704. }
  705. .down-box {
  706. z-index: 8;
  707. position: fixed;
  708. left: 0;
  709. top: 170rpx;
  710. width: 100%;
  711. padding: 0 40rpx 28rpx 74rpx;
  712. background-color: #F8F8F8;
  713. border-radius: 0 0 24rpx 24rpx;
  714. .down-item {
  715. margin-top: 28rpx;
  716. font-size: 24rpx;
  717. color: #454545;
  718. &.on {
  719. color: var(--view-theme);
  720. }
  721. .iconfont{
  722. float: right;
  723. }
  724. }
  725. }
  726. }
  727. .store-wrapper {
  728. margin-top: 240rpx;
  729. border-top: 1px solid #F6F6F6;
  730. .star-box {
  731. display: flex;
  732. align-items: center;
  733. .star {
  734. position: relative;
  735. width: 111rpx;
  736. height: 19rpx;
  737. background: url(~pages/columnGoods/images/star.png);
  738. background-size: 111rpx 19rpx;
  739. }
  740. .star-active {
  741. position: absolute;
  742. left: 0;
  743. top: 0;
  744. width: 111rpx;
  745. height: 19rpx;
  746. overflow: hidden;
  747. background: url(~pages/columnGoods/images/star_active.png);
  748. background-size: 111rpx 19rpx;
  749. }
  750. .num {
  751. color: var(--view-theme);
  752. font-size: 24rpx;
  753. margin-left: 10rpx;
  754. }
  755. }
  756. .store-item {
  757. margin-bottom: 12rpx;
  758. padding: 40rpx 20rpx;
  759. background-color: #fff;
  760. .head {
  761. display: flex;
  762. align-items: center;
  763. justify-content: space-between;
  764. .left-wrapper {
  765. display: flex;
  766. align-items: center;
  767. .logo {
  768. width: 80rpx;
  769. height: 80rpx;
  770. image {
  771. width: 80rpx;
  772. height: 80rpx;
  773. border-radius: 6rpx;
  774. }
  775. }
  776. .con-box {
  777. margin-left: 20rpx;
  778. .name {
  779. font-size: 30rpx;
  780. color: #333;
  781. font-weight: bold;
  782. }
  783. }
  784. }
  785. .link {
  786. width: 114rpx;
  787. height: 50rpx;
  788. line-height: 50rpx;
  789. background: linear-gradient(-90deg, rgba(246, 122, 56, 1) 0%, rgba(241, 27, 9, 1) 100%);
  790. border-radius: 25rpx;
  791. text-align: center;
  792. color: #fff;
  793. font-size: 24rpx;
  794. }
  795. }
  796. .pic-wrapper {
  797. display: flex;
  798. margin-top: 30rpx;
  799. .pic-item {
  800. position: relative;
  801. width: 226rpx;
  802. height: 226rpx;
  803. margin-right: 16rpx;
  804. image {
  805. width: 226rpx;
  806. height: 226rpx;
  807. border-radius: 16rpx;
  808. }
  809. .price {
  810. position: absolute;
  811. right: 0;
  812. bottom: 0;
  813. height: 36rpx;
  814. padding: 0 10rpx;
  815. line-height: 36rpx;
  816. text-align: center;
  817. background: rgba(0, 0, 0, .5);
  818. border-radius: 16rpx 2rpx 16rpx 2rpx;
  819. color: #fff;
  820. font-size: 24rpx;
  821. text {
  822. font-size: 18rpx;
  823. }
  824. }
  825. &:nth-child(3n) {
  826. margin-right: 0;
  827. }
  828. }
  829. }
  830. }
  831. }
  832. .productList .list .item.on {
  833. width: 100%;
  834. display: flex;
  835. border-bottom: 1rpx solid #f6f6f6;
  836. padding: 30rpx 0;
  837. margin: 0;
  838. position: relative;
  839. }
  840. .productList .list .item .pictrue.on {
  841. width: 260rpx;
  842. height: 260rpx;
  843. }
  844. .productList .list .item .pictrue image {
  845. width: 260rpx;
  846. height: 260rpx;
  847. border-radius: 16rpx;
  848. }
  849. .productList .list .item .text {
  850. font-size: 30rpx;
  851. color: #222;
  852. width: 460rpx;
  853. padding: 0 0 0 22rpx;
  854. justify-content: space-between;
  855. .name,.item_bot{
  856. width: 100%;
  857. }
  858. }
  859. .productList .list .item .text .money {
  860. display: flex;
  861. align-items: center;
  862. font-size: 26rpx;
  863. font-weight: bold;
  864. color: var(--view-priceColor);
  865. }
  866. .productList .list .item .text .money .num {
  867. font-size: 34rpx;
  868. }
  869. .productList .distance {
  870. display: flex;
  871. align-items: center;
  872. font-size: 24rpx;
  873. color: #999999;
  874. .icon-xiangyou {
  875. font-size: 24rpx;
  876. line-height: 24rpx;
  877. }
  878. }
  879. .productList .list .item .text .score {
  880. margin-top: 10rpx;
  881. color: #737373;
  882. font-size: 20rpx;
  883. }
  884. .productList .list .item .text .company {
  885. display: flex;
  886. align-items: center;
  887. color: #737373;
  888. font-size: 20rpx;
  889. margin-top: 10rpx;
  890. .name {
  891. display: inline-block;
  892. width: 200rpx;
  893. overflow: hidden;
  894. white-space: nowrap;
  895. text-overflow: ellipsis;
  896. }
  897. .flex {
  898. display: flex;
  899. align-items: center;
  900. margin-left: 10rpx;
  901. color: #282828;
  902. .iconfont {
  903. font-size: 16rpx;
  904. margin-top: 4rpx;
  905. }
  906. }
  907. }
  908. </style>