index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  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. if (this.cateId) {
  252. uni.setNavigationBarTitle({
  253. title: '精选商品'
  254. });
  255. }
  256. this.$set(this, 'cid', Number(options.cid) || 0);
  257. this.title = options.title || '';
  258. this.$set(this, 'keyword', options.searchValue || '');
  259. if (this.tabIndex === 1) this.get_product_list();
  260. switch (this.theme) {
  261. case 'theme2':
  262. this.upPng = `${this.urlDomain}crmebimage/presets/up_orange.png`;
  263. this.downPng = `${this.urlDomain}crmebimage/presets/down_orange.png`;
  264. break;
  265. case 'theme3':
  266. this.upPng = `${this.urlDomain}crmebimage/presets/up_green.png`;
  267. this.downPng = `${this.urlDomain}crmebimage/presets/down_green.png`;
  268. break;
  269. case 'theme4':
  270. this.upPng = `${this.urlDomain}crmebimage/presets/up_blue.png`;
  271. this.downPng = `${this.urlDomain}crmebimage/presets/down_blue.png`;
  272. break;
  273. case 'theme5':
  274. this.upPng = `${this.urlDomain}crmebimage/presets/up_pink.png`;
  275. this.downPng = `${this.urlDomain}crmebimage/presets/down_pink.png`;
  276. break;
  277. default:
  278. this.upPng = `${this.urlDomain}crmebimage/presets/up_red.png`;
  279. this.downPng = `${this.urlDomain}crmebimage/presets/down_red.png`;
  280. break;
  281. }
  282. },
  283. methods: {
  284. goStore(id) {
  285. uni.navigateTo({
  286. url: `/pages/merchant/home/index?merId=${id}`
  287. })
  288. },
  289. confirm(data) {
  290. this.whereMer.typeIds = data.typeId;
  291. this.whereMer.categoryIds = data.categoryId;
  292. this.whereMer.keywords = this.where.keyword;
  293. this.loadend = false;
  294. this.$set(this.whereMer, 'page', 1)
  295. this.merchantList = [];
  296. this.rightDrawer = false
  297. this.getMerStreet();
  298. },
  299. changetab(n) {
  300. this.tabIndex = n;
  301. this.nows = 1;
  302. this.stock = 0;
  303. this.loadend = false;
  304. this.loading = false;
  305. if (n === 2) {
  306. this.merchantList = [];
  307. this.$set(this.whereMer, 'page', 1);
  308. this.getMerStreet();
  309. this.title = '';
  310. } else {
  311. this.whereMer.typeIds = '';
  312. this.whereMer.categoryIds = '';
  313. this.productList = [];
  314. this.$set(this.where, 'page', 1);
  315. this.get_product_list();
  316. }
  317. },
  318. open(n) {
  319. if (this.tabIndex === 2) {
  320. this.rightDrawer = true;
  321. this.drawers = n;
  322. }
  323. },
  324. closeDrawer(e) {
  325. this.rightDrawer = false
  326. if (!e) {
  327. this.rightDrawer = false
  328. }
  329. },
  330. goback() {
  331. // #ifdef H5
  332. return history.back();
  333. // #endif
  334. // #ifndef H5
  335. return uni.navigateBack({
  336. delta: 1,
  337. })
  338. // #endif
  339. },
  340. getMerStreet: function(isPage) {
  341. this.skeletonShow = true
  342. let that = this;
  343. that.setWhere();
  344. if (that.loadend) return;
  345. if (that.loading) return;
  346. that.loading = true;
  347. if (isPage === true) that.$set(that, 'merchantList', []);
  348. that.loadTitle = '';
  349. that.whereMer.keywords = encodeURIComponent(that.keyword);
  350. that.cateId ? that.whereMer.productType = that.cateId : '';
  351. getMerSearchApi(that.whereMer).then(res => {
  352. let list = res.data.list;
  353. let merchantList = that.$util.SplitArray(list, that.merchantList);
  354. let loadend = list.length < that.whereMer.limit;
  355. that.loadend = loadend;
  356. that.loadTitle = loadend ? '没有了' : '加载更多';
  357. that.$set(that, 'merchantList', merchantList);
  358. that.$set(that.whereMer, 'page', that.whereMer.page + 1);
  359. that.loading = false;
  360. this.skeletonShow = false;
  361. this.isShow = true
  362. }).catch(err => {
  363. that.loading = false;
  364. that.goodScroll = false;
  365. that.loadTitle = '加载更多';
  366. });
  367. },
  368. // 去详情页
  369. godDetail(item) {
  370. goProductDetail(item.id, 0, '');
  371. },
  372. Changswitch: function() {
  373. let that = this;
  374. that.is_switch = !that.is_switch
  375. },
  376. searchSubmit: function(e) {
  377. let that = this;
  378. that.loadend = false;
  379. that.$set(that, 'keyword', e.detail.value || '');
  380. if (that.tabIndex === 1) {
  381. that.$set(that.where, 'page', 1)
  382. this.get_product_list(true);
  383. } else {
  384. that.$set(that, 'merchantList', []);
  385. this.$set(this.whereMer, 'page', 1)
  386. this.getMerStreet();
  387. }
  388. },
  389. //点击事件处理
  390. set_where: function(e, n) {
  391. switch (e) {
  392. case 1:
  393. this.price = 0;
  394. this.stock = 0;
  395. break;
  396. case 2:
  397. if (this.price == 0) this.price = 1;
  398. else if (this.price == 1) this.price = 2;
  399. else if (this.price == 2) this.price = 0;
  400. this.stock = 0;
  401. break;
  402. case 3:
  403. if (this.stock == 0) this.stock = 1;
  404. else if (this.stock == 1) this.stock = 2;
  405. else if (this.stock == 2) this.stock = 0;
  406. this.price = 0
  407. break;
  408. case 4:
  409. this.price = 0;
  410. this.stock = 0;
  411. break;
  412. }
  413. if (n === 1) {
  414. this.loadend = false;
  415. this.$set(this.where, 'page', 1);
  416. this.get_product_list(true);
  417. } else {
  418. this.nows = 1;
  419. }
  420. },
  421. //设置where条件
  422. setWhere: function() {
  423. if (this.price == 0) this.where.priceOrder = '';
  424. else if (this.price == 1) this.where.priceOrder = 'asc';
  425. else if (this.price == 2) this.where.priceOrder = 'desc';
  426. if (this.stock == 0) this.where.salesOrder = '';
  427. else if (this.stock == 1) this.where.salesOrder = 'asc';
  428. else if (this.stock == 2) this.where.salesOrder = 'desc';
  429. //this.where.news = this.nows ? 1 : 0;
  430. },
  431. //查找产品
  432. get_product_list: function(isPage) {
  433. let that = this;
  434. that.setWhere();
  435. if (that.loadend) return;
  436. if (that.loading) return;
  437. if (isPage === true) that.$set(that, 'productList', []);
  438. that.loading = true;
  439. that.loadTitle = '';
  440. if (this.merId > 0) that.where.merId = that.merId
  441. that.where.keyword = encodeURIComponent(that.keyword);
  442. that.cateId ? that.where.productType = that.cateId : '';
  443. if (that.cid === 0) {
  444. that.where.cid = '';
  445. that.where.cids = '';
  446. } else {
  447. if (this.merId > 0) {
  448. that.where.cids = that.cid
  449. that.where.cid = '';
  450. } else {
  451. that.where.cid = that.cid;
  452. that.where.cids = ''
  453. }
  454. }
  455. this.merId === 0 ? productList(that.where).then(res => {
  456. let list = res.data.list;
  457. let productList = that.$util.SplitArray(list, that.productList);
  458. let loadend = list.length < that.where.limit;
  459. that.loadend = loadend;
  460. that.loading = false;
  461. that.loadTitle = loadend ? '已全部加载' : '加载更多';
  462. that.$set(that, 'productList', productList);
  463. that.$set(that.where, 'page', that.where.page + 1);
  464. this.isShow = true
  465. }).catch(err => {
  466. that.loading = false;
  467. that.loadTitle = '加载更多'
  468. }) : getMerProListApi(that.where).then(res => {
  469. let list = res.data.list;
  470. let productList = that.$util.SplitArray(list, that.productList);
  471. let loadend = list.length < that.where.limit;
  472. that.loadend = loadend;
  473. that.loading = false;
  474. that.loadTitle = loadend ? '已全部加载' : '加载更多';
  475. that.$set(that, 'productList', productList);
  476. that.$set(that.where, 'page', that.where.page + 1);
  477. this.isShow = true
  478. }).catch(err => {
  479. that.loading = false;
  480. that.loadTitle = '加载更多'
  481. })
  482. },
  483. },
  484. onReachBottom() {
  485. if (this.tabIndex === 2) {
  486. this.getMerStreet();
  487. }
  488. if (this.productList.length > 0) {
  489. this.get_product_list();
  490. }
  491. if ((this.productList.length == 0 && this.isShow && this.tabIndex === 1 && !this.loading) || (this.merchantList
  492. .length == 0 && this.isShow && this.tabIndex === 2 && !this.loading)) {
  493. this.$refs.recommendIndex.get_host_product();
  494. }
  495. }
  496. }
  497. </script>
  498. <style>
  499. body {
  500. height: auto !important;
  501. }
  502. </style>
  503. <style scoped lang="scss">
  504. .mt80 {
  505. margin-top: 80rpx;
  506. }
  507. .searchIpt {
  508. /* #ifdef H5 */
  509. width: 91% !important;
  510. /* #endif */
  511. /* #ifndef H5 */
  512. width: 100% !important;
  513. /* #endif */
  514. }
  515. .store-item .merTab {
  516. height: auto !important;
  517. .tab-item {
  518. margin-top: 8rpx !important;
  519. }
  520. }
  521. .text-ccc {
  522. text-align: center;
  523. display: block;
  524. }
  525. .company {
  526. display: flex;
  527. align-items: center;
  528. color: #737373 !important;
  529. font-size: 26rpx;
  530. .name {
  531. display: inline-block;
  532. // width: 120rpx;
  533. height: auto !important;
  534. overflow: hidden;
  535. white-space: nowrap;
  536. text-overflow: ellipsis;
  537. }
  538. .flex {
  539. display: flex;
  540. align-items: center;
  541. margin-left: 10rpx;
  542. color: #282828 !important;
  543. width: 100rpx;
  544. .iconfont {
  545. font-size: 16rpx;
  546. margin-top: 4rpx;
  547. }
  548. }
  549. }
  550. .icon-xiangzuo {
  551. color: #fff;
  552. }
  553. .goods {
  554. display: flex;
  555. flex-wrap: wrap;
  556. justify-content: space-between;
  557. padding-left: 24rpx;
  558. background-color: #F5F5F5;
  559. width: 100%;
  560. }
  561. .proList {
  562. margin-top: 256rpx;
  563. }
  564. .merList {
  565. position: relative;
  566. top: 154rpx;
  567. z-index: 66;
  568. }
  569. .merBox {
  570. /deep/.tui-drawer-container {
  571. width: 635rpx;
  572. }
  573. }
  574. .mer {
  575. &-nav {
  576. top: 80rpx !important;
  577. border-radius: inherit !important;
  578. }
  579. &-list {
  580. margin-top: 248rpx !important;
  581. }
  582. &-listBox {
  583. position: relative;
  584. top: -68rpx;
  585. }
  586. &-mt194 {
  587. margin-top: 260rpx !important;
  588. }
  589. &-mt100 {
  590. top: -200rpx !important;
  591. }
  592. }
  593. .no-shop {
  594. margin-top: 6rpx;
  595. background-color: #fff;
  596. padding-bottom: calc(100% - 109rpx);
  597. .pictrue {
  598. display: flex;
  599. flex-direction: column;
  600. align-items: center;
  601. //color: $uni-nothing-text;
  602. image {
  603. width: 414rpx;
  604. height: 380rpx;
  605. }
  606. }
  607. }
  608. .with50 {
  609. width: 50% !important;
  610. }
  611. .nav-wrapper {
  612. z-index: 9;
  613. position: fixed;
  614. left: 0;
  615. top: 86rpx;
  616. width: 100%;
  617. @include main_bg_color(theme);
  618. .tab-bar {
  619. display: flex;
  620. align-items: center;
  621. height: 131rpx;
  622. .tab-item {
  623. position: relative;
  624. flex: 1;
  625. display: flex;
  626. justify-content: center;
  627. align-items: center;
  628. padding-bottom: 40rpx;
  629. color: #fff;
  630. font-size: 28rpx;
  631. font-weight: bold;
  632. margin-top: -36rpx;
  633. &::after {
  634. content: ' ';
  635. position: absolute;
  636. left: 50%;
  637. bottom: 34rpx;
  638. width: 60rpx;
  639. height: 3rpx;
  640. background: transparent;
  641. transform: translateX(-50%);
  642. }
  643. &.on {
  644. &::after {
  645. background: #fff;
  646. }
  647. }
  648. }
  649. }
  650. }
  651. .bg_color {
  652. @include main_bg_color(theme);
  653. }
  654. .font_color {
  655. @include main_color(theme);
  656. }
  657. .x-money {
  658. font-size: 38rpx;
  659. font-weight: 900;
  660. @include price_color(theme);
  661. }
  662. .iconfont {
  663. //color: #fff;
  664. }
  665. .listBox {
  666. margin-top: 240rpx !important;
  667. background-color: #FFFFFF;
  668. }
  669. .fixed-top {
  670. position: fixed;
  671. top: 0;
  672. left: 0;
  673. z-index: 9;
  674. }
  675. .productList .search {
  676. width: 100%;
  677. height: 86rpx;
  678. padding: 0 30rpx;
  679. box-sizing: border-box;
  680. position: fixed;
  681. top: 0 !important;
  682. left: 0;
  683. z-index: 666;
  684. color: #fff;
  685. }
  686. .productList .search .input {
  687. width: 570rpx;
  688. height: 60rpx;
  689. background-color: #fff;
  690. border-radius: 50rpx;
  691. padding: 0 20rpx;
  692. box-sizing: border-box;
  693. color: #333;
  694. }
  695. .productList .search .input input {
  696. width: 88%;
  697. height: 100%;
  698. font-size: 26rpx;
  699. }
  700. .productList .search .input .placeholder {
  701. color: #CCCCCC;
  702. }
  703. .productList .search .input .iconfont {
  704. font-size: 26rpx;
  705. color: #999999;
  706. }
  707. .productList .search .icon-yangshi1,
  708. .icon-shaixuan {
  709. color: #fff;
  710. width: 62rpx;
  711. font-size: 40rpx;
  712. height: 86rpx;
  713. line-height: 86rpx;
  714. text-align: right;
  715. }
  716. .productList .nav {
  717. height: 86rpx;
  718. color: #454545;
  719. position: fixed;
  720. left: 0;
  721. width: 100%;
  722. font-size: 28rpx;
  723. background-color: #fff;
  724. top: 154rpx;
  725. z-index: 9;
  726. border-radius: 16rpx 16rpx 0rpx 0rpx;
  727. padding-left: 20rpx;
  728. }
  729. .productList .nav .item {
  730. width: 30%;
  731. text-align: center;
  732. .iconfont {
  733. //color: #fff;
  734. }
  735. }
  736. .item-c {
  737. width: 27% !important;
  738. }
  739. .item-icon {
  740. width: 8%;
  741. margin-left: 30rpx;
  742. }
  743. .item-shu {
  744. width: 1px;
  745. height: 12px;
  746. background: #666666;
  747. opacity: 0.2;
  748. }
  749. .productList .nav .item.font-color {
  750. font-weight: bold;
  751. }
  752. .productList .nav .item image {
  753. width: 15rpx;
  754. height: 19rpx;
  755. margin-left: 10rpx;
  756. }
  757. .productList .list.on {
  758. padding-top: 30rpx !important;
  759. background-color: #fff;
  760. border-top: 1px solid #F5F5F5;
  761. }
  762. .productList .list .item {
  763. width: 335rpx;
  764. background-color: #fff;
  765. border-radius: 14rpx;
  766. margin-bottom: 20rpx;
  767. }
  768. .productList .list .item.on {
  769. width: 100%;
  770. display: flex;
  771. padding: 0 24rpx 60rpx 24rpx;
  772. margin: 0;
  773. border-radius: 14rpx;
  774. }
  775. .productList .list .item .pictrue {
  776. position: relative;
  777. // width: 100%;
  778. }
  779. .productList .list .item .pictrue /deep/.easy-loadimage {
  780. width: 240rpx;
  781. height: 240rpx;
  782. border-radius: 14rpx;
  783. overflow: hidden;
  784. }
  785. .productList .list .item .pictrue image {
  786. width: 100%;
  787. height: 100%;
  788. border-radius: 20rpx 20rpx 0 0;
  789. overflow: hidden;
  790. }
  791. .productList .list .item .pictrue image.on {
  792. border-radius: 6rpx;
  793. }
  794. .productList .list .item .text {
  795. padding: 18rpx 20rpx;
  796. font-size: 30rpx;
  797. color: #222;
  798. }
  799. .productList .list .item .text.on {
  800. width: 456rpx;
  801. padding: 0 0 0 20rpx;
  802. position: relative;
  803. &::after {
  804. content: '';
  805. display: block;
  806. width: 94%;
  807. border-bottom: 1rpx solid #f6f6f6;
  808. position: absolute;
  809. right: 2rpx;
  810. bottom: -24rpx;
  811. }
  812. .name {
  813. height: 84rpx;
  814. line-height: 42rpx;
  815. }
  816. }
  817. .productList .list .item .text .money {
  818. font-size: 26rpx;
  819. font-weight: bold;
  820. margin-top: 8rpx;
  821. }
  822. .productList .list .item .text .money.on {
  823. margin-top: 50rpx;
  824. }
  825. .productList .list .item .text .money .num {
  826. font-size: 34rpx;
  827. }
  828. .productList .list .item .text .vip {
  829. font-size: 20rpx;
  830. color: #aaa;
  831. }
  832. .productList .list .item .text .vip .vip-money {
  833. font-size: 24rpx;
  834. color: #282828;
  835. font-weight: bold;
  836. }
  837. .productList .list .item .text .vip .vip-money image {
  838. width: 46rpx;
  839. height: 21rpx;
  840. margin-left: 4rpx;
  841. }
  842. .row-between-wrapper .input {
  843. height: 60rpx;
  844. margin: 10rpx 0 16rpx;
  845. }
  846. .box-line2 {
  847. overflow: hidden;
  848. }
  849. </style>