search.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  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.setSearchHistoryAdd()
  217. this.$api.navigateTo(`/pages/search/search-supplier?keyword=${this.listQuery.keyword}`);
  218. break;
  219. case 3:
  220. this.setSearchHistoryAdd()
  221. this.$api.navigateTo(`/pages/search/search-instrument?keyword=${this.listQuery.keyword}`);
  222. break;
  223. }
  224. }
  225. },
  226. scrolltolower() {
  227. if(this.total>this.listData.length && this.pullFlag) {
  228. this.getListFromServer(true);
  229. }
  230. },
  231. getListFromServer(loadMore) {
  232. this.showLoading = true;
  233. this.loadingNow = true;
  234. this.loadingText = '加载中';
  235. this.showEmpty = false;
  236. if(loadMore) {
  237. this.listQuery.pageNum += 1;
  238. }
  239. this.ProductService.GetProductSearchList(this.listQuery).then(response =>{
  240. this.isShowWrapper = true
  241. const resData = JSON.parse(response.data);
  242. const resList = resData.items;
  243. if(resList && resList.length > 0){
  244. this.total = resData.total;
  245. this.showEmpty = false;
  246. if(loadMore) {
  247. this.listData = [...this.listData,...resList];
  248. this.getProductPrice()
  249. } else {
  250. this.listData = [...resList];
  251. this.getProductPrice()
  252. }
  253. // 防上拉暴滑
  254. this.pullFlag = false;
  255. setTimeout(()=>{ this.pullFlag = true; },500)
  256. // 底部提示文案
  257. if(this.totalPage>this.listData.length) {
  258. this.loadingText = '上拉加载更多';
  259. } else {
  260. this.showLoading = true;
  261. this.loadingNow = false;
  262. }
  263. } else {
  264. if(!loadMore) {
  265. this.showEmpty = true;
  266. }
  267. }
  268. }).catch(error =>{
  269. this.$util.msg(error.msg,2000);
  270. })
  271. },
  272. setSearchHistoryAdd(){//添加搜索记录
  273. if (!this.hasLogin) {return false;}
  274. this.ProductService.GetAddProductSearchHistory({userId: this.userID,keyword:this.listQuery.keyword}).then(response =>{
  275. //此为每次搜索同时添加用户的搜索记录
  276. }).catch(error =>{
  277. this.$util.msg(error.msg,2000);
  278. })
  279. },
  280. getProductPrice(){//获取价格
  281. let productIdArr = [];
  282. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  283. productIdArr.push(item.p_id)
  284. })
  285. this.productIds = productIdArr.join(",");
  286. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  287. if (response.data) {
  288. this.listData = this.ReturnNewProducts(this.listData,response.data);
  289. }
  290. this.priceLoading = false;
  291. }).catch(error =>{
  292. this.$util.msg(error.msg,2000)
  293. })
  294. },
  295. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  296. let NewArray = []
  297. Array.map(item=>{
  298. for (let i = 0; i < list.length; i++) {
  299. if( item.p_id == list[i].productId ){
  300. NewArray.push(Object.assign(item,list[i]))
  301. }
  302. }
  303. });
  304. return NewArray
  305. },
  306. PromotionsFormat(promo){//促销活动类型数据处理
  307. if(promo!=null){
  308. if(promo.type == 1 && promo.mode == 1){
  309. return true
  310. }else{
  311. return false
  312. }
  313. }
  314. return false
  315. },
  316. onShowClose () {//输入框输入时触发
  317. this.inputEmpty(this.listQuery.keyword)
  318. },
  319. onFocus () { //输入框获取焦点时触发
  320. this.inputEmpty(this.listQuery.keyword)
  321. this.initGetSerachRecord()
  322. },
  323. delInputText () { //清除输入框内容
  324. this.listQuery.keyword = ''
  325. this.isShowClose = false
  326. this.isShowWrapper = false
  327. this.inputEmpty(this.listQuery.keyword)
  328. this.initGetSerachRecord()
  329. },
  330. keywordsClick (item) {//关键词搜索与历史搜索
  331. this.listQuery.keyword = item;
  332. this.isShowClose = true;
  333. this.subMitSearch();
  334. },
  335. confirmDetele() {//清空历史记录
  336. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  337. this.ProductService.GetDeleteProductSearchHistory({userId:this.userID}).then(response =>{
  338. this.$util.msg('删除成功',2000,true,'success')
  339. this.serachRecordList=[];
  340. }).catch(error =>{
  341. this.$util.msg(error.msg,2000)
  342. })
  343. })
  344. },
  345. inputEmpty(val){
  346. this.isShowWrapper = false
  347. if(val != ''){
  348. this.isShowClose = true
  349. this.isFocus = true
  350. }else{
  351. this.isShowClose = false
  352. this.isFocus = true
  353. }
  354. },
  355. isInterceptHtmlFn(text){
  356. let name = this.$reg.interceptHtmlFn(text)
  357. return name
  358. },
  359. navToDetailPage(id) {
  360. this.isModallayer = true;
  361. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  362. this.isModallayer = false;
  363. },
  364. setScrollHeight() {
  365. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  366. this.windowHeight = windowHeight - 1;
  367. this.scrollHeight = windowHeight - 1;
  368. },
  369. toLoginPage() {
  370. let searchLoginType = 'search'
  371. uni.navigateTo({
  372. url:`/pages/login/login?type=${searchLoginType}`
  373. })
  374. },
  375. selectTabs(index){//选择搜索项
  376. this.show = false
  377. this.searchKeyType = index
  378. switch(index){
  379. case 1:
  380. this.tabValue='产品'
  381. break;
  382. case 2:
  383. this.tabValue='供应商'
  384. break;
  385. case 3:
  386. this.tabValue='项目仪器'
  387. break;
  388. }
  389. },
  390. topBubble() {//显隐搜索项
  391. this.show = !this.show;
  392. },
  393. },
  394. onShow() {
  395. this.setScrollHeight();
  396. }
  397. }
  398. </script>
  399. <style lang="scss">
  400. @import "@/uni.scss";
  401. page{
  402. background-color: #F7F7F7 !important;
  403. }
  404. .search-main{
  405. width: 100%;
  406. height: 88rpx;
  407. position: fixed;
  408. top: 0;
  409. left: 0;
  410. background: #FFFFFF;
  411. z-index: 1001;
  412. box-sizing: border-box;
  413. padding: 9rpx 0;
  414. .search-tab{
  415. width: 160rpx;
  416. height: 70rpx;
  417. line-height: 70rpx;
  418. color: #666666;
  419. font-size: $font-size-24;
  420. text-align: center;
  421. float: left;
  422. position: relative;
  423. .icon-xiangxiajiantou{
  424. margin-left: 10rpx;
  425. font-size: $font-size-30;
  426. }
  427. }
  428. .gosearch-btn{
  429. width: 470rpx;
  430. height: 100%;
  431. float: left;
  432. border-radius: 40rpx;
  433. background: #F0F0F0;
  434. margin: 0 auto;
  435. padding:0 20rpx;
  436. font-size: 28rpx;
  437. line-height: 70rpx;
  438. padding-left: 70rpx;
  439. color: #8A8A8A;
  440. background: #F7F7F7;
  441. position: relative;
  442. box-sizing: border-box;
  443. .icon-sousuo{
  444. width: 70rpx;
  445. height: 70rpx;
  446. line-height: 70rpx;
  447. text-align: center;
  448. display: block;
  449. position: absolute;
  450. left: 0;
  451. top: 0;
  452. font-size: 34rpx;
  453. color: #8A8A8A;
  454. z-index: 10;
  455. }
  456. .icon-shanchu1{
  457. font-size: 36rpx;
  458. color: #8A8A8A;
  459. position: absolute;
  460. right: 24rpx;
  461. top: 0;
  462. padding: 0 10rpx;
  463. z-index: 100;
  464. }
  465. .input{
  466. width: 400rpx;
  467. height: 100%;
  468. float: left;
  469. font-size: $font-size-24;
  470. }
  471. }
  472. .search-btn{
  473. width: 120rpx;
  474. height: 70rpx;
  475. line-height: 70rpx;
  476. float: right;
  477. text-align: center;
  478. color: #666666;
  479. font-size: $font-size-24;
  480. }
  481. }
  482. .search-container{
  483. padding-top: 96rpx;
  484. }
  485. .s-block{
  486. background: #FFFFFF;
  487. .header{
  488. font-size: 32rpx;
  489. padding:40rpx 24rpx 22rpx 24rpx;
  490. line-height: 42rpx;
  491. font-size: 30rpx;
  492. font-weight: bold;
  493. position: relative;
  494. .icon-shanchu{
  495. font-size: 36rpx;
  496. color: #333333;
  497. float: right;
  498. padding: 0 10rpx;
  499. z-index: 10;
  500. font-weight: normal;
  501. }
  502. }
  503. .list{
  504. display: flex;
  505. flex-wrap: wrap;
  506. padding-bottom: 40rpx;
  507. view{
  508. color: #8A8A8A;
  509. font-size: 24rpx;
  510. box-sizing: border-box;
  511. text-align: center;
  512. height: 48rpx;
  513. line-height: 48rpx;
  514. border-radius: 24rpx;
  515. margin:12rpx;
  516. padding:.0 30rpx;
  517. overflow: hidden;
  518. white-space: nowrap;
  519. text-overflow: ellipsis;
  520. background-color: #F3F3F3;
  521. }
  522. }
  523. }
  524. .s-circle{
  525. margin-top: 30rpx;
  526. .header{
  527. font-size: 32rpx;
  528. padding: 30rpx;
  529. border-bottom: 2rpx solid #F9F9F9;
  530. position: relative;
  531. image{
  532. width: 36rpx;
  533. height: 36rpx;
  534. padding: 10rpx;
  535. position: absolute;
  536. right: 40rpx;
  537. top: 24rpx;
  538. }
  539. }
  540. .list{
  541. display: flex;
  542. flex-wrap: wrap;
  543. padding: 0 30rpx 20rpx;
  544. view{
  545. padding: 8rpx 30rpx;
  546. margin: 20rpx 30rpx 0 0;
  547. font-size: 28rpx;
  548. color: #8A8A8A;
  549. background-color: #F7F7F7;
  550. box-sizing: border-box;
  551. text-align: center;
  552. border-radius: 20rpx;
  553. }
  554. }
  555. }
  556. .wanted-block{
  557. margin-top: 30rpx;
  558. .header{
  559. font-size: 32rpx;
  560. padding: 30rpx;
  561. }
  562. .list{
  563. display: flex;
  564. flex-wrap: wrap;
  565. view{
  566. width: 50%;
  567. color: #8A8A8A;
  568. font-size: 28rpx;
  569. box-sizing: border-box;
  570. text-align: center;
  571. padding: 20rpx 0;
  572. border-top: 2rpx solid #FFF;
  573. border-left: 2rpx solid #FFF;
  574. background-color: #F7F7F7;
  575. overflow: hidden;
  576. white-space: nowrap;
  577. text-overflow: ellipsis;
  578. }
  579. }
  580. }
  581. .wanted-circle{
  582. margin-top: 30rpx;
  583. .header{
  584. font-size: 32rpx;
  585. padding: 30rpx;
  586. }
  587. .list{
  588. display: flex;
  589. flex-wrap: wrap;
  590. padding: 0 30rpx 20rpx;
  591. view{
  592. padding: 8rpx 30rpx;
  593. margin: 20rpx 30rpx 0 0;
  594. font-size: 28rpx;
  595. color: #8A8A8A;
  596. background-color: #F7F7F7;
  597. box-sizing: border-box;
  598. text-align: center;
  599. border-radius: 20rpx;
  600. }
  601. }
  602. }
  603. .commodity-list-wrapper {
  604. scroll-view {
  605. height: 100%;
  606. overflow: scroll;
  607. }
  608. .empty-container-image {
  609. margin-top: -300rpx;
  610. }
  611. .toIndexPage {
  612. bottom: 390rpx;
  613. }
  614. .show-more-btn {
  615. width: 276rpx;
  616. height: 52rpx;
  617. line-height: 52rpx;
  618. border: 2rpx solid #D8D8D8;
  619. background: #F7F7F7;
  620. font-size: 26rpx;
  621. margin: 26rpx 0;
  622. position: absolute;
  623. left: 50%;
  624. margin-left: -138rpx;
  625. }
  626. }
  627. .all-type-list-content {
  628. height: 216rpx;
  629. padding: 24rpx;
  630. background: #fff;
  631. margin-bottom: 2rpx;
  632. display: flex;
  633. flex-direction: row;
  634. box-sizing: content-box;
  635. .list-img {
  636. width: 210rpx;
  637. height: 218rpx !important;
  638. margin-right: 26rpx;
  639. border-radius: 10rpx;
  640. border: 2rpx solid #f3f3f3;
  641. }
  642. }
  643. .list-details-info {
  644. width: 466rpx;
  645. display: flex;
  646. flex-direction: column;
  647. font-size: 26rpx;
  648. position: relative;
  649. .list-details-title {
  650. line-height: 38rpx;
  651. text-overflow: ellipsis;
  652. overflow: hidden;
  653. display: -webkit-box;
  654. -webkit-line-clamp: 2;
  655. line-clamp: 2;
  656. -webkit-box-orient: vertical;
  657. }
  658. .list-details-specs {
  659. margin-top: 8rpx;
  660. color: #666666;
  661. }
  662. .list-details-miniQuantity {
  663. margin-top: 7rpx;
  664. }
  665. }
  666. .list-details-price {
  667. width: 100%;
  668. height: 54rpx;
  669. line-height: 54rpx;
  670. position: absolute;
  671. bottom: -10rpx;
  672. right: 0;
  673. .floor-item-act{
  674. height: 54rpx;
  675. text-align: center;
  676. box-sizing: border-box;
  677. float: right;
  678. .floor-tags{
  679. float: right;
  680. height: 36rpx;
  681. border-radius: 4rpx;
  682. background-color: rgba(225, 86, 22, 0.1);
  683. line-height: 36rpx;
  684. color: $color-system;
  685. text-align: center;
  686. display: inline-block;
  687. padding:0 16rpx;
  688. margin-top: 9rpx;
  689. font-size: $font-size-20;
  690. }
  691. }
  692. .price-icon {
  693. width: 22rpx;
  694. height: 28rpx;
  695. vertical-align: middle;
  696. margin-right: 10rpx;
  697. }
  698. .price-icon + text {
  699. font-size: 25rpx;
  700. vertical-align: middle;
  701. }
  702. .list-login-now {
  703. color: #F8C499;
  704. float: left;
  705. line-height: 54rpx;
  706. .p-no{
  707. float: left;
  708. font-size: $font-size-24;
  709. color: $text-color;
  710. }
  711. }
  712. .login-now {
  713. padding: 10rpx 10rpx 10rpx 0;
  714. }
  715. .list-price {
  716. color: #FF2A2A;
  717. height: 44rpx;
  718. float: left;
  719. .price-larger {
  720. width: 100%;
  721. font-size: 32rpx;
  722. &.none{
  723. text-decoration: line-through;
  724. color: #999999;
  725. }
  726. &.small{
  727. font-size: $font-size-24;
  728. }
  729. .txt{
  730. font-size: $font-size-24;
  731. display: inline-block;
  732. line-height: 44rpx;
  733. text-align: left;
  734. float: left;
  735. }
  736. }
  737. }
  738. }
  739. </style>