immediatelyList.vue 23 KB

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