金诚优选前端代码
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.

613 lines
20 KiB

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