secondHand.vue 19 KB

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