index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. <template>
  2. <view class="core">
  3. <!-- nav -->
  4. <u-navbar leftIconSize="0" :placeholder="true" bgColor="#ffffff">
  5. <view class="u-nav-slot" slot="left">
  6. <view class="u-nav-slot__input flex">
  7. <u--input v-model="goodsTitle" @confirm="toGoodsList()" confirmType="search" placeholder="搜索商品" border="none" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399" />
  8. <!-- <view class="u-nav-slot__input__btn" @click="toGoodsList()">搜索</view> -->
  9. </view>
  10. </view>
  11. </u-navbar>
  12. <!-- 固定顶部搜索、分类 -->
  13. <view class="fixed-top">
  14. <view class="fixed-top-classify">
  15. <u-tabs @change="changeClassify" :scrollable="true" :list="classifyList" lineWidth="20" lineHeight="2"
  16. lineColor="#FF8D0B" :activeStyle="{
  17. color: '#333',
  18. transform: 'scale(1.1)'
  19. }" :inactiveStyle="{
  20. color: '#999',
  21. transform: 'scale(1.1)'
  22. }" itemStyle="padding-left: 15px; padding-right: 15px; height: 44px; text-align: center;">
  23. </u-tabs>
  24. </view>
  25. <!-- 盲豆筛选 -->
  26. <view class="fixed-top-screen" v-if="scrollTop > 50">
  27. <view class="fixed-top-screen-content flex">
  28. <view class="fixed-top-screen-content__item flex">
  29. <view class="title">我的盲豆:</view>
  30. <view class="num">{{ initData.coinNum ? `${ initData.coinNum }` : '--' }}</view>
  31. </view>
  32. <view class="fixed-top-screen-content__item flex" @click="changeScreen(1)">
  33. <view class="title">价格</view>
  34. <view class="select flex" v-if="screenIndex == 1">
  35. <image src="../../static/core/core_up.png" mode="" v-if="priceShow" />
  36. <image src="../../static/core/core_down.png" mode="" v-else />
  37. </view>
  38. <view class="select flex" v-else>
  39. <image src="../../static/core/core_null.png" mode="" />
  40. </view>
  41. </view>
  42. <view class="fixed-top-screen-content__item flex" @click="changeScreen(2)">
  43. <view class="title" v-if="!coinActionInfo.min && !coinActionInfo.max">盲豆区间</view>
  44. <view class="title flex" v-else>
  45. <view v-if="coinActionInfo.min">{{ coinActionInfo.min }}</view>
  46. <view v-if="coinActionInfo.max">-{{ coinActionInfo.max }}</view>
  47. <view>{{ coinActionInfo.desc }}</view>
  48. </view>
  49. <u-icon name="arrow-up" size="13" color="#fff" v-if="screenShow"></u-icon>
  50. <u-icon name="arrow-down" size="13" color="#fff" v-else></u-icon>
  51. </view>
  52. <view class="fixed-top-screen-content__coin" v-if="screenShow">
  53. <view class="fixed-top-screen-content__coin__list">
  54. <view class="item flex" :class="{ 'action': coinActionIndex == index }" v-for="(item, index) in coinList" :key="index" @click="selectCoin(item, index)">
  55. <text v-if="item.min">{{ item.min }}</text>
  56. <text v-if="item.max">-{{ item.max }}</text>
  57. <text>{{ item.desc }}</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="core-none"></view>
  65. <!-- 轮播 -->
  66. <view class="core-swiper" v-if="swiperList.length">
  67. <swiper class="core-swiper-centent" circular :indicator-dots="true" :autoplay="true" :interval="3000" indicator-active-color="#fff">
  68. <swiper-item class="swiper-item" v-for="(item, index) in swiperList" :key="index" @click="toPage(item)">
  69. <image :src="item.picUrl" mode=""></image>
  70. </swiper-item>
  71. </swiper>
  72. </view>
  73. <!-- 二级分类 -->
  74. <view class="core-category">
  75. <swiper class="core-category-swiper" :autoplay="false">
  76. <swiper-item class="swiper-item" v-for="(item, index) in classifyIndex == 0 ? classifyListFilter : classifyList[classifyIndex].list" :key="index">
  77. <view class="swiper-item__content" v-for="(items, indexs) in item" :key="indexs">
  78. <image :src="items.picUrl" mode="aspectFit" @click="toCategoryGoods(index, indexs)"></image>
  79. <view class="name">{{ items.name }}</view>
  80. </view>
  81. </swiper-item>
  82. </swiper>
  83. </view>
  84. <!-- 标签商品 -->
  85. <view class="tag-goods" v-for="(item, index) in exclusiveSingle" :key="index">
  86. <image class="tag-goods-imgBg" src="../../static/core/core_bg.png" mode=""></image>
  87. <view class="tag-goods-content">
  88. <view class="tag-goods-content-nav flex">
  89. <view class="tag-goods-content-nav__left flex">
  90. <image src="../../static/core/core_tag.png" mode=""></image>
  91. <view class="title">{{ item.name }}</view>
  92. <image src="../../static/core/core_tag.png" mode=""></image>
  93. </view>
  94. <view class="tag-goods-content-nav__right flex" @click="toTagGoods(item)">
  95. <view class="title">更多</view>
  96. <image src="../../static/core/core_right.png" mode=""></image>
  97. </view>
  98. </view>
  99. <view class="tag-goods-content-list">
  100. <view class="tag-goods-content-list-item flex" v-for="(items, indexs) in item.data" :key="indexs" @click="toGoodsDetail(items)">
  101. <view class="image flex">
  102. <image :src="items.picUrl" mode="aspectFit"></image>
  103. </view>
  104. <view class="title">{{ items.exchangePrice }}盲豆</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 商品列表 -->
  110. <view class="core-goods">
  111. <view class="core-goods-list flex">
  112. <view class="core-goods-list-item flex" v-for="(item, index) in list" :key="index" @click="toGoodsDetail(item)">
  113. <view class="image-wrap flex">
  114. <image :src="item.picUrl" mode="aspectFit"></image>
  115. </view>
  116. <view class="content">
  117. <view class="content-title ells-one">{{ item.title }}</view>
  118. <view class="content-coin flex">
  119. <view class="content-coin__left flex">
  120. <image src="../../static/public/goods_coin.png" mode=""></image>
  121. <view class="num"><text>×</text>{{ item.exchangePrice }}</view>
  122. </view>
  123. <view class="content-coin__right" v-if="item.originPrice">{{ item.originPrice }}</view>
  124. </view>
  125. <view class="content-price">¥{{ $numberFormat(item.value) }}</view>
  126. </view>
  127. </view>
  128. <view class="core-goods-list-item"></view>
  129. </view>
  130. <view class="flex empty" v-if="!list.length">
  131. <view class="center">
  132. <image class="center-img" src="https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/nodata_3.png" mode=""></image>
  133. <view class="center-font">还没有商品</view>
  134. </view>
  135. </view>
  136. </view>
  137. <custom-tab-bar :activeValue="'core'" />
  138. </view>
  139. </template>
  140. <script>
  141. import env from '../../config/env.js'
  142. import $http from '@/utils/request.js'
  143. import CustomTabBar from '../../components/custom-tab-bar/custom-tab-bar.vue'
  144. export default {
  145. components: {
  146. CustomTabBar,
  147. },
  148. data() {
  149. return {
  150. pageNum: 1,
  151. total: 0,
  152. list: [],
  153. exclusiveSingle: [],
  154. categoryId: '',
  155. classifyList: [], // 分类列表
  156. classifyIndex: 0, // 分类选中下标
  157. classifyListFilter: [],
  158. swiperList: [], // 轮播图
  159. goodsTitle: '',
  160. scrollTop: 0,
  161. screenIndex: 0,
  162. priceShow: false,
  163. priceSort: null,
  164. screenShow: false,
  165. initData: {},
  166. coinNum:{
  167. startPrice: null,
  168. endPrice: null
  169. },
  170. coinActionIndex: 0,
  171. coinActionInfo: {},
  172. coinList:[
  173. {
  174. min: null,
  175. max: null,
  176. desc: '全部'
  177. },
  178. {
  179. min: 1,
  180. max: 100,
  181. desc: ''
  182. },
  183. {
  184. min: 101,
  185. max: 200,
  186. desc: ''
  187. },
  188. {
  189. min: 201,
  190. max: 500,
  191. desc: ''
  192. },
  193. {
  194. min: 501,
  195. max: 1000,
  196. desc: ''
  197. },
  198. {
  199. min: 1001,
  200. max: 5000,
  201. desc: ''
  202. },
  203. {
  204. min: 5000,
  205. max: null,
  206. desc: '以上'
  207. },
  208. ],
  209. };
  210. },
  211. onLoad() {
  212. this.pageList()
  213. this.getExclusive()
  214. this.getClassify()
  215. this.getSwiper()
  216. },
  217. onShow() {
  218. if(uni.getStorageSync('token')) {
  219. this.getBean()
  220. }
  221. },
  222. onPageScroll: function(e) {
  223. this.scrollTop = e.scrollTop
  224. },
  225. methods: {
  226. pageList() {
  227. this.pageNum = 1
  228. this.total = 0
  229. this.list = []
  230. this.getList()
  231. },
  232. // 获取分类
  233. getClassify() {
  234. $http.post('/api/v1/mp/user/exchange/category/listTree', {}).then(res => {
  235. if(res.code == 0){
  236. let interval = 10
  237. this.classifyList = res && res.rows
  238. this.classifyList.forEach(item => {
  239. item.picUrl = env.filePublic + item.picUrl.split(',')[0] + '?imageView2/2/w/340'
  240. item.goodsCategoryList.forEach(ele => {
  241. ele.picUrl = env.filePublic + ele.picUrl.split(',')[0] + '?imageView2/2/w/340'
  242. })
  243. item.list = []
  244. if(item.goodsCategoryList.length > interval) {
  245. let num = Math.ceil(item.goodsCategoryList.length / interval)
  246. let arr = []
  247. let a = 0
  248. let stop = interval
  249. for(let i = 1; i <= num; i++) {
  250. arr = item.goodsCategoryList.slice(a, stop)
  251. a = i * interval
  252. stop = stop + interval
  253. }
  254. } else {
  255. item.list.push(item.goodsCategoryList)
  256. }
  257. })
  258. if(this.classifyList.length > interval) {
  259. let num = Math.ceil(this.classifyList.length / interval)
  260. let arr = []
  261. let a = 0
  262. let stop = interval
  263. for(let i = 1; i <= num; i++) {
  264. arr = this.classifyList.slice(a, stop)
  265. a = i * interval
  266. stop = stop + interval
  267. this.classifyListFilter.push(arr)
  268. }
  269. } else {
  270. this.classifyListFilter =[ [ ...this.classifyList ] ]
  271. }
  272. this.classifyList.unshift({ name: '全部', categoryId: '' })
  273. }
  274. })
  275. },
  276. //轮播图
  277. getSwiper() {
  278. $http.post(`/api/v1/mp/user/exchange/banner/list`, {
  279. noToken: true,
  280. location: "top"
  281. }).then(res => {
  282. res.data.forEach(item => item.picUrl = env.filePublic + item.picUrl.split(',')[0])
  283. this.swiperList = res.data
  284. })
  285. },
  286. // 标签商品
  287. async getExclusive() {
  288. let resData = await $http.post(`/api/v1/mp/user/exchange/activity/list`, {
  289. noToken: true
  290. })
  291. let goodsList = []
  292. for (let item of resData.data) {
  293. let resDatas = await $http.post(`/api/v1/mp/user/exchange/goods/list?pageNum=1&pageSize=10`, {
  294. noToken: true,
  295. tagIds: item.tagId
  296. })
  297. goodsList.push({
  298. data: resDatas.rows,
  299. name: item.name,
  300. tagId: item.tagId
  301. })
  302. }
  303. goodsList.forEach(item => {
  304. item.data.forEach(items => {
  305. items.picUrl = env.filePublic + items.picUrl.split(',')[0] + '?imageView2/2/w/340'
  306. })
  307. })
  308. this.exclusiveSingle = goodsList
  309. },
  310. // 商品列表
  311. getList() {
  312. uni.showLoading({
  313. title: '加载中'
  314. });
  315. let data = {
  316. categoryId: this.categoryId,
  317. priceSort: this.priceSort,
  318. ...this.coinNum,
  319. noToken: true
  320. }
  321. $http.post(`/api/v1/mp/user/exchange/goods/list?pageNum=${this.pageNum}&pageSize=20`,data).then(
  322. res => {
  323. uni.hideLoading();
  324. if (res.code == 0) {
  325. res.rows.forEach(item => {
  326. let picUrlArr = item.picUrl.split(',')
  327. item.picUrl = env.filePublic + picUrlArr[0] + '?imageView2/2/w/340'
  328. })
  329. this.total = res.total
  330. this.list = this.list.concat(res.rows)
  331. }
  332. }).catch(() => {
  333. uni.hideLoading();
  334. })
  335. },
  336. getBean() {
  337. uni.showLoading({
  338. title: '加载中'
  339. });
  340. $http.post('/api/v1/mp/user/mine/init', {}).then(res => {
  341. uni.hideLoading();
  342. if (res.code == 0) {
  343. this.initData = res.data
  344. }
  345. }).catch(() => {
  346. uni.hideLoading();
  347. })
  348. },
  349. // 切换分类
  350. changeClassify(e) {
  351. console.log(e);
  352. this.categoryId = e.categoryId
  353. this.classifyIndex = e.index
  354. this.pageList()
  355. },
  356. // 盲豆筛选切换
  357. changeScreen(num) {
  358. this.screenIndex = num
  359. if(num == 1) {
  360. this.priceShow = !this.priceShow
  361. this.priceSort = this.priceShow ? 1 : 2
  362. this.pageList()
  363. } else if (num == 2) {
  364. this.screenShow = !this.screenShow
  365. this.priceShow = false
  366. this.priceSort = null
  367. }
  368. },
  369. selectCoin(item, index) {
  370. this.coinActionIndex = index
  371. this.coinActionInfo = item
  372. this.screenShow = !this.screenShow
  373. this.coinNum.endPrice = item.max
  374. this.coinNum.startPrice = item.min
  375. this.pageList()
  376. },
  377. // 跳转点击事件
  378. toPage(item) {
  379. if (item.type == "link") {
  380. uni.navigateTo({
  381. url: `/packageOperate/webview/index?url=${ item.linkUrl }`,
  382. })
  383. } else if (item.type == "tag") {
  384. uni.navigateTo({
  385. url: `/packageGoods/goods/list?name=${ item.name }&tagIds=${ item.goodsTags ? item.goodsTags : '' }`
  386. })
  387. }
  388. },
  389. // 商品详情
  390. toGoodsDetail(item) {
  391. uni.navigateTo({
  392. url: `/packageGoods/goods/detail?id=${ item.goodsId }`
  393. })
  394. },
  395. // 商品列表
  396. toGoodsList() {
  397. uni.navigateTo({
  398. url: `/packageGoods/goods/list?title=${ this.goodsTitle }`
  399. })
  400. },
  401. // 商品标签
  402. toTagGoods(item) {
  403. uni.navigateTo({
  404. url: `/packageGoods/goods/list?name=${ item.name }&tagIds=${ item.tagId ? item.tagId : '' }`
  405. })
  406. },
  407. // 商品分类
  408. toCategoryGoods(index, indexs) {
  409. let list = this.classifyIndex == 0 ? this.classifyListFilter : this.classifyList[this.classifyIndex].list
  410. let item = list[index][indexs]
  411. uni.navigateTo({
  412. url: `/packageGoods/goods/list?name=${ item.name }&categoryId=${ item.categoryId ? item.categoryId : '' }`
  413. })
  414. },
  415. },
  416. onReachBottom() {
  417. // 判断是否有数据
  418. if (this.total > this.pageNum * 20) {
  419. setTimeout(() => {
  420. ++this.pageNum
  421. this.getList()
  422. }, 500)
  423. } else {
  424. uni.$u.toast('已经到底了')
  425. }
  426. },
  427. onShareAppMessage(res) {
  428. return {
  429. title: '盲票,玩的就是有趣',
  430. path: '/pages/index/index',
  431. // imageUrl:'../../static/icon/lucky_bg.png',
  432. }
  433. }
  434. }
  435. </script>
  436. <style lang="scss" scoped>
  437. .core {
  438. background-color: #fff;
  439. &-none {
  440. height: 120rpx;
  441. }
  442. }
  443. // 搜索
  444. .u-nav-slot {
  445. text {
  446. font-size: 32rpx;
  447. }
  448. &__input {
  449. position: relative;
  450. height: 70rpx;
  451. width: 518rpx;
  452. padding-left: 30rpx;
  453. background: #F4F5F6;
  454. border-radius: 35rpx;
  455. &__btn {
  456. z-index: 200;
  457. width: 140rpx;
  458. height: 70rpx;
  459. line-height: 70rpx;
  460. font-size: 30rpx;
  461. text-align: center;
  462. font-weight: bold;
  463. color: #fff;
  464. background-color: #FF8D0B;
  465. border-radius: 35rpx;
  466. }
  467. }
  468. }
  469. // 固定搜索、分类
  470. .fixed-top {
  471. position: fixed;
  472. z-index: 100;
  473. width: 100%;
  474. background-color: #fff;
  475. // 搜索
  476. &-search {
  477. justify-content: space-between;
  478. padding: 14rpx 30rpx 34rpx;
  479. &__input {
  480. position: relative;
  481. flex: 1;
  482. height: 84rpx;
  483. padding-left: 46rpx;
  484. background: #F4F5F6;
  485. border-radius: 20rpx;
  486. &__btn {
  487. position: absolute;
  488. right: 0;
  489. width: 110rpx;
  490. height: 76rpx;
  491. line-height: 76rpx;
  492. font-size: 34rpx;
  493. text-align: center;
  494. font-weight: bold;
  495. color: #FFC062;
  496. background-color: #333333;
  497. border-radius: 18rpx;
  498. }
  499. }
  500. image {
  501. width: 52rpx;
  502. height: 52rpx;
  503. margin-left: 50rpx;
  504. }
  505. }
  506. // 分类
  507. &-classify {
  508. padding-bottom: 20rpx;
  509. }
  510. // 盲豆筛选
  511. &-screen {
  512. height: 64rpx;
  513. &-content {
  514. position: relative;
  515. justify-content: space-between;
  516. padding: 0 34rpx;
  517. color: #fff;
  518. height: 100%;
  519. background: #F9822C;
  520. &__item {
  521. .title {
  522. margin-right: 14rpx;
  523. }
  524. .select {
  525. flex-direction: column;
  526. image {
  527. width: 18rpx;
  528. height: 26rpx;
  529. }
  530. }
  531. }
  532. &__coin {
  533. position: absolute;
  534. right: 0;
  535. bottom: -390rpx;
  536. width: 200rpx;
  537. height: 390rpx;
  538. background: #FFFFFF;
  539. box-shadow: 0px 0px 2px 0px rgba(100, 100, 100, 0.1);
  540. &__list {
  541. padding-top: 20rpx;
  542. color: #666;
  543. .item {
  544. margin-bottom: 30rpx;
  545. font-size: 26rpx;
  546. line-height: 26rpx;
  547. }
  548. .action {
  549. color: #F9822C;
  550. }
  551. }
  552. }
  553. }
  554. }
  555. }
  556. // 轮播
  557. .core-swiper {
  558. margin: 0 34rpx 20rpx;
  559. border-radius: 16rpx;
  560. &-centent {
  561. height: 300rpx;
  562. .swiper-item {
  563. width: 100%;
  564. height: 100%;
  565. image {
  566. width: 100%;
  567. height: 100%;
  568. border-radius: 16rpx;
  569. }
  570. }
  571. }
  572. }
  573. // 二级分类
  574. .core-category {
  575. width: 100%;
  576. height: 360rpx;
  577. margin-bottom: 34rpx;
  578. padding: 0 34rpx;
  579. &-swiper {
  580. width: 100%;
  581. height: 100%;
  582. .swiper-item {
  583. width: 100%;
  584. height: 100%;
  585. display: flex;
  586. flex-wrap: wrap;
  587. &__content {
  588. display: flex;
  589. align-items: center;
  590. flex-direction: column;
  591. justify-content: space-between;
  592. width: 20%;
  593. height: 50%;
  594. image {
  595. width: 90%;
  596. height: 70%;
  597. }
  598. }
  599. }
  600. }
  601. }
  602. // 标签商品
  603. .tag-goods {
  604. display: flex;
  605. align-items: center;
  606. position: relative;
  607. margin: 0 34rpx 34rpx;
  608. height: 350rpx;
  609. &-imgBg {
  610. position: absolute;
  611. top: 0;
  612. width: 100%;
  613. height: 350rpx;
  614. }
  615. &-content {
  616. width: 100%;
  617. position: absolute;
  618. top: 0;
  619. z-index: 5;
  620. padding: 26rpx 22rpx;
  621. &-nav {
  622. justify-content: space-between;
  623. height: 40rpx;
  624. margin-bottom: 10rpx;
  625. &__left {
  626. image {
  627. width: 40rpx;
  628. height: 30rpx;
  629. }
  630. .title {
  631. font-family: YouSheBiaoTiHei;
  632. font-weight: 400;
  633. font-size: 40rpx;
  634. color: #FFFFFF;
  635. padding: 0 36rpx;
  636. }
  637. }
  638. &__right {
  639. .title {
  640. font-family: YouSheBiaoTiHei;
  641. font-weight: 400;
  642. color: #FFFFFF;
  643. margin-right: 12rpx;
  644. }
  645. image {
  646. width: 22rpx;
  647. height: 20rpx;
  648. }
  649. }
  650. }
  651. &-list {
  652. display: flex;
  653. height: 260rpx;
  654. overflow-x: auto;
  655. &-item {
  656. flex-direction: column;
  657. margin-right: 14rpx;
  658. .image {
  659. width: 180rpx;
  660. height: 180rpx;
  661. background: #FFFFFF;
  662. box-shadow: 0px 0px 4px 0px rgba(100, 100, 100, 0.13);
  663. border-radius: 4rpx;
  664. margin-bottom: 24rpx;
  665. image {
  666. width: 100%;
  667. height: 100%;
  668. }
  669. }
  670. .title {
  671. text-align: center;
  672. line-height: 28rpx;
  673. color: #FFFFFF;
  674. }
  675. }
  676. }
  677. }
  678. }
  679. // 商品列表
  680. .core-goods {
  681. padding: 0 34rpx;
  682. &-list {
  683. width: 100%;
  684. justify-content: space-between;
  685. flex-wrap: wrap;
  686. &-item {
  687. flex-direction: column;
  688. justify-content: flex-start;
  689. width: 48%;
  690. padding-bottom: 32rpx;
  691. background: #FFFFFF;
  692. box-shadow: 0px 0px 3px 0px rgba(100, 100, 100, 0.1);
  693. border-radius: 16rpx;
  694. margin-bottom: 30rpx;
  695. .image-wrap {
  696. width: 100%;
  697. height: 320rpx;
  698. margin-bottom: 16rpx;
  699. image {
  700. width: 100%;
  701. height: 100%;
  702. border-radius: 16rpx 16rpx 0 0;
  703. }
  704. }
  705. .content {
  706. width: 100%;
  707. padding: 0 22rpx;
  708. &-title {
  709. height: 28rpx;
  710. font-size: 28rpx;
  711. line-height: 28rpx;
  712. font-weight: bold;
  713. margin-bottom: 30rpx;
  714. }
  715. &-coin {
  716. height: 34rpx;
  717. font-size: 24rpx;
  718. justify-content: space-between;
  719. margin-bottom: 24rpx;
  720. &__left {
  721. margin-right: 24rpx;
  722. font-size: 28rpx;
  723. font-weight: bold;
  724. text {
  725. font-weight: normal;
  726. }
  727. image {
  728. width: 34rpx;
  729. height: 34rpx;
  730. }
  731. }
  732. &__right {
  733. color: #666666;
  734. text-decoration: line-through;
  735. }
  736. }
  737. &-price {
  738. font-size: 24rpx;
  739. line-height: 24rpx;
  740. color: #666666;
  741. }
  742. }
  743. }
  744. &-item:last-child {
  745. box-shadow: none;
  746. }
  747. }
  748. .empty {
  749. .center {
  750. text-align: center;
  751. &-img {
  752. width: 228rpx;
  753. height: 320rpx;
  754. }
  755. &-font {
  756. font-size: 30rpx;
  757. font-weight: 400;
  758. color: #999999;
  759. margin-bottom: 200rpx;
  760. }
  761. }
  762. }
  763. }
  764. </style>