newVip.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <view :style="[newVipWrapStyle]" v-if="couponList.length || productList.length || newcomer_integral">
  3. <view class="newVip2" :style="[newVip2Background,newVipBorderRadius]" v-if="dataConfig.styleConfig.tabVal">
  4. <view class="header acea-row row-between row-middle">
  5. <view class="title-box acea-row row-middle">
  6. <image :src="`${imgHost}/statics/images/newVip1.png`" class="image"></image>
  7. <view class="info">超值优惠 限时专享</view>
  8. </view>
  9. <view class="more" @click="goNewList">去逛逛<text class="iconfont icon-ic_rightarrow"></text></view>
  10. </view>
  11. <view class="wrapper">
  12. <view class="coupon" v-if="couponList.length && dataConfig.checkboxInfo.type.includes(1)">
  13. <view class="title">新人红包</view>
  14. <view class="content">
  15. <scroll-view scroll-x="true">
  16. <view class="list acea-row">
  17. <view v-for="item in couponList" class="item">
  18. <view class="back" :style="[couponStyle]"></view>
  19. <view class="money" :style="[moneyStyle]">
  20. <view v-if="item.coupon_type == 1">¥<text class="number">{{ item.coupon_price }}</text></view>
  21. <view v-else-if="item.coupon_type == 2"><text class="number">{{ parseFloat(item.coupon_price)/10 }}</text>折</view>
  22. </view>
  23. <view v-if="item.use_min_price" class="info" :style="[couponInfoStyle]">满{{ item.use_min_price }}可用</view>
  24. <view v-else class="info" :style="[couponInfoStyle]">无门槛券</view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. </view>
  30. <view class="product" v-if="productList.length && dataConfig.checkboxInfo.type.includes(2)">
  31. <view class="title">新人商品专区</view>
  32. <view class="content">
  33. <scroll-view scroll-x="true">
  34. <view class="list acea-row">
  35. <view class="item" v-for="(item,index) in productList" :key="item.id" @click="goDetail(item)">
  36. <easy-loadimage mode="widthFix" :image-src="item.image" width="144rpx" height="144rpx" borderRadius="12rpx"></easy-loadimage>
  37. <view class="money">¥<text class="number">{{ item.price }}</text></view>
  38. <view class="name line1">{{ item.store_name }}</view>
  39. </view>
  40. </view>
  41. </scroll-view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bonus acea-row row-middle" v-if="dataConfig.checkboxInfo.type.includes(0)">
  46. <image :src="`${imgHost}/statics/images/newVip2.png`" class="image"></image>
  47. <view class="text">
  48. <view class="info acea-row row-middle">
  49. 新用户注册领积分
  50. <view class="red" :style="[bonusRedStyle]">
  51. <view class="inner acea-row row-middle">
  52. <image :src="`${imgHost}/statics/images/newVip3.png`" class="image"></image>
  53. +{{ newcomer_integral }}
  54. </view>
  55. </view>
  56. </view>
  57. <view class="">新用户注册后即可获得积分</view>
  58. </view>
  59. <view class="button" :style="[buttonStyle]" @click="goNewList">去看看</view>
  60. </view>
  61. </view>
  62. <view class="newVip" v-else>
  63. <view class="header acea-row row-between row-middle">
  64. <view class="title">新人专享福利</view>
  65. <view class="more" @click="goNewList">更多优惠<text class="iconfont icon-ic_rightarrow"></text></view>
  66. </view>
  67. <view class="bonus" :style="[bonusStyle]" v-if="dataConfig.checkboxInfo.type.includes(0)">
  68. <view class="inner acea-row row-middle">
  69. <image :src="`${imgHost}/statics/images/newVip3.png`" class="image"></image>
  70. 新用户注册即可
  71. <text class="red" :style="[bonusRedStyle]">赠送积分</text>
  72. </view>
  73. </view>
  74. <view class="coupon" v-if="dataConfig.checkboxInfo.type.includes(1) && couponList.length">
  75. <view class="title">专属优惠券</view>
  76. <view class="content acea-row" :style="[couponContentStyle]">
  77. <scroll-view scroll-x="true">
  78. <view class="list acea-row">
  79. <view v-for="item in couponList" :key="item.id" class="item" :style="[couponStyle]">
  80. <view class="item-top acea-row row-center row-middle">
  81. <view class="money" :style="[moneyStyle]">
  82. <view v-if="item.coupon_type == 1">¥<text class="number">{{ item.coupon_price }}</text></view>
  83. <view v-else-if="item.coupon_type == 2"><text class="number">{{ parseFloat(item.coupon_price)/10 }}</text>折</view>
  84. </view>
  85. </view>
  86. <view class="item-bottom acea-row row-column row-center row-middle">
  87. <view class="name" :style="[couponTypeStyle]">
  88. <text v-if="item.coupon_type == 1">品类券</text>
  89. <text v-else-if="item.coupon_type == 2">商品券</text>
  90. <text v-else-if="item.coupon_type == 3">品牌券</text>
  91. <text v-else>通用券</text>
  92. </view>
  93. <view v-if="item.use_min_price" class="info">满{{ item.use_min_price }}可用</view>
  94. <view v-else class="info">无门槛券</view>
  95. </view>
  96. </view>
  97. </view>
  98. </scroll-view>
  99. <view class="station" :style="[stationStyle]">
  100. <view class="money">¥<text class="number">{{ totalPrice }}</text></view>
  101. <view class="info">新人专享优惠券</view>
  102. <view class="button" :style="[buttonStyle]" @click="goUser">一键领取</view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="product" v-if="productList.length && dataConfig.checkboxInfo.type.includes(2)">
  107. <view class="title">新人商品专区</view>
  108. <view class="content">
  109. <scroll-view scroll-x="true">
  110. <view class="list acea-row">
  111. <view class="item" v-for="(item,index) in productList" :key="item.id" @click="goDetail(item)">
  112. <easy-loadimage mode="widthFix" :image-src="item.image" width="158rpx" height="158rpx" borderRadius="12rpx"></easy-loadimage>
  113. <view class="name line1">{{ item.store_name }}</view>
  114. <view class="money" :style="[productMoneyStyle]">¥<text class="number">{{ item.price }}</text></view>
  115. </view>
  116. </view>
  117. </scroll-view>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </template>
  123. <script>
  124. import {
  125. newcomerList
  126. } from '@/api/api.js';
  127. import {
  128. mapGetters
  129. } from 'vuex';
  130. import {
  131. HTTP_REQUEST_URL
  132. } from '@/config/app';
  133. export default {
  134. computed: mapGetters(['isLogin']),
  135. props: {
  136. dataConfig: {
  137. type: Object,
  138. default: () => {}
  139. },
  140. isSortType: {
  141. type: String | Number,
  142. default: 0
  143. }
  144. },
  145. data() {
  146. return {
  147. imgHost: HTTP_REQUEST_URL,
  148. couponList: [],
  149. productList: [],
  150. newcomer_integral: '',
  151. }
  152. },
  153. created() {
  154. this.getList();
  155. },
  156. computed: {
  157. totalPrice() {
  158. return this.couponList.reduce((total, item) => {
  159. return this.$util.$h.Add(total, item.coupon_price);
  160. }, 0);
  161. },
  162. bonusStyle() {
  163. let styleObject = {};
  164. if (this.dataConfig.toneConfig.tabVal) {
  165. styleObject['border-color'] = this.dataConfig.integralBgColor.color[0].item;
  166. styleObject['background'] = this.dataConfig.integralBgColor.color[0].item;
  167. }
  168. return styleObject;
  169. },
  170. bonusRedStyle() {
  171. let styleObject = {};
  172. if (this.dataConfig.toneConfig.tabVal) {
  173. if (this.dataConfig.styleConfig.tabVal) {
  174. styleObject['background'] = this.dataConfig.integralTxtColor.color[0].item;
  175. styleObject['color'] = this.dataConfig.integralTxtColor.color[0].item;
  176. } else {
  177. styleObject['color'] = this.dataConfig.tipsColor.color[0].item;
  178. }
  179. }
  180. return styleObject;
  181. },
  182. moneyStyle() {
  183. let styleObject = {};
  184. if (this.dataConfig.toneCouponConfig.tabVal) {
  185. styleObject['color'] = this.dataConfig.couponMoneyColor.color[0].item;
  186. }
  187. return styleObject;
  188. },
  189. buttonStyle() {
  190. let styleObject = {};
  191. if (this.dataConfig.toneConfig.tabVal) {
  192. if (this.dataConfig.styleConfig.tabVal) {
  193. styleObject['background'] = `linear-gradient(90deg, ${this.dataConfig.bntColor.color[0].item} 0%, ${this.dataConfig.bntColor.color[1].item} 100%)`;
  194. }
  195. }
  196. if (this.dataConfig.toneCouponConfig.tabVal) {
  197. if (!this.dataConfig.styleConfig.tabVal) {
  198. styleObject['color'] = this.dataConfig.bntTxtColor.color[0].item;
  199. }
  200. }
  201. return styleObject;
  202. },
  203. couponTypeStyle() {
  204. let styleObject = {};
  205. if (this.dataConfig.toneCouponConfig.tabVal) {
  206. styleObject['color'] = this.dataConfig.couponTypeColor.color[0].item;
  207. }
  208. return styleObject;
  209. },
  210. couponStyle() {
  211. let styleObject = {};
  212. if (this.dataConfig.toneCouponConfig.tabVal) {
  213. if (this.dataConfig.styleConfig.tabVal) {
  214. styleObject['margin-right'] = `${this.dataConfig.spacingConfig2.val * 2}rpx`;
  215. styleObject['background'] = this.dataConfig.couponBgColor2.color[0].item;
  216. } else {
  217. styleObject['margin-right'] = `${this.dataConfig.spacingConfig.val * 2}rpx`;
  218. }
  219. }
  220. return styleObject;
  221. },
  222. couponContentStyle() {
  223. let styleObject = {};
  224. if (this.dataConfig.toneCouponConfig.tabVal) {
  225. styleObject['background'] = `linear-gradient(90deg, ${this.dataConfig.couponBgColor.color[0].item} 0%, ${this.dataConfig.couponBgColor.color[1].item} 100%)`;
  226. }
  227. return styleObject;
  228. },
  229. stationStyle() {
  230. let styleObject = {};
  231. if (this.dataConfig.toneCouponConfig.tabVal) {
  232. styleObject['background'] = `linear-gradient(90deg, ${this.dataConfig.vipBgColor.color[0].item} 0%, ${this.dataConfig.vipBgColor.color[1].item} 100%)`;
  233. }
  234. return styleObject;
  235. },
  236. productMoneyStyle() {
  237. let styleObject = {};
  238. if (this.dataConfig.toneGoodsConfig.tabVal) {
  239. styleObject['color'] = this.dataConfig.priceColor.color[0].item;
  240. }
  241. return styleObject;
  242. },
  243. couponInfoStyle() {
  244. let styleObject = {};
  245. if (this.dataConfig.toneCouponConfig.tabVal) {
  246. styleObject['background'] = `linear-gradient(90deg, ${this.dataConfig.bntBgColor.color[1].item} 0%, ${this.dataConfig.bntBgColor.color[0].item} 100%)`;
  247. }
  248. return styleObject;
  249. },
  250. // 组件背景
  251. newVip2Background() {
  252. return {
  253. 'background': `linear-gradient(90deg, ${this.dataConfig.moduleColor.color[0].item} 0%, ${this.dataConfig.moduleColor.color[1].item} 99%)`,
  254. };
  255. },
  256. // 背景圆角
  257. newVipBorderRadius() {
  258. let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
  259. if (this.dataConfig.fillet.type) {
  260. borderRadius =
  261. `${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx`;
  262. }
  263. return {
  264. 'border-radius': borderRadius,
  265. };
  266. },
  267. // 底部背景
  268. newVipWrapStyle() {
  269. return {
  270. 'padding': `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
  271. 'margin-top': `${this.dataConfig.mbConfig.val * 2}rpx`,
  272. 'background': this.dataConfig.bottomBgColor.color[0].item,
  273. };
  274. },
  275. },
  276. watch: {
  277. isLogin: {
  278. handler: function(newV, oldV) {
  279. if (newV) {
  280. this.getList();
  281. }
  282. },
  283. deep: true
  284. }
  285. },
  286. methods: {
  287. goDetail(item) {
  288. uni.navigateTo({
  289. url: `/pages/activity/goods_details/index?id=${item.id}&type=7`
  290. });
  291. },
  292. goNewList() {
  293. uni.navigateTo({
  294. url: `/pages/activity/new_customer/index`
  295. });
  296. },
  297. goUser() {
  298. uni.switchTab({
  299. url: `/pages/users/user_coupon/index`
  300. });
  301. },
  302. getList() {
  303. let limit = this.$config.LIMIT;
  304. newcomerList({
  305. page: 1,
  306. limit: limit,
  307. }).then(res => {
  308. let newcomer_integral = res.data.newcomer_integral;
  309. this.couponList = res.data.newcomer_coupon;
  310. this.productList = res.data.newcomer_products;
  311. if (Array.isArray(newcomer_integral)) {
  312. this.newcomer_integral = 0;
  313. } else {
  314. this.newcomer_integral = newcomer_integral;
  315. }
  316. }).catch(err => {
  317. return this.$util.Tips({
  318. title: err.msg
  319. });
  320. })
  321. }
  322. }
  323. }
  324. </script>
  325. <style lang="scss">
  326. .newVip {
  327. padding: 0 20rpx 40rpx;
  328. border-radius: 16rpx;
  329. background: #FFFFFF;
  330. .header {
  331. height: 96rpx;
  332. .title {
  333. font-weight: bold;
  334. font-size: 32rpx;
  335. color: #333333;
  336. }
  337. .more {
  338. font-size: 24rpx;
  339. color: #999999;
  340. }
  341. .iconfont {
  342. font-size: 24rpx;
  343. }
  344. }
  345. .bonus {
  346. border: 1rpx solid var(--view-theme);
  347. border-radius: 17rpx;
  348. background: var(--view-theme);
  349. .inner {
  350. height: 80rpx;
  351. padding: 0 32rpx;
  352. border-radius: 16rpx;
  353. background: rgba(255, 255, 255, 0.8);
  354. font-size: 26rpx;
  355. color: #333333;
  356. }
  357. .image {
  358. width: 48rpx;
  359. height: 48rpx;
  360. margin-right: 16rpx;
  361. }
  362. .red {
  363. color: var(--view-theme);
  364. }
  365. }
  366. .coupon {
  367. .title {
  368. padding: 28rpx 0 20rpx;
  369. font-weight: bold;
  370. font-size: 28rpx;
  371. line-height: 40rpx;
  372. color: #333333;
  373. }
  374. .content {
  375. position: relative;
  376. padding: 12rpx 190rpx 12rpx 12rpx;
  377. border-radius: 24rpx;
  378. background: linear-gradient(270deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  379. }
  380. .list {
  381. flex-wrap: nowrap;
  382. }
  383. .item {
  384. flex-shrink: 0;
  385. position: relative;
  386. width: 144rpx;
  387. height: 188rpx;
  388. border-radius: 12rpx;
  389. margin-top: 0;
  390. margin-right: 8rpx;
  391. background: radial-gradient(circle at left 94rpx, transparent 6rpx, #FFFFFF 0) top left,
  392. radial-gradient(circle at right 94rpx, transparent 6rpx, #FFFFFF 0) top right;
  393. background-repeat: no-repeat;
  394. background-size: 72rpx 188rpx;
  395. &::before {
  396. content: "";
  397. position: absolute;
  398. top: 94rpx;
  399. right: 10rpx;
  400. left: 10rpx;
  401. border-top: 1rpx dashed #D8D8D8;
  402. }
  403. .item-top,
  404. .item-bottom {
  405. height: 94rpx;
  406. }
  407. .money {
  408. font-weight: 500;
  409. font-size: 28rpx;
  410. color: var(--view-theme);
  411. }
  412. .number {
  413. font-family: SemiBold;
  414. font-size: 40rpx;
  415. }
  416. .name {
  417. font-weight: 500;
  418. font-size: 22rpx;
  419. line-height: 30rpx;
  420. color: var(--view-theme);
  421. }
  422. .info {
  423. margin-top: 4rpx;
  424. font-size: 18rpx;
  425. line-height: 26rpx;
  426. color: #666666;
  427. }
  428. }
  429. .station {
  430. position: absolute;
  431. top: 0;
  432. right: 0;
  433. width: 190rpx;
  434. height: 100%;
  435. padding-top: 40rpx;
  436. border-radius: 0 24rpx 24rpx 0;
  437. background: linear-gradient(270deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  438. &::before {
  439. content: "";
  440. position: absolute;
  441. top: 0;
  442. left: -20rpx;
  443. width: 20rpx;
  444. height: 210rpx;
  445. background: linear-gradient(270deg, rgba(0, 0, 0, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  446. }
  447. .money {
  448. text-align: center;
  449. font-weight: 500;
  450. font-size: 28rpx;
  451. color: #FFFFFF;
  452. }
  453. .number {
  454. font-family: SemiBold;
  455. font-size: 40rpx;
  456. }
  457. .info {
  458. margin-top: 18rpx;
  459. text-align: center;
  460. font-size: 20rpx;
  461. line-height: 28rpx;
  462. color: #FFFFFF;
  463. }
  464. .button {
  465. width: 136rpx;
  466. height: 52rpx;
  467. border-radius: 26rpx;
  468. margin: 12rpx auto 0;
  469. background: #FFFFFF;
  470. text-align: center;
  471. font-weight: 500;
  472. font-size: 22rpx;
  473. line-height: 52rpx;
  474. color: var(--view-theme);
  475. }
  476. }
  477. }
  478. .product {
  479. .title {
  480. padding: 28rpx 0 20rpx;
  481. font-weight: bold;
  482. font-size: 28rpx;
  483. line-height: 40rpx;
  484. color: #333333;
  485. }
  486. .list {
  487. flex-wrap: nowrap;
  488. }
  489. .item {
  490. width: 158rpx;
  491. margin-top: 0;
  492. margin-right: 12rpx;
  493. }
  494. .name {
  495. margin-top: 12rpx;
  496. text-align: center;
  497. font-size: 24rpx;
  498. line-height: 34rpx;
  499. color: #333333;
  500. }
  501. .money {
  502. margin-top: 8rpx;
  503. text-align: center;
  504. font-weight: 600;
  505. font-size: 22rpx;
  506. color: var(--view-theme);
  507. }
  508. .number {
  509. font-family: SemiBold;
  510. font-size: 32rpx;
  511. }
  512. }
  513. }
  514. .newVip2 {
  515. padding: 0 24rpx 32rpx;
  516. border-radius: 24rpx;
  517. background: linear-gradient(270deg, #FF7931 0%, #E93323 100%);
  518. .header {
  519. height: 92rpx;
  520. .info {
  521. position: relative;
  522. padding-left: 12rpx;
  523. margin-left: 16rpx;
  524. font-size: 24rpx;
  525. color: #FFFFFF;
  526. &::before {
  527. content: "";
  528. position: absolute;
  529. top: 50%;
  530. left: 0;
  531. width: 1rpx;
  532. height: 20rpx;
  533. background-color: #FFFFFF;
  534. transform: translateY(-50%);
  535. }
  536. }
  537. .more {
  538. font-size: 24rpx;
  539. color: #FFFFFF;
  540. }
  541. .iconfont {
  542. font-size: 24rpx;
  543. }
  544. .image {
  545. width: 156rpx;
  546. height: 28rpx;
  547. }
  548. }
  549. .wrapper {
  550. border-radius: 16rpx;
  551. background: #FFFFFF;
  552. }
  553. .coupon {
  554. padding-bottom: 20rpx;
  555. .title {
  556. padding: 24rpx 20rpx 20rpx;
  557. font-weight: bold;
  558. font-size: 28rpx;
  559. line-height: 40rpx;
  560. color: #333333;
  561. }
  562. .list {
  563. flex-wrap: nowrap;
  564. padding-left: 20rpx;
  565. }
  566. .item {
  567. flex-shrink: 0;
  568. position: relative;
  569. width: 152rpx;
  570. height: 168rpx;
  571. margin-top: 0;
  572. margin-right: 24rpx;
  573. }
  574. .back {
  575. position: absolute;
  576. bottom: 0;
  577. left: 0;
  578. width: 152rpx;
  579. height: 148rpx;
  580. border-radius: 20rpx;
  581. background: var(--view-theme);
  582. }
  583. .money {
  584. position: absolute;
  585. bottom: 12rpx;
  586. left: 6rpx;
  587. width: 140rpx;
  588. height: 156rpx;
  589. padding-top: 36rpx;
  590. border: 2rpx solid #FCEAE9;
  591. border-radius: 20rpx;
  592. background: #FFFFFF;
  593. text-align: center;
  594. font-weight: 500;
  595. font-size: 28rpx;
  596. color: var(--view-theme);
  597. .number {
  598. font-family: SemiBold;
  599. font-size: 40rpx;
  600. }
  601. }
  602. .info {
  603. position: absolute;
  604. bottom: 0;
  605. left: 0;
  606. width: 152rpx;
  607. height: 78rpx;
  608. padding-top: 34rpx;
  609. border-radius: 0 0 20rpx 20rpx;
  610. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  611. text-align: center;
  612. font-size: 20rpx;
  613. line-height: 28rpx;
  614. color: #FFFFFF;
  615. &::before {
  616. content: "";
  617. position: absolute;
  618. top: 0;
  619. left: 0;
  620. width: 152rpx;
  621. height: 20rpx;
  622. border: 8rpx solid #FCEAE9;
  623. border-bottom-right-radius: 76rpx 20rpx;
  624. border-bottom-left-radius: 76rpx 20rpx;
  625. border-top-color: transparent;
  626. box-sizing: border-box;
  627. background: #FFFFFF;
  628. }
  629. }
  630. }
  631. .product {
  632. padding-bottom: 20rpx;
  633. .title {
  634. padding: 20rpx 20rpx 20rpx;
  635. font-weight: bold;
  636. font-size: 28rpx;
  637. line-height: 40rpx;
  638. color: #333333;
  639. }
  640. .list {
  641. padding: 0 20rpx;
  642. }
  643. .item {
  644. width: 144rpx;
  645. margin-top: 0;
  646. margin-right: 15rpx;
  647. }
  648. .money {
  649. margin-top: 18rpx;
  650. text-align: center;
  651. font-weight: 500;
  652. font-size: 32rpx;
  653. color: #333333;
  654. }
  655. .number {
  656. font-family: SemiBold;
  657. }
  658. .name {
  659. margin-top: 6rpx;
  660. text-align: center;
  661. font-size: 24rpx;
  662. line-height: 34rpx;
  663. color: #333333;
  664. }
  665. }
  666. .bonus {
  667. padding: 26rpx 26rpx 26rpx 20rpx;
  668. border-radius: 16rpx;
  669. margin-top: 20rpx;
  670. background: #FFFFFF;
  671. .image {
  672. width: 88rpx;
  673. height: 88rpx;
  674. }
  675. .text {
  676. flex: 1;
  677. padding-left: 20rpx;
  678. font-size: 24rpx;
  679. color: #999999;
  680. }
  681. .info {
  682. margin-bottom: 10rpx;
  683. font-weight: bold;
  684. font-size: 30rpx;
  685. line-height: 42rpx;
  686. color: #333333;
  687. }
  688. .red {
  689. border-radius: 16rpx;
  690. margin-left: 8rpx;
  691. background: var(--view-theme);
  692. font-weight: 400;
  693. font-size: 20rpx;
  694. line-height: 32rpx;
  695. color: var(--view-theme);
  696. .image {
  697. width: 24rpx;
  698. height: 24rpx;
  699. }
  700. .inner {
  701. height: 32rpx;
  702. padding: 0 7rpx;
  703. border-radius: 16rpx;
  704. background: rgba(255, 255, 255, 0.9);
  705. }
  706. }
  707. .button {
  708. width: 114rpx;
  709. height: 52rpx;
  710. border-radius: 26rpx;
  711. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  712. text-align: center;
  713. font-weight: 500;
  714. font-size: 22rpx;
  715. line-height: 52rpx;
  716. color: #FFFFFF;
  717. }
  718. }
  719. }
  720. </style>