my-shop.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. <template>
  2. <view class="container shop clearfix" :style="{paddingTop:CustomBar+'px'}">
  3. <!-- 主页内容 -->
  4. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  5. <template v-else>
  6. <view class="shop-search-main">
  7. <view class="shop-search">
  8. <text class="iconfont icon-sousuo"></text>
  9. <input class="input" maxlength="20" type="text" value="" v-model.trim="listQuery.keyword" confirm-type="search" @confirm="SubMitSearch()" placeholder="搜索本店铺商品" />
  10. </view>
  11. </view>
  12. <view class="container-shop tui-skeleton">
  13. <!-- 轮播 -->
  14. <view class="product-supplier" @click="goSupplier">
  15. <view class="logo"><img :src="shopLogo" alt=""></view>
  16. <view class="main">
  17. <view class="name">{{ shopName }}</view>
  18. <view class="massgs">
  19. <view class="label">满意度:</view>
  20. <view class="p-stars">
  21. <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="36" :widthInfo="176"></uni-stars>
  22. </view>
  23. <view class="acount">
  24. <text> {{ normalNum }} </text>件商品
  25. </view>
  26. </view>
  27. </view>
  28. <view class="right"><text class="iconfont icon-xiayibu"></text></view>
  29. </view>
  30. <banner :list="bannerImageList"></banner>
  31. </view>
  32. <view class="container-section tui-skeleton" v-if="recommendList.length > 0">
  33. <view class="tab-title">主推商品</view>
  34. <view class="section-product clearfix">
  35. <view class="floor-item" v-for="(item, index) in recommendList" :key="index" @click.stop="navToDetailPage(item.id)">
  36. <image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
  37. <view class="floor-item-content">
  38. <view class="title tui-skeleton-rect">
  39. <text class="mclap">{{item.name}}</text>
  40. </view>
  41. <view class="" v-if="hasLogin">
  42. <template v-if="userIdentity == 4">
  43. <view class="title-none" v-show="item.priceFlag == '1'">
  44. <text class="p big">¥未公开价格</text>
  45. </view>
  46. <view class="title-none" v-show="item.priceFlag == '2'">
  47. <text class="p big">¥价格仅会员可见</text>
  48. </view>
  49. <view class="price tui-skeleton-rect" v-show="item.priceFlag == '0'" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  50. <text class="p sm">¥</text>
  51. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  52. <template v-if="item.actStatus==1">
  53. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  54. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  55. </view>
  56. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  57. </template>
  58. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  59. <view class="floor-tags">阶梯价格</view>
  60. </template>
  61. </view>
  62. </template>
  63. <template v-if="userIdentity == 3">
  64. <template v-if="item.supplierId == shopId">
  65. <view class="title-none" v-if="item.p_price_flag == '1'">
  66. <text class="p big">未公开价格</text>
  67. </view>
  68. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  69. <text class="p sm">¥</text>
  70. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  71. <template v-if="item.actStatus==1">
  72. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  73. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  74. </view>
  75. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  76. </template>
  77. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  78. <view class="floor-tags">阶梯价格</view>
  79. </template>
  80. </view>
  81. </template>
  82. <template v-else>
  83. <view class="no-price">
  84. <view class="p-stars">
  85. <text class="p-no">¥</text>
  86. <uni-grader :grade="Number(item.priceGrade)"></uni-grader>
  87. </view>
  88. </view>
  89. </template>
  90. </template>
  91. <template v-else>
  92. <view class="title-none" v-if="item.priceFlag == '1'">
  93. <text class="p big">未公开价格</text>
  94. </view>
  95. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  96. <text class="p sm">¥</text>
  97. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  98. <template v-if="item.actStatus==1">
  99. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  100. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  101. </view>
  102. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  103. </template>
  104. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  105. <view class="floor-tags">阶梯价格</view>
  106. </template>
  107. </view>
  108. </template>
  109. </view>
  110. <view v-else class="no-price">
  111. <view class="p-stars">
  112. <text class="p-no">¥</text>
  113. <uni-grader :grade="Number(item.priceGrade)"></uni-grader>
  114. <template v-if="item.actStatus==1">
  115. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  116. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  117. </view>
  118. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  119. </template>
  120. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  121. <view class="floor-tags">阶梯价格</view>
  122. </template>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="container-section tui-skeleton">
  130. <view class="tab-title">全部商品</view>
  131. <view class="section-product clearfix">
  132. <view class="floor-item-none" v-if="isEmpty">
  133. <text>暂无数据~</text>
  134. </view>
  135. <view v-else class="floor-item" v-for="(item, index) in productList" :key="index" @click.stop="navToDetailPage(item.p_id)">
  136. <image class="item-img tui-skeleton-fillet" :src="item.p_image" mode="aspectFill"></image>
  137. <view class="floor-item-content">
  138. <view class="title tui-skeleton-rect">
  139. <text class="mclap">{{item.p_name}}</text>
  140. </view>
  141. <view class="" v-if="hasLogin">
  142. <template v-if="userIdentity == 4">
  143. <view class="title-none" v-show="item.p_price_flag == '1'">
  144. <text class="p big">¥未公开价格</text>
  145. </view>
  146. <view class="title-none" v-show="item.p_price_flag == '2'">
  147. <text class="p big">¥价格仅会员可见</text>
  148. </view>
  149. <view class="price tui-skeleton-rect" v-show="item.p_price_flag == '0'" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  150. <text class="p sm">¥</text>
  151. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  152. <template v-if="item.actStatus==1">
  153. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  154. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  155. </view>
  156. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  157. </template>
  158. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  159. <view class="floor-tags">阶梯价格</view>
  160. </template>
  161. </view>
  162. </template>
  163. <template v-if="userIdentity == 3">
  164. <template v-if="item.supplierId == shopId">
  165. <view class="title-none" v-if="item.p_price_flag == '1'">
  166. <text class="p big">未公开价格</text>
  167. </view>
  168. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  169. <text class="p sm">¥</text>
  170. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  171. <template v-if="item.actStatus==1">
  172. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  173. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  174. </view>
  175. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  176. </template>
  177. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  178. <view class="floor-tags">阶梯价格</view>
  179. </template>
  180. </view>
  181. </template>
  182. <template v-else>
  183. <view class="no-price">
  184. <view class="p-stars">
  185. <text class="p-no">¥</text>
  186. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  187. </view>
  188. </view>
  189. </template>
  190. </template>
  191. <template v-else>
  192. <view class="title-none" v-if="item.p_price_flag == '1'">
  193. <text class="p big">未公开价格</text>
  194. </view>
  195. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  196. <text class="p sm">¥</text>
  197. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  198. <template v-if="item.actStatus==1">
  199. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  200. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  201. </view>
  202. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  203. </template>
  204. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  205. <view class="floor-tags">阶梯价格</view>
  206. </template>
  207. </view>
  208. </template>
  209. </view>
  210. <view v-else class="no-price">
  211. <view class="p-stars">
  212. <text class="p-no">¥</text>
  213. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  214. </view>
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. </view>
  220. </template>
  221. <!-- 侧边 -->
  222. <scroll-top v-if="isScrollTop"></scroll-top>
  223. </view>
  224. </template>
  225. <script>
  226. import { mapState,mapMutations} from 'vuex';
  227. import banner from '@/components/cm-module/supplier/banner.vue'
  228. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  229. import authorize from '@/common/config/authorize.js'
  230. export default {
  231. components:{
  232. banner,
  233. uniGrader
  234. },
  235. data() {
  236. return {
  237. userID:0,
  238. supplierId:0,
  239. shopId:0,
  240. iconClass:'icon-aixin',
  241. iconColor:'#ff9100',
  242. isScrollTop:false,
  243. shopName:'',
  244. shopLogo:'',
  245. normalNum:0,
  246. isEmpty:false,
  247. skeletonShow: true,
  248. bannerImageList:[],
  249. recommendList:[],
  250. productList:[],
  251. userIdentity:'',
  252. listQuery:{
  253. keyword: '',
  254. pageSize: 10,
  255. pageNum: 1,
  256. id:0
  257. },
  258. total:0
  259. }
  260. },
  261. onLoad(option) {
  262. this.listQuery.id = this.supplierId = option.shopId
  263. this.$api.getStorage().then((resolve) =>{
  264. this.shopId = resolve.shopID
  265. this.userID = resolve.userID
  266. this.userIdentity = resolve.userIdentity
  267. this.InitShopDataInfo()
  268. }).catch( error =>{
  269. this.InitShopDataInfo()
  270. })
  271. },
  272. filters: {
  273. NumFormat:function(text) {//处理金额
  274. return Number(text).toFixed(2);
  275. },
  276. },
  277. computed: {
  278. ...mapState(['hasLogin','userInfo','isActivity'])
  279. },
  280. methods: {
  281. ...mapMutations(['login','logout']),
  282. InitShopDataInfo(){//初始化请求数据
  283. this.GetSupplierHomeBanner()
  284. this.GetSupplierHomeDeatils()
  285. this.GetSupplierHomeProduct()
  286. this.GetSupplierHomeProductList()
  287. this.skeletonShow =false
  288. },
  289. GetSupplierHomeBanner(){//轮播图
  290. this.ShopService.GetSupplierHomeBanner({supplierId:this.supplierId}).then(response =>{
  291. this.bannerImageList = response.data;
  292. }).catch(error =>{
  293. this.$util.msg(error.msg,2000)
  294. })
  295. },
  296. GetSupplierHomeDeatils(){//商铺详情
  297. this.ShopService.GetSupplierHomeDeatils({supplierId:this.supplierId}).then(response =>{
  298. let data = response.data
  299. this.normalNum = data.normalNum
  300. this.shopName = data.name
  301. this.shopLogo = data.logo
  302. }).catch(error =>{
  303. this.$util.msg(error.msg,2000)
  304. })
  305. },
  306. GetSupplierHomeProduct(){//主推商品
  307. this.ShopService.GetSupplierHomeProduct({supplierId:this.supplierId}).then(response =>{
  308. let data = response.data
  309. this.QueryProductPrice(data)
  310. }).catch(error =>{
  311. this.$util.msg(error.msg,2000)
  312. })
  313. },
  314. GetSupplierHomeProductList(){//全部商品
  315. this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
  316. let data = JSON.parse(response.data)
  317. let dataList = data.items
  318. console.log(data)
  319. this.total = data.total
  320. if(this.total>0){
  321. this.isEmpty = false
  322. this.productList = dataList
  323. this.QueryProductPrice1(this.productList)
  324. }else{
  325. this.isEmpty = true
  326. }
  327. }).catch(error =>{
  328. this.$util.msg(error.msg,2000)
  329. })
  330. },
  331. GetMoreSupplierHomeProductList(){//加载分页
  332. this.listQuery.pageNum +=1
  333. this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
  334. let data = JSON.parse(response.data)
  335. console.log(data)
  336. this.total = data.total
  337. this.productList = this.productList.concat(data.items)
  338. this.QueryProductPrice1(this.productList)
  339. }).catch(error =>{
  340. this.$util.msg(error.msg,2000)
  341. })
  342. },
  343. QueryProductPrice(data){//处理主推商品商品或者活动价格
  344. let productIdArr = [];
  345. let productIds ='';
  346. data.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  347. productIdArr.push(item.id)
  348. })
  349. productIds = productIdArr.join(",");
  350. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  351. this.recommendList = this.ReturnNewProducts(data,response.data);
  352. console.log(this.recommendList)
  353. }).catch(error =>{
  354. this.$util.msg(error.msg,2000)
  355. })
  356. },
  357. QueryProductPrice1(data){//获取商品或者活动价格
  358. let productIdArr = [];
  359. let productIds ='';
  360. data.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  361. productIdArr.push(item.p_id)
  362. })
  363. productIds = productIdArr.join(",");
  364. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  365. this.productList = this.ReturnNewProducts1(data,response.data);
  366. console.log(this.productList)
  367. }).catch(error =>{
  368. this.$util.msg(error.msg,2000)
  369. })
  370. },
  371. ReturnNewProducts(listA,listB){
  372. let NewArray = []
  373. listA.map(item=>{
  374. for (let i = 0; i < listB.length; i++) {
  375. if( item.id == listB[i].productId ){
  376. NewArray.push(Object.assign(item,listB[i]))
  377. }
  378. }
  379. });
  380. return NewArray
  381. },
  382. ReturnNewProducts1(listA,listB){
  383. let NewArray = []
  384. listA.map(item=>{
  385. for (let i = 0; i < listB.length; i++) {
  386. if( item.p_id == listB[i].productId ){
  387. NewArray.push(Object.assign(item,listB[i]))
  388. }
  389. }
  390. });
  391. return NewArray
  392. },
  393. SubMitSearch() {//搜索
  394. if (this.listQuery.keyword == '') {
  395. this.$util.msg('请输入商品关键词',2000);
  396. return
  397. }
  398. this.listQuery.pageNum = 1
  399. this.GetSupplierHomeProductList()
  400. },
  401. PromotionsFormat(promo){//促销活动类型数据处理
  402. if(promo!=null){
  403. if(promo.type == 1 && promo.mode == 1){
  404. return true
  405. }else{
  406. return false
  407. }
  408. }
  409. return false
  410. },
  411. goSupplier(){//跳供应商资料页
  412. this.$api.navigateTo('/supplier/pages/user/supplier?shopId='+this.shopId)
  413. },
  414. navToDetailPage(id) {//跳转商品详情页
  415. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  416. }
  417. },
  418. onPageScroll(e){//实时获取到滚动的值
  419. if(e.scrollTop>400){
  420. this.isScrollTop = true
  421. }else{
  422. this.isScrollTop = false
  423. }
  424. },
  425. onPullDownRefresh() {//下拉刷新
  426. this.listQuery.pageNum = 1
  427. this.productList =[]
  428. this.InitShopDataInfo()
  429. uni.stopPullDownRefresh()
  430. },
  431. onReachBottom() {//上滑加载分页
  432. if(this.total > this.productList.length){
  433. this.loadding = true
  434. this.pullUpOn = true
  435. this.GetMoreSupplierHomeProductList()
  436. }
  437. },
  438. onShow(){
  439. }
  440. }
  441. </script>
  442. <style lang="scss">
  443. page{
  444. background-color: #F7F7F7;
  445. }
  446. .shop{
  447. width: 100%;
  448. height: auto;
  449. }
  450. .shop-search-main{
  451. width: 100%;
  452. height: 86rpx;
  453. background-color: #FFFFFF;
  454. box-sizing: border-box;
  455. padding:10rpx 24rpx;
  456. position: fixed;
  457. top:0;
  458. left: 0;
  459. z-index: 999;
  460. .shop-search{
  461. width: 100%;
  462. height: 66rpx;
  463. border-radius: 33rpx;
  464. background-color: #F7F7F7;
  465. box-sizing: border-box;
  466. .icon-sousuo{
  467. width: 80rpx;
  468. height: 66rpx;
  469. display: block;
  470. float: left;
  471. color: #707070;
  472. line-height: 66rpx;
  473. text-align: center;
  474. font-size: 36rpx;
  475. }
  476. .input{
  477. width: 580rpx;
  478. height: 66rpx;
  479. box-sizing: border-box;
  480. color: #666666;
  481. overflow: hidden;
  482. font-size: $font-size-24;
  483. }
  484. }
  485. }
  486. .container-shop{
  487. width: 100%;
  488. height: auto;
  489. padding:24rpx;
  490. box-sizing: border-box;
  491. background-color: #FFFFFF;
  492. margin-top: 96rpx;
  493. }
  494. .product-supplier{
  495. width: 100%;
  496. height: 140rpx;
  497. padding: 30rpx 0 10rpx 0;
  498. box-sizing: border-box;
  499. background-color: #FFFFFF;
  500. position: relative;
  501. box-sizing: border-box;
  502. .logo{
  503. width: 128rpx;
  504. height: 92rpx;
  505. float: left;
  506. border: 1px solid #efefef;
  507. border-radius: 6rpx;
  508. image{
  509. width: 100%;
  510. height: 100%;
  511. display: block;
  512. border-radius: 6rpx;
  513. }
  514. }
  515. .main{
  516. width: 470rpx;
  517. height: 92rpx;
  518. float: left;
  519. margin-left: 20rpx;
  520. .name{
  521. width: 100%;
  522. line-height: 46rpx;
  523. float: left;
  524. font-size: $font-size-28;
  525. color: $text-color;
  526. float: right;
  527. overflow: hidden;
  528. text-overflow:ellipsis;
  529. white-space: nowrap;
  530. text-align: left;
  531. }
  532. .massgs{
  533. width: 100%;
  534. line-height: 46rpx;
  535. float: left;
  536. font-size: $font-size-24;
  537. color: #999999;
  538. .label{
  539. float: left;
  540. }
  541. .p-stars{
  542. float: left;
  543. margin-left: 20rpx;
  544. }
  545. .acount{
  546. float: right;
  547. text{
  548. color: $color-system;
  549. }
  550. }
  551. }
  552. }
  553. .icon-xiayibu{
  554. line-height: 154rpx;
  555. display: inline-block;
  556. position: absolute;
  557. width: 48rpx;
  558. top: 0;
  559. right: 0;
  560. color: #b2b2b2;
  561. }
  562. }
  563. .container-section{
  564. width: 100%;
  565. height: auto;
  566. background-color: #F7F7F7;
  567. box-sizing: border-box;
  568. padding: 0 24rpx;
  569. .tab-title{
  570. width: 100%;
  571. height: 88rpx;
  572. line-height: 88rpx;
  573. font-size: $font-size-30;
  574. font-weight: bold;
  575. }
  576. .section-product{
  577. width: 100%;
  578. height: auto;
  579. .floor-item-none{
  580. min-height: 300rpx;
  581. line-height: 300rpx;
  582. text-align: center;
  583. font-size: $font-size-28;
  584. color: #999999;
  585. background-color: #FFFFFF;
  586. border-radius: 20rpx;
  587. }
  588. .floor-item{
  589. width: 341rpx;
  590. height: auto;
  591. margin-right: 20rpx;
  592. font-size: $font-size-24;
  593. color: $text-color;
  594. background: #FFFFFF;
  595. line-height: 36rpx;
  596. border-radius: 2rpx;
  597. margin-bottom: 20rpx;
  598. float: left;
  599. box-sizing: border-box;
  600. padding-bottom: 10rpx;
  601. &:nth-child(2n){
  602. margin-right: 0;
  603. }
  604. .item-img{
  605. width: 341rpx;
  606. height: 341rpx;
  607. border-radius: 2rpx 2rpx 0 0;
  608. display: block;
  609. margin-bottom: 20rpx;
  610. }
  611. .floor-item-content{
  612. width: 311rpx;
  613. padding: 0 15rpx;
  614. }
  615. .floor-item-act{
  616. display: block;
  617. width: 100%;
  618. height: 68rpx;
  619. text-align: center;
  620. box-sizing: border-box;
  621. padding: 16rpx 0;
  622. margin-top: 8rpx;
  623. }
  624. .floor-tags{
  625. height: 36rpx;
  626. border-radius: 6rpx;
  627. background-color: #FFFFFF;
  628. line-height: 36rpx;
  629. color: $color-system;
  630. text-align: center;
  631. display: inline-block;
  632. padding:0 16rpx;
  633. font-size: $font-size-20;
  634. margin-left: 15rpx;
  635. border: 1px solid #E15616;
  636. }
  637. .title-none{
  638. font-size: $font-size-26;
  639. color: #FF2A2A;
  640. line-height: 70rpx;
  641. .btn{
  642. display: inline-block;
  643. float: right;
  644. width: 112rpx;
  645. height: 44rpx;
  646. background: $btn-confirm;
  647. line-height: 44rpx;
  648. font-size: $font-size-24;
  649. color: #FFFFFF;
  650. text-align: center;
  651. border-radius: 22rpx;
  652. margin-top: 17rpx;
  653. }
  654. }
  655. .title{
  656. width: 100%;
  657. height: 72rpx;
  658. display: flex;
  659. flex-direction: column;
  660. margin-bottom: 15rpx;
  661. .mclap{
  662. width: 100%;
  663. line-height:40rpx;
  664. text-overflow:ellipsis;
  665. display: -webkit-box;
  666. word-break: break-all;
  667. -webkit-box-orient: vertical;
  668. -webkit-line-clamp: 2;
  669. overflow: hidden;
  670. font-size: 26rpx;
  671. }
  672. }
  673. .no-price{
  674. height: 54rpx;
  675. line-height: 54rpx;
  676. display: flex;
  677. box-sizing: border-box;
  678. .p-no{
  679. font-size: $font-size-30;
  680. color: $text-color;
  681. display: block;
  682. float: left;
  683. }
  684. .p-stars{
  685. float: left;
  686. }
  687. }
  688. .price{
  689. color: #FF2A2A;
  690. line-height:70rpx;
  691. &.none{
  692. text-decoration: line-through;
  693. color: #999999;
  694. }
  695. .sm{
  696. font-size: $font-size-24;
  697. }
  698. .big{
  699. font-size: $font-size-28;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. </style>