jufubao-base 1.0.118 → 1.0.119-beta10

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.
@@ -145,7 +145,10 @@
145
145
  :color="mainColor"
146
146
  icon="iconyouhuiquan1-011"
147
147
  ></xd-font-icon>
148
- <view>{{ tabIndex === 1 ? login_name : "转换" }}</view>
148
+ <view class="login_style" :style="{
149
+ backgroundColor: '#FFFFFF',
150
+ ...loginStyle
151
+ }">{{ tabIndex === 1 ? login_name : "转换" }}</view>
149
152
  </view>
150
153
  <view class="jfb-base-card__body-card-item-right">
151
154
  <view class="jfb-base-card__body-card-item-right-top">
@@ -179,7 +182,10 @@
179
182
  </view>
180
183
  <view
181
184
  @click.stop="toDetail(item)"
182
- :style="{ background: mainColor }"
185
+ :style="{
186
+ backgroundColor: mainColor,
187
+ ...lookStyle
188
+ }"
183
189
  >查看</view
184
190
  >
185
191
  </view>
@@ -194,6 +200,8 @@
194
200
  :key="index"
195
201
  :cardInfo="item"
196
202
  :tabIndex="tabIndex"
203
+ :loginStyle="loginStyle"
204
+ :lookStyle="lookStyle"
197
205
  @toDetail="toDetail(item)"
198
206
  @bindLogin="handleBindLogin(item)">
199
207
  </xd-card-v2>
@@ -254,6 +262,22 @@ export default {
254
262
  jwxSDK: (state) => state.jwxSDK,
255
263
  jfbAuthorize: (state) => state.jfbAuthorize,
256
264
  }),
265
+ loginStyle(){
266
+ let style = {};
267
+ if(this.login_text_size) style['fontSize'] = this.login_text_size + 'rpx';
268
+ if(this.login_text_color) style['color'] = this.login_text_color;
269
+ if(this.login_text_bg_color) style['backgroundColor'] = this.login_text_bg_color;
270
+ if(this.login_text_radius) style['borderRadius'] = this.login_text_radius + 'rpx'
271
+ return style;
272
+ },
273
+ lookStyle(){
274
+ let style = {};
275
+ if(this.look_text_size) style['fontSize'] = this.look_text_size + 'rpx';
276
+ if(this.look_text_color) style['color'] = this.look_text_color;
277
+ if(this.look_text_bg_color) style['backgroundColor'] = this.look_text_bg_color;
278
+ if(this.look_text_radius) style['borderRadius'] = this.look_text_radius + 'rpx'
279
+ return style;
280
+ }
257
281
  },
258
282
  watch: {
259
283
  tabIndex(newVal, oldVal) {
@@ -297,6 +321,16 @@ export default {
297
321
  allEntryPath: "", //综合福利入口页
298
322
  disabledUrl: "",
299
323
  cardLayout: "1", //票券布局
324
+
325
+ //样式
326
+ login_text_size: "",
327
+ login_text_color: "",
328
+ login_text_bg_color: "",
329
+ login_text_radius: "",
330
+ look_text_size: "",
331
+ look_text_color: "",
332
+ look_text_bg_color: "",
333
+ look_text_radius: "",
300
334
 
301
335
  showDisabled: 'Y',
302
336
 
@@ -342,6 +376,16 @@ export default {
342
376
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
343
377
  this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
344
378
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
379
+ //样式
380
+ this.login_text_size = getContainerPropsValue(container, 'content.login_text_size', 24);
381
+ this.login_text_color = getContainerPropsValue(container, 'content.login_text_color', '');
382
+ this.login_text_bg_color = getContainerPropsValue(container, 'content.login_text_bg_color', '');
383
+ this.login_text_radius = getContainerPropsValue(container, 'content.login_text_radius', '');
384
+
385
+ this.look_text_size = getContainerPropsValue(container, 'content.look_text_size', 24);
386
+ this.look_text_color = getContainerPropsValue(container, 'content.look_text_color', '');
387
+ this.look_text_bg_color = getContainerPropsValue(container, 'content.look_text_bg_color', '');
388
+ this.look_text_radius = getContainerPropsValue(container, 'content.look_text_radius', '');
345
389
  },
346
390
 
347
391
  handleToLink(path) {
@@ -701,6 +745,11 @@ export default {
701
745
  align-items: center;
702
746
  justify-content: center;
703
747
  font-size: unit(24, rpx);
748
+ .login_style{
749
+ min-width: 80rpx;
750
+ padding: 4rpx 16rpx;
751
+ text-align: center;
752
+ }
704
753
  }
705
754
 
706
755
  &-right {
@@ -43,10 +43,6 @@
43
43
  </view> -->
44
44
  <view class="qrcode_card">
45
45
  <view class="jfb-base-card-detail-entry__body-qrcode">
46
- <view class="qrcode_card-title">
47
- <xd-font-icon style="margin-right: 24rpx;" icon="iconsaoma-02" size="32"></xd-font-icon>
48
- 向商家付款
49
- </view>
50
46
  <view class="barcode_wrap">
51
47
  <view>
52
48
  <image mode="aspectFit" :src="info.barcode"></image>
@@ -321,9 +321,14 @@ export default {
321
321
  otherParams = this.$xdUniHelper.jsonToParams(this.dispatchData);
322
322
  }
323
323
  } catch (error) {}
324
+ let curCoup = this.list[this.currentIndex];
325
+ let linkUrl = this.list_url;
326
+ if(curCoup.show_url){
327
+ linkUrl = curCoup.show_url
328
+ }
324
329
 
325
330
  this.$xdUniHelper.navigateTo({
326
- url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
331
+ url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
327
332
  });
328
333
  },
329
334
  handleClose() {
@@ -153,6 +153,7 @@ export default {
153
153
  done: false,
154
154
  message: "",
155
155
  options: {},
156
+ next_url: "",
156
157
 
157
158
  collectedPath: "",
158
159
  };
@@ -197,6 +198,7 @@ export default {
197
198
  this.used_up_url = res.used_up_url && getServiceUrl(res.used_up_url);
198
199
  this.can_take = res.can_take;
199
200
  this.has_times = res.has_times;
201
+ this.next_url = res.next_url;
200
202
 
201
203
  this.couponList =
202
204
  res.list &&
@@ -258,7 +260,7 @@ export default {
258
260
  });
259
261
  console.log("couponList", this.couponList);
260
262
  this.message = res.message;
261
- this.notice = res.rule;
263
+ this.notice = res.about;
262
264
  this.done = true;
263
265
  })
264
266
  .catch((err) => {
@@ -267,7 +269,7 @@ export default {
267
269
  },
268
270
  toCoupon(){
269
271
  this.$xdUniHelper.navigateTo({
270
- url: this.collectedPath,
272
+ url: this.next_url || this.collectedPath,
271
273
  });
272
274
  },
273
275
  getCoupont(item) {
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description API模型
5
+ * 建议:Ffff=>模块 Xxxx=>自定义名字
6
+ * 获取单记录(getByIdFfffXxxx)
7
+ * 获取列表记录(getByListFfffXxxx)
8
+ * 添加列表记录(addFfffXxxxx)
9
+ * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
+ * 更新列表记录(updateFfffXxxxx)
11
+ * @type {*[]}
12
+ */
13
+ module.exports = [
14
+ {
15
+ mapFnName: 'sendMsgConPhone',
16
+ title: '发送验证码',
17
+ path: '/common/v1/valid_code/sms/send',
18
+ isRule: false,
19
+ data: {
20
+ phone_number: ['手机号', 'String', '必选'],
21
+ biz_name: ['业务名称', 'String', '必选']
22
+ },
23
+ isConsole: true,
24
+ disabled: true,
25
+ },
26
+ {
27
+ mapFnName: 'getCouponPhoneList', //自定义方法名字(必选)
28
+ title: '获取优惠券列表',
29
+ path: '/sms-coupon/v1/activity-prizes-user/list',
30
+ isRule: false,
31
+ params: {
32
+ distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
33
+ namespace: ['业务线', 'String', '必填'],
34
+ },
35
+ isConsole: true,
36
+ disabled: true,
37
+ },
38
+ {
39
+ mapFnName: 'getAllCouponPhone', //自定义方法名字(必选)
40
+ title: '领取优惠券',
41
+ path: '/sms-coupon/v1/activity-prizes-user/set',
42
+ isRule: false,
43
+ params: {
44
+ distribution_method: ['发放方式 entry=主动发放, homed=首页发放,paid=消费后发放,card_binded=绑定卡后发放', 'String', '选填'],
45
+ namespace: ['业务线', 'String', '必填'],
46
+ },
47
+ isConsole: true,
48
+ disabled: true,
49
+ },
50
+ {
51
+ mapFnName: 'getCouponPhoneResult', //自定义方法名字(必选)
52
+ title: '轮询查询活动结果',
53
+ path: '/sms-coupon/v1/activity-prizes-user/get',
54
+ isRule: false,
55
+ params: {
56
+ tmp_order_number: ['tmp_order_number', 'String', '选填'],
57
+ },
58
+ isConsole: true,
59
+ disabled: true,
60
+ },
61
+ {
62
+ mapFnName: 'getUserPhone',
63
+ title: '获取用户信息',
64
+ path: '/passport/v1/user/get',
65
+ isRule: false,
66
+ params: {},
67
+ isConsole: true,
68
+ disabled: true,
69
+ },
70
+ ];
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: [],
9
+ advanced: [],
10
+ };