search.vue 19 KB

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