index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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. console.log(1111111111111111)
  486. if (this.tabIndex === 2) {
  487. this.getMerStreet();
  488. }
  489. if (this.productList.length > 0) {
  490. this.get_product_list();
  491. }
  492. if ((this.productList.length == 0 && this.isShow && this.tabIndex === 1 && !this.loading) || (this.merchantList
  493. .length == 0 && this.isShow && this.tabIndex === 2 && !this.loading)) {
  494. this.$refs.recommendIndex.get_host_product();
  495. }
  496. }
  497. }
  498. </script>
  499. <style>
  500. body {
  501. height: auto !important;
  502. }
  503. </style>
  504. <style scoped lang="scss">
  505. .mt80 {
  506. margin-top: 80rpx;
  507. }
  508. .searchIpt {
  509. /* #ifdef H5 */
  510. width: 91% !important;
  511. /* #endif */
  512. /* #ifndef H5 */
  513. width: 100% !important;
  514. /* #endif */
  515. }
  516. .store-item .merTab {
  517. height: auto !important;
  518. .tab-item {
  519. margin-top: 8rpx !important;
  520. }
  521. }
  522. .text-ccc {
  523. text-align: center;
  524. display: block;
  525. }
  526. .company {
  527. display: flex;
  528. align-items: center;
  529. color: #737373 !important;
  530. font-size: 26rpx;
  531. .name {
  532. display: inline-block;
  533. // width: 120rpx;
  534. height: auto !important;
  535. overflow: hidden;
  536. white-space: nowrap;
  537. text-overflow: ellipsis;
  538. }
  539. .flex {
  540. display: flex;
  541. align-items: center;
  542. margin-left: 10rpx;
  543. color: #282828 !important;
  544. width: 100rpx;
  545. .iconfont {
  546. font-size: 16rpx;
  547. margin-top: 4rpx;
  548. }
  549. }
  550. }
  551. .icon-xiangzuo {
  552. color: #fff;
  553. }
  554. .goods {
  555. display: flex;
  556. flex-wrap: wrap;
  557. justify-content: space-between;
  558. padding-left: 24rpx;
  559. background-color: #F5F5F5;
  560. width: 100%;
  561. }
  562. .proList {
  563. margin-top: 256rpx;
  564. }
  565. .merList {
  566. position: relative;
  567. top: 154rpx;
  568. z-index: 66;
  569. }
  570. .merBox {
  571. /deep/.tui-drawer-container {
  572. width: 635rpx;
  573. }
  574. }
  575. .mer {
  576. &-nav {
  577. top: 80rpx !important;
  578. border-radius: inherit !important;
  579. }
  580. &-list {
  581. margin-top: 248rpx !important;
  582. }
  583. &-listBox {
  584. position: relative;
  585. top: -68rpx;
  586. }
  587. &-mt194 {
  588. margin-top: 260rpx !important;
  589. }
  590. &-mt100 {
  591. top: -200rpx !important;
  592. }
  593. }
  594. .no-shop {
  595. margin-top: 6rpx;
  596. background-color: #fff;
  597. padding-bottom: calc(100% - 109rpx);
  598. .pictrue {
  599. display: flex;
  600. flex-direction: column;
  601. align-items: center;
  602. //color: $uni-nothing-text;
  603. image {
  604. width: 414rpx;
  605. height: 380rpx;
  606. }
  607. }
  608. }
  609. .with50 {
  610. width: 50% !important;
  611. }
  612. .nav-wrapper {
  613. z-index: 9;
  614. position: fixed;
  615. left: 0;
  616. top: 86rpx;
  617. width: 100%;
  618. @include main_bg_color(theme);
  619. .tab-bar {
  620. display: flex;
  621. align-items: center;
  622. height: 131rpx;
  623. .tab-item {
  624. position: relative;
  625. flex: 1;
  626. display: flex;
  627. justify-content: center;
  628. align-items: center;
  629. padding-bottom: 40rpx;
  630. color: #fff;
  631. font-size: 28rpx;
  632. font-weight: bold;
  633. margin-top: -36rpx;
  634. &::after {
  635. content: ' ';
  636. position: absolute;
  637. left: 50%;
  638. bottom: 34rpx;
  639. width: 60rpx;
  640. height: 3rpx;
  641. background: transparent;
  642. transform: translateX(-50%);
  643. }
  644. &.on {
  645. &::after {
  646. background: #fff;
  647. }
  648. }
  649. }
  650. }
  651. }
  652. .bg_color {
  653. @include main_bg_color(theme);
  654. }
  655. .font_color {
  656. @include main_color(theme);
  657. }
  658. .x-money {
  659. font-size: 38rpx;
  660. font-weight: 900;
  661. @include price_color(theme);
  662. }
  663. .iconfont {
  664. //color: #fff;
  665. }
  666. .listBox {
  667. margin-top: 240rpx !important;
  668. background-color: #FFFFFF;
  669. }
  670. .fixed-top {
  671. position: fixed;
  672. top: 0;
  673. left: 0;
  674. z-index: 9;
  675. }
  676. .productList .search {
  677. width: 100%;
  678. height: 86rpx;
  679. padding: 0 30rpx;
  680. box-sizing: border-box;
  681. position: fixed;
  682. top: 0 !important;
  683. left: 0;
  684. z-index: 666;
  685. color: #fff;
  686. }
  687. .productList .search .input {
  688. width: 570rpx;
  689. height: 60rpx;
  690. background-color: #fff;
  691. border-radius: 50rpx;
  692. padding: 0 20rpx;
  693. box-sizing: border-box;
  694. color: #333;
  695. }
  696. .productList .search .input input {
  697. width: 88%;
  698. height: 100%;
  699. font-size: 26rpx;
  700. }
  701. .productList .search .input .placeholder {
  702. color: #CCCCCC;
  703. }
  704. .productList .search .input .iconfont {
  705. font-size: 26rpx;
  706. color: #999999;
  707. }
  708. .productList .search .icon-yangshi1,
  709. .icon-shaixuan {
  710. color: #fff;
  711. width: 62rpx;
  712. font-size: 40rpx;
  713. height: 86rpx;
  714. line-height: 86rpx;
  715. text-align: right;
  716. }
  717. .productList .nav {
  718. height: 86rpx;
  719. color: #454545;
  720. position: fixed;
  721. left: 0;
  722. width: 100%;
  723. font-size: 28rpx;
  724. background-color: #fff;
  725. top: 154rpx;
  726. z-index: 9;
  727. border-radius: 16rpx 16rpx 0rpx 0rpx;
  728. padding-left: 20rpx;
  729. }
  730. .productList .nav .item {
  731. width: 30%;
  732. text-align: center;
  733. .iconfont {
  734. //color: #fff;
  735. }
  736. }
  737. .item-c {
  738. width: 27% !important;
  739. }
  740. .item-icon {
  741. width: 8%;
  742. margin-left: 30rpx;
  743. }
  744. .item-shu {
  745. width: 1px;
  746. height: 12px;
  747. background: #666666;
  748. opacity: 0.2;
  749. }
  750. .productList .nav .item.font-color {
  751. font-weight: bold;
  752. }
  753. .productList .nav .item image {
  754. width: 15rpx;
  755. height: 19rpx;
  756. margin-left: 10rpx;
  757. }
  758. .productList .list.on {
  759. padding-top: 30rpx !important;
  760. background-color: #fff;
  761. border-top: 1px solid #F5F5F5;
  762. }
  763. .productList .list .item {
  764. width: 335rpx;
  765. background-color: #fff;
  766. border-radius: 14rpx;
  767. margin-bottom: 20rpx;
  768. }
  769. .productList .list .item.on {
  770. width: 100%;
  771. display: flex;
  772. padding: 0 24rpx 60rpx 24rpx;
  773. margin: 0;
  774. border-radius: 14rpx;
  775. }
  776. .productList .list .item .pictrue {
  777. position: relative;
  778. // width: 100%;
  779. }
  780. .productList .list .item .pictrue /deep/.easy-loadimage {
  781. width: 240rpx;
  782. height: 240rpx;
  783. border-radius: 14rpx;
  784. overflow: hidden;
  785. }
  786. .productList .list .item .pictrue image {
  787. width: 100%;
  788. height: 100%;
  789. border-radius: 20rpx 20rpx 0 0;
  790. overflow: hidden;
  791. }
  792. .productList .list .item .pictrue image.on {
  793. border-radius: 6rpx;
  794. }
  795. .productList .list .item .text {
  796. padding: 18rpx 20rpx;
  797. font-size: 30rpx;
  798. color: #222;
  799. }
  800. .productList .list .item .text.on {
  801. width: 456rpx;
  802. padding: 0 0 0 20rpx;
  803. position: relative;
  804. &::after {
  805. content: '';
  806. display: block;
  807. width: 94%;
  808. border-bottom: 1rpx solid #f6f6f6;
  809. position: absolute;
  810. right: 2rpx;
  811. bottom: -24rpx;
  812. }
  813. .name {
  814. height: 84rpx;
  815. line-height: 42rpx;
  816. }
  817. }
  818. .productList .list .item .text .money {
  819. font-size: 26rpx;
  820. font-weight: bold;
  821. margin-top: 8rpx;
  822. }
  823. .productList .list .item .text .money.on {
  824. margin-top: 50rpx;
  825. }
  826. .productList .list .item .text .money .num {
  827. font-size: 34rpx;
  828. }
  829. .productList .list .item .text .vip {
  830. font-size: 20rpx;
  831. color: #aaa;
  832. }
  833. .productList .list .item .text .vip .vip-money {
  834. font-size: 24rpx;
  835. color: #282828;
  836. font-weight: bold;
  837. }
  838. .productList .list .item .text .vip .vip-money image {
  839. width: 46rpx;
  840. height: 21rpx;
  841. margin-left: 4rpx;
  842. }
  843. .row-between-wrapper .input {
  844. height: 60rpx;
  845. margin: 10rpx 0 16rpx;
  846. }
  847. .box-line2 {
  848. overflow: hidden;
  849. }
  850. </style>