search.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <template>
  2. <view class="search-container">
  3. <view class="search-main">
  4. <view class="search-tab">
  5. <view class="search-tab-btn" @click="topBubble">
  6. <text>{{ tabValue }}</text>
  7. <text class="iconfont icon-xiangxiajiantou"></text>
  8. </view>
  9. <tui-bubble-popup :show="show" :mask="true" position="absolute" direction="top" @close="topBubble" width="140rpx"
  10. left="10rpx" bottom="0rpx" translateY="100%" triangleRight="60rpx" triangleTop="-22rpx" :maskBgColor="maskBgColor">
  11. <view class="tui-menu-item" @tap="selectTabs(1)">产品</view>
  12. <view class="tui-menu-item" @tap="selectTabs(2)">供应商</view>
  13. <view class="tui-menu-item" @tap="selectTabs(3)">项目仪器</view>
  14. </tui-bubble-popup>
  15. </view>
  16. <view class="gosearch-btn">
  17. <text class="iconfont icon-sousuo"></text>
  18. <input class="input" maxlength="20" :focus="isFocus" type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入关键词" v-model.trim="listQuery.keyword"/>
  19. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click.stop="delInputText()"></text>
  20. </view>
  21. <view class="search-btn" @click="subMitSearch()">搜索</view>
  22. </view>
  23. <view class="search-container-history" v-if="!isShowWrapper">
  24. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  25. <view class="header">
  26. 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  27. </view>
  28. <view class="list">
  29. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view v-else class="commodity-list-wrapper" :style="{'overflow':'auto','height':(listData.length>4? windowHeight + 'px' : 'auto')}">
  34. <scroll-view :style="{'height':(listData.length>4? scrollHeight+'px' : 'auto')}" @scrolltolower="scrolltolower" scroll-y v-if="!showEmpty">
  35. <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)">
  36. <image mode='widthFix' :src="item.p_image" class="list-img" alt="list-img"></image>
  37. <view class="list-details-info">
  38. <view class="list-details-title">{{isInterceptHtmlFn(item.p_name)}}</view>
  39. <text class="list-details-specs">规格:{{item.p_unit}}</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. <view class="floor-item-act" v-if="item.actStatus==1">
  45. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  46. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{ item.price | NumFormat }}</text>
  47. </view>
  48. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  49. </view>
  50. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  51. <view class="floor-tags">阶梯价格</view>
  52. </view>
  53. <view v-if="hasLogin"class="list-price">
  54. <template v-if="userIdentity == 1">
  55. <text v-if="priceLoading" class="price-larger small">正在获取价格...</text>
  56. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  57. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  58. </text>
  59. </template>
  60. <template v-if="userIdentity == 4">
  61. <view class="price-larger" v-if="item.p_price_flag == '1'">
  62. <text class="txt">¥未公开价格</text>
  63. </view>
  64. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  65. <view v-else>
  66. <view class="price-larger" v-if="item.p_price_flag == '2'">
  67. <text class="txt">¥价格仅会员可见</text>
  68. </view>
  69. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  70. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  71. </text>
  72. </view>
  73. </template>
  74. <template v-if="userIdentity == 3">
  75. <template v-if="item.supplierId == shopId">
  76. <view class="price-larger" v-if="item.p_price_flag == '1'">
  77. <text class="txt">¥未公开价格</text>
  78. </view>
  79. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  80. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  81. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  82. </text>
  83. </template>
  84. <template v-else>
  85. <view class="list-login-now">
  86. <text class="p-no">¥</text>
  87. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  88. </view>
  89. </template>
  90. </template>
  91. <template v-if="userIdentity == 2">
  92. <view class="price-larger" v-if="item.p_price_flag == '1'">
  93. <text class="txt">¥未公开价格</text>
  94. </view>
  95. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  96. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  97. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  98. </text>
  99. </template>
  100. </view>
  101. <view v-else class="list-login-now">
  102. <text class="p-no">¥</text>
  103. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view v-if="showLoading && listData.length > 4">
  109. <view class="loading-wrapper loading-wrapper-now" v-if="loadingNow">{{loadingText}}<text v-if="loadingText === '已至底部'">‧ ‧ ‧</text></view>
  110. <view class="loading-wrapper loading-wrapper-btm" v-else>———<text class="btm-text">已至底部</text>———</view>
  111. </view>
  112. </scroll-view>
  113. <view class="empty-container" v-if="showEmpty">
  114. <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/8D/Cmis215XHXWAHCoqAAELHadZ9Xg365.png"></image>
  115. <text class="error-text">抱歉,没有相关商品!</text>
  116. </view>
  117. </view>
  118. <!-- 透明模态层 -->
  119. <modal-layer v-if='isModallayer'></modal-layer>
  120. </view>
  121. </template>
  122. <script>
  123. import { mapState,mapMutations } from 'vuex'
  124. import modalLayer from "@/components/modal-layer"
  125. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  126. import authorize from '@/common/config/authorize.js'
  127. export default {
  128. components: {
  129. modalLayer,
  130. uniGrader
  131. },
  132. data() {
  133. return {
  134. shopId:0,
  135. userID:0,
  136. tabValue:'产品',
  137. themeClass: 'block',
  138. show:false,
  139. userIdentity:'',
  140. identity:2,
  141. searchKeyType:1,
  142. isShowClose:false, //是否显示清空输入框图标
  143. isSearchHistory:false,//是都显示搜索历史
  144. serachRecordList:[],//历史搜索记录
  145. isShowWrapper:false,
  146. isModallayer:false,
  147. isFocus:false,
  148. priceLoading:true,
  149. windowHeight: '',
  150. showEmpty: false,
  151. scrollHeight: '',
  152. listData: [],
  153. productIds:'',//查询价格的商品ID
  154. showLoading: false,
  155. loadingNow: true,
  156. loadingText: '上拉加载更多',
  157. pullFlag: true,
  158. listQuery:{
  159. identity:0,
  160. keyword:'',
  161. sortField:'',
  162. sortType:'',
  163. pageNum: 1,
  164. pageSize: 20,
  165. },
  166. total:0
  167. }
  168. },
  169. onLoad(option) {
  170. this.isFocus = true
  171. if(option.keyWord){
  172. this.listQuery.keyword = option.keyWord
  173. this.setSearchHistoryAdd()
  174. this.getListFromServer()
  175. }
  176. this.initGetSerachRecord()
  177. },
  178. filters: {
  179. NumFormat:function(text) {//处理金额
  180. return Number(text).toFixed(2);
  181. },
  182. },
  183. computed: {
  184. ...mapState(['hasLogin','userInfo'])
  185. },
  186. methods:{
  187. initGetSerachRecord(){
  188. this.$api.getStorage().then((resolve) =>{
  189. this.userID = resolve.userID ? resolve.userID : 0;
  190. this.shopId = resolve.shopID ? resolve.shopID : 0;
  191. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : '';
  192. if(this.userIdentity == 1){
  193. this.listQuery.identity = 1
  194. }else{
  195. this.listQuery.identity = 2
  196. }
  197. this.ProductService.GetProductSearchHistory({userId:this.userID}).then(response =>{
  198. if(response.code == 0){
  199. this.serachRecordList = response.data
  200. }
  201. })
  202. })
  203. },
  204. subMitSearch() {//搜索
  205. if (this.listQuery.keyword == '') {
  206. this.$util.msg('请输入商品关键词',2000);
  207. }else{
  208. switch(this.searchKeyType){
  209. case 1:
  210. this.listData =[]
  211. this.setSearchHistoryAdd()
  212. this.getListFromServer()
  213. this.isFocus = false
  214. break;
  215. case 2:
  216. this.$api.navigateTo(`/pages/search/search-supplier?keyword=${this.listQuery.keyword}`);
  217. break;
  218. case 3:
  219. this.$api.navigateTo(`/pages/search/search-instrument?keyword=${this.listQuery.keyword}`);
  220. break;
  221. }
  222. }
  223. },
  224. scrolltolower() {
  225. if(this.total>this.listData.length && this.pullFlag) {
  226. this.getListFromServer(true);
  227. }
  228. },
  229. getListFromServer(loadMore) {
  230. this.showLoading = true;
  231. this.loadingNow = true;
  232. this.loadingText = '加载中';
  233. this.showEmpty = false;
  234. if(loadMore) {
  235. this.listQuery.pageNum += 1;
  236. }
  237. this.ProductService.GetProductSearchList(this.listQuery).then(response =>{
  238. this.isShowWrapper = true
  239. const resData = JSON.parse(response.data);
  240. const resList = resData.items;
  241. if(resList && resList.length > 0){
  242. this.total = resData.total;
  243. this.showEmpty = false;
  244. if(loadMore) {
  245. this.listData = [...this.listData,...resList];
  246. this.getProductPrice()
  247. } else {
  248. this.listData = [...resList];
  249. this.getProductPrice()
  250. }
  251. // 防上拉暴滑
  252. this.pullFlag = false;
  253. setTimeout(()=>{ this.pullFlag = true; },500)
  254. // 底部提示文案
  255. if(this.totalPage>this.listData.length) {
  256. this.loadingText = '上拉加载更多';
  257. } else {
  258. this.showLoading = true;
  259. this.loadingNow = false;
  260. }
  261. } else {
  262. if(!loadMore) {
  263. this.showEmpty = true;
  264. }
  265. }
  266. }).catch(error =>{
  267. this.$util.msg(error.msg,2000);
  268. })
  269. },
  270. setSearchHistoryAdd(){//添加搜索记录
  271. if (!this.hasLogin) {return false;}
  272. this.ProductService.GetAddProductSearchHistory({userId: this.userID,keyword:this.listQuery.keyword}).then(response =>{
  273. //此为每次搜索同时添加用户的搜索记录
  274. }).catch(error =>{
  275. this.$util.msg(error.msg,2000);
  276. })
  277. },
  278. getProductPrice(){//获取价格
  279. let productIdArr = [];
  280. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  281. productIdArr.push(item.p_id)
  282. })
  283. this.productIds = productIdArr.join(",");
  284. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  285. if (response.data) {
  286. this.listData = this.ReturnNewProducts(this.listData,response.data);
  287. }
  288. this.priceLoading = false;
  289. }).catch(error =>{
  290. this.$util.msg(error.msg,2000)
  291. })
  292. },
  293. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  294. let NewArray = []
  295. Array.map(item=>{
  296. for (let i = 0; i < list.length; i++) {
  297. if( item.p_id == list[i].productId ){
  298. NewArray.push(Object.assign(item,list[i]))
  299. }
  300. }
  301. });
  302. return NewArray
  303. },
  304. PromotionsFormat(promo){//促销活动类型数据处理
  305. if(promo!=null){
  306. if(promo.type == 1 && promo.mode == 1){
  307. return true
  308. }else{
  309. return false
  310. }
  311. }
  312. return false
  313. },
  314. onShowClose () {//输入框输入时触发
  315. this.inputEmpty(this.listQuery.keyword)
  316. },
  317. onFocus () { //输入框获取焦点时触发
  318. this.inputEmpty(this.listQuery.keyword)
  319. this.initGetSerachRecord()
  320. },
  321. delInputText () { //清除输入框内容
  322. this.listQuery.keyword = ''
  323. this.isShowClose = false
  324. this.isShowWrapper = false
  325. this.inputEmpty(this.listQuery.keyword)
  326. this.initGetSerachRecord()
  327. },
  328. keywordsClick (item) {//关键词搜索与历史搜索
  329. this.listQuery.keyword = item;
  330. this.isShowClose = true;
  331. this.subMitSearch();
  332. },
  333. confirmDetele() {//清空历史记录
  334. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  335. this.ProductService.GetDeleteProductSearchHistory({userId:this.userID}).then(response =>{
  336. this.$util.msg('删除成功',2000,true,'success')
  337. this.serachRecordList=[];
  338. }).catch(error =>{
  339. this.$util.msg(error.msg,2000)
  340. })
  341. })
  342. },
  343. inputEmpty(val){
  344. this.isShowWrapper = false
  345. if(val != ''){
  346. this.isShowClose = true
  347. this.isFocus = true
  348. }else{
  349. this.isShowClose = false
  350. this.isFocus = true
  351. }
  352. },
  353. isInterceptHtmlFn(text){
  354. let name = this.$reg.interceptHtmlFn(text)
  355. return name
  356. },
  357. navToDetailPage(id) {
  358. this.isModallayer = true;
  359. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  360. this.isModallayer = false;
  361. },
  362. setScrollHeight() {
  363. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  364. this.windowHeight = windowHeight - 1;
  365. this.scrollHeight = windowHeight - 1;
  366. },
  367. toLoginPage() {
  368. let searchLoginType = 'search'
  369. uni.navigateTo({
  370. url:`/pages/login/login?type=${searchLoginType}`
  371. })
  372. },
  373. selectTabs(index){//选择搜索项
  374. this.show = false
  375. this.searchKeyType = index
  376. switch(index){
  377. case 1:
  378. this.tabValue='产品'
  379. break;
  380. case 2:
  381. this.tabValue='供应商'
  382. break;
  383. case 3:
  384. this.tabValue='项目仪器'
  385. break;
  386. }
  387. },
  388. topBubble() {//显隐搜索项
  389. this.show = !this.show;
  390. },
  391. },
  392. onShow() {
  393. this.setScrollHeight();
  394. }
  395. }
  396. </script>
  397. <style lang="scss">
  398. @import "@/uni.scss";
  399. page{
  400. background-color: #F7F7F7 !important;
  401. }
  402. .search-main{
  403. width: 100%;
  404. height: 88rpx;
  405. position: fixed;
  406. top: 0;
  407. left: 0;
  408. background: #FFFFFF;
  409. z-index: 1001;
  410. box-sizing: border-box;
  411. padding: 9rpx 0;
  412. .search-tab{
  413. width: 160rpx;
  414. height: 70rpx;
  415. line-height: 70rpx;
  416. color: #666666;
  417. font-size: $font-size-24;
  418. text-align: center;
  419. float: left;
  420. position: relative;
  421. .icon-xiangxiajiantou{
  422. margin-left: 10rpx;
  423. font-size: $font-size-30;
  424. }
  425. }
  426. .gosearch-btn{
  427. width: 470rpx;
  428. height: 100%;
  429. float: left;
  430. border-radius: 40rpx;
  431. background: #F0F0F0;
  432. margin: 0 auto;
  433. padding:0 20rpx;
  434. font-size: 28rpx;
  435. line-height: 70rpx;
  436. padding-left: 70rpx;
  437. color: #8A8A8A;
  438. background: #F7F7F7;
  439. position: relative;
  440. box-sizing: border-box;
  441. .icon-sousuo{
  442. width: 70rpx;
  443. height: 70rpx;
  444. line-height: 70rpx;
  445. text-align: center;
  446. display: block;
  447. position: absolute;
  448. left: 0;
  449. top: 0;
  450. font-size: 34rpx;
  451. color: #8A8A8A;
  452. z-index: 10;
  453. }
  454. .icon-shanchu1{
  455. font-size: 36rpx;
  456. color: #8A8A8A;
  457. position: absolute;
  458. right: 24rpx;
  459. top: 0;
  460. padding: 0 10rpx;
  461. z-index: 100;
  462. }
  463. .input{
  464. width: 400rpx;
  465. height: 100%;
  466. float: left;
  467. font-size: $font-size-24;
  468. }
  469. }
  470. .search-btn{
  471. width: 120rpx;
  472. height: 70rpx;
  473. line-height: 70rpx;
  474. float: right;
  475. text-align: center;
  476. color: #666666;
  477. font-size: $font-size-24;
  478. }
  479. }
  480. .search-container{
  481. padding-top: 96rpx;
  482. }
  483. .s-block{
  484. background: #FFFFFF;
  485. .header{
  486. font-size: 32rpx;
  487. padding:40rpx 24rpx 22rpx 24rpx;
  488. line-height: 42rpx;
  489. font-size: 30rpx;
  490. font-weight: bold;
  491. position: relative;
  492. .icon-shanchu{
  493. font-size: 36rpx;
  494. color: #333333;
  495. float: right;
  496. padding: 0 10rpx;
  497. z-index: 10;
  498. font-weight: normal;
  499. }
  500. }
  501. .list{
  502. display: flex;
  503. flex-wrap: wrap;
  504. padding-bottom: 40rpx;
  505. view{
  506. color: #8A8A8A;
  507. font-size: 24rpx;
  508. box-sizing: border-box;
  509. text-align: center;
  510. height: 48rpx;
  511. line-height: 48rpx;
  512. border-radius: 24rpx;
  513. margin:12rpx;
  514. padding:.0 30rpx;
  515. overflow: hidden;
  516. white-space: nowrap;
  517. text-overflow: ellipsis;
  518. background-color: #F3F3F3;
  519. }
  520. }
  521. }
  522. .s-circle{
  523. margin-top: 30rpx;
  524. .header{
  525. font-size: 32rpx;
  526. padding: 30rpx;
  527. border-bottom: 2rpx solid #F9F9F9;
  528. position: relative;
  529. image{
  530. width: 36rpx;
  531. height: 36rpx;
  532. padding: 10rpx;
  533. position: absolute;
  534. right: 40rpx;
  535. top: 24rpx;
  536. }
  537. }
  538. .list{
  539. display: flex;
  540. flex-wrap: wrap;
  541. padding: 0 30rpx 20rpx;
  542. view{
  543. padding: 8rpx 30rpx;
  544. margin: 20rpx 30rpx 0 0;
  545. font-size: 28rpx;
  546. color: #8A8A8A;
  547. background-color: #F7F7F7;
  548. box-sizing: border-box;
  549. text-align: center;
  550. border-radius: 20rpx;
  551. }
  552. }
  553. }
  554. .wanted-block{
  555. margin-top: 30rpx;
  556. .header{
  557. font-size: 32rpx;
  558. padding: 30rpx;
  559. }
  560. .list{
  561. display: flex;
  562. flex-wrap: wrap;
  563. view{
  564. width: 50%;
  565. color: #8A8A8A;
  566. font-size: 28rpx;
  567. box-sizing: border-box;
  568. text-align: center;
  569. padding: 20rpx 0;
  570. border-top: 2rpx solid #FFF;
  571. border-left: 2rpx solid #FFF;
  572. background-color: #F7F7F7;
  573. overflow: hidden;
  574. white-space: nowrap;
  575. text-overflow: ellipsis;
  576. }
  577. }
  578. }
  579. .wanted-circle{
  580. margin-top: 30rpx;
  581. .header{
  582. font-size: 32rpx;
  583. padding: 30rpx;
  584. }
  585. .list{
  586. display: flex;
  587. flex-wrap: wrap;
  588. padding: 0 30rpx 20rpx;
  589. view{
  590. padding: 8rpx 30rpx;
  591. margin: 20rpx 30rpx 0 0;
  592. font-size: 28rpx;
  593. color: #8A8A8A;
  594. background-color: #F7F7F7;
  595. box-sizing: border-box;
  596. text-align: center;
  597. border-radius: 20rpx;
  598. }
  599. }
  600. }
  601. .commodity-list-wrapper {
  602. scroll-view {
  603. height: 100%;
  604. overflow: scroll;
  605. }
  606. .empty-container-image {
  607. margin-top: -300rpx;
  608. }
  609. .toIndexPage {
  610. bottom: 390rpx;
  611. }
  612. .show-more-btn {
  613. width: 276rpx;
  614. height: 52rpx;
  615. line-height: 52rpx;
  616. border: 2rpx solid #D8D8D8;
  617. background: #F7F7F7;
  618. font-size: 26rpx;
  619. margin: 26rpx 0;
  620. position: absolute;
  621. left: 50%;
  622. margin-left: -138rpx;
  623. }
  624. }
  625. .all-type-list-content {
  626. height: 216rpx;
  627. padding: 24rpx;
  628. background: #fff;
  629. margin-bottom: 2rpx;
  630. display: flex;
  631. flex-direction: row;
  632. box-sizing: content-box;
  633. .list-img {
  634. width: 210rpx;
  635. height: 218rpx !important;
  636. margin-right: 26rpx;
  637. border-radius: 10rpx;
  638. border: 2rpx solid #f3f3f3;
  639. }
  640. }
  641. .list-details-info {
  642. width: 466rpx;
  643. display: flex;
  644. flex-direction: column;
  645. font-size: 26rpx;
  646. position: relative;
  647. .list-details-title {
  648. line-height: 38rpx;
  649. text-overflow: ellipsis;
  650. overflow: hidden;
  651. display: -webkit-box;
  652. -webkit-line-clamp: 2;
  653. line-clamp: 2;
  654. -webkit-box-orient: vertical;
  655. }
  656. .list-details-specs {
  657. margin-top: 8rpx;
  658. color: #666666;
  659. }
  660. .list-details-miniQuantity {
  661. margin-top: 7rpx;
  662. }
  663. }
  664. .list-details-price {
  665. width: 100%;
  666. height: 54rpx;
  667. line-height: 54rpx;
  668. position: absolute;
  669. bottom: -10rpx;
  670. right: 0;
  671. .floor-item-act{
  672. height: 54rpx;
  673. text-align: center;
  674. box-sizing: border-box;
  675. float: right;
  676. .floor-tags{
  677. float: right;
  678. height: 36rpx;
  679. border-radius: 4rpx;
  680. background-color: rgba(225, 86, 22, 0.1);
  681. line-height: 36rpx;
  682. color: $color-system;
  683. text-align: center;
  684. display: inline-block;
  685. padding:0 16rpx;
  686. margin-top: 9rpx;
  687. font-size: $font-size-20;
  688. }
  689. }
  690. .price-icon {
  691. width: 22rpx;
  692. height: 28rpx;
  693. vertical-align: middle;
  694. margin-right: 10rpx;
  695. }
  696. .price-icon + text {
  697. font-size: 25rpx;
  698. vertical-align: middle;
  699. }
  700. .list-login-now {
  701. color: #F8C499;
  702. float: left;
  703. line-height: 54rpx;
  704. .p-no{
  705. float: left;
  706. font-size: $font-size-24;
  707. color: $text-color;
  708. }
  709. }
  710. .login-now {
  711. padding: 10rpx 10rpx 10rpx 0;
  712. }
  713. .list-price {
  714. color: #FF2A2A;
  715. height: 44rpx;
  716. float: left;
  717. .price-larger {
  718. width: 100%;
  719. font-size: 32rpx;
  720. &.none{
  721. text-decoration: line-through;
  722. color: #999999;
  723. }
  724. &.small{
  725. font-size: $font-size-24;
  726. }
  727. .txt{
  728. font-size: $font-size-24;
  729. display: inline-block;
  730. line-height: 44rpx;
  731. text-align: left;
  732. float: left;
  733. }
  734. }
  735. }
  736. }
  737. </style>