index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. <template>
  2. <view :data-theme="theme">
  3. <view class='productList'>
  4. <view class='search bg_color acea-row row-between-wrapper'>
  5. <!-- #ifdef H5 -->
  6. <view class="iconfont icon-xiangzuo" @click="goback()"></view>
  7. <!-- #endif -->
  8. <view :class="tabIndex !== 2?'searchIpt':''" class='input acea-row row-middle'><text class='iconfont icon-sousuo mr20'></text>
  9. <input :placeholder="tabIndex===1?'搜索商品名称':'搜索店铺名称'" placeholder-class='placeholder' confirm-type='search' name="search"
  10. v-model="keyword" @confirm="searchSubmit" maxlength="20"></input>
  11. </view>
  12. <view v-if="tabIndex === 2" class='iconfont icon-shaixuan' @click='open(2)'></view>
  13. </view>
  14. <view class="nav-wrapper mr-20px" v-if="merId===0 && cid === 0">
  15. <view class="tab-bar" :class="{'merTab':tabIndex===2}">
  16. <view class="tab-item" :class="{on:tabIndex===1}" @click="changetab(1)">商品</view>
  17. <view class="tab-item" :class="{on:tabIndex===2}" @click="changetab(2)">店铺</view>
  18. </view>
  19. </view>
  20. <view v-if="tabIndex===1" class='nav acea-row row-middle' :class="(merId > 0 || cid > 0) ? 'mer-nav' : ''">
  21. <view class='item' :class='title ? "font_color":""' @click='set_where(1,tabIndex)'>
  22. {{title ? title:'默认'}}
  23. </view>
  24. <view class='item' @click='set_where(2,tabIndex)'>
  25. 价格
  26. <image v-if="price==1" :src='upPng'></image>
  27. <image v-else-if="price==2" :src='downPng'></image>
  28. <image v-else :src="urlDomain+'crmebimage/presets/horn.png'"></image>
  29. </view>
  30. <view class='item-c item' @click='set_where(3,tabIndex)'>
  31. 销量
  32. <image v-if="stock==1" :src='upPng'></image>
  33. <image v-else-if="stock==2" :src='downPng'></image>
  34. <image v-else :src="urlDomain+'crmebimage/presets/horn.png'"></image>
  35. </view>
  36. <!-- down -->
  37. <view class="item-shu"></view>
  38. <view class='item-icon iconfont' :class="is_switch?'icon-pailie':'icon-tupianpailie'" @click='Changswitch()'>
  39. </view>
  40. </view>
  41. <view v-if="tabIndex===1" :class="is_switch==true?'proList':'listBox'">
  42. <view :class="[(merId > 0 || cid > 0) ? 'mer-listBox' : '']" v-if="productList.length>0">
  43. <view v-if="!is_switch" class='list acea-row row-between-wrapper' :class="[is_switch==true ? '' : 'on', (merId > 0 || cid > 0) ? 'mer-list' : ''] ">
  44. <view class='item' :class='is_switch==true?"":"on"' hover-class='none' v-for="(item,index) in productList" :key="index"
  45. @click="godDetail(item)">
  46. <view class='pictrue' :class='is_switch==true?"":"on"'>
  47. <view v-show="item.stock===0" class="sellOut">已售罄</view>
  48. <easy-loadimage :image-src="item.image" :class='is_switch==true?"":"on"'>
  49. </easy-loadimage>
  50. <span class="pictrue_log_class" :class="is_switch === true ? 'pictrue_log_big' : 'pictrue_log'" v-if="item.activityH5 && item.activityH5.type === '1'">秒杀</span>
  51. <span class="pictrue_log_class" :class="is_switch === true ? 'pictrue_log_big' : 'pictrue_log'" v-if="item.activityH5 && item.activityH5.type === '2'">砍价</span>
  52. <span class="pictrue_log_class" :class="is_switch === true ? 'pictrue_log_big' : 'pictrue_log'" v-if="item.activityH5 && item.activityH5.type === '3'">拼团</span>
  53. </view>
  54. <view class='text' :class='is_switch==true?"":"on"'>
  55. <view class='name box-line2 mb-10'>
  56. <span v-if="item.productTags && item.productTags.locationLeftTitle.length" class="font-bg-red mr10 merType bg-color">{{item.productTags.locationLeftTitle[0].tagName}}</span>
  57. {{item.name}}
  58. </view>
  59. <!-- 价格 -->
  60. <svip-price :svipIconStyle="svipIconStyle" :productPrice="item" :svipPriceStyle="svipPriceStyle"></svip-price>
  61. <view v-if="item.productTags && item.productTags.locationUnderTitle.length">
  62. <text v-for="items in item.productTags.locationUnderTitle.length>3?item.productTags.locationUnderTitle.slice(0,3):item.productTags.locationUnderTitle"
  63. class="mr10 tagSolid">{{items.tagName}}</text>
  64. </view>
  65. <view class='vip acea-row row-between-wrapper mt-10 mb-10' :class='is_switch==true?"":"on"'>
  66. <view>已售{{item.sales}}{{item.unitName}}</view>
  67. </view>
  68. <view v-if="item.merName" class="company" @click.stop="goStore(item.merId)">
  69. <text class='name line1'>{{item.merName}}</text>
  70. <view class="flex">
  71. 进店
  72. <text class="iconfont icon-xiangyou"></text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view v-else class="goods">
  79. <WaterfallsFlow :wfList='productList' :type="1">
  80. <template slot-scope="{item}">
  81. <WaterfallsFlowItem :item="item" :type="1" :isStore="1" />
  82. </template>
  83. </WaterfallsFlow>
  84. </view>
  85. </view>
  86. <view class='loadingicon acea-row row-center-wrapper'>
  87. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{productList.length>0?loadTitle:''}}
  88. </view>
  89. </view>
  90. <view class="merList" v-if="tabIndex == 2">
  91. <view v-if="merchantList.length===0" style="background-color: #F5F5F5;" class='nav acea-row row-middle' :class="(merId > 0 || cid > 0) ? 'mer-nav' : ''">
  92. </view>
  93. <merchant-list :merchantList="merchantList"></merchant-list>
  94. <view class='loadingicon acea-row row-center-wrapper'>
  95. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class='noCommodity' :class="{'mer-mt194': tabIndex ==2, 'mer-mt100': cid !== 0}" :style="{'top':!is_switch?'-110rpx':''}"
  100. v-if="(productList.length==0 && isShow && tabIndex===1 && !loading ) || (merchantList.length==0 && isShow && tabIndex===2 && !loading)">
  101. <view class='pictrue'>
  102. <image :src="urlDomain+'crmebimage/presets/noSearch.png'"></image>
  103. </view>
  104. <text class="text-ccc">{{tabIndex===1?'暂无商品~':'暂无店铺~'}}</text>
  105. <recommend v-if="!merId" ref="recommendIndex" class="mt-40"></recommend>
  106. </view>
  107. <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
  108. <merSeach :whereMer="whereMer" @close="closeDrawer" @confirm="confirm"></merSeach>
  109. </tui-drawer>
  110. </view>
  111. </template>
  112. <script>
  113. // +----------------------------------------------------------------------
  114. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  115. // +----------------------------------------------------------------------
  116. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  117. // +----------------------------------------------------------------------
  118. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  119. // +----------------------------------------------------------------------
  120. // | Author: CRMEB Team <admin@crmeb.com>
  121. // +----------------------------------------------------------------------
  122. import {
  123. productList
  124. } from '@/api/product.js';
  125. import {
  126. getMerSearchApi,
  127. getMerProListApi
  128. } from '@/api/merchant.js';
  129. import {
  130. mapGetters
  131. } from "vuex";
  132. import {
  133. goProductDetail
  134. } from '@/libs/order.js'
  135. import merSeach from '../components/merSeach/index.vue'
  136. import merchantList from '@/components/merchantList/index.vue'
  137. import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlow.vue'
  138. import tuiDrawer from '../components/tui-drawer/index.vue'
  139. import recommend from "@/components/base/recommend.vue";
  140. import easyLoadimage from '@/components/base/easy-loadimage.vue';
  141. import WaterfallsFlowItem from '@/components/WaterfallsFlowItem/WaterfallsFlowItem.vue'
  142. import svipPrice from '@/components/svipPrice.vue';
  143. let app = getApp();
  144. export default {
  145. computed: mapGetters(['uid']),
  146. components: {
  147. merchantList,
  148. merSeach,
  149. WaterfallsFlow,
  150. tuiDrawer,
  151. recommend,
  152. easyLoadimage,
  153. WaterfallsFlowItem,
  154. svipPrice
  155. },
  156. mounted() {
  157. this.$store.dispatch('MerCategoryList');
  158. this.$store.dispatch('MerTypeList');
  159. },
  160. data() {
  161. return {
  162. //普通价格
  163. svipPriceStyle: {
  164. svipBox: {
  165. height: '26rpx',
  166. borderRadius: '60rpx 56rpx 56rpx 20rpx',
  167. },
  168. icon: {
  169. height: '26rpx',
  170. fontSize: '18rpx',
  171. borderRadius: '12rpx 0 12rpx 2rpx'
  172. },
  173. price: {
  174. fontSize: '38rpx'
  175. },
  176. svipPrice: {
  177. fontSize: '22rpx'
  178. }
  179. },
  180. //svip价格
  181. svipIconStyle: {
  182. svipBox: {
  183. height: '26rpx',
  184. borderRadius: '24rpx 40rpx 40rpx 0.4rpx',
  185. },
  186. price: {
  187. fontSize: '38rpx'
  188. },
  189. svipPrice: {
  190. fontSize: '18rpx'
  191. }
  192. },
  193. urlDomain: this.$Cache.get("imgHost"),
  194. keyword: '',
  195. drawers: 0,
  196. tabIndex: 1,
  197. productList: [],
  198. is_switch: true,
  199. where: {
  200. latitude: uni.getStorageSync('user_latitude'),
  201. longitude: uni.getStorageSync('user_longitude'),
  202. keyword: '',
  203. priceOrder: '',
  204. salesOrder: '',
  205. //news: 0,
  206. page: 1,
  207. limit: 20,
  208. cid: '', //商城使用
  209. merId: '',
  210. cids: '' //商户使用
  211. },
  212. cid: 0, //分类id
  213. price: 0,
  214. stock: 0,
  215. nows: false,
  216. loadend: false,
  217. loading: false,
  218. loadTitle: '加载更多',
  219. title: '',
  220. theme: app.globalData.theme,
  221. upPng: '',
  222. downPng: '',
  223. whereMer: {
  224. latitude: uni.getStorageSync('user_latitude'),
  225. longitude: uni.getStorageSync('user_longitude'),
  226. categoryIds: '',
  227. isSelf: '',
  228. keywords: '',
  229. page: 1,
  230. limit: 20,
  231. typeIds: ''
  232. },
  233. rightDrawer: false,
  234. merchantList: [],
  235. merId: 0,
  236. cateId: null,
  237. goodScroll: true,
  238. isShow: false
  239. };
  240. },
  241. // 滚动监听
  242. onPageScroll(e) {
  243. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  244. uni.$emit('scroll');
  245. },
  246. onLoad: function(options) {
  247. this.downPng = `${this.urlDomain}crmebimage/presets/down_red.png`;
  248. this.upPng = `${this.urlDomain}crmebimage/presets/up_red.png`;
  249. this.merId = options.merId ? Number(options.merId) : 0;
  250. this.cateId = options.cateId ? Number(options.cateId) : '';
  251. this.fairCateId = Number(options.fairCateId) || ''
  252. if (this.cateId) {
  253. uni.setNavigationBarTitle({
  254. title: '精选商品'
  255. });
  256. }
  257. if (this.fairCateId) {
  258. this.merId = 9999999999
  259. uni.setNavigationBarTitle({
  260. title: '二手交易'
  261. });
  262. }
  263. this.$set(this, 'cid', Number(options.cid) || 0);
  264. this.title = options.title || '';
  265. this.$set(this, 'keyword', options.searchValue || '');
  266. if (this.tabIndex === 1 && !fairCateId) {
  267. this.get_product_list();
  268. }
  269. switch (this.theme) {
  270. case 'theme2':
  271. this.upPng = `${this.urlDomain}crmebimage/presets/up_orange.png`;
  272. this.downPng = `${this.urlDomain}crmebimage/presets/down_orange.png`;
  273. break;
  274. case 'theme3':
  275. this.upPng = `${this.urlDomain}crmebimage/presets/up_green.png`;
  276. this.downPng = `${this.urlDomain}crmebimage/presets/down_green.png`;
  277. break;
  278. case 'theme4':
  279. this.upPng = `${this.urlDomain}crmebimage/presets/up_blue.png`;
  280. this.downPng = `${this.urlDomain}crmebimage/presets/down_blue.png`;
  281. break;
  282. case 'theme5':
  283. this.upPng = `${this.urlDomain}crmebimage/presets/up_pink.png`;
  284. this.downPng = `${this.urlDomain}crmebimage/presets/down_pink.png`;
  285. break;
  286. default:
  287. this.upPng = `${this.urlDomain}crmebimage/presets/up_red.png`;
  288. this.downPng = `${this.urlDomain}crmebimage/presets/down_red.png`;
  289. break;
  290. }
  291. },
  292. methods: {
  293. goStore(id) {
  294. uni.navigateTo({
  295. url: `/pages/merchant/home/index?merId=${id}`
  296. })
  297. },
  298. confirm(data) {
  299. this.whereMer.typeIds = data.typeId;
  300. this.whereMer.categoryIds = data.categoryId;
  301. this.whereMer.keywords = this.where.keyword;
  302. this.loadend = false;
  303. this.$set(this.whereMer, 'page', 1)
  304. this.merchantList = [];
  305. this.rightDrawer = false
  306. this.getMerStreet();
  307. },
  308. changetab(n) {
  309. this.tabIndex = n;
  310. this.nows = 1;
  311. this.stock = 0;
  312. this.loadend = false;
  313. this.loading = false;
  314. if (n === 2) {
  315. this.merchantList = [];
  316. this.$set(this.whereMer, 'page', 1);
  317. this.getMerStreet();
  318. this.title = '';
  319. } else {
  320. this.whereMer.typeIds = '';
  321. this.whereMer.categoryIds = '';
  322. this.productList = [];
  323. this.$set(this.where, 'page', 1);
  324. this.get_product_list();
  325. }
  326. },
  327. open(n) {
  328. if (this.tabIndex === 2) {
  329. this.rightDrawer = true;
  330. this.drawers = n;
  331. }
  332. },
  333. closeDrawer(e) {
  334. this.rightDrawer = false
  335. if (!e) {
  336. this.rightDrawer = false
  337. }
  338. },
  339. goback() {
  340. // #ifdef H5
  341. return history.back();
  342. // #endif
  343. // #ifndef H5
  344. return uni.navigateBack({
  345. delta: 1,
  346. })
  347. // #endif
  348. },
  349. getMerStreet: function(isPage) {
  350. this.skeletonShow = true
  351. let that = this;
  352. that.setWhere();
  353. if (that.loadend) return;
  354. if (that.loading) return;
  355. that.loading = true;
  356. if (isPage === true) that.$set(that, 'merchantList', []);
  357. that.loadTitle = '';
  358. that.whereMer.keywords = encodeURIComponent(that.keyword);
  359. that.cateId ? that.whereMer.productType = that.cateId : '';
  360. getMerSearchApi(that.whereMer).then(res => {
  361. let list = res.data.list;
  362. let merchantList = that.$util.SplitArray(list, that.merchantList);
  363. let loadend = list.length < that.whereMer.limit;
  364. that.loadend = loadend;
  365. that.loadTitle = loadend ? '没有了' : '加载更多';
  366. that.$set(that, 'merchantList', merchantList);
  367. that.$set(that.whereMer, 'page', that.whereMer.page + 1);
  368. that.loading = false;
  369. this.skeletonShow = false;
  370. this.isShow = true
  371. }).catch(err => {
  372. that.loading = false;
  373. that.goodScroll = false;
  374. that.loadTitle = '加载更多';
  375. });
  376. },
  377. // 去详情页
  378. godDetail(item) {
  379. goProductDetail(item.id, 0, '');
  380. },
  381. Changswitch: function() {
  382. let that = this;
  383. that.is_switch = !that.is_switch
  384. },
  385. searchSubmit: function(e) {
  386. let that = this;
  387. that.loadend = false;
  388. that.$set(that, 'keyword', e.detail.value || '');
  389. if (that.tabIndex === 1) {
  390. that.$set(that.where, 'page', 1)
  391. this.get_product_list(true);
  392. } else {
  393. that.$set(that, 'merchantList', []);
  394. this.$set(this.whereMer, 'page', 1)
  395. this.getMerStreet();
  396. }
  397. },
  398. //点击事件处理
  399. set_where: function(e, n) {
  400. switch (e) {
  401. case 1:
  402. this.price = 0;
  403. this.stock = 0;
  404. break;
  405. case 2:
  406. if (this.price == 0) this.price = 1;
  407. else if (this.price == 1) this.price = 2;
  408. else if (this.price == 2) this.price = 0;
  409. this.stock = 0;
  410. break;
  411. case 3:
  412. if (this.stock == 0) this.stock = 1;
  413. else if (this.stock == 1) this.stock = 2;
  414. else if (this.stock == 2) this.stock = 0;
  415. this.price = 0
  416. break;
  417. case 4:
  418. this.price = 0;
  419. this.stock = 0;
  420. break;
  421. }
  422. if (n === 1) {
  423. this.loadend = false;
  424. this.$set(this.where, 'page', 1);
  425. this.get_product_list(true);
  426. } else {
  427. this.nows = 1;
  428. }
  429. },
  430. //设置where条件
  431. setWhere: function() {
  432. if (this.price == 0) this.where.priceOrder = '';
  433. else if (this.price == 1) this.where.priceOrder = 'asc';
  434. else if (this.price == 2) this.where.priceOrder = 'desc';
  435. if (this.stock == 0) this.where.salesOrder = '';
  436. else if (this.stock == 1) this.where.salesOrder = 'asc';
  437. else if (this.stock == 2) this.where.salesOrder = 'desc';
  438. //this.where.news = this.nows ? 1 : 0;
  439. },
  440. //查找产品
  441. get_product_list: function(isPage) {
  442. let that = this;
  443. that.setWhere();
  444. if (that.loadend) return;
  445. if (that.loading) return;
  446. if (isPage === true) that.$set(that, 'productList', []);
  447. that.loading = true;
  448. that.loadTitle = '';
  449. if (this.merId > 0) that.where.merId = that.merId
  450. that.where.keyword = encodeURIComponent(that.keyword);
  451. that.cateId ? that.where.productType = that.cateId : '';
  452. if (that.cid === 0) {
  453. that.where.cid = '';
  454. that.where.cids = '';
  455. } else {
  456. if (this.merId > 0) {
  457. that.where.cids = that.cid
  458. that.where.cid = '';
  459. } else {
  460. that.where.cid = that.cid;
  461. that.where.cids = ''
  462. }
  463. }
  464. this.merId === 0 ? productList(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. this.isShow = true
  474. }).catch(err => {
  475. that.loading = false;
  476. that.loadTitle = '加载更多'
  477. }) : getMerProListApi(that.where).then(res => {
  478. let list = res.data.list;
  479. let productList = that.$util.SplitArray(list, that.productList);
  480. let loadend = list.length < that.where.limit;
  481. that.loadend = loadend;
  482. that.loading = false;
  483. that.loadTitle = loadend ? '已全部加载' : '加载更多';
  484. that.$set(that, 'productList', productList);
  485. that.$set(that.where, 'page', that.where.page + 1);
  486. this.isShow = true
  487. }).catch(err => {
  488. that.loading = false;
  489. that.loadTitle = '加载更多'
  490. })
  491. },
  492. },
  493. onReachBottom() {
  494. console.log(1111111111111111)
  495. if (this.tabIndex === 2) {
  496. this.getMerStreet();
  497. }
  498. if (this.productList.length > 0 && !fairCateId) {
  499. this.get_product_list();
  500. }
  501. if ((this.productList.length == 0 && this.isShow && this.tabIndex === 1 && !this.loading) || (this.merchantList
  502. .length == 0 && this.isShow && this.tabIndex === 2 && !this.loading)) {
  503. this.$refs.recommendIndex.get_host_product();
  504. }
  505. }
  506. }
  507. </script>
  508. <style>
  509. body {
  510. height: auto !important;
  511. }
  512. </style>
  513. <style scoped lang="scss">
  514. .mt80 {
  515. margin-top: 80rpx;
  516. }
  517. .searchIpt {
  518. /* #ifdef H5 */
  519. width: 91% !important;
  520. /* #endif */
  521. /* #ifndef H5 */
  522. width: 100% !important;
  523. /* #endif */
  524. }
  525. .store-item .merTab {
  526. height: auto !important;
  527. .tab-item {
  528. margin-top: 8rpx !important;
  529. }
  530. }
  531. .text-ccc {
  532. text-align: center;
  533. display: block;
  534. }
  535. .company {
  536. display: flex;
  537. align-items: center;
  538. color: #737373 !important;
  539. font-size: 26rpx;
  540. .name {
  541. display: inline-block;
  542. // width: 120rpx;
  543. height: auto !important;
  544. overflow: hidden;
  545. white-space: nowrap;
  546. text-overflow: ellipsis;
  547. }
  548. .flex {
  549. display: flex;
  550. align-items: center;
  551. margin-left: 10rpx;
  552. color: #282828 !important;
  553. width: 100rpx;
  554. .iconfont {
  555. font-size: 16rpx;
  556. margin-top: 4rpx;
  557. }
  558. }
  559. }
  560. .icon-xiangzuo {
  561. color: #fff;
  562. }
  563. .goods {
  564. display: flex;
  565. flex-wrap: wrap;
  566. justify-content: space-between;
  567. padding-left: 24rpx;
  568. background-color: #F5F5F5;
  569. width: 100%;
  570. }
  571. .proList {
  572. margin-top: 256rpx;
  573. }
  574. .merList {
  575. position: relative;
  576. top: 154rpx;
  577. z-index: 66;
  578. }
  579. .merBox {
  580. /deep/.tui-drawer-container {
  581. width: 635rpx;
  582. }
  583. }
  584. .mer {
  585. &-nav {
  586. top: 80rpx !important;
  587. border-radius: inherit !important;
  588. }
  589. &-list {
  590. margin-top: 248rpx !important;
  591. }
  592. &-listBox {
  593. position: relative;
  594. top: -68rpx;
  595. }
  596. &-mt194 {
  597. margin-top: 260rpx !important;
  598. }
  599. &-mt100 {
  600. top: -200rpx !important;
  601. }
  602. }
  603. .no-shop {
  604. margin-top: 6rpx;
  605. background-color: #fff;
  606. padding-bottom: calc(100% - 109rpx);
  607. .pictrue {
  608. display: flex;
  609. flex-direction: column;
  610. align-items: center;
  611. //color: $uni-nothing-text;
  612. image {
  613. width: 414rpx;
  614. height: 380rpx;
  615. }
  616. }
  617. }
  618. .with50 {
  619. width: 50% !important;
  620. }
  621. .nav-wrapper {
  622. z-index: 9;
  623. position: fixed;
  624. left: 0;
  625. top: 86rpx;
  626. width: 100%;
  627. @include main_bg_color(theme);
  628. .tab-bar {
  629. display: flex;
  630. align-items: center;
  631. height: 131rpx;
  632. .tab-item {
  633. position: relative;
  634. flex: 1;
  635. display: flex;
  636. justify-content: center;
  637. align-items: center;
  638. padding-bottom: 40rpx;
  639. color: #fff;
  640. font-size: 28rpx;
  641. font-weight: bold;
  642. margin-top: -36rpx;
  643. &::after {
  644. content: ' ';
  645. position: absolute;
  646. left: 50%;
  647. bottom: 34rpx;
  648. width: 60rpx;
  649. height: 3rpx;
  650. background: transparent;
  651. transform: translateX(-50%);
  652. }
  653. &.on {
  654. &::after {
  655. background: #fff;
  656. }
  657. }
  658. }
  659. }
  660. }
  661. .bg_color {
  662. @include main_bg_color(theme);
  663. }
  664. .font_color {
  665. @include main_color(theme);
  666. }
  667. .x-money {
  668. font-size: 38rpx;
  669. font-weight: 900;
  670. @include price_color(theme);
  671. }
  672. .iconfont {
  673. //color: #fff;
  674. }
  675. .listBox {
  676. margin-top: 240rpx !important;
  677. background-color: #FFFFFF;
  678. }
  679. .fixed-top {
  680. position: fixed;
  681. top: 0;
  682. left: 0;
  683. z-index: 9;
  684. }
  685. .productList .search {
  686. width: 100%;
  687. height: 86rpx;
  688. padding: 0 30rpx;
  689. box-sizing: border-box;
  690. position: fixed;
  691. top: 0 !important;
  692. left: 0;
  693. z-index: 666;
  694. color: #fff;
  695. }
  696. .productList .search .input {
  697. width: 570rpx;
  698. height: 60rpx;
  699. background-color: #fff;
  700. border-radius: 50rpx;
  701. padding: 0 20rpx;
  702. box-sizing: border-box;
  703. color: #333;
  704. }
  705. .productList .search .input input {
  706. width: 88%;
  707. height: 100%;
  708. font-size: 26rpx;
  709. }
  710. .productList .search .input .placeholder {
  711. color: #CCCCCC;
  712. }
  713. .productList .search .input .iconfont {
  714. font-size: 26rpx;
  715. color: #999999;
  716. }
  717. .productList .search .icon-yangshi1,
  718. .icon-shaixuan {
  719. color: #fff;
  720. width: 62rpx;
  721. font-size: 40rpx;
  722. height: 86rpx;
  723. line-height: 86rpx;
  724. text-align: right;
  725. }
  726. .productList .nav {
  727. height: 86rpx;
  728. color: #454545;
  729. position: fixed;
  730. left: 0;
  731. width: 100%;
  732. font-size: 28rpx;
  733. background-color: #fff;
  734. top: 154rpx;
  735. z-index: 9;
  736. border-radius: 16rpx 16rpx 0rpx 0rpx;
  737. padding-left: 20rpx;
  738. }
  739. .productList .nav .item {
  740. width: 30%;
  741. text-align: center;
  742. .iconfont {
  743. //color: #fff;
  744. }
  745. }
  746. .item-c {
  747. width: 27% !important;
  748. }
  749. .item-icon {
  750. width: 8%;
  751. margin-left: 30rpx;
  752. }
  753. .item-shu {
  754. width: 1px;
  755. height: 12px;
  756. background: #666666;
  757. opacity: 0.2;
  758. }
  759. .productList .nav .item.font-color {
  760. font-weight: bold;
  761. }
  762. .productList .nav .item image {
  763. width: 15rpx;
  764. height: 19rpx;
  765. margin-left: 10rpx;
  766. }
  767. .productList .list.on {
  768. padding-top: 30rpx !important;
  769. background-color: #fff;
  770. border-top: 1px solid #F5F5F5;
  771. }
  772. .productList .list .item {
  773. width: 335rpx;
  774. background-color: #fff;
  775. border-radius: 14rpx;
  776. margin-bottom: 20rpx;
  777. }
  778. .productList .list .item.on {
  779. width: 100%;
  780. display: flex;
  781. padding: 0 24rpx 60rpx 24rpx;
  782. margin: 0;
  783. border-radius: 14rpx;
  784. }
  785. .productList .list .item .pictrue {
  786. position: relative;
  787. // width: 100%;
  788. }
  789. .productList .list .item .pictrue /deep/.easy-loadimage {
  790. width: 240rpx;
  791. height: 240rpx;
  792. border-radius: 14rpx;
  793. overflow: hidden;
  794. }
  795. .productList .list .item .pictrue image {
  796. width: 100%;
  797. height: 100%;
  798. border-radius: 20rpx 20rpx 0 0;
  799. overflow: hidden;
  800. }
  801. .productList .list .item .pictrue image.on {
  802. border-radius: 6rpx;
  803. }
  804. .productList .list .item .text {
  805. padding: 18rpx 20rpx;
  806. font-size: 30rpx;
  807. color: #222;
  808. }
  809. .productList .list .item .text.on {
  810. width: 456rpx;
  811. padding: 0 0 0 20rpx;
  812. position: relative;
  813. &::after {
  814. content: '';
  815. display: block;
  816. width: 94%;
  817. border-bottom: 1rpx solid #f6f6f6;
  818. position: absolute;
  819. right: 2rpx;
  820. bottom: -24rpx;
  821. }
  822. .name {
  823. height: 84rpx;
  824. line-height: 42rpx;
  825. }
  826. }
  827. .productList .list .item .text .money {
  828. font-size: 26rpx;
  829. font-weight: bold;
  830. margin-top: 8rpx;
  831. }
  832. .productList .list .item .text .money.on {
  833. margin-top: 50rpx;
  834. }
  835. .productList .list .item .text .money .num {
  836. font-size: 34rpx;
  837. }
  838. .productList .list .item .text .vip {
  839. font-size: 20rpx;
  840. color: #aaa;
  841. }
  842. .productList .list .item .text .vip .vip-money {
  843. font-size: 24rpx;
  844. color: #282828;
  845. font-weight: bold;
  846. }
  847. .productList .list .item .text .vip .vip-money image {
  848. width: 46rpx;
  849. height: 21rpx;
  850. margin-left: 4rpx;
  851. }
  852. .row-between-wrapper .input {
  853. height: 60rpx;
  854. margin: 10rpx 0 16rpx;
  855. }
  856. .box-line2 {
  857. overflow: hidden;
  858. }
  859. </style>