my-shop.vue 23 KB

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