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