my-shop.vue 24 KB

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