jufubao-base 1.0.160-beta1 → 1.0.162-beta3
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/JfbBaseAfterOrderDetail/Attr.js +9 -0
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +40 -75
- package/src/components/JfbBaseAfterOrderDetail/Mock.js +3 -2
- package/src/components/JfbBaseAfterOrderList/Attr.js +9 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +63 -83
- package/src/components/JfbBaseAfterOrderList/Mock.js +8 -0
- package/src/components/JfbBaseCard/Attr.js +220 -194
- package/src/components/JfbBaseCard/JfbBaseCard.vue +46 -17
- package/src/components/JfbBaseCard/Mock.js +7 -6
- package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +2 -0
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +3 -3
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +2 -2
- package/src/components/JfbBaseCardEntry/Attr.js +12 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +35 -2
- package/src/components/JfbBaseCardEntry/Mock.js +1 -0
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +18 -25
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -3
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
- package/src/components/JfbBaseCardV2/Attr.js +39 -2
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +46 -24
- package/src/components/JfbBaseCardV2/Mock.js +12 -11
- package/src/components/JfbBaseCardV3/Attr.js +13 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +5 -1
- package/src/components/JfbBaseCardV3/Mock.js +1 -1
- package/src/components/JfbBaseMultipleExpress/Attr.js +9 -0
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
- package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +57 -137
- package/src/components/JfbBaseOrderDetail/bizMock.js +4 -2
- package/src/components/JfbBaseOrderList/Attr.js +9 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +37 -90
- package/src/components/JfbBaseOrderList/Mock.js +27 -5
- package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +3 -0
- package/src/components/JfbBasePoster/Attr.js +1 -0
- package/src/components/JfbBasePosterBigSmall/Attr.js +3 -0
- package/src/components/JfbBasePosterType/Attr.js +35 -25
- package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -2
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
@click.stop="handleUnBindCard(item)"
|
|
82
82
|
v-if="isShowUnbind"
|
|
83
83
|
:style="{ background: '#fff',color:'#999',border: '1px solid #999' }"
|
|
84
|
-
|
|
84
|
+
>解绑</view>
|
|
85
85
|
</view>
|
|
86
86
|
</view>
|
|
87
87
|
</view>
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
data() {
|
|
111
111
|
return {
|
|
112
112
|
disableList: [],
|
|
113
|
-
isShowUnbind:
|
|
113
|
+
isShowUnbind: true,
|
|
114
114
|
loadingList: true,
|
|
115
115
|
};
|
|
116
116
|
},
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
})
|
|
139
139
|
.then((res) => {
|
|
140
140
|
this.loadingList = false;
|
|
141
|
-
this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
|
|
141
|
+
//this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
|
|
142
142
|
res.list = res.list.map((item) => {
|
|
143
143
|
return {
|
|
144
144
|
...item,
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
169
169
|
mixins: [componentsMixins, extsMixins, JfbBaseCardDisabledEntryMixin, colorCardMixins, cardListMixins],
|
|
170
170
|
data() {
|
|
171
171
|
return {
|
|
172
|
-
isShowUnbind:
|
|
172
|
+
isShowUnbind: true,
|
|
173
173
|
isShowIndex:false,
|
|
174
174
|
};
|
|
175
175
|
},
|
|
@@ -200,7 +200,7 @@ export default {
|
|
|
200
200
|
this.$xdShowLoading({});
|
|
201
201
|
jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
|
|
202
202
|
.then((res) => {
|
|
203
|
-
this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
|
|
203
|
+
//this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
|
|
204
204
|
res.list = res.list.map((item) => {
|
|
205
205
|
return {
|
|
206
206
|
...item,
|
|
@@ -252,6 +252,18 @@ export default {
|
|
|
252
252
|
inline: false,
|
|
253
253
|
notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
|
|
254
254
|
},
|
|
255
|
+
{
|
|
256
|
+
label: '票券已登录文案:',
|
|
257
|
+
ele: 'el-input',
|
|
258
|
+
type: 'text',
|
|
259
|
+
valueKey: 'logged_name',
|
|
260
|
+
groupKey:'content',
|
|
261
|
+
value: '',
|
|
262
|
+
placeholder: '请输入票券已登录文案',
|
|
263
|
+
className: 'input80',
|
|
264
|
+
inline: false,
|
|
265
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
266
|
+
},
|
|
255
267
|
{
|
|
256
268
|
label: "是否展示核销二维码",
|
|
257
269
|
ele: "xd-radio",
|
|
@@ -173,7 +173,12 @@
|
|
|
173
173
|
}"
|
|
174
174
|
>
|
|
175
175
|
<view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
|
|
176
|
-
<view class="card-list__title"
|
|
176
|
+
<view class="card-list__title">
|
|
177
|
+
<view>
|
|
178
|
+
<view>{{item['card_type_name']}}</view>
|
|
179
|
+
<view v-if="item['is_login'] === 'Y'"><text></text><text>已登录</text></view>
|
|
180
|
+
</view>
|
|
181
|
+
</view>
|
|
177
182
|
<view class="card-list__content">
|
|
178
183
|
<view>
|
|
179
184
|
<text>券号:</text>
|
|
@@ -957,16 +962,44 @@ export default {
|
|
|
957
962
|
align-items: center;
|
|
958
963
|
|
|
959
964
|
& > view {
|
|
960
|
-
padding: 0 unit(
|
|
965
|
+
padding: 0 unit(40, rpx);
|
|
961
966
|
font-size: unit(24, rpx);
|
|
962
967
|
line-height: unit(56, rpx);
|
|
963
968
|
background: rgba(102, 102, 102, 0.4);
|
|
964
969
|
color: #fff;
|
|
965
970
|
border-radius: 0 0 unit(16, rpx) 0;
|
|
971
|
+
display: flex;
|
|
972
|
+
justify-content: center;
|
|
973
|
+
align-items: center;
|
|
966
974
|
|
|
967
975
|
.skeleton-card &{
|
|
968
976
|
.skeleton-item(120rpx, 50rpx, 0 0 16rpx 0, #EEEEEE);
|
|
969
977
|
}
|
|
978
|
+
|
|
979
|
+
& > view:nth-child(2) {
|
|
980
|
+
height: 36rpx;
|
|
981
|
+
line-height: 36rpx;
|
|
982
|
+
background-color: rgb(41, 203, 151);
|
|
983
|
+
display: flex;
|
|
984
|
+
justify-content: center;
|
|
985
|
+
align-items: center;
|
|
986
|
+
margin-left: 30rpx;
|
|
987
|
+
padding: 0 20rpx;
|
|
988
|
+
border-radius: 8rpx;
|
|
989
|
+
|
|
990
|
+
& > text:nth-child(1) {
|
|
991
|
+
width: 10rpx;
|
|
992
|
+
height: 10rpx;
|
|
993
|
+
border-radius: 50%;
|
|
994
|
+
background-color: #fff;
|
|
995
|
+
margin-right: 10rpx;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
& > text:nth-child(2) {
|
|
999
|
+
font-size: 24rpx;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
970
1003
|
}
|
|
971
1004
|
|
|
972
1005
|
}
|
|
@@ -177,9 +177,15 @@ export default {
|
|
|
177
177
|
return this.valueKey.filter(item => item.key !== "end_time");
|
|
178
178
|
}
|
|
179
179
|
return this.valueKey;
|
|
180
|
-
}
|
|
180
|
+
},
|
|
181
|
+
container(value,oldValue) {
|
|
182
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
183
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
created() {
|
|
187
|
+
this.init(this.container)
|
|
181
188
|
},
|
|
182
|
-
created() {},
|
|
183
189
|
methods: {
|
|
184
190
|
handleIcon(){
|
|
185
191
|
this.isPassword = !this.isPassword
|
|
@@ -269,39 +275,26 @@ export default {
|
|
|
269
275
|
}
|
|
270
276
|
})
|
|
271
277
|
},
|
|
272
|
-
init() {
|
|
273
|
-
this.backUrl = getContainerPropsValue(
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
).value;
|
|
278
|
-
this.card_num_placeholder = getContainerPropsValue(
|
|
279
|
-
this.container,
|
|
280
|
-
"content.card_num_placeholder",
|
|
281
|
-
"请输入券号(电子券除外)"
|
|
282
|
-
);
|
|
283
|
-
this.card_pwd_placeholder = getContainerPropsValue(
|
|
284
|
-
this.container,
|
|
285
|
-
"content.card_pwd_placeholder",
|
|
286
|
-
"请输入密码"
|
|
287
|
-
);
|
|
288
|
-
this.is_show_balance = getContainerPropsValue(this.container, 'content.is_show_balance', "N");
|
|
289
|
-
this.my_card_url = getContainerPropsValue(this.container, 'content.my_card_url', { value: "" }).value;
|
|
278
|
+
init(container) {
|
|
279
|
+
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "/pages/card/card" }).value;
|
|
280
|
+
this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
|
|
281
|
+
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
282
|
+
this.is_show_balance = getContainerPropsValue(container, 'content.is_show_balance', "N");
|
|
283
|
+
this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
|
|
290
284
|
},
|
|
291
285
|
onJfbLoad(options) {
|
|
292
|
-
this.
|
|
293
|
-
|
|
294
|
-
this.qrcode = options.qrcode;
|
|
286
|
+
this.qrcode = options.qrcode || options.pa;
|
|
295
287
|
|
|
296
288
|
//#ifdef MP-WEIXIN
|
|
297
|
-
if(
|
|
298
|
-
this.qrcode = decodeURIComponent(
|
|
289
|
+
if(this.qrcode) {
|
|
290
|
+
this.qrcode = decodeURIComponent(this.qrcode);
|
|
299
291
|
}
|
|
300
292
|
//#endif
|
|
301
293
|
|
|
302
294
|
if(options.inCallback) {
|
|
303
295
|
this.inCallbackUrlOrg = options.inCallback;
|
|
304
296
|
}
|
|
297
|
+
|
|
305
298
|
if (this.qrcode) {
|
|
306
299
|
jfbRootExec("getByQrCardDetail", {
|
|
307
300
|
vm: this,
|
|
@@ -302,17 +302,19 @@ export default {
|
|
|
302
302
|
this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
|
|
303
303
|
},
|
|
304
304
|
onJfbLoad(options) {
|
|
305
|
-
this.qrcode = options.qrcode;
|
|
305
|
+
this.qrcode = options.qrcode || options.pa;
|
|
306
306
|
|
|
307
307
|
//#ifdef MP-WEIXIN
|
|
308
|
-
if(
|
|
309
|
-
this.qrcode = decodeURIComponent(
|
|
308
|
+
if(this.qrcode) {
|
|
309
|
+
this.qrcode = decodeURIComponent(this.qrcode);
|
|
310
310
|
}
|
|
311
311
|
//#endif
|
|
312
312
|
|
|
313
313
|
if(options.inCallback) {
|
|
314
314
|
this.inCallbackUrlOrg = options.inCallback;
|
|
315
315
|
}
|
|
316
|
+
|
|
317
|
+
|
|
316
318
|
if (this.qrcode) {
|
|
317
319
|
jfbRootExec("getByQrCardDetailEntry", {
|
|
318
320
|
vm: this,
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-card-sweep-info__edit-icon" @click="delEdit"
|
|
14
|
-
>删除</view
|
|
15
|
-
>
|
|
13
|
+
<view class="jfb-base-card-sweep-info__edit-icon" @click="delEdit">删除</view>
|
|
16
14
|
</view>
|
|
17
15
|
<!-- #endif -->
|
|
18
16
|
<view class="jfb-base-card-sweep-info__body" style="position: relative">
|
|
@@ -186,6 +184,7 @@ export default {
|
|
|
186
184
|
},
|
|
187
185
|
onJfbLoad(options) {
|
|
188
186
|
this.pa = options.pa;
|
|
187
|
+
|
|
189
188
|
if(options.inCallback) {
|
|
190
189
|
this.inCallbackUrlOrg = options.inCallback;
|
|
191
190
|
}
|
|
@@ -17,7 +17,32 @@ export default {
|
|
|
17
17
|
placeholder: '请输入票券登录文案',
|
|
18
18
|
className: 'input80',
|
|
19
19
|
inline: false,
|
|
20
|
-
notice: '
|
|
20
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: '票券已登录文案:',
|
|
24
|
+
ele: 'el-input',
|
|
25
|
+
type: 'text',
|
|
26
|
+
valueKey: 'logged_name',
|
|
27
|
+
groupKey:'content',
|
|
28
|
+
value: data.logged_name || '',
|
|
29
|
+
placeholder: '请输入票券已登录文案',
|
|
30
|
+
className: 'input80',
|
|
31
|
+
inline: false,
|
|
32
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
label: '票券查看文案:',
|
|
37
|
+
ele: 'el-input',
|
|
38
|
+
type: 'text',
|
|
39
|
+
valueKey: 'look_name',
|
|
40
|
+
groupKey:'content',
|
|
41
|
+
value: data.look_name || '',
|
|
42
|
+
placeholder: '请输入票券查看文案',
|
|
43
|
+
className: 'input80',
|
|
44
|
+
inline: false,
|
|
45
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">查看</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
21
46
|
},
|
|
22
47
|
{
|
|
23
48
|
label: '填充设置:',
|
|
@@ -30,7 +55,19 @@ export default {
|
|
|
30
55
|
},
|
|
31
56
|
placeholder: '请设填充距设置',
|
|
32
57
|
inline: false,
|
|
33
|
-
notice: '填充设置,<span style="color: red">单位:像素</span
|
|
58
|
+
notice: '填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">20</span>像素',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: '列表间距:',
|
|
62
|
+
ele: 'el-input',
|
|
63
|
+
type: 'text',
|
|
64
|
+
valueKey: 'list_sp',
|
|
65
|
+
value: data['list_sp'] || '',
|
|
66
|
+
placeholder: '请输入列表间距',
|
|
67
|
+
className: 'input80',
|
|
68
|
+
groupKey: 'style',
|
|
69
|
+
inline: false,
|
|
70
|
+
notice: '列表间距,单位:像素,默认值:<span style="color:red">20</span>像素'
|
|
34
71
|
},
|
|
35
72
|
{
|
|
36
73
|
label: '卡券详情地址:',
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<view class="jfb-base-card__body-card-item-right-bottom-info-residue"></view>
|
|
39
39
|
<view class="jfb-base-card__body-card-item-right-bottom-info-deduction"></view>
|
|
40
40
|
</view>
|
|
41
|
-
<view :style="{ background:
|
|
41
|
+
<view :style="{ background: '#F2F2F2' }"></view>
|
|
42
42
|
</view>
|
|
43
43
|
</view>
|
|
44
44
|
</view>
|
|
@@ -47,26 +47,35 @@
|
|
|
47
47
|
<template v-else>
|
|
48
48
|
<view
|
|
49
49
|
class="jfb-base-card__body-card"
|
|
50
|
-
:style="{
|
|
51
|
-
margin: marginUi,
|
|
52
|
-
}"
|
|
50
|
+
:style="{padding: marginUi}"
|
|
53
51
|
>
|
|
54
52
|
<view
|
|
55
53
|
v-for="(item, index) in cardList"
|
|
56
54
|
:key="index"
|
|
57
55
|
@click="handleBindLogin(item)"
|
|
58
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
|
+
}"
|
|
59
62
|
>
|
|
60
63
|
<view class="jfb-base-card__body-card-item-left">
|
|
61
64
|
<xd-font-icon
|
|
62
65
|
size="100"
|
|
63
|
-
color="
|
|
64
|
-
icon="iconyouhuiquan1-011"
|
|
66
|
+
:color="mainColor"
|
|
67
|
+
:icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
|
|
65
68
|
></xd-font-icon>
|
|
66
|
-
<view>{{login_name}}</view>
|
|
69
|
+
<view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
|
|
67
70
|
</view>
|
|
68
|
-
<view
|
|
69
|
-
|
|
71
|
+
<view
|
|
72
|
+
class="jfb-base-card__body-card-item-right"
|
|
73
|
+
:style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
|
|
74
|
+
>
|
|
75
|
+
<view
|
|
76
|
+
class="jfb-base-card__body-card-item-right-top"
|
|
77
|
+
:style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
|
|
78
|
+
>
|
|
70
79
|
<view>
|
|
71
80
|
<xd-font-icon
|
|
72
81
|
icon="iconkaquan"
|
|
@@ -85,10 +94,7 @@
|
|
|
85
94
|
<view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
|
|
86
95
|
<view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
|
|
87
96
|
</view>
|
|
88
|
-
<view
|
|
89
|
-
@click.stop="toDetail(item)"
|
|
90
|
-
:style="{ background: mainColor }"
|
|
91
|
-
>查看</view>
|
|
97
|
+
<view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
|
|
92
98
|
</view>
|
|
93
99
|
</view>
|
|
94
100
|
</view>
|
|
@@ -121,6 +127,7 @@
|
|
|
121
127
|
import extsMixins from "@/mixins/extsMixins";
|
|
122
128
|
import {Base64} from "js-base64";
|
|
123
129
|
import {mapState} from "vuex";
|
|
130
|
+
import Color from "color";
|
|
124
131
|
|
|
125
132
|
export default {
|
|
126
133
|
name: "JfbBaseCardV2",
|
|
@@ -135,19 +142,19 @@
|
|
|
135
142
|
return {
|
|
136
143
|
cardList: [],
|
|
137
144
|
inCallback: "",
|
|
145
|
+
mainBorderColor:'',
|
|
146
|
+
mainSubBorderColor:'',
|
|
138
147
|
|
|
139
148
|
//面板
|
|
140
149
|
cardInfoPath: "", //卡券详情
|
|
141
150
|
cardBindPath: "",
|
|
142
151
|
orderListPath: "",
|
|
143
152
|
login_name:'',
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
bottom: 0,
|
|
148
|
-
right: 0
|
|
149
|
-
},
|
|
153
|
+
look_name:'',
|
|
154
|
+
logged_name:'',
|
|
155
|
+
margin: {},
|
|
150
156
|
loadingCardList: true,
|
|
157
|
+
list_sp:20,
|
|
151
158
|
|
|
152
159
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
153
160
|
}
|
|
@@ -165,11 +172,17 @@
|
|
|
165
172
|
return this.fixedStyle({paddingBottom: 0, zIndex: 111})
|
|
166
173
|
},
|
|
167
174
|
marginUi() {
|
|
168
|
-
|
|
175
|
+
let str = `${this.checkValue(this.margin.top, 20)}rpx`;
|
|
176
|
+
str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
|
|
177
|
+
str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
|
|
178
|
+
str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
|
|
179
|
+
return str
|
|
169
180
|
},
|
|
170
181
|
},
|
|
171
182
|
created() {
|
|
172
183
|
this.init(this.container);
|
|
184
|
+
this.mainBorderColor = Color(this.mainColor).alpha(0.05).toString();
|
|
185
|
+
this.mainSubBorderColor = Color(this.mainColor).alpha(0.1).toString();
|
|
173
186
|
},
|
|
174
187
|
methods: {
|
|
175
188
|
onJfbLoad(options) {
|
|
@@ -216,7 +229,11 @@
|
|
|
216
229
|
this.cardBindPath = getContainerPropsValue(container, "content.cardBindPath", {value: ""}).value;
|
|
217
230
|
this.orderListPath = getContainerPropsValue(container, "content.orderListPath", {value: ""}).value;
|
|
218
231
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
219
|
-
this.margin = getContainerPropsValue(container, 'content.margin', {
|
|
232
|
+
this.margin = getContainerPropsValue(container, 'content.margin', {});
|
|
233
|
+
this.look_name = getContainerPropsValue(container, 'content.look_name', '查看');
|
|
234
|
+
this.logged_name = getContainerPropsValue(container, 'content.logged_name', '已登录');
|
|
235
|
+
this.list_sp = getContainerPropsValue(container, 'content.list_sp', 20);
|
|
236
|
+
|
|
220
237
|
},
|
|
221
238
|
|
|
222
239
|
handleBindLogin(item){
|
|
@@ -317,9 +334,13 @@
|
|
|
317
334
|
display: flex;
|
|
318
335
|
align-items: center;
|
|
319
336
|
justify-content: flex-start;
|
|
320
|
-
border: unit(2, rpx) solid #
|
|
337
|
+
border: unit(2, rpx) solid #eee;
|
|
321
338
|
border-radius: unit(20, rpx);
|
|
322
|
-
|
|
339
|
+
|
|
340
|
+
&:last-child {
|
|
341
|
+
margin-bottom: 0;
|
|
342
|
+
}
|
|
343
|
+
|
|
323
344
|
|
|
324
345
|
&-left {
|
|
325
346
|
width: unit(200, rpx);
|
|
@@ -394,13 +415,14 @@
|
|
|
394
415
|
}
|
|
395
416
|
|
|
396
417
|
& > view:nth-child(2) {
|
|
397
|
-
width: unit(80, rpx);
|
|
418
|
+
min-width: unit(80, rpx);
|
|
398
419
|
height: unit(40, rpx);
|
|
399
420
|
border-radius: unit(20, rpx);
|
|
400
421
|
font-size: unit(22, rpx);
|
|
401
422
|
color: #fff;
|
|
402
423
|
text-align: center;
|
|
403
424
|
line-height: unit(40, rpx);
|
|
425
|
+
padding: 2rpx 10rpx;
|
|
404
426
|
}
|
|
405
427
|
}
|
|
406
428
|
}
|
|
@@ -8,17 +8,18 @@ module.exports = {
|
|
|
8
8
|
"card_point": 100000000,
|
|
9
9
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
10
10
|
"unit": "",
|
|
11
|
-
"end_time": "2024-10-31
|
|
11
|
+
"end_time": "2024-10-31",
|
|
12
12
|
"is_valid": "Y",
|
|
13
13
|
"main_product_name": "",
|
|
14
14
|
"other_card_point": 0,
|
|
15
|
-
"is_exchange": "N"
|
|
15
|
+
"is_exchange": "N",
|
|
16
|
+
"is_login":"Y"
|
|
16
17
|
}, {
|
|
17
18
|
"card_number": "101001000005193",
|
|
18
19
|
"card_point": 99963600,
|
|
19
20
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
20
21
|
"unit": "次",
|
|
21
|
-
"end_time": "2024-10-31
|
|
22
|
+
"end_time": "2024-10-31",
|
|
22
23
|
"is_valid": "Y",
|
|
23
24
|
"main_product_name": "",
|
|
24
25
|
"other_card_point": 0,
|
|
@@ -28,7 +29,7 @@ module.exports = {
|
|
|
28
29
|
"card_point": 100000000,
|
|
29
30
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
30
31
|
"unit": "",
|
|
31
|
-
"end_time": "2024-10-31
|
|
32
|
+
"end_time": "2024-10-31",
|
|
32
33
|
"is_valid": "Y",
|
|
33
34
|
"main_product_name": "",
|
|
34
35
|
"other_card_point": 0,
|
|
@@ -38,7 +39,7 @@ module.exports = {
|
|
|
38
39
|
"card_point": 99631000,
|
|
39
40
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
40
41
|
"unit": "点",
|
|
41
|
-
"end_time": "2024-10-31
|
|
42
|
+
"end_time": "2024-10-31",
|
|
42
43
|
"is_valid": "Y",
|
|
43
44
|
"main_product_name": "",
|
|
44
45
|
"other_card_point": 0,
|
|
@@ -48,7 +49,7 @@ module.exports = {
|
|
|
48
49
|
"card_point": 1400,
|
|
49
50
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
50
51
|
"unit": "",
|
|
51
|
-
"end_time": "2025-05-03
|
|
52
|
+
"end_time": "2025-05-03",
|
|
52
53
|
"is_valid": "Y",
|
|
53
54
|
"main_product_name": "",
|
|
54
55
|
"other_card_point": 0,
|
|
@@ -58,7 +59,7 @@ module.exports = {
|
|
|
58
59
|
"card_point": 0,
|
|
59
60
|
"card_type_name": "聚福宝测试C40",
|
|
60
61
|
"unit": "次",
|
|
61
|
-
"end_time": "2025-05-03
|
|
62
|
+
"end_time": "2025-05-03",
|
|
62
63
|
"is_valid": "Y",
|
|
63
64
|
"main_product_name": "",
|
|
64
65
|
"other_card_point": 0,
|
|
@@ -68,7 +69,7 @@ module.exports = {
|
|
|
68
69
|
"card_point": 3600,
|
|
69
70
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
70
71
|
"unit": "",
|
|
71
|
-
"end_time": "2025-05-03
|
|
72
|
+
"end_time": "2025-05-03",
|
|
72
73
|
"is_valid": "Y",
|
|
73
74
|
"main_product_name": "",
|
|
74
75
|
"other_card_point": 0,
|
|
@@ -78,7 +79,7 @@ module.exports = {
|
|
|
78
79
|
"card_point": 0,
|
|
79
80
|
"card_type_name": "聚福宝测试C40",
|
|
80
81
|
"unit": "次",
|
|
81
|
-
"end_time": "2025-05-03
|
|
82
|
+
"end_time": "2025-05-03",
|
|
82
83
|
"is_valid": "Y",
|
|
83
84
|
"main_product_name": "",
|
|
84
85
|
"other_card_point": 0,
|
|
@@ -88,7 +89,7 @@ module.exports = {
|
|
|
88
89
|
"card_point": 10000000,
|
|
89
90
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
90
91
|
"unit": "点",
|
|
91
|
-
"end_time": "2024-02-03
|
|
92
|
+
"end_time": "2024-02-03",
|
|
92
93
|
"is_valid": "Y",
|
|
93
94
|
"main_product_name": "",
|
|
94
95
|
"other_card_point": 0,
|
|
@@ -98,7 +99,7 @@ module.exports = {
|
|
|
98
99
|
"card_point": 1000000,
|
|
99
100
|
"card_type_name": "聚福宝福卡测试蛋糕",
|
|
100
101
|
"unit": "点",
|
|
101
|
-
"end_time": "2024-02-23
|
|
102
|
+
"end_time": "2024-02-23",
|
|
102
103
|
"is_valid": "Y",
|
|
103
104
|
"main_product_name": "",
|
|
104
105
|
"other_card_point": 0,
|
|
@@ -17,7 +17,19 @@ export default {
|
|
|
17
17
|
placeholder: '请输入票券登录文案',
|
|
18
18
|
className: 'input80',
|
|
19
19
|
inline: false,
|
|
20
|
-
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>"'
|
|
20
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: '票券已登录文案:',
|
|
24
|
+
ele: 'el-input',
|
|
25
|
+
type: 'text',
|
|
26
|
+
valueKey: 'logged_name',
|
|
27
|
+
groupKey:'content',
|
|
28
|
+
value: data.logged_name || '',
|
|
29
|
+
placeholder: '请输入票券已登录文案',
|
|
30
|
+
className: 'input80',
|
|
31
|
+
inline: false,
|
|
32
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
|
|
21
33
|
},
|
|
22
34
|
{
|
|
23
35
|
label: '绑定新票券地址:',
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
</view>
|
|
21
21
|
<template v-else>
|
|
22
22
|
<view class="card_list" v-if="cardList.length">
|
|
23
|
-
<xd-card-v2
|
|
23
|
+
<xd-card-v2
|
|
24
|
+
v-for="(item, index) in cardList"
|
|
24
25
|
:mainColor="mainColor"
|
|
25
26
|
:login-name="login_name"
|
|
27
|
+
:logged-name="logged_name"
|
|
26
28
|
:key="index"
|
|
27
29
|
:cardInfo="item"
|
|
28
30
|
:tabIndex="1"
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
changeUrl: "",
|
|
74
76
|
detailUrl: "",
|
|
75
77
|
login_name:'',
|
|
78
|
+
logged_name:'',
|
|
76
79
|
loadingCardList: true,
|
|
77
80
|
|
|
78
81
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
@@ -136,6 +139,7 @@
|
|
|
136
139
|
this.changeUrl = getContainerPropsValue(container, "content.changeUrl", {value: ""}).value;
|
|
137
140
|
this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
|
|
138
141
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
142
|
+
this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
|
|
139
143
|
},
|
|
140
144
|
toBindCard(){
|
|
141
145
|
let path = this.getUrlCallback(this.cardBindPath)
|
|
@@ -7,6 +7,15 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
+
{
|
|
11
|
+
label: '品牌文字颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'brandTextColor',
|
|
14
|
+
groupKey:'style',
|
|
15
|
+
value: data['brandTextColor'] || null,
|
|
16
|
+
placeholder: '请选择品牌文字颜色',
|
|
17
|
+
classNmae: 'input80',
|
|
18
|
+
},
|
|
10
19
|
{
|
|
11
20
|
label: '物流详情路径:',
|
|
12
21
|
ele: 'xd-select-pages-path',
|