my-shop.vue 24 KB

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