jufubao-base 1.0.233-beta2 → 1.0.233-beta30
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 +1 -1
- package/src/components/JfbBaseCard/Attr.js +0 -11
- package/src/components/JfbBaseCard/JfbBaseCard.vue +20 -77
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +31 -30
- package/src/components/JfbBaseCardGive/Api.js +0 -13
- package/src/components/JfbBaseCardGive/Attr.js +1 -24
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +1 -88
- package/src/components/JfbBaseCardV2/Attr.js +0 -11
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +20 -58
- package/src/components/JfbBaseCardV3/Attr.js +0 -11
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -54
- package/src/components/JfbBaseHeader/Mock.js +1 -1
- package/src/components/JfbBaseNotice/Attr.js +0 -36
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -16
- package/src/components/JfbBasePosterType/Attr.js +0 -46
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +14 -23
- package/src/components/JfbBaseHeaderColumn/Api.js +0 -32
- package/src/components/JfbBaseHeaderColumn/Attr.js +0 -453
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +0 -516
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumnLess.less +0 -79
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumnMixin.js +0 -30
- package/src/components/JfbBaseHeaderColumn/Mock.js +0 -17
package/package.json
CHANGED
|
@@ -274,17 +274,6 @@ export default {
|
|
|
274
274
|
inline: false,
|
|
275
275
|
notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
276
276
|
},
|
|
277
|
-
{
|
|
278
|
-
label: "优惠券是否单独展示:",
|
|
279
|
-
ele: 'xd-radio',
|
|
280
|
-
valueKey: 'show_coupon_tab',
|
|
281
|
-
groupKey: 'content',
|
|
282
|
-
value: data.show_coupon_tab || 'N',
|
|
283
|
-
list: [
|
|
284
|
-
{ label: "是", value: "Y" },
|
|
285
|
-
{ label: "否", value: "N" }
|
|
286
|
-
],
|
|
287
|
-
},
|
|
288
277
|
{
|
|
289
278
|
ele: 'title',
|
|
290
279
|
label: '登录样式设置',
|
|
@@ -16,11 +16,7 @@
|
|
|
16
16
|
<view class="jfb-base-card__edit-icon" @click="delEdit">删除</view>
|
|
17
17
|
</view>
|
|
18
18
|
<!-- #endif -->
|
|
19
|
-
<view :style="{
|
|
20
|
-
paddingTop: bindCard!=='1'?'35rpx':'55rpx',
|
|
21
|
-
'--main-color': mainColor,
|
|
22
|
-
'--main-alpha-color': mainSubBorderColor
|
|
23
|
-
}" class="jfb-base-card__body">
|
|
19
|
+
<view :style="{paddingTop: bindCard!=='1'?'35rpx':'55rpx'}" class="jfb-base-card__body">
|
|
24
20
|
<view v-if="bindCard==='1'" class="jfb-base-card__body-cut">
|
|
25
21
|
<template v-if="isQrCode">
|
|
26
22
|
<view
|
|
@@ -105,25 +101,22 @@
|
|
|
105
101
|
</view>
|
|
106
102
|
<!--notice end-->
|
|
107
103
|
<view class="jfb-base-card__body-tab">
|
|
108
|
-
<view
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<view class="debuger" v-if="cardList.length === 0" @click="openDebugger(true)" style="opacity: 0">debuger</view>
|
|
125
|
-
</view>
|
|
126
|
-
|
|
104
|
+
<view
|
|
105
|
+
@click="tabIndex = 1"
|
|
106
|
+
:style="{
|
|
107
|
+
color: tabIndex === 1 ? '#fff' : '#B8B7BE',
|
|
108
|
+
background: tabIndex === 1 ? mainColor : '#fff',
|
|
109
|
+
}"
|
|
110
|
+
>已绑定票券</view>
|
|
111
|
+
<view
|
|
112
|
+
v-if="changeList.length > 0"
|
|
113
|
+
@click="tabIndex = 2"
|
|
114
|
+
:style="{
|
|
115
|
+
color: tabIndex === 2 ? '#fff' : '#B8B7BE',
|
|
116
|
+
background: tabIndex === 2 ? mainColor : '#fff',
|
|
117
|
+
}"
|
|
118
|
+
>可转换票券</view>
|
|
119
|
+
<view class="debuger" v-if="cardList.length === 0" @click="openDebugger(true)" style="opacity: 0">debuger</view>
|
|
127
120
|
</view>
|
|
128
121
|
<view
|
|
129
122
|
class="jfb-base-card__body-tips"
|
|
@@ -350,7 +343,6 @@ export default {
|
|
|
350
343
|
},
|
|
351
344
|
data() {
|
|
352
345
|
return {
|
|
353
|
-
show_type: "normal", //normal正常票券;coupon 满减券
|
|
354
346
|
options: {},
|
|
355
347
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
356
348
|
mainBorderColor:'',
|
|
@@ -404,7 +396,6 @@ export default {
|
|
|
404
396
|
showDisabled: 'Y',
|
|
405
397
|
|
|
406
398
|
dialogEvent: false,
|
|
407
|
-
show_coupon_tab: "N",
|
|
408
399
|
// is_show_change: false,
|
|
409
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",
|
|
410
401
|
buy_name: '',
|
|
@@ -469,7 +460,6 @@ export default {
|
|
|
469
460
|
this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
|
|
470
461
|
this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
|
|
471
462
|
this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
|
|
472
|
-
this.show_coupon_tab = getContainerPropsValue(container, "content.show_coupon_tab", "N");
|
|
473
463
|
},
|
|
474
464
|
|
|
475
465
|
handleToLink(path) {
|
|
@@ -478,10 +468,7 @@ export default {
|
|
|
478
468
|
url: path,
|
|
479
469
|
});
|
|
480
470
|
},
|
|
481
|
-
|
|
482
|
-
this.show_type = show_type;
|
|
483
|
-
this.getCardList(this.options);
|
|
484
|
-
},
|
|
471
|
+
|
|
485
472
|
getContent() {
|
|
486
473
|
jfbRootExec("getListBaseNewsContent", {
|
|
487
474
|
vm: this,
|
|
@@ -644,9 +631,6 @@ export default {
|
|
|
644
631
|
if(options['jfb_business_code']) {
|
|
645
632
|
params['card_business_code'] = options['jfb_business_code'];
|
|
646
633
|
}
|
|
647
|
-
if(this.show_coupon_tab === 'Y'){
|
|
648
|
-
params.show_type = this.show_type;
|
|
649
|
-
}
|
|
650
634
|
this.$xdShowLoading({});
|
|
651
635
|
jfbRootExec("getListCardBind", {
|
|
652
636
|
vm: this,
|
|
@@ -757,30 +741,6 @@ export default {
|
|
|
757
741
|
padding: unit(55, rpx) unit(35, rpx);
|
|
758
742
|
color: #333;
|
|
759
743
|
|
|
760
|
-
.show_type_tab{
|
|
761
|
-
display: flex;
|
|
762
|
-
align-items: center;
|
|
763
|
-
margin-bottom: 24rpx;
|
|
764
|
-
.type_item{
|
|
765
|
-
padding: unit(5, rpx) unit(22, rpx);
|
|
766
|
-
text-align: center;
|
|
767
|
-
line-height: unit(60, rpx);
|
|
768
|
-
border-radius: unit(60, rpx);
|
|
769
|
-
color: #B8B7BE;
|
|
770
|
-
& + .type_item{
|
|
771
|
-
margin-left: unit(30, rpx);
|
|
772
|
-
}
|
|
773
|
-
&.active{
|
|
774
|
-
background-color: var(--main-color);
|
|
775
|
-
color: #FFFFFF;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
.tab_index_wrap{
|
|
780
|
-
display: flex;
|
|
781
|
-
align-items: center;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
744
|
&-empty {
|
|
785
745
|
color: #888;
|
|
786
746
|
font-size: unit(24,rpx);
|
|
@@ -929,13 +889,12 @@ export default {
|
|
|
929
889
|
|
|
930
890
|
&-tab {
|
|
931
891
|
display: flex;
|
|
932
|
-
|
|
933
|
-
align-items: flex-start;
|
|
892
|
+
align-items: center;
|
|
934
893
|
font-size: unit(28, rpx);
|
|
935
894
|
margin-bottom: unit(46, rpx);
|
|
936
895
|
margin-top: unit(46, rpx);
|
|
937
896
|
|
|
938
|
-
|
|
897
|
+
& > view {
|
|
939
898
|
// width: unit(214, rpx);
|
|
940
899
|
// height: unit(60, rpx);
|
|
941
900
|
padding: unit(5, rpx) unit(22, rpx);
|
|
@@ -943,22 +902,6 @@ export default {
|
|
|
943
902
|
line-height: unit(60, rpx);
|
|
944
903
|
margin-right: unit(30, rpx);
|
|
945
904
|
border-radius: unit(60, rpx);
|
|
946
|
-
color: #B8B7BE;
|
|
947
|
-
background: #FFFFFF;
|
|
948
|
-
&.active{
|
|
949
|
-
color: #FFFFFF;
|
|
950
|
-
background-color: var(--main-color);
|
|
951
|
-
}
|
|
952
|
-
&.sub{
|
|
953
|
-
border-radius: unit(8, rpx);
|
|
954
|
-
line-height: unit(40, rpx);
|
|
955
|
-
color: #FFFFFF;
|
|
956
|
-
background-color: #B8B7BE;
|
|
957
|
-
&.active{
|
|
958
|
-
color: var(--main-color);
|
|
959
|
-
background-color: var(--main-alpha-color);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
905
|
}
|
|
963
906
|
}
|
|
964
907
|
|
|
@@ -46,35 +46,21 @@
|
|
|
46
46
|
@click="activeIndex = index"
|
|
47
47
|
:style="{
|
|
48
48
|
background: activeIndex === index ? backgroundColor : '#fff',
|
|
49
|
-
color: activeIndex === index ? mainColor : '#333'
|
|
50
|
-
marginRight: (index + 1) % 3 == 0 ? '0' : '36rpx',
|
|
49
|
+
color: activeIndex === index ? mainColor : '#333'
|
|
51
50
|
}"
|
|
52
51
|
class="package-item"
|
|
53
52
|
>
|
|
54
53
|
<view>{{ item.package_name }}</view>
|
|
55
|
-
<view>
|
|
56
|
-
<text>{{ item.pay_amount }}</text
|
|
57
|
-
>元宝</view
|
|
58
|
-
>
|
|
54
|
+
<view><text>{{ item.pay_amount }}</text><text>元宝</text></view>
|
|
59
55
|
</view>
|
|
60
56
|
</view>
|
|
61
|
-
<xd-no-data height="20vh" v-else :iconType="empty">
|
|
62
|
-
当前票券无套餐
|
|
63
|
-
</xd-no-data>
|
|
57
|
+
<xd-no-data height="20vh" v-else :iconType="empty">当前票券无套餐</xd-no-data>
|
|
64
58
|
</view>
|
|
65
|
-
<view class="wrap" style="margin-top: 28rpx" v-if="notice
|
|
66
|
-
<view
|
|
67
|
-
style="
|
|
68
|
-
text-align: center;
|
|
69
|
-
padding-bottom: 36rpx;
|
|
70
|
-
color: #333;
|
|
71
|
-
font-weight: 500;
|
|
72
|
-
font-size: 28rpx;
|
|
73
|
-
"
|
|
74
|
-
>延期规则</view
|
|
75
|
-
>
|
|
59
|
+
<view class="wrap" style="margin-top: 28rpx" v-if="notice">
|
|
60
|
+
<view style=" text-align: center; padding-bottom: 36rpx;color: #333;font-weight: 500;font-size: 28rpx;">延期规则</view>
|
|
76
61
|
<xd-content-xss :html="notice"></xd-content-xss>
|
|
77
62
|
</view>
|
|
63
|
+
<view class="wrap-mask"></view>
|
|
78
64
|
<view
|
|
79
65
|
v-if="!package_id"
|
|
80
66
|
class="jfb-base-card-delay__body-footer"
|
|
@@ -101,9 +87,7 @@
|
|
|
101
87
|
class="jfb-base-card-delay__body-footer"
|
|
102
88
|
:style="prod_bottom"
|
|
103
89
|
>
|
|
104
|
-
<xd-button width="560rpx" type="primary" @click="handleBuy"
|
|
105
|
-
>{{ pay_amount }}元延期</xd-button
|
|
106
|
-
>
|
|
90
|
+
<xd-button width="560rpx" type="primary" @click="handleBuy">{{ pay_amount }}元延期</xd-button>
|
|
107
91
|
</view>
|
|
108
92
|
</view>
|
|
109
93
|
</view>
|
|
@@ -140,7 +124,7 @@ export default {
|
|
|
140
124
|
data() {
|
|
141
125
|
return {
|
|
142
126
|
notice: "",
|
|
143
|
-
card_number: "",
|
|
127
|
+
card_number: "101001000005238",
|
|
144
128
|
backgroundColor: "",
|
|
145
129
|
packageList: null,
|
|
146
130
|
activeIndex: 0,
|
|
@@ -295,6 +279,9 @@ export default {
|
|
|
295
279
|
border: 1rpx solid #eeeeee;
|
|
296
280
|
padding: 36rpx;
|
|
297
281
|
background: #fff;
|
|
282
|
+
&-mask {
|
|
283
|
+
height: 100rpx;
|
|
284
|
+
}
|
|
298
285
|
input {
|
|
299
286
|
height: 30rpx;
|
|
300
287
|
border-radius: 16rpx;
|
|
@@ -317,19 +304,33 @@ export default {
|
|
|
317
304
|
display: flex;
|
|
318
305
|
align-items: center;
|
|
319
306
|
flex-wrap: wrap;
|
|
320
|
-
margin-top:
|
|
307
|
+
margin-top: 20rpx;
|
|
321
308
|
&-item {
|
|
322
|
-
padding:
|
|
309
|
+
padding: 30rpx 20rpx;
|
|
323
310
|
font-size: 28rpx;
|
|
324
311
|
text-align: center;
|
|
325
312
|
border-radius: 16rpx;
|
|
326
|
-
margin-right:
|
|
327
|
-
margin-bottom:
|
|
328
|
-
width:
|
|
313
|
+
margin-right: 30rpx;
|
|
314
|
+
margin-bottom: 30rpx;
|
|
315
|
+
width: 172rpx;
|
|
316
|
+
flex-shrink: 0;
|
|
317
|
+
&:nth-child(3n) {
|
|
318
|
+
margin-right: 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
& > view:nth-child(1) {
|
|
322
|
+
margin-bottom: 10rpx;
|
|
323
|
+
.uni-one-cut(40);
|
|
324
|
+
}
|
|
329
325
|
|
|
330
326
|
& > view:nth-child(2) {
|
|
331
327
|
& > text {
|
|
332
|
-
font-size:
|
|
328
|
+
font-size: 36rpx;
|
|
329
|
+
|
|
330
|
+
&:nth-child(2) {
|
|
331
|
+
font-size: 24rpx;
|
|
332
|
+
margin-left: 4rpx;
|
|
333
|
+
}
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
}
|
|
@@ -39,17 +39,4 @@ module.exports = [
|
|
|
39
39
|
},
|
|
40
40
|
disabled: true,
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
mapFnName: "generateQrCode",
|
|
44
|
-
title: "生成二维码",
|
|
45
|
-
path: "/common/v1/image/qrcode",
|
|
46
|
-
isRule: false,
|
|
47
|
-
params: {
|
|
48
|
-
code_content: ['二维码内容', 'String', true],
|
|
49
|
-
size: ['二维码大小', 'Number', true],
|
|
50
|
-
margin: ['二维码边距', 'Number', true]
|
|
51
|
-
},
|
|
52
|
-
isConsole: true,
|
|
53
|
-
disabled: true
|
|
54
|
-
}
|
|
55
42
|
];
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
label: '
|
|
41
|
+
label: '分享图片:', //label
|
|
42
42
|
ele: 'xd-upload', //package 名称
|
|
43
43
|
valueKey: 'shareImage', //form[valueKey]
|
|
44
44
|
value: data.shareImage || null, //v-model
|
|
@@ -60,29 +60,6 @@ export default {
|
|
|
60
60
|
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
{
|
|
64
|
-
label: '分享图片(适用于下载保存):', //label
|
|
65
|
-
ele: 'xd-upload', //package 名称
|
|
66
|
-
valueKey: 'shareDownloadImage', //form[valueKey]
|
|
67
|
-
value: data.shareDownloadImage || null, //v-model
|
|
68
|
-
defaultValue: data.shareDownloadImage || null, //默认图片对象
|
|
69
|
-
groupKey: "style",
|
|
70
|
-
slot: true, //按钮是否使用slot
|
|
71
|
-
oneWidth: 218, //单个图片显示宽度
|
|
72
|
-
oneHeight: 323, //单个图片显示高度
|
|
73
|
-
elinputClassName: 'input40',
|
|
74
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议尺寸:654*968px.',
|
|
75
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
76
|
-
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
77
|
-
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
78
|
-
size: 5, //5M
|
|
79
|
-
action: 'aliyun',
|
|
80
|
-
sort: true, //当上传图片列表时候,是否启用排序
|
|
81
|
-
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
82
|
-
rules: [
|
|
83
|
-
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
63
|
].filter(i=>i)
|
|
87
64
|
},
|
|
88
65
|
advanced: [],
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
rows="10"
|
|
84
84
|
></textarea>
|
|
85
85
|
<xd-button @click="handleGive" type="primary">确认赠送</xd-button>
|
|
86
|
-
<xd-button type="primary" @click="handleShare">test分享</xd-button>
|
|
87
86
|
</view>
|
|
88
87
|
<view
|
|
89
88
|
class="jfb-base-card-give__body-footer"
|
|
@@ -150,13 +149,6 @@
|
|
|
150
149
|
>
|
|
151
150
|
</view>
|
|
152
151
|
</xd-dailog>
|
|
153
|
-
<view class="share_card_dialog" v-show="showShareCard">
|
|
154
|
-
<view class="share_modal" @click="showShareCard=false"></view>
|
|
155
|
-
<view class="share_content">
|
|
156
|
-
<image :src="canvasUrl" v-if="canvasUrl" class="share_img" style="width: 654rpx; height: 968rpx;"></image>
|
|
157
|
-
</view>
|
|
158
|
-
</view>
|
|
159
|
-
<canvas class="renderCanvas" canvas-id="shareCanvas" id="shareCanvas" style="width: 654rpx; height: 968rpx;" ></canvas>
|
|
160
152
|
</view>
|
|
161
153
|
</view>
|
|
162
154
|
</template>
|
|
@@ -191,21 +183,13 @@ export default {
|
|
|
191
183
|
get_url: null,
|
|
192
184
|
back_url: null,
|
|
193
185
|
shareImage: "",
|
|
194
|
-
shareDownloadImage: "",
|
|
195
186
|
isPreview: false,
|
|
196
187
|
errMsg: "",
|
|
197
188
|
resultDialog: false,
|
|
198
|
-
showShareDialog: true,
|
|
199
|
-
imageCache: {},
|
|
200
|
-
showShareCard: false,
|
|
201
|
-
canvasUrl: "",
|
|
202
189
|
};
|
|
203
190
|
},
|
|
204
191
|
computed: {
|
|
205
192
|
...mapState(["shareInfo"]),
|
|
206
|
-
...mapState({
|
|
207
|
-
brandInfo: state => state.brandInfo
|
|
208
|
-
}),
|
|
209
193
|
prod_bottom() {
|
|
210
194
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
211
195
|
},
|
|
@@ -226,32 +210,6 @@ export default {
|
|
|
226
210
|
async onJfbLoad(options) {
|
|
227
211
|
this.card_number = options.card_number;
|
|
228
212
|
await this.getDetail();
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
async toSetShareImg(){
|
|
233
|
-
// if(this.info.transfer_record && this.info.transfer_record.transfer_auth_code){
|
|
234
|
-
// let url = `${document.location.origin}/${this.projectAttr.deploy_dir}${this.get_url}?transfer_auth_code=${this.info.transfer_record.transfer_auth_code}`;
|
|
235
|
-
// let ctx = uni.createCanvasContext("shareCanvas");
|
|
236
|
-
// console.log(ctx);
|
|
237
|
-
// ctx.save();
|
|
238
|
-
// ctx.drawImage(this.shareDownloadImage, 0, 0, 654*this.$rpxNum, 968*this.$rpxNum);
|
|
239
|
-
// ctx.restore();
|
|
240
|
-
|
|
241
|
-
// let qrImg = this.brandInfo['api_host'] + `/common/v1/image/qrcode?code_content=${url}`
|
|
242
|
-
// ctx.drawImage(qrImg, 200*this.$rpxNum, 500*this.$rpxNum, 250*this.$rpxNum, 250*this.$rpxNum);
|
|
243
|
-
// ctx.draw();
|
|
244
|
-
// }
|
|
245
|
-
let url = `123`;
|
|
246
|
-
let ctx = uni.createCanvasContext("shareCanvas");
|
|
247
|
-
console.log(ctx);
|
|
248
|
-
ctx.save();
|
|
249
|
-
ctx.drawImage(this.shareDownloadImage, 0, 0, 654*this.$rpxNum, 968*this.$rpxNum);
|
|
250
|
-
ctx.restore();
|
|
251
|
-
|
|
252
|
-
let qrImg = this.brandInfo['api_host'] + `/common/v1/image/qrcode?code_content=${url}`
|
|
253
|
-
ctx.drawImage(qrImg, 200*this.$rpxNum, 500*this.$rpxNum, 250*this.$rpxNum, 250*this.$rpxNum);
|
|
254
|
-
ctx.draw();
|
|
255
213
|
},
|
|
256
214
|
getDetail() {
|
|
257
215
|
this.$xdShowLoading({});
|
|
@@ -286,9 +244,6 @@ export default {
|
|
|
286
244
|
return this.info.business_codes.includes(item.business_code);
|
|
287
245
|
});
|
|
288
246
|
}
|
|
289
|
-
setTimeout(() => {
|
|
290
|
-
this.toSetShareImg()
|
|
291
|
-
}, 300);
|
|
292
247
|
})
|
|
293
248
|
.catch((err) => {
|
|
294
249
|
this.$xdHideLoading({});
|
|
@@ -311,7 +266,6 @@ export default {
|
|
|
311
266
|
"content.shareImage",
|
|
312
267
|
{ url: "" }
|
|
313
268
|
).url;
|
|
314
|
-
this.shareDownloadImage = getServiceUrl(getContainerPropsValue(container, 'content.shareDownloadImage', { url: '' }).url);
|
|
315
269
|
},
|
|
316
270
|
handleCancel() {
|
|
317
271
|
this.resultDialog = false;
|
|
@@ -378,21 +332,7 @@ export default {
|
|
|
378
332
|
handleShare() {
|
|
379
333
|
//#ifdef H5
|
|
380
334
|
let share = `${document.location.origin}/${this.projectAttr.deploy_dir}${this.get_url}?transfer_auth_code=${this.info.transfer_record.transfer_auth_code}`;
|
|
381
|
-
this.
|
|
382
|
-
if(this.canvasUrl) return;
|
|
383
|
-
this.$nextTick(() => {
|
|
384
|
-
uni.canvasToTempFilePath({
|
|
385
|
-
canvasId: "shareCanvas",
|
|
386
|
-
success: (res) => {
|
|
387
|
-
this.canvasUrl = res.tempFilePath;
|
|
388
|
-
console.log(res, 'canvasUrl');
|
|
389
|
-
},
|
|
390
|
-
fail: (err) => {
|
|
391
|
-
this.$xdHideLoading({});
|
|
392
|
-
console.log(err);
|
|
393
|
-
},
|
|
394
|
-
})
|
|
395
|
-
})
|
|
335
|
+
this.copy(share);
|
|
396
336
|
// #endif
|
|
397
337
|
// #ifdef MP-WEIXIN
|
|
398
338
|
this.setShareInfo({
|
|
@@ -421,33 +361,6 @@ export default {
|
|
|
421
361
|
&__body {
|
|
422
362
|
padding: 28rpx;
|
|
423
363
|
color: #333;
|
|
424
|
-
.renderCanvas{
|
|
425
|
-
position: fixed;
|
|
426
|
-
bottom: -999999px;
|
|
427
|
-
}
|
|
428
|
-
.share_card_dialog{
|
|
429
|
-
.share_modal{
|
|
430
|
-
width: 100vh;
|
|
431
|
-
height: 100vh;
|
|
432
|
-
position: fixed;
|
|
433
|
-
top: 0;
|
|
434
|
-
left: 0;
|
|
435
|
-
background: rgba(0, 0, 0, 0.5);
|
|
436
|
-
}
|
|
437
|
-
.share_content{
|
|
438
|
-
width: 654rpx;
|
|
439
|
-
height: 968rpx;
|
|
440
|
-
position: fixed;
|
|
441
|
-
top: 50%;
|
|
442
|
-
left: 50%;
|
|
443
|
-
transform: translate(-50%, -50%);
|
|
444
|
-
.share_img{
|
|
445
|
-
position: absolute;
|
|
446
|
-
top: 0;
|
|
447
|
-
left: 0;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
364
|
.qrcode_card {
|
|
452
365
|
position: relative;
|
|
453
366
|
border-radius: unit(16, rpx);
|
|
@@ -67,17 +67,6 @@ export default {
|
|
|
67
67
|
inline: false,
|
|
68
68
|
notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
69
69
|
},
|
|
70
|
-
{
|
|
71
|
-
label: "优惠券是否单独展示:",
|
|
72
|
-
ele: 'xd-radio',
|
|
73
|
-
valueKey: 'show_coupon_tab',
|
|
74
|
-
groupKey: 'content',
|
|
75
|
-
value: data.show_coupon_tab || 'N',
|
|
76
|
-
list: [
|
|
77
|
-
{ label: "是", value: "Y" },
|
|
78
|
-
{ label: "否", value: "N" }
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
70
|
{
|
|
82
71
|
label: '填充设置:',
|
|
83
72
|
ele: 'xd-margin-padding',
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
<view class="jfb-base-card-v2__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-card-v2__body"
|
|
17
|
-
'--main-color': mainColor,
|
|
18
|
-
}">
|
|
16
|
+
<view class="jfb-base-card-v2__body">
|
|
19
17
|
<view v-if="loadingCardList">
|
|
20
18
|
<view
|
|
21
19
|
class="jfb-base-card__body-card skeleton-card"
|
|
@@ -51,12 +49,6 @@
|
|
|
51
49
|
class="jfb-base-card__body-card"
|
|
52
50
|
:style="{padding: marginUi}"
|
|
53
51
|
>
|
|
54
|
-
<view class="card_filter">
|
|
55
|
-
<view v-if="show_coupon_tab==='Y'" class="show_type_tab">
|
|
56
|
-
<view class="type_item" :class="{active: show_type==='normal'}" @click="switchShowType('normal')">已绑定票券</view>
|
|
57
|
-
<view class="type_item" :class="{active: show_type==='coupon'}" @click="switchShowType('coupon')">优惠券</view>
|
|
58
|
-
</view>
|
|
59
|
-
</view>
|
|
60
52
|
<view v-if="cardList&&cardList.length>0">
|
|
61
53
|
<view
|
|
62
54
|
v-for="(item, index) in cardList"
|
|
@@ -161,15 +153,12 @@
|
|
|
161
153
|
],
|
|
162
154
|
data() {
|
|
163
155
|
return {
|
|
164
|
-
options: {},
|
|
165
156
|
cardList: [],
|
|
166
157
|
inCallback: "",
|
|
167
158
|
mainBorderColor:'',
|
|
168
159
|
mainSubBorderColor:'',
|
|
169
|
-
show_type: "normal",
|
|
170
160
|
|
|
171
161
|
//面板
|
|
172
|
-
show_coupon_tab: "N",
|
|
173
162
|
cardInfoPath: "", //卡券详情
|
|
174
163
|
cardBindPath: "",
|
|
175
164
|
orderListPath: "",
|
|
@@ -216,7 +205,6 @@
|
|
|
216
205
|
},
|
|
217
206
|
methods: {
|
|
218
207
|
onJfbLoad(options) {
|
|
219
|
-
this.options = options;
|
|
220
208
|
let { inCallback } = options;
|
|
221
209
|
if(!inCallback) this.$storage.remove("inCallback"); //作为入口
|
|
222
210
|
else {
|
|
@@ -231,7 +219,24 @@
|
|
|
231
219
|
}
|
|
232
220
|
}
|
|
233
221
|
this.inCallback = inCallback || this.settings.index;
|
|
234
|
-
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
let params = {is_all: 'Y'};
|
|
225
|
+
if (options['jfb_business_code']) {
|
|
226
|
+
params['card_business_code'] = options['jfb_business_code'];
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
jfbRootExec("getListCardBind", {
|
|
230
|
+
vm: this,
|
|
231
|
+
data: params,
|
|
232
|
+
}).then((res) => {
|
|
233
|
+
this.loadingCardList = false;
|
|
234
|
+
this.cardList = res.list.map((item) => {
|
|
235
|
+
item['card_point'] = this.$xdUniHelper.divisionFloatNumber(item.card_point,100);
|
|
236
|
+
item['other_card_point'] = this.$xdUniHelper.divisionFloatNumber(item.other_card_point,100);
|
|
237
|
+
return item;
|
|
238
|
+
}).filter((item) => item["is_valid"] === "Y");
|
|
239
|
+
})
|
|
235
240
|
},
|
|
236
241
|
|
|
237
242
|
/**
|
|
@@ -250,33 +255,9 @@
|
|
|
250
255
|
this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
|
|
251
256
|
this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
|
|
252
257
|
this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
|
|
253
|
-
this.show_coupon_tab = getContainerPropsValue(container, "content.show_coupon_tab", "N");
|
|
254
|
-
},
|
|
255
|
-
getList(){
|
|
256
|
-
let options = this.options;
|
|
257
|
-
let params = {is_all: 'Y'};
|
|
258
|
-
if (options['jfb_business_code']) {
|
|
259
|
-
params['card_business_code'] = options['jfb_business_code'];
|
|
260
|
-
}
|
|
261
|
-
if(this.show_coupon_tab === 'Y'){
|
|
262
|
-
params.show_type = this.show_type;
|
|
263
|
-
}
|
|
264
258
|
|
|
265
|
-
jfbRootExec("getListCardBind", {
|
|
266
|
-
vm: this,
|
|
267
|
-
data: params,
|
|
268
|
-
}).then((res) => {
|
|
269
|
-
this.loadingCardList = false;
|
|
270
|
-
this.cardList = res.list.map((item) => {
|
|
271
|
-
item['card_point'] = this.$xdUniHelper.divisionFloatNumber(item.card_point,100);
|
|
272
|
-
item['other_card_point'] = this.$xdUniHelper.divisionFloatNumber(item.other_card_point,100);
|
|
273
|
-
return item;
|
|
274
|
-
}).filter((item) => item["is_valid"] === "Y");
|
|
275
|
-
})
|
|
276
|
-
},
|
|
277
|
-
switchShowType(type){
|
|
278
|
-
this.show_type = type;
|
|
279
259
|
},
|
|
260
|
+
|
|
280
261
|
handleBindLogin(item){
|
|
281
262
|
this.$xdShowLoading({});
|
|
282
263
|
jfbRootExec("loginCardBind", {
|
|
@@ -343,25 +324,6 @@
|
|
|
343
324
|
|
|
344
325
|
.jfb-base-card-v2 {
|
|
345
326
|
&__body{
|
|
346
|
-
.show_type_tab{
|
|
347
|
-
display: flex;
|
|
348
|
-
align-items: center;
|
|
349
|
-
margin-bottom: 24rpx;
|
|
350
|
-
.type_item{
|
|
351
|
-
padding: unit(5, rpx) unit(22, rpx);
|
|
352
|
-
text-align: center;
|
|
353
|
-
line-height: unit(60, rpx);
|
|
354
|
-
border-radius: unit(60, rpx);
|
|
355
|
-
color: #B8B7BE;
|
|
356
|
-
& + .type_item{
|
|
357
|
-
margin-left: unit(30, rpx);
|
|
358
|
-
}
|
|
359
|
-
&.active{
|
|
360
|
-
background-color: var(--main-color);
|
|
361
|
-
color: #FFFFFF;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
327
|
.bottom_fix{
|
|
366
328
|
position: fixed;
|
|
367
329
|
right: 0;
|
|
@@ -54,17 +54,6 @@ export default {
|
|
|
54
54
|
inline: false,
|
|
55
55
|
notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
56
56
|
},
|
|
57
|
-
{
|
|
58
|
-
label: "优惠券是否单独展示:",
|
|
59
|
-
ele: 'xd-radio',
|
|
60
|
-
valueKey: 'show_coupon_tab',
|
|
61
|
-
groupKey: 'content',
|
|
62
|
-
value: data.show_coupon_tab || 'N',
|
|
63
|
-
list: [
|
|
64
|
-
{ label: "是", value: "Y" },
|
|
65
|
-
{ label: "否", value: "N" }
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
57
|
{
|
|
69
58
|
label: '绑定新票券地址:',
|
|
70
59
|
ele: 'xd-select-pages-path',
|