my-shop.vue 23 KB

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