immediatelyList.vue 23 KB

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