index.vue 23 KB

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