immediatelyList.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987
  1. <template>
  2. <view class="container commodity-list-wrapper" :style="{'overflow':(showSkeleton? 'hidden' : 'auto'),'height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  3. <view class="good-search clearfix" v-if="searchStatus">
  4. <view class="nav-tab-bar u-f-ajc">
  5. <block v-for="(tab,index) in tabBars" :key='tab.id' :class="{ current: tabIndex === index }">
  6. <view class="tabstyle u-f-ajc" :class="{'addstyle':tabIndex==index}" @tap="changeTab(index)">
  7. {{tab.name}}<i v-if='(tabIndex==index)' class='nav-tab-line iconfont icon-gou'></i>
  8. </view>
  9. </block>
  10. </view>
  11. <view class="search-from name">
  12. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  13. <input class="input"
  14. type="text"
  15. :focus="isFocus"
  16. confirm-type="search"
  17. v-model="searchInputVal"
  18. placeholder="请输入商品关键词"
  19. @input="onShowClose"
  20. @confirm="searchOpertor(tabIndex)"
  21. maxlength="20"/>
  22. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText(tabIndex)"></text>
  23. </view>
  24. </view>
  25. <list-skeleton v-if="showSkeleton"></list-skeleton>
  26. <view class="empty-container" v-if="isShowEmpty" >
  27. <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"></image>
  28. <text class="error-text">{{isShowEmptyText}}</text>
  29. </view>
  30. <!-- 单一商品 -->
  31. <view class="product-container" v-else >
  32. <view :class="tabIndex" v-if="tabIndex === 0" :style="{paddingTop:searchStatus?'128rpx':''}">
  33. <scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower(tabIndex)" scroll-y v-if="listData.length > 0">
  34. <view v-for="(item,index) in listData" :key="index" :id="item.productId" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.productId)" >
  35. <image mode='widthFix' :src="item.image" class="list-img" alt="list-img"></image>
  36. <view class="list-details-info">
  37. <text class="list-details-title">{{isInterceptHtmlFn(item.name)}}</text>
  38. <text class="list-details-specs">规格:{{item.unit ? item.unit : ''}}</text>
  39. <text class="list-details-miniQuantity list-details-specs">起订量:{{item.minBuyNumber}}</text>
  40. <view class="list-details-specs" v-if="item.code!=''&& item.code!=null">
  41. <view>商品编码:{{item.code}}</view>
  42. </view>
  43. <view class="list-details-price">
  44. <template v-if="priceLoading">
  45. <view class="list-price-loding">正在获取价格...</view>
  46. </template>
  47. <template v-else>
  48. <view class="list-shop">
  49. <view class="list-price">
  50. <text class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  51. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat }}
  52. </text>
  53. </view>
  54. </view>
  55. <button class="add-cart-btn" @click.stop="operationHanld(item)">数量</button>
  56. </template>
  57. </view>
  58. <view class="list-details-price">
  59. <view class="floor-item-act" v-if="item.actStatus==1">
  60. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  61. {{item.promotions.name}}<text>:¥{{ item.price | NumFormat }}</text>
  62. </view>
  63. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  64. </view>
  65. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  66. <view class="floor-tags">阶梯价格</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view v-if="showLoading && listData.length > 4 && !showRegularBtn">
  72. <view class="loading-wrapper loading-wrapper-now" v-if="loadingNow">{{loadingText}}<text v-if="loadingText === '已至底部'">‧ ‧ ‧</text></view>
  73. <view class="loading-wrapper loading-wrapper-btm" v-else>———<text class="btm-text">已至底部</text>———</view>
  74. </view>
  75. </scroll-view>
  76. </view>
  77. <!-- 组合商品 -->
  78. <view :class="tabIndex" v-if="tabIndex === 1">
  79. <scroll-view :style="{'height':scrollHeight+'px',paddingTop:searchStatus?'112rpx':''}" @scrolltolower="scrolltolower(tabIndex)" scroll-y>
  80. <view class="all-zuhe-list" v-for="(item,index) in combinationProduct" :key="index" :id="item.id">
  81. <view class="zuhe_title" :class="index%2==0 ? 'active' : ''">{{item.name}}</view>
  82. <view v-for="(pros,proIndex) in item.combinationProductList" :class="index%2==0 ? 'stylecontent' : ''" :key="proIndex" :id="pros.productId" class="zuhe-list-content commodity-list" >
  83. <view class="list-details-info" >
  84. <text class="list-details-title zuhe_list_text">商品编码:{{pros.code}}</text>
  85. <text class="list-details-specs zuhe_list_text" @click.stop="navToDetailPage(pros.productId)">{{pros.name}}</text>
  86. <view class="list-details-price zuhe_list_price">
  87. <view class="list-shop com">
  88. <view class="list-price zuhe_list_price" >
  89. <view class="zuhe_price-larger zuhe_list_text" >
  90. <view class="list-price-none" v-if="pros.repurchaseFlag == 1">
  91. <text class="price-none">价格:¥{{ pros.originalPrice }}</text>
  92. <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
  93. </view>
  94. <view class="price-larger">价格:¥{{ pros.price | NumFormat }}</view>
  95. </view>
  96. <view class="zuhe_price-larger zuhe_list_text" >
  97. <view class="floor-item-act" v-if="pros.actStatus==1">
  98. <view class="floor-tags" v-if="PromotionsFormat(pros.promotions)">
  99. {{pros.promotions.name}}<text>:¥{{ pros.price | NumFormat }}</text>
  100. </view>
  101. <view class="floor-tags" v-else>{{pros.promotions.name}}</view>
  102. </view>
  103. <view class="floor-item-act" v-if="pros.actStatus ==0 && pros.ladderPriceFlag==1">
  104. <view class="floor-tags">阶梯价格</view>
  105. </view>
  106. <view class="count">
  107. <view class="number-box">
  108. <view class="iconfont icon-jianhao" @click.stop="changeCountSub(item,pros)"></view>
  109. <input class="btn-input" type="number" maxlength='6' v-model="pros.initProductNum" @blur="changeNnmber($event,item,pros)">
  110. <view class="iconfont icon-jiahao" @click.stop="changeCountAdd(item,pros)"></view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="list-price-all" :style="{'overflow':'hidden'}">
  115. <view class="price-two zuhe_list_text" >总价:<text class="zuhe_list_zj">¥ {{ pros.totalPrice | NumFormat }}</text></view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="foot_conten" >
  123. <view class="zuhe_foot-box">
  124. <view class="">
  125. <text>种类:{{item.productKind}}</text>
  126. <text >总数:{{item.productTotalNum}}</text>
  127. </view>
  128. <text>总额:<text class="foot_text">{{ item.productTotalAmount | NumFormat }}</text></text>
  129. </view>
  130. <button type="default" class="buycart" @click.stop="operationHanld(item)">加入购物车</button>
  131. </view>
  132. </view>
  133. <view v-if="showLoading && combinationProduct.length > 4 && !showRegularBtn">
  134. <view class="loading-wrapper loading-wrapper-now" v-if="loadingNow">{{loadingText}}<text v-if="loadingText === '已至底部'">‧ ‧ ‧</text></view>
  135. <view class="loading-wrapper loading-wrapper-btm" v-else>———<text class="btm-text">已至底部</text>———</view>
  136. </view>
  137. </scroll-view>
  138. </view>
  139. </view>
  140. <!-- 可拖动悬浮按钮 -->
  141. <cm-drag :cartNum="cartQuantity"
  142. :isDock="true"
  143. :existTabBar="true"
  144. @btnClick="btnClick"
  145. @btnTouchstart="btnTouchstart"
  146. @btnTouchend="btnTouchend">
  147. </cm-drag>
  148. <!-- 透明模态层 -->
  149. <modal-layer v-if='isModallayer'></modal-layer>
  150. </view>
  151. </template>
  152. <script>
  153. import listSkeleton from '@/components/cm-module/listTemplate/listSkeleton'
  154. import modalLayer from "@/components/modal-layer"
  155. import uniStars from '@/components/uni-stars/uni-stars.vue'
  156. import cmDrag from '@/components/cm-custom/cm-drag.vue'
  157. import { mapState,mapMutations } from 'vuex';
  158. export default{
  159. name:'productList',
  160. components:{
  161. listSkeleton,
  162. modalLayer,
  163. uniStars,
  164. cmDrag
  165. },
  166. props: {
  167. searchStatus:{
  168. type:Boolean,
  169. default:false
  170. }
  171. },
  172. data(){
  173. return{
  174. isShowClose:false,
  175. searchInputVal:'',
  176. isModallayer:false,
  177. windowHeight: '',
  178. showSkeleton: false,
  179. priceLoading:true,
  180. isShowEmpty: false,
  181. isShowEmptyText: '搜索相关商品',
  182. clubUserId: '',
  183. identity:'',
  184. isFocus:false,
  185. scrollHeight: '',
  186. listData: [],
  187. combinationProduct:[],
  188. zuheProductList:[],//组合商品列表
  189. showLoading: false,
  190. loadingNow: true,
  191. loadingText: '上拉加载更多',
  192. pageSize: 20,
  193. zuhepageSize:5,
  194. pageNum: 1,
  195. totalPage:1,
  196. hasNextPage: false,
  197. pullFlag: true,
  198. fromRegularPurchasePage: false,
  199. cartQuantity: 0,
  200. showRegularBtn: false,
  201. isPrecedence:false,
  202. ladderPriceList:[],//是否 阶梯,
  203. tabIndex:0,
  204. goodsList:[],
  205. tabBars:[
  206. {name:'单一',id:'danyi'},
  207. {name:'组合',id:'zuhe'}
  208. ],
  209. isShow: false,
  210. }
  211. },
  212. created() {
  213. this.setScrollHeight();
  214. this.$api.getComStorage('userInfo').then((resolve) =>{
  215. if(resolve.userIdentity == 1){
  216. this.identity = 1
  217. }
  218. }).catch(error =>{
  219. console.log(error)
  220. })
  221. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  222. this.clubUserId = resolve.userID
  223. })
  224. this.getProductAgainInfo()
  225. this.isFocus = true
  226. },
  227. filters: {
  228. NumFormat:function(text) {//处理金额
  229. return Number(text).toFixed(2);
  230. },
  231. },
  232. computed: {
  233. ...mapState(['hasLogin','userInfo'])
  234. },
  235. methods:{
  236. scrolltolower(tabIndex) {
  237. if(tabIndex ==0){
  238. if(this.totalPage>this.listData.length && this.pullFlag) {
  239. this.getProductAgainInfo(true);
  240. }
  241. }else if(tabIndex==1){
  242. if(this.hasNextPage && this.pullFlag) {
  243. this.getcombinationProduct(true);
  244. }
  245. }
  246. },
  247. setScrollHeight() {
  248. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  249. this.windowHeight = windowHeight - 1;
  250. this.scrollHeight = windowHeight - 1;
  251. },
  252. getProductAgainInfo(loadMore) {
  253. this.showLoading = true;
  254. this.priceLoading = true;
  255. this.loadingNow = true;
  256. this.loadingText = '加载中';
  257. this.isShowEmpty = false;
  258. if(loadMore) {this.pageNum += 1;}
  259. this.ProductService.GetProductSearchList(
  260. {
  261. identity:this.identity,
  262. keyword:this.searchInputVal,
  263. pageNum:this.pageNum,
  264. pageSize:this.pageSize,
  265. sortField:'',
  266. sortType:'',
  267. }
  268. )
  269. .then(response =>{
  270. this.isShowWrapper = true
  271. const resData = JSON.parse(response.data);
  272. const resList = resData.items;
  273. if(resList && resList.length > 0){
  274. this.totalPage = resData.total;
  275. this.showEmpty = false;
  276. if(loadMore) {
  277. this.listData = [...this.listData,...resList];
  278. this.getProductPrice()
  279. } else {
  280. this.listData = [...resList];
  281. this.getProductPrice()
  282. this.showSkeleton = false;
  283. }
  284. // 防上拉暴滑
  285. this.pullFlag = false;
  286. setTimeout(()=>{ this.pullFlag = true; },500)
  287. // 底部提示文案
  288. if(this.totalPage>this.listData.length) {
  289. this.loadingText = '上拉加载更多';
  290. } else {
  291. this.showLoading = true;
  292. this.loadingNow = false;
  293. }
  294. } else {
  295. if(!loadMore) {
  296. this.isShowEmpty = true;
  297. this.isShowEmptyText ='暂无相关商品'
  298. }
  299. }
  300. })
  301. .catch(error =>{
  302. this.$util.msg(error.msg,2000);
  303. })
  304. },
  305. getProductPrice(){//获取商品或者活动价格
  306. let productIdArr = [];
  307. let productIds ='';
  308. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  309. productIdArr.push(item.productId)
  310. })
  311. productIds = productIdArr.join(",");
  312. this.ProductService.querySearchProductPrice({userId: this.clubUserId,productIds:productIds}).then(response =>{
  313. this.listData = this.ReturnNewProducts(this.listData,response.data);
  314. this.priceLoading = false;
  315. }).catch(error =>{
  316. this.$util.msg(error.msg,2000)
  317. })
  318. },
  319. ReturnNewProducts(Array,list){//合并字段
  320. let NewArray = []
  321. Array.map(item=>{
  322. for (let i = 0; i < list.length; i++) {
  323. if( item.productId == list[i].productId ){
  324. NewArray.push(Object.assign(item,list[i]))
  325. }
  326. }
  327. });
  328. return NewArray
  329. },
  330. searchOpertor(tabIndex){//搜索商品
  331. if(tabIndex == 0){
  332. if(this.searchInputVal == ''){
  333. this.$util.msg('请输入商品关键词',2000)
  334. }else{
  335. this.pageNum = 1
  336. this.showSkeleton = true;
  337. this.getProductAgainInfo();
  338. this.isFocus = false
  339. }
  340. }else{
  341. this.pageNum = 1
  342. this.showSkeleton = true;
  343. this.getcombinationProduct();
  344. this.isFocus = false
  345. }
  346. },
  347. getcombinationProduct(loadMore){//组合搜索商品
  348. this.showLoading = true;
  349. this.loadingNow = true;
  350. this.loadingText = '加载中';
  351. this.isShowEmpty = false;
  352. if(loadMore) {this.pageNum += 1;}
  353. this.ProductService.GetSearchCombinationProduct(
  354. {
  355. clubUserId:this.clubUserId,
  356. pageNum:this.pageNum,
  357. pageSize:this.zuhepageSize,
  358. searchWord:this.searchInputVal,
  359. }
  360. )
  361. .then(response =>{
  362. this.isShowWrapper = true
  363. const responseData = response.data;
  364. console.log(responseData)
  365. if(responseData.results && responseData.results.length > 0){
  366. this.hasNextPage = responseData.hasNextPage;
  367. this.isShowEmpty = false;
  368. if(loadMore) {
  369. this.combinationProduct = [...this.combinationProduct,...responseData.results];
  370. } else {
  371. this.combinationProduct = [...responseData.results];
  372. this.showSkeleton = false;
  373. }
  374. // 防上拉暴滑
  375. this.pullFlag = false;
  376. setTimeout(()=>{
  377. this.pullFlag = true;
  378. },500)
  379. // 底部提示文案
  380. if(this.hasNextPage) {
  381. this.loadingText = '上拉加载更多';
  382. } else {
  383. this.showLoading = true;
  384. this.loadingNow = false;
  385. }
  386. } else {
  387. this.isShowEmpty = true;
  388. this.isShowEmptyText ='暂无相关商品'
  389. }
  390. })
  391. .catch(error =>{
  392. this.$util.msg(error.msg,2000);
  393. })
  394. },
  395. changeCountAdd(item,pros){//商品数量加加
  396. if(pros.initProductNum == 0){
  397. pros.initProductNum = pros.minBuyNumber
  398. this.processActivityPrice(pros)
  399. }else if(pros.initProductNum >= pros.minBuyNumber){
  400. pros.initProductNum++
  401. this.processActivityPrice(pros)
  402. }
  403. this.totalPeice(item)
  404. this.totalCount(item)
  405. this.totalKind(item)
  406. },
  407. changeCountSub(item,pros){//商品数量减减
  408. if(pros.initProductNum==0){
  409. this.$util.msg(`采购数量不能小于0`,2000);
  410. return
  411. }else if(pros.initProductNum == pros.minBuyNumber){
  412. pros.initProductNum = 0;
  413. this.processActivityPrice(pros);
  414. }else{
  415. pros.initProductNum--
  416. this.processActivityPrice(pros)
  417. }
  418. this.totalPeice(item)
  419. this.totalCount(item)
  420. this.totalKind(item)
  421. },
  422. changeNnmber(e,item,pros){//输入商品数量更新
  423. let _value = e.detail.value;
  424. if(!this.$api.isNumber(_value)){
  425. pros.initProductNum = pros.minBuyNumber
  426. }else if(_value < pros.minBuyNumber){
  427. this.$util.msg(`该商品最小起订量为${pros.minBuyNumber}`,2000);
  428. pros.initProductNum = pros.minBuyNumber
  429. }else{
  430. pros.initProductNum = parseInt(e.detail.value)
  431. this.processActivityPrice(pros)
  432. }
  433. this.totalPeice(item)
  434. this.totalCount(item)
  435. this.totalKind(item)
  436. },
  437. totalPeice(item){ //计算总价格,每次调用此方法,将初始值为0,遍历价格并累加
  438. let prosPrice=0;
  439. let productsList =[];
  440. productsList=item.combinationProductList;
  441. productsList.forEach(pros=>{
  442. prosPrice+=pros.price*pros.initProductNum;
  443. item.productTotalAmount = prosPrice;
  444. })
  445. // console.log(prosPrice)
  446. },
  447. totalCount(item){//计算总数量
  448. let prosAllCount=0
  449. let productsList =[];
  450. productsList = item.combinationProductList
  451. productsList.forEach(pros=>{
  452. prosAllCount+=parseInt(pros.initProductNum);
  453. item.productTotalNum = prosAllCount
  454. })
  455. // console.log(prosAllCount)
  456. },
  457. totalKind(item){//计算商品种类
  458. let productsList =[];
  459. let checkList = [];
  460. productsList=item.combinationProductList;
  461. productsList.forEach(pros=>{
  462. if(pros.initProductNum>0){
  463. checkList.push(pros)
  464. item.productKind = checkList.length;
  465. }else{
  466. item.productKind = checkList.length;
  467. }
  468. })
  469. },
  470. processActivityPrice(pros){//单独处理活动价格和阶梯价格
  471. let ladderPriceList = pros.ladderPrices;
  472. if(pros.ladderPriceFlag == '0' || pros.actStatus == 1){
  473. pros.totalPrice = pros.initProductNum*pros.price
  474. }else{
  475. ladderPriceList.forEach((item,index)=>{
  476. if(pros.initProductNum>=item.buyNum){
  477. pros.price = item.buyPrice
  478. pros.totalPrice = pros.initProductNum*item.buyPrice
  479. }
  480. })
  481. }
  482. },
  483. operationHanld(prop){
  484. this.$emit('operationConfim',prop);
  485. },
  486. alertjieti(pros){
  487. this.$emit('alertjietiConfim',pros);
  488. },
  489. changeTab(index){
  490. this.tabIndex = index;
  491. if(index == 0){
  492. this.pageNum = 1
  493. this.getProductAgainInfo()
  494. }else{
  495. this.getcombinationProduct()
  496. }
  497. // this.$emit('changetab',index);
  498. },
  499. navToDetailPage(id) {
  500. this.isModallayer = true;
  501. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  502. this.isModallayer = false;
  503. },
  504. repurchModel(){
  505. this.$util.modal('','此商品的价格有变化,原来的购买价已不适用','知道了','',false,() =>{})
  506. },
  507. onShowClose () {//输入框失去焦点时触发
  508. if(this.searchInputVal != ''){
  509. this.isShowClose = true
  510. }else{
  511. this.isShowClose = false
  512. }
  513. },
  514. delInputText(tabIndex){//清除输入框内容
  515. if(tabIndex==0){
  516. this.searchInputVal = '';
  517. this.listData =[];
  518. this.isFocus = true
  519. this.isShowClose = false;
  520. this.loadingNow = false;
  521. this.isShowEmpty = true;
  522. this.isShowEmptyText ='暂无相关商品'
  523. }else{
  524. this.searchInputVal = '';
  525. this.isShowClose = false;
  526. this.isFocus = true
  527. this.getcombinationProduct();
  528. }
  529. },
  530. isInterceptHtmlFn(text){
  531. let name = this.$reg.interceptHtmlFn(text)
  532. return name
  533. },
  534. PromotionsFormat(promo){//促销活动类型数据处理
  535. if(promo!=null){
  536. if(promo.type == 1 && promo.mode == 1){
  537. return true
  538. }else{
  539. return false
  540. }
  541. }
  542. return false
  543. },
  544. btnClick() {
  545. this.$emit('goCartPage')
  546. },
  547. btnTouchstart() {
  548. // console.log('btnTouchstart');
  549. },
  550. btnTouchend() {
  551. // console.log('btnTouchend');
  552. }
  553. }
  554. }
  555. </script>
  556. <style lang="scss">
  557. .all-zuhe-list{
  558. background: #FFFFFF;
  559. }
  560. .foot_conten{
  561. width: 655rpx;
  562. background: #fff;
  563. font-size: 28rpx;
  564. height: 80rpx;
  565. // line-height: 80rpx;
  566. display: inherit;
  567. padding: 10px;
  568. overflow: hidden;
  569. margin: 20rpx auto;
  570. }
  571. .zuhe_foot-box{
  572. float: left;
  573. overflow: hidden;
  574. white-space: nowrap;
  575. // text-overflow: ellipsis;
  576. width: 490rpx;
  577. }
  578. .zuhe_foot-box text{
  579. margin-right: 36rpx;
  580. }
  581. .foot_text{
  582. color: #FF2A2A;
  583. }
  584. .foot_conten .buycart{
  585. width: 162rpx;
  586. height: 64rpx;
  587. background: #EFAF00 !important;
  588. color: #fff;
  589. font-size: 26rpx;
  590. border-radius: 36rpx;
  591. text-align: center;
  592. line-height: 64rpx;
  593. float: right;
  594. }
  595. .price-none{
  596. font-size: 24rpx;
  597. color: #666666;
  598. }
  599. .zuhe_title{
  600. background:#FFFFFF;
  601. height: 76rpx;
  602. font-size: 28rpx;
  603. color: #1675E1;
  604. border-bottom: 4rpx solid #1675E1 ;
  605. line-height: 76rpx;
  606. padding-left: 30rpx;
  607. &.active{
  608. color: #E15616;
  609. border-bottom: 4rpx solid #E15616;
  610. }
  611. }
  612. .tabstyle{
  613. width: 128rpx;
  614. height: 76rpx;
  615. font-size: 26rpx;
  616. display: inline-block;
  617. border-radius: 10rpx;
  618. text-align: center;
  619. line-height: 76rpx;
  620. border: 2rpx solid #EEEEEE;
  621. position: relative;
  622. margin-right: 12rpx;
  623. &.addstyle{
  624. background: $btn-confirm;
  625. color: #FFFFFF;
  626. &::before{
  627. content: "";
  628. width: 0;
  629. height: 0;
  630. border-top: 20rpx solid transparent;
  631. border-right: 20rpx solid #FFFFFF;
  632. border-left: 20rpx solid transparent;
  633. border-bottom: 20rpx solid #FFFFFF;
  634. position: absolute;
  635. right: 0;
  636. bottom: 0;
  637. }
  638. }
  639. .icon-gou{
  640. width: 36rpx;
  641. height: 36rpx;
  642. line-height: 36rpx;
  643. text-align: center;
  644. color: #E15616;
  645. position: absolute;
  646. bottom: -5rpx;
  647. right: -5rpx;
  648. font-weight: bold;
  649. font-size: $font-size-28;
  650. }
  651. }
  652. .commodity-list-wrapper {
  653. scroll-view {
  654. height: 100%;
  655. }
  656. .show-more-btn {
  657. width: 276rpx;
  658. height: 52rpx;
  659. line-height: 52rpx;
  660. border: 2rpx solid #D8D8D8;
  661. background: #F7F7F7;
  662. font-size: 26rpx;
  663. margin: 26rpx 0;
  664. position: absolute;
  665. left: 50%;
  666. margin-left: -138rpx;
  667. }
  668. }
  669. .good-search{
  670. height: 80rpx;
  671. width: 100%;
  672. padding: 24rpx;
  673. background: #FFFFFF;
  674. display: flex;
  675. align-items: center;
  676. margin-bottom: 20rpx;
  677. position: fixed;
  678. top: 0;
  679. left: 0;
  680. z-index: 19;
  681. .search-from{
  682. width: 420rpx;
  683. height: 80rpx;
  684. background: #F7F7F7;
  685. border-radius: 40rpx;
  686. float: left;
  687. position: relative;
  688. .input{
  689. width: 340rpx;
  690. height: 80rpx;
  691. float: left;
  692. line-height: 80rpx;
  693. color: $text-color;
  694. font-size: $font-size-24;
  695. }
  696. .icon-iconfonticonfontsousuo1{
  697. width: 64rpx;
  698. height: 80rpx;
  699. line-height: 80rpx;
  700. text-align: center;
  701. display: block;
  702. font-size: $font-size-38;
  703. float: left;
  704. color: #999999;
  705. }
  706. .icon-shanchu1{
  707. font-size: $font-size-32;
  708. color: #999999;
  709. position: absolute;
  710. width: 120rpx;
  711. height: 80rpx;
  712. line-height: 80rpx;
  713. top: 0;
  714. right: 0;
  715. text-align: center;
  716. z-index: 10;
  717. }
  718. }
  719. .search-btn{
  720. // width: 120rpx;
  721. line-height: 64rpx;
  722. text-align: center;
  723. font-size: $font-size-28;
  724. color: $color-system;
  725. float: left;
  726. background: #FFFFFF;
  727. margin-left: 10rpx;
  728. }
  729. }
  730. .all-type-list-content {
  731. // height: 240rpx;
  732. padding: 24rpx;
  733. background: #fff;
  734. margin-bottom: 2rpx;
  735. display: flex;
  736. flex-direction: row;
  737. box-sizing: content-box;
  738. .list-img {
  739. width: 312rpx;
  740. height: 207rpx !important;
  741. margin-right: 26rpx;
  742. border-radius: 10rpx;
  743. border: 2rpx solid #f3f3f3;
  744. }
  745. }
  746. .zuhe-list-content{
  747. width: 655rpx;
  748. // height: 214rpx;
  749. background: #fff;
  750. border: 2rpx solid #DEF4FF;
  751. display: flex;
  752. flex-direction: row;
  753. box-sizing: content-box;
  754. margin-top: 10rpx;
  755. border-radius: 14rpx;
  756. margin: 10rpx auto;
  757. padding: 20rpx;
  758. &.stylecontent{
  759. border: 2rpx solid #FFF0DE;
  760. }
  761. }
  762. .list-details-info {
  763. width: 100%;
  764. flex-direction: column;
  765. font-size: 26rpx;
  766. position: relative;
  767. .list-details-title {
  768. line-height: 38rpx;
  769. text-overflow: ellipsis;
  770. overflow: hidden;
  771. display: -webkit-box;
  772. -webkit-line-clamp: 2;
  773. line-clamp: 2;
  774. -webkit-box-orient: vertical;
  775. }
  776. .list-details-specs {
  777. width: 100%;
  778. display: inline-block;
  779. margin: 5rpx 0;
  780. color: #666666;
  781. }
  782. .list-details-miniQuantity {
  783. width: 100%;
  784. display: inline-block;
  785. margin-top: 7rpx;
  786. }
  787. }
  788. .list-details-price {
  789. width: 100%;
  790. .floor-item-act{
  791. height: 54rpx;
  792. text-align: center;
  793. box-sizing: border-box;
  794. float: left;
  795. .floor-tags{
  796. height:28rpx;
  797. border-radius: 6rpx;
  798. background-color: #FFFFFF;
  799. line-height: 28rpx;
  800. color: $color-system;
  801. text-align: center;
  802. display: inline-block;
  803. padding:0 16rpx;
  804. font-size: $font-size-20;
  805. margin-left: 15rpx;
  806. border: 1px solid #E15616;
  807. }
  808. }
  809. .price-icon {
  810. width: 22rpx;
  811. height: 28rpx;
  812. vertical-align: middle;
  813. margin-right: 10rpx;
  814. }
  815. .price-icon + text {
  816. font-size: 25rpx;
  817. vertical-align: middle;
  818. }
  819. .list-login-now {
  820. width: 375rpx;
  821. color: #F8C499;
  822. .p-no{
  823. float: left;
  824. font-size: $font-size-24;
  825. color: $color-system;
  826. margin-right: 10rpx;
  827. }
  828. }
  829. .login-now {
  830. padding: 10rpx 10rpx 10rpx 0;
  831. }
  832. .list-none{
  833. margin-top: 15rpx;
  834. .price-small{
  835. font-size:$font-size-24;
  836. line-height: 40rpx;
  837. color: #FF2A2A;
  838. }
  839. }
  840. .list-price-loding{
  841. font-size:$font-size-24;
  842. line-height: 54rpx;
  843. color: #FF2A2A;
  844. }
  845. .list-shop{
  846. float: left;
  847. overflow: hidden;
  848. &.com{
  849. width: 100%;
  850. }
  851. .list-price {
  852. color: #FF2A2A;
  853. float: left;
  854. line-height:54rpx ;
  855. align-items: center;
  856. justify-content: center;
  857. .price-larger {
  858. font-size: $font-size-26;
  859. display: inline-block;
  860. &.none{
  861. text-decoration: line-through;
  862. color: #999999;
  863. }
  864. }
  865. .list-price-all{
  866. width: 100%;
  867. float: left;
  868. }
  869. .zuhe_price-larger{
  870. width: 100%;
  871. float: left;
  872. height: 54rpx;
  873. color: #666666;
  874. .price-larger{
  875. float: left;
  876. margin-right: 20rpx;
  877. }
  878. }
  879. .price-two{
  880. color: #666666;
  881. float: left;
  882. }
  883. .zuhe_list_zj{
  884. color: #FF2A2A;
  885. }
  886. .price-view{
  887. display: inline-block;
  888. width: 40rpx;
  889. border-radius: 10rpx;
  890. font-size: $font-size-22;
  891. text-align: center;
  892. color: #FFFFFF;
  893. height: 36rpx;
  894. line-height: 36rpx;
  895. margin-right: 8rpx;
  896. &.ladder{
  897. background: linear-gradient(135deg,rgba(255,0,0,1) 0%,rgba(242,143,49,1) 100%);
  898. }
  899. &.activity{
  900. background: linear-gradient(135deg,rgba(128,0,255,1) 0%,rgba(242,49,153,1) 100%);
  901. }
  902. }
  903. }
  904. .zuhe_list_price .price-view{
  905. margin-left:20rpx;
  906. float: left;
  907. margin-top: 5rpx;
  908. }
  909. .zuhe_list_price{
  910. width: 100%;
  911. overflow: hidden;
  912. margin-top: 10rpx;
  913. }
  914. .count{
  915. float: right;
  916. border: 1px solid #EEEEEE;
  917. border-radius: 10rpx;
  918. .number-box{
  919. display: flex;
  920. justify-content: center;
  921. align-items: center;
  922. .iconfont{
  923. font-size: $font-size-24;
  924. padding:0 16rpx;
  925. color: $text-color;
  926. text-align: center;
  927. line-height: 48rpx;
  928. font-weight: bold;
  929. }
  930. .btn-input{
  931. width: 100rpx;
  932. height: 48rpx;
  933. line-height: 48rpx;
  934. background: #F8F8F8;
  935. border-radius: 4rpx;
  936. text-align: center;
  937. font-size: $font-size-24;
  938. border-right: 1px solid #EEEEEE;
  939. border-left: 1px solid #EEEEEE;
  940. }
  941. }
  942. }
  943. .list-price-none{
  944. width: 100%;
  945. .price-none{
  946. text-decoration: line-through;
  947. color: #999999;
  948. display: inline-block;
  949. }
  950. .icon-wenhao{
  951. font-size: $font-size-32;
  952. color: #0091FF;
  953. margin-left: 6rpx;
  954. }
  955. }
  956. }
  957. .add-cart-btn {
  958. flex: 4;
  959. width: 140rpx;
  960. height: 54rpx;
  961. line-height: 54rpx;
  962. border-radius: 27rpx;
  963. color: #fff;
  964. font-size: 24rpx;
  965. margin-right: 0;
  966. background:#FFFFFF;
  967. border: 1px solid #C9C9C9;
  968. color: $text-color;
  969. }
  970. .zuhe_btn{
  971. float: right;
  972. }
  973. }
  974. .zuhe_list_price{
  975. display: block !important;
  976. }
  977. .zuhe_list_text{
  978. margin-top: 0;
  979. }
  980. </style>