jufubao-base 1.0.116-beta10 → 1.0.116-beta11

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.116-beta10",
3
+ "version": "1.0.116-beta11",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -45,6 +45,7 @@
45
45
  content-align="left"
46
46
  labelPosition="left"
47
47
  labelAlign="left"
48
+ v-if="0"
48
49
  >
49
50
  <view class="flex align-center">
50
51
  <xd-form-input
@@ -207,13 +208,13 @@ export default {
207
208
  this.$set(this.mergeForm, "valid_token", valid_token);
208
209
  },
209
210
  handleToSubmit() {
210
- if (!this.mergeForm.valid_code) {
211
- uni.showToast({
212
- title: "验证码不能为空!",
213
- icon: "none",
214
- });
215
- return;
216
- }
211
+ // if (!this.mergeForm.valid_code) {
212
+ // uni.showToast({
213
+ // title: "验证码不能为空!",
214
+ // icon: "none",
215
+ // });
216
+ // return;
217
+ // }
217
218
  this.$xdConfirm({
218
219
  title: "是否确认合并卡",
219
220
  isHtml: true,
@@ -237,8 +238,8 @@ export default {
237
238
  data: {
238
239
  from_card_number: this.mergeForm.from_card_number,
239
240
  to_card_number: this.mergeForm.to_card_number,
240
- valid_code: this.mergeForm.valid_code,
241
- valid_token: this.mergeForm.valid_token
241
+ // valid_code: this.mergeForm.valid_code,
242
+ // valid_token: this.mergeForm.valid_token
242
243
  },
243
244
  })
244
245
  .then((res) => {
@@ -69,7 +69,7 @@ export default {
69
69
  className: 'input80',
70
70
  },
71
71
  {
72
- label: '展示商品个数:',
72
+ label: '展示商品总数:',
73
73
  ele: 'el-input',
74
74
  type: 'number',
75
75
  valueKey: 'number',
@@ -16,11 +16,15 @@
16
16
  </view>
17
17
  <!-- #endif -->
18
18
  <view class="jfb-base-con-flash-home__body">
19
- <view class="jfb-base-con-flash-home__body-wrap">
19
+ <view
20
+ :style="{ flexDirection: position === 1 ? 'row' : 'row-reverse' }"
21
+ class="jfb-base-con-flash-home__body-wrap"
22
+ >
20
23
  <view
21
24
  :style="{
22
25
  backgroundImage: `url(${secondBackground})`,
23
26
  backgroundSize: '100% 100%',
27
+ marginRight: position === 1 ? '0' : '20rpx',
24
28
  }"
25
29
  class="jfb-base-con-flash-home__body-wrap-session"
26
30
  >
@@ -38,38 +42,43 @@
38
42
  </view>
39
43
  </view>
40
44
  <swiper
41
- :vertical="true"
42
- :autoplay="false"
45
+ :vertical="productShowType === 'top'"
46
+ :autoplay="productShowType !== 'regular'"
43
47
  class="jfb-base-con-flash-home__body-wrap-product"
48
+ :style="{
49
+ marginRight: position === 1 ? '0' : '20rpx',
50
+ }"
44
51
  >
45
- <swiper-item v-for="(item, index) in 5" :key="index">
46
- <view class="jfb-base-con-flash-home__body-wrap-product-item">
47
- <image
48
- src="https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac"
49
- ></image>
50
- <view class="jfb-base-con-flash-home__body-wrap-product-item-name"
51
- >方家铺子中宁四星红枸杞250g</view
52
- >
53
- <view class="prod_price" v-if="isPrice === 'Y'">
54
- <xd-unit
55
- :price="200"
56
- :isOld="false"
57
- color="#000000"
58
- :iconSize="0.3"
59
- :fontSize="38"
60
- />
61
- <!-- todo -->
52
+ <swiper-item v-for="(item, index) in product_group" :key="index">
53
+ <view class="jfb-base-con-flash-home__body-wrap-product-group">
54
+ <view v-for="(SItem, SIndex) in item" :key="SIndex">
62
55
  <view
63
- v-if="
64
- isShowDiscount === 'Y' &&
65
- checkDiscountPrice({
66
- market_price: 1200,
67
- sale_price: 1000,
68
- })
69
- "
70
- class="prod_oldPrice"
71
- >原价:{{ dividePrice(1200) }}</view
56
+ class="jfb-base-con-flash-home__body-wrap-product-group-item"
57
+ :style="{
58
+ marginLeft: SIndex === 0&&position === 2 ? '0' : '20rpx',
59
+ }"
72
60
  >
61
+ <image :src="SItem.img"></image>
62
+ <view
63
+ class="jfb-base-con-flash-home__body-wrap-product-group-item-name"
64
+ >{{ SItem.name }}</view
65
+ >
66
+ <view class="prod_price" v-if="isPrice === 'Y'">
67
+ <xd-unit
68
+ :price="SItem.sale_price"
69
+ :isOld="false"
70
+ color="#000000"
71
+ :iconSize="0.14"
72
+ :fontSize="20"
73
+ />
74
+ <!-- todo -->
75
+ <view
76
+ v-if="isShowDiscount === 'Y' && checkDiscountPrice(SItem)"
77
+ class="prod_oldPrice"
78
+ >原价:{{ dividePrice(SItem.market_price) }}</view
79
+ >
80
+ </view>
81
+ </view>
73
82
  </view>
74
83
  </view>
75
84
  </swiper-item>
@@ -106,6 +115,74 @@ export default {
106
115
  textColor: "",
107
116
  textBgColor: "",
108
117
  isPrice: "Y",
118
+ productList: [
119
+ {
120
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
121
+ name: "方家铺子中宁四星红枸杞250g",
122
+ market_price: 1200,
123
+ sale_price: 1000,
124
+ },
125
+ {
126
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
127
+ name: "方家铺子中宁四星红枸杞250g",
128
+ market_price: 1200,
129
+ sale_price: 1000,
130
+ },
131
+ {
132
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
133
+ name: "方家铺子中宁四星红枸杞250g",
134
+ market_price: 1200,
135
+ sale_price: 1000,
136
+ },
137
+ {
138
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
139
+ name: "方家铺子中宁四星红枸杞250g",
140
+ market_price: 1200,
141
+ sale_price: 1000,
142
+ },
143
+ {
144
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
145
+ name: "方家铺子中宁四星红枸杞250g",
146
+ market_price: 1200,
147
+ sale_price: 1000,
148
+ },
149
+ {
150
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
151
+ name: "方家铺子中宁四星红枸杞250g",
152
+ market_price: 1200,
153
+ sale_price: 1000,
154
+ },
155
+ {
156
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
157
+ name: "方家铺子中宁四星红枸杞250g",
158
+ market_price: 1200,
159
+ sale_price: 1000,
160
+ },
161
+ {
162
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
163
+ name: "方家铺子中宁四星红枸杞250g",
164
+ market_price: 1200,
165
+ sale_price: 1000,
166
+ },
167
+ {
168
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
169
+ name: "方家铺子中宁四星红枸杞250g",
170
+ market_price: 1200,
171
+ sale_price: 1000,
172
+ },
173
+ {
174
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
175
+ name: "方家铺子中宁四星红枸杞250g",
176
+ market_price: 1200,
177
+ sale_price: 1000,
178
+ },
179
+ {
180
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
181
+ name: "方家铺子中宁四星红枸杞250g",
182
+ market_price: 1200,
183
+ sale_price: 1000,
184
+ },
185
+ ],
109
186
  };
110
187
  },
111
188
  watch: {
@@ -113,6 +190,16 @@ export default {
113
190
  this.init(value);
114
191
  },
115
192
  },
193
+ computed: {
194
+ product_group() {
195
+ let groupedProducts = [];
196
+ for (let i = 0; i < this.productList.length; i += 3) {
197
+ let group = this.productList.slice(i, i + 3);
198
+ groupedProducts.push(group);
199
+ }
200
+ return groupedProducts;
201
+ },
202
+ },
116
203
  created() {
117
204
  this.init(this.container);
118
205
 
@@ -214,11 +301,15 @@ export default {
214
301
 
215
302
  .jfb-base-con-flash-home {
216
303
  &__body {
304
+ uni-swiper {
305
+ height: 258rpx !important;
306
+ }
217
307
  &-wrap {
218
308
  display: flex;
309
+ padding: 20rpx 0 20rpx 20rpx;
219
310
  &-session {
220
- width: 84px;
221
- height: 129px;
311
+ width: 168rpx;
312
+ height: 258rpx;
222
313
  border-radius: 8rpx;
223
314
  display: flex;
224
315
  flex-direction: column-reverse;
@@ -249,33 +340,42 @@ export default {
249
340
  &-product {
250
341
  display: flex;
251
342
  flex: 1;
252
- &-item {
253
- width: 84px;
254
- height: 129px;
255
- border-radius: 8rpx;
256
- background: rgba(255, 255, 255, 1);
343
+ &-group {
257
344
  display: flex;
258
- flex-direction: column;
259
- justify-content: flex-start;
260
- align-items: center;
261
- image {
262
- width: 168rpx;
263
- height: 168rpx;
264
- }
265
- &-name {
266
- font-size: 14rpx;
267
- color: #333;
268
- text-align: left;
269
- vertical-align: top;
345
+ &-item {
346
+ width: 152rpx;
347
+ height: 240rpx;
348
+ border-radius: 8rpx;
349
+ padding: 0 0 15rpx 6rpx;
350
+ background: rgba(255, 255, 255, 1);
351
+ display: flex;
352
+ flex-direction: column;
353
+ justify-content: flex-start;
354
+ align-items: center;
355
+ margin-left: 20rpx;
356
+ box-shadow: 0px 8rpx 16rpx rgba(0, 0, 0, 0.1);
357
+ image {
358
+ width: 168rpx;
359
+ height: 168rpx;
360
+ }
361
+ &-name {
362
+ font-size: 14rpx;
363
+ color: #333;
364
+ text-align: left;
365
+ vertical-align: top;
366
+ }
270
367
  }
271
368
  }
272
369
  }
273
370
  .prod_price {
274
371
  display: flex;
275
372
  align-items: center;
373
+ margin-top: 18rpx;
374
+ width: 100%;
375
+ justify-content: flex-start;
276
376
 
277
377
  .prod_oldPrice {
278
- font-size: 20rpx;
378
+ font-size: 14rpx;
279
379
  text-decoration: line-through;
280
380
  color: #888888;
281
381
  margin-left: 10rpx;
@@ -15,7 +15,7 @@
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-con-phone__body" v-if="done">
17
17
  <view
18
- v-if="couponList && couponList.length > 0"
18
+ v-if="has_times==='Y'"
19
19
  class="jfb-base-con-phone__body-wrap"
20
20
  :style="{
21
21
  height: layoutInfo.bodyMinHeightRpx + 'rpx',
@@ -162,7 +162,7 @@ export default {
162
162
  options: {},
163
163
  activity_id: "",
164
164
  done: false,
165
- couponList: [],
165
+ has_times: 'N',
166
166
  errmessage: "",
167
167
  showOhoneNumber: "", //仅用于展示
168
168
  order_num: null,
@@ -216,7 +216,7 @@ export default {
216
216
  })
217
217
  .then((res) => {
218
218
  console.log(res, "res");
219
- this.couponList = [{}] || res.list;
219
+ this.has_times = res.has_times;
220
220
  this.showBtn = res.phone_button;
221
221
  this.btnOneName = res.button_name_one;
222
222
  this.btnTwoName = res.button_name_two;
@@ -1,5 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getCouponPhoneList: {
5
+ "list":[
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
+ {"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}
9
+ ],
10
+ "background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
11
+ "used_up_url": "",
12
+ "has_times": "Y",
13
+ "can_take":"Y",
14
+ "message":"",
15
+ "app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
16
+ "app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
17
+ "app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
18
+ "app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
19
+ "app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
20
+ "rule":"<p>打发&middot;</p>",
21
+ "request_id":"a2603f2a480485f4"
22
+ },
23
+ getAllCouponPhone: {
24
+ "request_id": "5987aa28c709d4ef"
25
+ }
5
26
  }