search.vue 22 KB

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