index-bak.vue 23 KB

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