jufubao-base 1.0.217 → 1.0.218-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.217",
3
+ "version": "1.0.218-beta10",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -251,6 +251,29 @@ export default {
251
251
  {label: "否", value: "2"},
252
252
  ]
253
253
  },
254
+ {
255
+ label: "无票券时是否展示购买新卡入口:",
256
+ ele: "xd-radio",
257
+ valueKey: "isShowBuy",
258
+ value: data.isShowBuy || "N",
259
+ list: [
260
+ { label: "展示", value: "Y" },
261
+ { label: "隐藏", value: "N" }
262
+ ],
263
+ groupKey: "content",
264
+ },
265
+ {
266
+ label: '购买新卡文案:',
267
+ ele: 'el-input',
268
+ type: 'text',
269
+ valueKey: 'buy_name',
270
+ groupKey:'content',
271
+ value: data.buy_name || '',
272
+ placeholder: '请输入购买新卡文案',
273
+ className: 'input80',
274
+ inline: false,
275
+ notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
276
+ },
254
277
  {
255
278
  ele: 'title',
256
279
  label: '登录样式设置',
@@ -458,6 +481,18 @@ export default {
458
481
  },
459
482
  inline: false,
460
483
  },
484
+ {
485
+ label: '购买新卡地址:',
486
+ ele: 'xd-select-pages-path',
487
+ valueKey: 'buy_new_url',
488
+ groupKey:'advanced',
489
+ placeholder: '请选择购买新卡地址',
490
+ value: data.buy_new_url || null,
491
+ setting: {
492
+ router: XdBus.getParentApi('getPagesTree'),
493
+ },
494
+ inline: false,
495
+ },
461
496
  {
462
497
  label: '综合福利入口页:',
463
498
  ele: 'xd-select-pages-path',
@@ -132,7 +132,8 @@
132
132
  class="jfb-base-card__body-card"
133
133
  >
134
134
  <template v-if="cardLayout === '1'">
135
- <view
135
+ <view v-if="showList&&showList.length>0">
136
+ <view
136
137
  v-for="(item, index) in showList"
137
138
  :key="index"
138
139
  @click="handleBindLogin(item)"
@@ -194,22 +195,45 @@
194
195
  </view>
195
196
  </view>
196
197
  </view>
198
+ </view>
199
+ <view v-else>
200
+ <view class="jfb-base-card__body-empty">
201
+ <view class="jfb-base-card__body-empty-wrap">
202
+ <image :src="emptyBg"></image>
203
+ <view style="display:flex;align-items: center;justify-content: center;">
204
+ 暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
205
+ </view>
206
+ </view>
207
+ </view>
208
+ </view>
197
209
  </template>
198
210
  <template v-else>
199
- <xd-card-v2
200
- :login-name="login_name"
201
- :logged-name="logged_name"
202
- :look-name="look_name"
203
- v-for="(item, index) in showList"
204
- :mainColor="mainColor"
205
- :key="index"
206
- :cardInfo="item"
207
- :tabIndex="tabIndex"
208
- :lookStyle="lookStyle"
209
- :login-style="loginStyle"
210
- @toDetail="toDetail(item)"
211
- @bindLogin="handleBindLogin(item)">
212
- </xd-card-v2>
211
+ <view v-if="showList&&showList.length>0">
212
+ <xd-card-v2
213
+ :login-name="login_name"
214
+ :logged-name="logged_name"
215
+ :look-name="look_name"
216
+ v-for="(item, index) in showList"
217
+ :mainColor="mainColor"
218
+ :key="index"
219
+ :cardInfo="item"
220
+ :tabIndex="tabIndex"
221
+ :lookStyle="lookStyle"
222
+ :login-style="loginStyle"
223
+ @toDetail="toDetail(item)"
224
+ @bindLogin="handleBindLogin(item)">
225
+ </xd-card-v2>
226
+ </view>
227
+ <view v-else>
228
+ <view class="jfb-base-card__body-empty">
229
+ <view class="jfb-base-card__body-empty-wrap">
230
+ <image :src="emptyBg"></image>
231
+ <view style="display:flex;align-items: center;justify-content: center;">
232
+ 暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
233
+ </view>
234
+ </view>
235
+ </view>
236
+ </view>
213
237
  </template>
214
238
  </view>
215
239
  </template>
@@ -249,6 +273,7 @@ import openDebuggerMixins from "@/mixins/openDebuggerMixins";
249
273
  import { mapState, mapActions } from "vuex";
250
274
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
251
275
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
276
+ import colorCardMixins from "@/mixins/colorCardMixins";
252
277
  import { Base64 } from "js-base64";
253
278
  const Color = require("color");
254
279
 
@@ -261,7 +286,7 @@ export default {
261
286
  XdCardV2,
262
287
  XdCardV2Skelton
263
288
  },
264
- mixins: [componentsMixins, extsMixins, JfbBaseCardMixin,openDebuggerMixins],
289
+ mixins: [componentsMixins, extsMixins, JfbBaseCardMixin,openDebuggerMixins,colorCardMixins],
265
290
  computed: {
266
291
  ...mapState({
267
292
  jwxSDK: (state) => state.jwxSDK,
@@ -289,7 +314,11 @@ export default {
289
314
  if(this.look_text_radius) style['borderRadius'] = this.look_text_radius + 'rpx';
290
315
  if(this.cardLayout === '2') return style;
291
316
  return this.styleObjectToString(style);
292
- }
317
+ },
318
+
319
+ emptyBg() {
320
+ return this.getNoData();
321
+ },
293
322
  },
294
323
  watch: {
295
324
  tabIndex(newVal) {
@@ -369,6 +398,9 @@ export default {
369
398
  dialogEvent: false,
370
399
  // is_show_change: false,
371
400
  popup: "https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
401
+ buy_name: '',
402
+ isShowBuy: 'N',
403
+ buy_new_url: ''
372
404
  };
373
405
  },
374
406
  created() {
@@ -424,6 +456,10 @@ export default {
424
456
  this.look_text_color = getContainerPropsValue(container, 'content.look_text_color', this.cardLayout==='2'? '#333':'#fff');
425
457
  this.look_text_bg_color = getContainerPropsValue(container, 'content.look_text_bg_color', this.cardLayout === '2'? '' :this.mainColor);
426
458
  this.look_text_radius = getContainerPropsValue(container, 'content.look_text_radius', '20');
459
+
460
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
461
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
462
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
427
463
  },
428
464
 
429
465
  handleToLink(path) {
@@ -632,6 +668,7 @@ export default {
632
668
  })
633
669
  console.warn(`changeList:${this.changeList.length}`)
634
670
  this.showList = this.getPageCardContent(this.cardList);
671
+ // this.showList = []
635
672
  if(this.hasContent) this.offsetIndex++;
636
673
  this.$xdHideLoading();
637
674
  })
@@ -643,6 +680,12 @@ export default {
643
680
  return newData.slice(0,this.pagesLimit);
644
681
  },
645
682
 
683
+ toBuyNew() {
684
+ this.$xdUniHelper.navigateTo({
685
+ url: `${this.buy_new_url}`,
686
+ });
687
+ },
688
+
646
689
  onJfbShow(options) {
647
690
  this.offsetIndex = 0;
648
691
  this.hasContent = true;
@@ -698,6 +741,37 @@ export default {
698
741
  padding: unit(55, rpx) unit(35, rpx);
699
742
  color: #333;
700
743
 
744
+ &-empty {
745
+ color: #888;
746
+ font-size: unit(24,rpx);
747
+ height: 60vh;
748
+ display: flex;
749
+ align-items: center;
750
+ justify-content: center;
751
+
752
+ .buy_new {
753
+ display: flex;
754
+ margin-left: 8rpx;
755
+ & > view:first-child {
756
+ margin-right: 8rpx;
757
+ }
758
+ }
759
+
760
+ &-wrap {
761
+ display: flex;
762
+ flex-direction: column;
763
+
764
+ & > image {
765
+ width: unit(460,rpx);
766
+ height: unit(400,rpx);
767
+ }
768
+ }
769
+
770
+ & > view {
771
+ text-align: center;
772
+ }
773
+ }
774
+
701
775
  & .card_name {
702
776
  display: flex;
703
777
  justify-content: flex-start;
@@ -298,6 +298,29 @@ export default {
298
298
  {label: "隐藏", value: "2"},
299
299
  ]
300
300
  },
301
+ {
302
+ label: "无票券时是否展示购买新卡入口:",
303
+ ele: "xd-radio",
304
+ valueKey: "isShowBuy",
305
+ value: data.isShowBuy || "N",
306
+ list: [
307
+ { label: "展示", value: "Y" },
308
+ { label: "隐藏", value: "N" }
309
+ ],
310
+ groupKey: "content",
311
+ },
312
+ {
313
+ label: '购买新卡文案:',
314
+ ele: 'el-input',
315
+ type: 'text',
316
+ valueKey: 'buy_name',
317
+ groupKey:'content',
318
+ value: data.buy_name || '',
319
+ placeholder: '请输入购买新卡文案',
320
+ className: 'input80',
321
+ inline: false,
322
+ notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
323
+ },
301
324
  {
302
325
  label: "票券背景颜色:",
303
326
  ele: "xd-color",
@@ -386,6 +409,18 @@ export default {
386
409
  },
387
410
  inline: false,
388
411
  },
412
+ {
413
+ label: '购买新卡地址:',
414
+ ele: 'xd-select-pages-path',
415
+ valueKey: 'buy_new_url',
416
+ groupKey:'advanced',
417
+ placeholder: '请选择购买新卡地址',
418
+ value: data.buy_new_url || null,
419
+ setting: {
420
+ router: XdBus.getParentApi('getPagesTree'),
421
+ },
422
+ inline: false,
423
+ },
389
424
  {
390
425
  ele: "title",
391
426
  label: "我的优惠券样式配置",
@@ -323,7 +323,9 @@
323
323
  <view class="jfb-base-card-entry__body-empty">
324
324
  <view class="jfb-base-card-entry__body-empty-wrap">
325
325
  <image :src="emptyBg"></image>
326
- 暂无票券
326
+ <view style="display:flex;align-items: center;justify-content: center;">
327
+ 暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
328
+ </view>
327
329
  </view>
328
330
  </view>
329
331
  </view>
@@ -584,6 +586,9 @@ export default {
584
586
 
585
587
  cardBgColor: "",
586
588
  cardFontColor: "",
589
+ buy_new_url: '',
590
+ isShowBuy: "",
591
+ buy_name: ""
587
592
  };
588
593
  },
589
594
  created() {
@@ -639,6 +644,9 @@ export default {
639
644
  this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
640
645
  this.cardBgColor = getContainerPropsValue(container, "content.cardBgColor", "");
641
646
  this.cardFontColor = getContainerPropsValue(container, "content.cardFontColor", "");
647
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
648
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
649
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
642
650
  if(this.isPreview) {
643
651
  this.tabIndex = this.isShowCoupon==='Y'?2:1;
644
652
  }
@@ -993,6 +1001,12 @@ export default {
993
1001
  .catch(() => this.$xdHideLoading());
994
1002
  },
995
1003
 
1004
+ toBuyNew() {
1005
+ this.$xdUniHelper.navigateTo({
1006
+ url: `${this.buy_new_url}`,
1007
+ });
1008
+ },
1009
+
996
1010
  onJfbUpdate(data) {
997
1011
  this.getContent();
998
1012
  },
@@ -1023,6 +1037,14 @@ export default {
1023
1037
  align-items: center;
1024
1038
  justify-content: center;
1025
1039
 
1040
+ .buy_new {
1041
+ display: flex;
1042
+ margin-left: 8rpx;
1043
+ & > view:first-child {
1044
+ margin-right: 8rpx;
1045
+ }
1046
+ }
1047
+
1026
1048
  &-wrap {
1027
1049
  display: flex;
1028
1050
  flex-direction: column;
@@ -44,6 +44,29 @@ export default {
44
44
  inline: false,
45
45
  notice: '当未设置文案时候,前台页面显示为"<span style="color:red">查看</span>",建议不超过<span style="color:red">4</span>个汉字'
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
  label: '填充设置:',
49
72
  ele: 'xd-margin-padding',
@@ -105,6 +128,18 @@ export default {
105
128
  },
106
129
  inline: false,
107
130
  },
131
+ {
132
+ label: '购买新卡地址:',
133
+ ele: 'xd-select-pages-path',
134
+ valueKey: 'buy_new_url',
135
+ groupKey:'advanced',
136
+ placeholder: '请选择购买新卡地址',
137
+ value: data.buy_new_url || null,
138
+ setting: {
139
+ router: XdBus.getParentApi('getPagesTree'),
140
+ },
141
+ inline: false,
142
+ },
108
143
  ].filter(i=>i)
109
144
  },
110
145
  advanced: [
@@ -49,54 +49,64 @@
49
49
  class="jfb-base-card__body-card"
50
50
  :style="{padding: marginUi}"
51
51
  >
52
- <view
53
- v-for="(item, index) in cardList"
54
- :key="index"
55
- @click="handleBindLogin(item)"
56
- class="jfb-base-card__body-card-item"
57
- :style="{
58
- marginBottom: list_sp + 'rpx',
59
- backgroundColor:(item['is_login'] === 'Y'? mainBorderColor : '#fff'),
60
- borderColor:`${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
61
- }"
62
- >
63
- <view class="jfb-base-card__body-card-item-left">
64
- <xd-font-icon
65
- size="100"
66
- :color="mainColor"
67
- :icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
68
- ></xd-font-icon>
69
- <view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
70
- </view>
52
+ <view v-if="cardList&&cardList.length>0">
71
53
  <view
72
- class="jfb-base-card__body-card-item-right"
73
- :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
54
+ v-for="(item, index) in cardList"
55
+ :key="index"
56
+ @click="handleBindLogin(item)"
57
+ class="jfb-base-card__body-card-item"
58
+ :style="{
59
+ marginBottom: list_sp + 'rpx',
60
+ backgroundColor:(item['is_login'] === 'Y'? mainBorderColor : '#fff'),
61
+ borderColor:`${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
62
+ }"
74
63
  >
64
+ <view class="jfb-base-card__body-card-item-left">
65
+ <xd-font-icon
66
+ size="100"
67
+ :color="mainColor"
68
+ :icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
69
+ ></xd-font-icon>
70
+ <view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
71
+ </view>
75
72
  <view
76
- class="jfb-base-card__body-card-item-right-top"
73
+ class="jfb-base-card__body-card-item-right"
77
74
  :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
78
75
  >
79
- <view :class="{card_name:item.is_gift === 'Y'}">
80
- <view :style="{backgroundColor: mainColor}" v-if="item.is_gift === 'Y'" class="is-gift">赠</view>
81
- <xd-font-icon
82
- v-else
83
- icon="iconkaquan"
84
- size="30"
85
- :style="{marginRight: '10rpx'}"
86
- ></xd-font-icon>
87
- <view>{{ item.card_type_name }}</view>
76
+ <view
77
+ class="jfb-base-card__body-card-item-right-top"
78
+ :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
79
+ >
80
+ <view :class="{card_name:item.is_gift === 'Y'}">
81
+ <view :style="{backgroundColor: mainColor}" v-if="item.is_gift === 'Y'" class="is-gift">赠</view>
82
+ <xd-font-icon
83
+ v-else
84
+ icon="iconkaquan"
85
+ size="30"
86
+ :style="{marginRight: '10rpx'}"
87
+ ></xd-font-icon>
88
+ <view>{{ item.card_type_name }}</view>
89
+ </view>
90
+ <view>
91
+ <view>ID:{{ item.card_number }}</view>
92
+ <view>有效期至:{{ item.end_time }}</view>
93
+ </view>
88
94
  </view>
89
- <view>
90
- <view>ID:{{ item.card_number }}</view>
91
- <view>有效期至:{{ item.end_time }}</view>
95
+ <view class="jfb-base-card__body-card-item-right-bottom">
96
+ <view class="jfb-base-card__body-card-item-right-bottom-info">
97
+ <view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
98
+ <view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
99
+ </view>
100
+ <view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
92
101
  </view>
93
102
  </view>
94
- <view class="jfb-base-card__body-card-item-right-bottom">
95
- <view class="jfb-base-card__body-card-item-right-bottom-info">
96
- <view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
97
- <view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
98
- </view>
99
- <view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
103
+ </view>
104
+ </view>
105
+ <view v-else class="jfb-base-card__body-empty">
106
+ <view class="jfb-base-card__body-empty-wrap">
107
+ <image :src="emptyBg"></image>
108
+ <view style="display:flex;align-items: center;justify-content: center;">
109
+ 暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
100
110
  </view>
101
111
  </view>
102
112
  </view>
@@ -126,6 +136,7 @@
126
136
  import JfbBaseCardV2Mixin from "./JfbBaseCardV2Mixin";
127
137
  import { getContainerPropsValue } from "@/utils/xd.base";
128
138
  import componentsMixins from "@/mixins/componentsMixins";
139
+ import colorCardMixins from "@/mixins/colorCardMixins";
129
140
  import extsMixins from "@/mixins/extsMixins";
130
141
  import {Base64} from "js-base64";
131
142
  import {mapState} from "vuex";
@@ -138,7 +149,7 @@
138
149
  XdButton
139
150
  },
140
151
  mixins: [
141
- componentsMixins, extsMixins, JfbBaseCardV2Mixin
152
+ componentsMixins, extsMixins, JfbBaseCardV2Mixin,colorCardMixins
142
153
  ],
143
154
  data() {
144
155
  return {
@@ -159,6 +170,9 @@
159
170
  list_sp:20,
160
171
 
161
172
  inCallbackUrlOrg:'',//是否带有回调地址
173
+ buy_new_url: '',
174
+ isShowBuy: "",
175
+ buy_name: ""
162
176
  }
163
177
  },
164
178
  watch: {
@@ -180,6 +194,9 @@
180
194
  str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
181
195
  return str
182
196
  },
197
+ emptyBg() {
198
+ return this.getNoData();
199
+ },
183
200
  },
184
201
  created() {
185
202
  this.init(this.container);
@@ -235,6 +252,9 @@
235
252
  this.look_name = getContainerPropsValue(container, 'content.look_name', '查看');
236
253
  this.logged_name = getContainerPropsValue(container, 'content.logged_name', '已登录');
237
254
  this.list_sp = getContainerPropsValue(container, 'content.list_sp', 20);
255
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
256
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
257
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
238
258
 
239
259
  },
240
260
 
@@ -274,6 +294,11 @@
274
294
  url:path
275
295
  })
276
296
  },
297
+ toBuyNew() {
298
+ this.$xdUniHelper.navigateTo({
299
+ url: `${this.buy_new_url}`,
300
+ });
301
+ },
277
302
  toOrderList(){
278
303
  this.$xdUniHelper.navigateTo({
279
304
  url: this.orderListPath
@@ -353,7 +378,36 @@
353
378
  }
354
379
  .jfb-base-card__body{
355
380
 
381
+ &-empty {
382
+ color: #888;
383
+ font-size: unit(24,rpx);
384
+ height: 60vh;
385
+ display: flex;
386
+ align-items: center;
387
+ justify-content: center;
388
+
389
+ .buy_new {
390
+ display: flex;
391
+ margin-left: 8rpx;
392
+ & > view:first-child {
393
+ margin-right: 8rpx;
394
+ }
395
+ }
396
+
397
+ &-wrap {
398
+ display: flex;
399
+ flex-direction: column;
400
+
401
+ & > image {
402
+ width: unit(460,rpx);
403
+ height: unit(400,rpx);
404
+ }
405
+ }
356
406
 
407
+ & > view {
408
+ text-align: center;
409
+ }
410
+ }
357
411
  &-card {
358
412
  &-item {
359
413
  display: flex;
@@ -31,6 +31,29 @@ export default {
31
31
  inline: false,
32
32
  notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
33
33
  },
34
+ {
35
+ label: "无票券时是否展示购买新卡入口:",
36
+ ele: "xd-radio",
37
+ valueKey: "isShowBuy",
38
+ value: data.isShowBuy || "N",
39
+ list: [
40
+ { label: "展示", value: "Y" },
41
+ { label: "隐藏", value: "N" }
42
+ ],
43
+ groupKey: "content",
44
+ },
45
+ {
46
+ label: '购买新卡文案:',
47
+ ele: 'el-input',
48
+ type: 'text',
49
+ valueKey: 'buy_name',
50
+ groupKey:'content',
51
+ value: data.buy_name || '',
52
+ placeholder: '请输入购买新卡文案',
53
+ className: 'input80',
54
+ inline: false,
55
+ notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
56
+ },
34
57
  {
35
58
  label: '绑定新票券地址:',
36
59
  ele: 'xd-select-pages-path',
@@ -67,6 +90,18 @@ export default {
67
90
  },
68
91
  inline: false,
69
92
  },
93
+ {
94
+ label: '购买新卡地址:',
95
+ ele: 'xd-select-pages-path',
96
+ valueKey: 'buy_new_url',
97
+ groupKey:'advanced',
98
+ placeholder: '请选择购买新卡地址',
99
+ value: data.buy_new_url || null,
100
+ setting: {
101
+ router: XdBus.getParentApi('getPagesTree'),
102
+ },
103
+ inline: false,
104
+ },
70
105
  ].filter(i=>i)
71
106
  },
72
107
  advanced: [