immediatelyList.vue 27 KB

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