金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

621 lines
20 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="false" :showIcon="true" bgColor="transparent!important"></lf-nav>
  4. <view class="shop-head">
  5. <image class="lf-w-100 lf-h-100" src="https://images.shobserver.com/news/690_390/2021/9/1/72943e71bc5e485584d0a7d5618a00cd.jpg" mode="aspectFill"></image>
  6. </view>
  7. <view class="shop-title">
  8. <view class="shop-flex">
  9. <view class="shop-img">
  10. <image class="shop-img" src="https://images.shobserver.com/news/690_390/2021/9/1/72943e71bc5e485584d0a7d5618a00cd.jpg" mode="aspectFill"></image>
  11. </view>
  12. <view>
  13. <view class="lf-color-black lf-font-36">AIMER MEN爱慕先生</view>
  14. <view class="lf-font-24 lf-color-black">
  15. <text class="lf-iconfont icon-dizhi lf-font-24 lf-color-primary"></text>
  16. <text class="lf-m-l-10">L2</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="function-total">
  21. <view class="lf-row-center lf-flex-column">
  22. <view><text class="lf-iconfont icon-pinglun shop-function"></text></view>
  23. <view class="lf-font-24 lf-color-33">客服</view>
  24. </view>
  25. <view class="lf-row-center lf-flex-column">
  26. <view><text class="lf-iconfont icon-shoucang shop-function"></text></view>
  27. <view class="lf-font-24 lf-color-333">收藏</view>
  28. </view>
  29. <view class="lf-row-center lf-flex-column">
  30. <view><text class="lf-iconfont icon-fenxiang shop-function"></text></view>
  31. <view class="lf-font-24 lf-color-333">分享</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view v-if="title_tab.length">
  36. <u-tabs :list="title_tab" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="title_current" @change="titletabChange"></u-tabs>
  37. </view>
  38. <lf-nocontent v-else></lf-nocontent>
  39. <!-- 推荐 -->
  40. <view v-if="title_current==0">
  41. <view class="lf-row-between lf-p-l-32 lf-p-t-40 lf-p-r-32">
  42. <view class="lf-font-32 lf-color-black lf-font-bold">在售商品</view>
  43. <view class="lf-font-24 lf-color-555">查看全部 <text class="lf-iconfont icon-xiangyou lf-font-24 lf-m-l-10"></text></view>
  44. </view>
  45. <view class="lf-row-between lf-p-l-32 lf-p-r-32 lf-p-t-30 lf-p-b-30" style="flex-wrap: wrap;">
  46. <view class="goods-rom" v-for="(item,index) of list" :key="index">
  47. <u-lazy-load threshold="-450" border-radius="8px 8px 0 0" :image="item.picture" :index="index">
  48. <view class="list-label">已售{{item.sale}}</view>
  49. </u-lazy-load>
  50. <view class="lf-p-20">
  51. <view class="list-title">
  52. {{item.title}}
  53. </view>
  54. <view class="list-price">
  55. <!-- <text>{{item.price}}</text> -->
  56. <lf-price :price="item.price"></lf-price>
  57. <text class="lf-m-l-20 lf-font-24 lf-color-666 lf-line-through">{{item.original_price}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="introduct">
  63. <text class="lf-font-32 lf-color-black">品牌故事</text>
  64. <view class="lf-font-28 lf-color-333 lf-m-t-20">
  65. 在售商品在售商品在售商品在售商品在售商品在售商品在售商品在售在售商品在售商品在售商品在售商品在售商品在售商品在售商品在售在售商品在售商品在售商品在售商品在售商品在售商品在售商品在售在售商品在售商品在售商品在售商品
  66. </view>
  67. </view>
  68. </view>
  69. <view class="lf-p-t-30 lf-p-b-30" v-else>
  70. <view class="lf-m-b-30 lf-flex lf-w-100">
  71. <u-icon name="search" class="search-icon"></u-icon>
  72. <input class="rom-search" type="text" placeholder="请输入商品名称" />
  73. </view>
  74. <view class="special_tab">
  75. <u-tabs :list="tab_list" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="current" @change="tabChange"></u-tabs>
  76. </view>
  77. <swiper :style="{height: '800rpx', width: '750rpx'}" :current="current" @change="swiperChange">
  78. <swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
  79. <scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
  80. <view class="lf-m-t-20"></view>
  81. <lf-waterfall :list="tabItem.list" :listlength="tab_list.length" :tabindex='tabIndex' ref="uWaterfallFather"></lf-waterfall>
  82. <view class="loading-more lf-m-b-10">
  83. <text :class="{'loading-more-text': tabItem.loadingClass}" v-if="tabItem.list.length">{{tabItem.loadingText}}</text>
  84. <lf-nocontent v-else></lf-nocontent>
  85. <!-- <view>
  86. {{tabItem.list.length}}
  87. </view> -->
  88. </view>
  89. </scroll-view>
  90. </swiper-item>
  91. </swiper>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. import lfWaterfall from '@/components/lf-waterfall-shopdetails/lf-waterfall.vue';
  97. export default {
  98. data() {
  99. return {
  100. title_tab: [
  101. {name:'推荐'},
  102. {name:'商品'}
  103. ],
  104. tab_list: [
  105. {
  106. id: 1,
  107. name: '综合',
  108. list: [
  109. {
  110. id: 10,
  111. original_price: "4111.00",
  112. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  113. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  114. price: "2412.00",
  115. product_id: 1008,
  116. sale: 0,
  117. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  118. },
  119. {
  120. id: 10,
  121. original_price: "4111.00",
  122. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  123. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  124. price: "2412.00",
  125. product_id: 1008,
  126. sale: 0,
  127. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  128. },
  129. {
  130. id: 10,
  131. original_price: "4111.00",
  132. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  133. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  134. price: "2412.00",
  135. product_id: 1008,
  136. sale: 0,
  137. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  138. },
  139. {
  140. id: 10,
  141. original_price: "4111.00",
  142. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  143. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  144. price: "2412.00",
  145. product_id: 1008,
  146. sale: 0,
  147. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  148. }
  149. ],
  150. isRefresher: false,
  151. loadingClass: true,
  152. loadingText: '正在加载中',
  153. page: 1,
  154. isPage: true
  155. },
  156. {
  157. id: 2,
  158. name: '销量',
  159. list: [
  160. {
  161. id: 10,
  162. original_price: "4111.00",
  163. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  164. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  165. price: "2412.00",
  166. product_id: 1008,
  167. sale: 0,
  168. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  169. },
  170. {
  171. id: 10,
  172. original_price: "4111.00",
  173. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  174. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  175. price: "2412.00",
  176. product_id: 1008,
  177. sale: 0,
  178. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  179. },
  180. {
  181. id: 10,
  182. original_price: "4111.00",
  183. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  184. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  185. price: "2412.00",
  186. product_id: 1008,
  187. sale: 0,
  188. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  189. }
  190. ],
  191. isRefresher: false,
  192. loadingClass: true,
  193. loadingText: '正在加载中',
  194. page: 1,
  195. isPage: true
  196. },
  197. {
  198. id: 3,
  199. name: '上新',
  200. list: [
  201. {
  202. id: 10,
  203. original_price: "4111.00",
  204. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  205. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  206. price: "2412.00",
  207. product_id: 1008,
  208. sale: 0,
  209. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  210. },
  211. {
  212. id: 10,
  213. original_price: "4111.00",
  214. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  215. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  216. price: "2412.00",
  217. product_id: 1008,
  218. sale: 0,
  219. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  220. },
  221. {
  222. id: 10,
  223. original_price: "4111.00",
  224. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  225. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  226. price: "2412.00",
  227. product_id: 1008,
  228. sale: 0,
  229. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  230. }
  231. ],
  232. isRefresher: false,
  233. loadingClass: true,
  234. loadingText: '正在加载中',
  235. page: 1,
  236. isPage: true
  237. },
  238. {
  239. id: 4,
  240. name: '价格',
  241. list: [
  242. {
  243. id: 10,
  244. original_price: "4111.00",
  245. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  246. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  247. price: "2412.00",
  248. product_id: 1008,
  249. sale: 0,
  250. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  251. },
  252. {
  253. id: 10,
  254. original_price: "4111.00",
  255. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  256. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  257. price: "2412.00",
  258. product_id: 1008,
  259. sale: 0,
  260. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  261. },
  262. {
  263. id: 10,
  264. original_price: "4111.00",
  265. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  266. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  267. price: "2412.00",
  268. product_id: 1008,
  269. sale: 0,
  270. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  271. }
  272. ],
  273. isRefresher: false,
  274. loadingClass: true,
  275. loadingText: '正在加载中',
  276. page: 1,
  277. isPage: true
  278. }
  279. ],
  280. current: 0,
  281. title_current:0,
  282. show_count: 0,
  283. windowHeight: 0,
  284. list: [
  285. {
  286. id: 10,
  287. original_price: "4111.00",
  288. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  289. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  290. price: "2412.00",
  291. product_id: 1008,
  292. sale: 0,
  293. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  294. },
  295. {
  296. id: 10,
  297. original_price: "4111.00",
  298. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  299. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  300. price: "2412.00",
  301. product_id: 1008,
  302. sale: 0,
  303. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  304. },
  305. {
  306. id: 10,
  307. original_price: "4111.00",
  308. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  309. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  310. price: "2412.00",
  311. product_id: 1008,
  312. sale: 0,
  313. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  314. },
  315. {
  316. id: 10,
  317. original_price: "4111.00",
  318. picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png",
  319. pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"],
  320. price: "2412.00",
  321. product_id: 1008,
  322. sale: 0,
  323. title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)"
  324. }
  325. ]
  326. }
  327. },
  328. components: {
  329. lfWaterfall
  330. },
  331. methods: {
  332. tabChange(index){
  333. this.current = index;
  334. this.clearTabItem();
  335. this.getData();
  336. },
  337. titletabChange(index){
  338. this.title_current = index;
  339. },
  340. getData() {
  341. let tab_item = this.tab_list[this.current];
  342. let isPage = false;
  343. tab_item.isPage = isPage;
  344. if(!isPage){
  345. tab_item.loadingClass = false;
  346. tab_item.loadingText = '没有更多数据啦~';
  347. }
  348. tab_item.isRefresher = false;
  349. },
  350. // 滑块下标值变化
  351. swiperChange(event){
  352. this.current = event.detail.current;
  353. if(event.detail.source == '') return; // 如果是被动出发,没有事件类型则不做处理
  354. },
  355. // 页面触底,加载下一页
  356. onScrolltolower(){
  357. let tab_item = this.tab_list[this.current];
  358. if(tab_item.isPage){
  359. tab_item.page = tab_item.page + 1;
  360. this.getData();
  361. }
  362. },
  363. // scroll-view 下拉刷新
  364. onRefresherrefresh(){
  365. this.$u.throttle(() => {
  366. this.clearTabItem();
  367. this.getData();
  368. }, 200);
  369. },
  370. clearTabItem(){
  371. let tab_item = this.tab_list[this.current];
  372. tab_item.page = 1;
  373. tab_item.isPage = true;
  374. tab_item.isRefresher = true;
  375. tab_item.loadingClass = true;
  376. tab_item.loadingText = '正在加载中';
  377. tab_item.list = [];
  378. this.$set(this.tab_list, this.current, tab_item);
  379. // this.$refs.uWaterfallFather[this.current].clear();
  380. }
  381. },
  382. onShow(){
  383. this.windowHeight = getApp().globalData.windowHeight;
  384. },
  385. }
  386. </script>
  387. <style>
  388. page {
  389. background-color: white;
  390. }
  391. </style>
  392. <style lang="scss" scoped>
  393. .search-icon {
  394. position: relative;
  395. bottom: 0;
  396. left: 54rpx;
  397. }
  398. /deep/.input-placeholder{
  399. color: #777;
  400. font-size: 28rpx;
  401. }
  402. .rom-search {
  403. width: 686rpx;
  404. height: 60rpx;
  405. background: #F4F8F8;
  406. border-radius: 30rpx;
  407. padding-left: 74rpx;
  408. font-size: 28rpx;
  409. }
  410. .goods-rom {
  411. border-radius: 20rpx;
  412. width: 333rpx;
  413. height: 497rpx;
  414. background-color: white;
  415. box-shadow: 0px 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  416. &:nth-child(2n) {
  417. margin-right: 0;
  418. }
  419. &:nth-child(n + 3) {
  420. margin-top: 20rpx;
  421. }
  422. }
  423. .introduct {
  424. padding: 0 0 30rpx 32rpx;
  425. }
  426. .com{
  427. width: 100%;
  428. height: 100%;
  429. box-sizing: border-box;
  430. padding: 0rpx 28rpx;
  431. }
  432. .shop-head {
  433. width: 100%;
  434. height: 400rpx;
  435. position: relative;
  436. }
  437. .shop-flex {
  438. display: flex;
  439. padding: 30rpx;
  440. }
  441. .shop-title {
  442. width: 686rpx;
  443. height: 274rpx;
  444. border-radius: 20rpx;
  445. background-color: white;
  446. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  447. margin: 0 auto;
  448. position: relative;
  449. top: -32rpx;
  450. }
  451. .shop-img {
  452. width: 90rpx;
  453. height: 90rpx;
  454. margin-right: 15rpx;
  455. }
  456. .shop-function {
  457. width: 80rpx;
  458. height: 80rpx;
  459. border-radius: 50%;
  460. font-size: 40rpx;
  461. }
  462. .function-total {
  463. display: flex;
  464. justify-content: space-between;
  465. padding: 0 65rpx 0 65rpx;
  466. }
  467. /deep/.u-scroll-box {
  468. display: flex;
  469. justify-content: center;
  470. align-items: center;
  471. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  472. }
  473. /deep/.u-scroll-box .u-tab-bar {
  474. background-color: #15716E!important;
  475. width: 80rpx!important;
  476. position: absolute;
  477. left: 0;
  478. bottom: -12rpx;
  479. }
  480. /deep/.special_tab .u-tabs .u-scroll-box .u-tab-bar {
  481. background-color: #15716E!important;
  482. width: 56rpx!important;
  483. position: absolute;
  484. height: 5rpx!important;
  485. left: 8rpx;
  486. bottom: -4rpx;
  487. }
  488. /deep/ .u-tab-item {
  489. font-size: 28rpx!important;
  490. }
  491. //价格筛选伪类
  492. // /deep/.special_tab .u-tab-item:nth-child(4n) ::after{
  493. // font-size: 48rpx!important;
  494. // content: '';
  495. // color: red;
  496. // }
  497. // loading加载
  498. .loading-more {
  499. align-items: center;
  500. justify-content: center;
  501. padding-top: 10px;
  502. padding-bottom: 10px;
  503. text-align: center;
  504. font-size: 28rpx;
  505. color: #999;
  506. }
  507. .loading-more-text::before {
  508. content: '';
  509. width: 20px;
  510. height: 20px;
  511. display: inline-block;
  512. vertical-align: middle;
  513. -webkit-animation: weuiLoading 1s steps(12, end) infinite;
  514. animation: weuiLoading 1s steps(12, end) infinite;
  515. background-repeat: no-repeat;
  516. background-image: url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E");
  517. background-size: 100%;
  518. }
  519. @keyframes weuiLoading {
  520. 0% {
  521. transform: rotate3d(0, 0, 1, 0deg);
  522. }
  523. 100% {
  524. transform: rotate3d(0, 0, 1, 360deg);
  525. }
  526. }
  527. .list-warter {
  528. border-radius: 20rpx;
  529. margin: 10px 5px;
  530. margin-top: 0px;
  531. background-color: #ffffff;
  532. // padding: 8px;
  533. position: relative;
  534. overflow: hidden;
  535. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  536. }
  537. .u-close {
  538. position: absolute;
  539. top: 32rpx;
  540. right: 32rpx;
  541. }
  542. .list-image {
  543. width: 100%;
  544. border-radius: 4px;
  545. }
  546. .list-title {
  547. font-size: 28rpx;
  548. font-weight: bold;
  549. color: $u-main-color;
  550. }
  551. .list-label{
  552. position: absolute;
  553. bottom: 0;
  554. right: 0;
  555. background-color: rgba(0,0,0,0.5);
  556. width: 140rpx;
  557. height: 48rpx;
  558. border-radius: 20rpx 0rpx 0rpx 0rpx;
  559. font-size: 22rpx;
  560. color: #FFFFFF;
  561. line-height: 48rpx;
  562. text-align: center;
  563. }
  564. .list-tag {
  565. display: flex;
  566. margin-top: 5px;
  567. }
  568. .list-tag-owner {
  569. background-color: $u-type-error;
  570. color: #FFFFFF;
  571. display: flex;
  572. align-items: center;
  573. padding: 4rpx 14rpx;
  574. border-radius: 50rpx;
  575. font-size: 20rpx;
  576. line-height: 1;
  577. }
  578. .list-tag-text {
  579. border: 1px solid $u-type-primary;
  580. color: $u-type-primary;
  581. margin-left: 10px;
  582. border-radius: 50rpx;
  583. line-height: 1;
  584. padding: 4rpx 14rpx;
  585. display: flex;
  586. align-items: center;
  587. border-radius: 50rpx;
  588. font-size: 20rpx;
  589. }
  590. .list-price {
  591. font-size: 30rpx;
  592. color: $u-type-error;
  593. margin-top: 5px;
  594. display: flex;
  595. align-items: center;
  596. }
  597. </style>