jufubao-base 1.0.218 → 1.0.220-beta1

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.
@@ -44,6 +44,29 @@ export default {
44
44
  notice: '卡券自定义名称设置,默认值:<span style="color:red">卡券</span>,长度为:1-4字符',
45
45
  inline: false,
46
46
  },
47
+ {
48
+ label: "无票券时是否展示购买新卡入口:",
49
+ ele: "xd-radio",
50
+ valueKey: "isShowBuy",
51
+ value: data.isShowBuy || "N",
52
+ list: [
53
+ { label: "展示", value: "Y" },
54
+ { label: "隐藏", value: "N" }
55
+ ],
56
+ groupKey: "content",
57
+ },
58
+ {
59
+ label: '购买新卡文案:',
60
+ ele: 'el-input',
61
+ type: 'text',
62
+ valueKey: 'buy_name',
63
+ groupKey:'content',
64
+ value: data.buy_name || '',
65
+ placeholder: '请输入购买新卡文案',
66
+ className: 'input80',
67
+ inline: false,
68
+ notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
69
+ },
47
70
 
48
71
  //style
49
72
  {
@@ -519,6 +542,18 @@ export default {
519
542
  router: XdBus.getParentApi('getPagesTree'),
520
543
  },
521
544
  },
545
+ {
546
+ label: '购买新卡地址:',
547
+ ele: 'xd-select-pages-path',
548
+ valueKey: 'buy_new_url',
549
+ groupKey:'advanced',
550
+ placeholder: '请选择购买新卡地址',
551
+ value: data.buy_new_url || null,
552
+ setting: {
553
+ router: XdBus.getParentApi('getPagesTree'),
554
+ },
555
+ inline: false,
556
+ },
522
557
  {
523
558
  label: '',
524
559
  ele: 'slot',
@@ -19,14 +19,26 @@
19
19
  <view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
20
20
  <view class="my-card-add__btn" :style="[titleMarginComp]">
21
21
  <view :style="[titleStyleComp]">我的{{cardName}}</view>
22
- <view class="addBtn" :style="[addBtnStyleComp]" @click="handleToLink(add_url)">
23
- <text>添加{{cardName}}</text>
24
- <view v-if="isShowICONBtn === 'Y'">
25
- <xd-font-icon
26
- icon="iconxiangyou_xian"
27
- :color="addBtnStyleComp.color"
28
- :size="20"
29
- ></xd-font-icon>
22
+ <view style="display:flex">
23
+ <view v-if="isShowBuy==='Y'" class="addBtn" :style="[addBtnStyleComp]" @click="toBuyNew">
24
+ <text>{{buy_name}}</text>
25
+ <view v-if="isShowICONBtn === 'Y'">
26
+ <xd-font-icon
27
+ icon="iconxiangyou_xian"
28
+ :color="addBtnStyleComp.color"
29
+ :size="20"
30
+ ></xd-font-icon>
31
+ </view>
32
+ </view>
33
+ <view class="addBtn" :style="[addBtnStyleComp]" @click="handleToLink(add_url)">
34
+ <text>添加{{cardName}}</text>
35
+ <view v-if="isShowICONBtn === 'Y'">
36
+ <xd-font-icon
37
+ icon="iconxiangyou_xian"
38
+ :color="addBtnStyleComp.color"
39
+ :size="20"
40
+ ></xd-font-icon>
41
+ </view>
30
42
  </view>
31
43
  </view>
32
44
  </view>
@@ -188,7 +200,9 @@
188
200
  is_border: 'Y',
189
201
  is_border_w: 0,
190
202
  is_border_c: '',
191
-
203
+ buy_new_url: '',
204
+ isShowBuy: "",
205
+ buy_name: ""
192
206
  }
193
207
  },
194
208
  watch: {
@@ -211,6 +225,12 @@
211
225
  })
212
226
  },
213
227
 
228
+ toBuyNew() {
229
+ this.$xdUniHelper.navigateTo({
230
+ url: `${this.buy_new_url}`,
231
+ });
232
+ },
233
+
214
234
  /**
215
235
  * @description 监听事件变化
216
236
  * @param container {object} 业务组件对象自己
@@ -258,6 +278,10 @@
258
278
  this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
259
279
  this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
260
280
  this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
281
+
282
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
283
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
284
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
261
285
  },
262
286
  }
263
287
  }
@@ -273,6 +297,11 @@
273
297
  display: flex;
274
298
  justify-content: center;
275
299
  align-items: center;
300
+ width: unit(200, rpx);
301
+ height: unit(60, rpx);
302
+ line-height: unit(60, rpx);
303
+ text-align: center;
304
+ margin-left: 20rpx;
276
305
 
277
306
  & > view {
278
307
  margin-left: 10rpx;
@@ -287,13 +316,6 @@
287
316
  justify-content: space-between;
288
317
  align-items: center;
289
318
  font-size: unit(28, rpx);
290
-
291
- & > view:nth-child(2) {
292
- width: unit(200, rpx);
293
- height: unit(60, rpx);
294
- line-height: unit(60, rpx);
295
- text-align: center;
296
- }
297
319
  }
298
320
 
299
321
  &__link {