jufubao-base 1.0.71-beta2 → 1.0.71-beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.71-beta2",
3
+ "version": "1.0.71-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  <!-- #endif -->
19
19
  <view class="jfb-base-con-list__body" v-if="done">
20
20
  <view
21
- v-if="couponList.length > 0"
21
+ v-if="couponList&&couponList.length > 0"
22
22
  :style="{
23
23
  backgroundImage: `url(${background})`,
24
24
  backgroundSize: '100%',
@@ -29,11 +29,11 @@
29
29
  <view class="jfb-base-con-list__body-content">
30
30
  <view class="jfb-base-con-list__body-content-header">
31
31
  <view class="jfb-base-con-list__body-content-header-left">
32
- <view :style="{ backgroundColor: mainColor }"></view>
32
+ <view :style="{ backgroundColor: '#FF4D4A' }"></view>
33
33
  <view>赠送优惠券</view>
34
34
  </view>
35
35
  <view
36
- :style="{ color: mainColor, backgroundColor: contentBackground }"
36
+ :style="{ color: '#FA2125', backgroundColor: contentBackground }"
37
37
  class="jfb-base-con-list__body-content-header-right"
38
38
  @click="showRule = true"
39
39
  >
@@ -90,7 +90,7 @@
90
90
  >
91
91
  <!-- <view
92
92
  :style="{
93
- color: mainColor,
93
+ color: '#FF4D4A',
94
94
  display: 'flex',
95
95
  alignItems: 'center',
96
96
  fontSize: '28rpx',
@@ -211,8 +211,8 @@ export default {
211
211
  },
212
212
  methods: {
213
213
  init(value) {
214
- this.contentBackground = Color(this.mainColor).alpha(0.2).toString();
215
- this.iconColor = Color(this.mainColor).alpha(0.3).toString();
214
+ this.contentBackground = '#FFF8F8';
215
+ this.iconColor = '#FF4D4A';
216
216
  },
217
217
  getList() {
218
218
  jfbRootExec("getCouponList", {
@@ -238,10 +238,11 @@ export default {
238
238
  )})`,
239
239
  backgroundSize: "100%",
240
240
  backgroundRepeat: "no-repeat",
241
+ backgroundColor: '',
241
242
  margin: "0",
242
243
  }
243
244
  : {
244
- backgroundColor: this.mainColor,
245
+ backgroundColor: '#FB5B3F',
245
246
  margin: "0",
246
247
  };
247
248
  //整块背景
@@ -382,7 +383,7 @@ export default {
382
383
  })
383
384
  .then((res) => {
384
385
  console.log(res, "ajajajajaj");
385
- if (res.list.length > 0) {
386
+ if (res.list&&res.list.length > 0) {
386
387
  this.notice = res.list[0].content;
387
388
  }
388
389
  })
@@ -1,18 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- getCouponList: {
5
- "list": [
6
- {
7
- "prize_id": 25,
8
- "prize_name": "满100减1",
9
- "prize_num": 23
10
- }
11
- ],
12
- "background": "//sandbox-img.jufubao.cn/uploads/20231123/4767f11be07185af4d31c657812dd96f.jpg",
13
- "app_coupon_url": "//sandbox-img.jufubao.cn/uploads/20231123/9709c60e75753585d7bab94699ce1d96.jpg",
14
- "request_id": "60417690eab2c156"
15
- },
4
+ getCouponList: {"list":[
5
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
6
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
7
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
8
+ ],"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg","can_take":"Y","message":"","app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg","app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg","app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png","app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg","request_id":"a2603f2a480485f4"},
16
9
  getAllCoupon: {
17
10
  "request_id": "5987aa28c709d4ef"
18
11
  }