jufubao-base 1.0.173 → 1.0.174-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 +1 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +9 -0
- package/src/components/JfbBaseLogin/Attr.js +61 -4
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +111 -46
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +3 -0
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +106 -25
- package/src/components/JfbBaseTfkCardDetail/Attr.js +0 -224
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +29 -25
- package/src/components/JfbBaseTfkCardDetail/Mock.js +2 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +50 -21
- package/src/components/JfbBaseTfkSearch/AllList.vue +101 -91
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +2 -0
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +17 -5
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +33 -10
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +14 -1
- package/src/components/JfbBaseTfkSearch/CustomList.vue +27 -5
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +28 -16
- package/src/components/JfbBaseTfkSearch/Mock.js +28 -47
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +1 -1
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -0
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
v-if="useSearch==='Y'"
|
|
54
54
|
:placeholder="placeholder"
|
|
55
55
|
class="search_input"
|
|
56
|
+
:value="keyword"
|
|
56
57
|
@input="handleInput"
|
|
57
58
|
@click="toSearch"
|
|
58
59
|
:placeholder-style="'color:' + inputTextColor"
|
|
@@ -100,6 +101,8 @@
|
|
|
100
101
|
timer: null,
|
|
101
102
|
saveKey: 'xd_user_current_access_city', //用户选中城市存储key
|
|
102
103
|
loaded: false,
|
|
104
|
+
keyword: "",
|
|
105
|
+
|
|
103
106
|
//面板
|
|
104
107
|
showLocation: "",
|
|
105
108
|
showLocationKey: 'showLocationKey',
|
|
@@ -204,6 +207,7 @@
|
|
|
204
207
|
|
|
205
208
|
},
|
|
206
209
|
handleInput(e){
|
|
210
|
+
this.keyword = e.detail.value;
|
|
207
211
|
if(this.timer) clearTimeout(this.timer);
|
|
208
212
|
this.timer = setTimeout(() => {
|
|
209
213
|
jfbRootFnExec(this, 'onCustomEvent')("baseHeader@search", e.detail.value);
|
|
@@ -242,6 +246,11 @@
|
|
|
242
246
|
}
|
|
243
247
|
this.$xdUniHelper.navigateBack();
|
|
244
248
|
},
|
|
249
|
+
onJfbCustomEvent({action, data}){
|
|
250
|
+
if(action === 'baseTfkSearch@keyword'){
|
|
251
|
+
this.keyword = data;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
245
254
|
}
|
|
246
255
|
}
|
|
247
256
|
|
|
@@ -16,6 +16,44 @@ export default {
|
|
|
16
16
|
{ label: '账号登录页', value: 'account' },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
label: "logo配置:",
|
|
21
|
+
ele: "title",
|
|
22
|
+
groupKey: "content",
|
|
23
|
+
size: "small"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "是否展示logo:",
|
|
27
|
+
ele: "xd-radio",
|
|
28
|
+
valueKey: "showLogo",
|
|
29
|
+
value: data.showLogo || "Y",
|
|
30
|
+
groupKey: "content",
|
|
31
|
+
list: [
|
|
32
|
+
{ label: '展示', value: "Y" },
|
|
33
|
+
{ label: '隐藏', value: "N" },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: '自定义Logo:',
|
|
38
|
+
ele: "xd-upload",
|
|
39
|
+
valueKey: 'customLogoUrl',
|
|
40
|
+
groupKey:'content',
|
|
41
|
+
value: data.customLogoUrl || {},
|
|
42
|
+
defaultValue: data.customLogoUrl || null,
|
|
43
|
+
slot: true,
|
|
44
|
+
oneWidth: 100,
|
|
45
|
+
oneHeight: 100,
|
|
46
|
+
elinputClassName: 'input40',
|
|
47
|
+
tipsformet: '上传格式:@imageType@不超过@size@MB.建议比例1:1',
|
|
48
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
49
|
+
styleType: 'one',
|
|
50
|
+
uploadType: 'aliyun',
|
|
51
|
+
size: 5,
|
|
52
|
+
action: 'action',
|
|
53
|
+
sort: true,
|
|
54
|
+
maxlen: 100,
|
|
55
|
+
hidden: data.showLogo !== "Y",
|
|
56
|
+
},
|
|
19
57
|
{
|
|
20
58
|
ele: 'title',
|
|
21
59
|
label: '按钮内容配置',
|
|
@@ -597,7 +635,7 @@ export default {
|
|
|
597
635
|
label: 'logo样式配置',
|
|
598
636
|
size: 'small',
|
|
599
637
|
groupKey: 'style',
|
|
600
|
-
hidden: data.
|
|
638
|
+
hidden: data.showLogo !== "Y",
|
|
601
639
|
},
|
|
602
640
|
{
|
|
603
641
|
label: "logo区域高度:",
|
|
@@ -608,7 +646,7 @@ export default {
|
|
|
608
646
|
groupKey:'style',
|
|
609
647
|
placeholder: "请输入logo区域高度",
|
|
610
648
|
className: 'input60',
|
|
611
|
-
hidden: data.
|
|
649
|
+
hidden: data.showLogo !== "Y",
|
|
612
650
|
},
|
|
613
651
|
{
|
|
614
652
|
label: "logo图片高度:",
|
|
@@ -619,7 +657,7 @@ export default {
|
|
|
619
657
|
groupKey:'style',
|
|
620
658
|
placeholder: "请输入logo图片高度",
|
|
621
659
|
className: 'input60',
|
|
622
|
-
hidden: data.
|
|
660
|
+
hidden: data.showLogo !== "Y",
|
|
623
661
|
},
|
|
624
662
|
{
|
|
625
663
|
label: 'logo圆角设置:',
|
|
@@ -639,7 +677,7 @@ export default {
|
|
|
639
677
|
console.error(error);
|
|
640
678
|
});
|
|
641
679
|
},
|
|
642
|
-
hidden: data.
|
|
680
|
+
hidden: data.showLogo !== "Y",
|
|
643
681
|
},
|
|
644
682
|
{
|
|
645
683
|
ele: "title",
|
|
@@ -648,6 +686,25 @@ export default {
|
|
|
648
686
|
groupKey: "style",
|
|
649
687
|
hidden: data.previewCurrent !== "account",
|
|
650
688
|
},
|
|
689
|
+
{
|
|
690
|
+
label: '登录方式菜单外边距:',
|
|
691
|
+
ele: "xd-margin-padding",
|
|
692
|
+
valueKey: 'loginMenuMargin',
|
|
693
|
+
value: data.loginMenuMargin || {
|
|
694
|
+
top: 40,
|
|
695
|
+
right: 70,
|
|
696
|
+
bottom: 40,
|
|
697
|
+
left: 70
|
|
698
|
+
},
|
|
699
|
+
setting: {
|
|
700
|
+
type: 'margin',
|
|
701
|
+
},
|
|
702
|
+
groupKey:'style',
|
|
703
|
+
placeholder: '请设置边距',
|
|
704
|
+
inline: false,
|
|
705
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
706
|
+
hidden: data.previewCurrent !== "account",
|
|
707
|
+
},
|
|
651
708
|
{
|
|
652
709
|
label: "输入框样式:",
|
|
653
710
|
ele: 'xd-radio',
|
|
@@ -19,13 +19,15 @@
|
|
|
19
19
|
<view class="jfb-base-login__body" :style="{
|
|
20
20
|
'--agreement-align': agreementAlign
|
|
21
21
|
}">
|
|
22
|
+
|
|
23
|
+
<view v-if="showLogo === 'Y'" class="logo-wrap" :style="{
|
|
24
|
+
height: logoWrapHeight + 'rpx',
|
|
25
|
+
}">
|
|
26
|
+
<image :style="logoStyle" mode="heightFix" :src="logo" @click="openDebugger()" />
|
|
27
|
+
<view v-if="isShowSiteName === 'Y'" :style="{ color: logoTextColor, }" >{{ partnerName }}</view>
|
|
28
|
+
</view>
|
|
29
|
+
|
|
22
30
|
<view v-if="showStep === 1" class="panel-login-auth">
|
|
23
|
-
<view class="logo-wrap" :style="{
|
|
24
|
-
height: logoWrapHeight + 'rpx',
|
|
25
|
-
}">
|
|
26
|
-
<image :style="logoStyle" mode="heightFix" :src="logo" @click="openDebugger()" />
|
|
27
|
-
<view v-if="isShowSiteName === 'Y'" :style="{ color: logoTextColor, }" >{{ partnerName }}</view>
|
|
28
|
-
</view>
|
|
29
31
|
<view class="login_types" :style="authBtnBoxStyle">
|
|
30
32
|
<!--#ifdef H5-->
|
|
31
33
|
<xd-button
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
</view>
|
|
101
103
|
</view>
|
|
102
104
|
<view v-if="showStep === 2" class="panel-login-password">
|
|
103
|
-
<view class="phone-login-type">
|
|
105
|
+
<view class="phone-login-type" :style="accountLoginTypeBoxStyle">
|
|
104
106
|
<view
|
|
105
107
|
v-if="phoneLogin"
|
|
106
108
|
class="_item"
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
>密码登录<text :style="{ background: mainColor }"></text
|
|
117
119
|
></view>
|
|
118
120
|
</view>
|
|
119
|
-
<view
|
|
121
|
+
<view :style="loginFormStyle">
|
|
120
122
|
<xd-form
|
|
121
123
|
:label-align="labelAlign"
|
|
122
124
|
:labelPosition="labelPosition"
|
|
@@ -172,7 +174,7 @@
|
|
|
172
174
|
</xd-form-item>
|
|
173
175
|
<xd-form-item
|
|
174
176
|
v-if="accountLoginType === 'pwd'"
|
|
175
|
-
class="form-item"
|
|
177
|
+
class="form-item password-form-item"
|
|
176
178
|
:class="[inputStyle]"
|
|
177
179
|
label="密码"
|
|
178
180
|
:leftIcon="passwordIcon"
|
|
@@ -188,6 +190,23 @@
|
|
|
188
190
|
</xd-form>
|
|
189
191
|
</view>
|
|
190
192
|
|
|
193
|
+
<view class="form-group" :style="btnWrapStyle">
|
|
194
|
+
<xd-button
|
|
195
|
+
style="flex: 1"
|
|
196
|
+
type="primary"
|
|
197
|
+
:radius="btnRadius + 'rpx'"
|
|
198
|
+
:bg-color="btnColor"
|
|
199
|
+
:disabled="!panelTwoIsChecked"
|
|
200
|
+
@click="doLoginForm"
|
|
201
|
+
>
|
|
202
|
+
<xd-font-icon v-if="phoneLoginBtnIcon"
|
|
203
|
+
style="display: inline-flex;margin-right: 12rpx;"
|
|
204
|
+
:icon="phoneLoginBtnIcon"
|
|
205
|
+
></xd-font-icon>
|
|
206
|
+
{{ phoneLoginBtnText }}
|
|
207
|
+
</xd-button
|
|
208
|
+
>
|
|
209
|
+
</view>
|
|
191
210
|
<view class="form-group" :style="agreementBoxStyle">
|
|
192
211
|
<xd-form-checkbox
|
|
193
212
|
class="xd-form-checkbox"
|
|
@@ -211,23 +230,6 @@
|
|
|
211
230
|
</template>
|
|
212
231
|
</xd-form-checkbox>
|
|
213
232
|
</view>
|
|
214
|
-
<view class="form-group" :style="btnWrapStyle">
|
|
215
|
-
<xd-button
|
|
216
|
-
style="flex: 1"
|
|
217
|
-
type="primary"
|
|
218
|
-
:radius="btnRadius + 'rpx'"
|
|
219
|
-
:bg-color="btnColor"
|
|
220
|
-
:disabled="!panelTwoIsChecked"
|
|
221
|
-
@click="doLoginForm"
|
|
222
|
-
>
|
|
223
|
-
<xd-font-icon v-if="phoneLoginBtnIcon"
|
|
224
|
-
style="display: inline-flex;margin-right: 12rpx;"
|
|
225
|
-
:icon="phoneLoginBtnIcon"
|
|
226
|
-
></xd-font-icon>
|
|
227
|
-
{{ phoneLoginBtnText }}
|
|
228
|
-
</xd-button
|
|
229
|
-
>
|
|
230
|
-
</view>
|
|
231
233
|
<view
|
|
232
234
|
v-if="accountLoginType === 'pwd'"
|
|
233
235
|
class="forget_password"
|
|
@@ -434,6 +436,9 @@ export default {
|
|
|
434
436
|
}, //条款内边距
|
|
435
437
|
authAgreePadding: {}, //授权登录条款内边距
|
|
436
438
|
authBtnPadding: {}, //授权登录按钮内边距
|
|
439
|
+
showLogo: "Y", //是否显示logo
|
|
440
|
+
customLogoUrl: {}, //自定义logo地址
|
|
441
|
+
loginMenuMargin: {},
|
|
437
442
|
};
|
|
438
443
|
},
|
|
439
444
|
computed: {
|
|
@@ -493,9 +498,18 @@ export default {
|
|
|
493
498
|
},
|
|
494
499
|
btnWrapStyle(){
|
|
495
500
|
let padding = `${this.checkValue(this.btnMargin.top, 20)}rpx`;
|
|
496
|
-
padding = `${padding} ${this.checkValue(this.btnMargin.right,
|
|
501
|
+
padding = `${padding} ${this.checkValue(this.btnMargin.right, 20)}rpx`;
|
|
497
502
|
padding = `${padding} ${this.checkValue(this.btnMargin.bottom, 20)}rpx`;
|
|
498
|
-
padding = `${padding} ${this.checkValue(this.btnMargin.left,
|
|
503
|
+
padding = `${padding} ${this.checkValue(this.btnMargin.left, 20)}rpx`;
|
|
504
|
+
return this.styleObjectToString({
|
|
505
|
+
padding: padding,
|
|
506
|
+
})
|
|
507
|
+
},
|
|
508
|
+
accountLoginTypeBoxStyle(){
|
|
509
|
+
let padding = `${this.checkValue(this.loginMenuMargin.top, 20)}rpx`;
|
|
510
|
+
padding = `${padding} ${this.checkValue(this.loginMenuMargin.right, 20)}rpx`;
|
|
511
|
+
padding = `${padding} ${this.checkValue(this.loginMenuMargin.bottom, 20)}rpx`;
|
|
512
|
+
padding = `${padding} ${this.checkValue(this.loginMenuMargin.left, 20)}rpx`;
|
|
499
513
|
return this.styleObjectToString({
|
|
500
514
|
padding: padding,
|
|
501
515
|
})
|
|
@@ -621,7 +635,7 @@ export default {
|
|
|
621
635
|
name = this["siteInfo"]["mapping"]["site_name"];
|
|
622
636
|
if (this.projectAttr["site_logo"])
|
|
623
637
|
logo = getServiceUrl(this.projectAttr["site_logo"], "size3");
|
|
624
|
-
|
|
638
|
+
|
|
625
639
|
this.partnerName = name || "聚福宝福利";
|
|
626
640
|
this.logoTextColor = getContainerPropsValue(value, "content.logoTextColor", "#333");
|
|
627
641
|
this.callback_url = getContainerPropsValue(value, "content.callback_url", {value: ''}).value;
|
|
@@ -668,6 +682,15 @@ export default {
|
|
|
668
682
|
this.contentFont = getContainerPropsValue(value, "content.contentFont", {});
|
|
669
683
|
this.placeholderFont = getContainerPropsValue(value, "content.placeholderFont", {});
|
|
670
684
|
this.getCodeFont = getContainerPropsValue(value, "content.getCodeFont", {});
|
|
685
|
+
this.showLogo = getContainerPropsValue(value, "content.showLogo", 'Y');
|
|
686
|
+
this.customLogoUrl = getContainerPropsValue(value, "content.customLogoUrl", {});
|
|
687
|
+
this.loginMenuMargin = getContainerPropsValue(value, "content.loginMenuMargin", {});
|
|
688
|
+
|
|
689
|
+
if(this.customLogoUrl && this.customLogoUrl.path){
|
|
690
|
+
logo = this.customLogoUrl.path;
|
|
691
|
+
}
|
|
692
|
+
this.logo = logo || "//dummyimage.com/100x100";
|
|
693
|
+
|
|
671
694
|
let agreeFont = getContainerPropsValue(value, "content.agreeFont", {});
|
|
672
695
|
if(!agreeFont.color) {
|
|
673
696
|
agreeFont.color = '#666'
|
|
@@ -680,7 +703,7 @@ export default {
|
|
|
680
703
|
this.privacyFont = privacyFont;
|
|
681
704
|
|
|
682
705
|
this.agreementAlign = getContainerPropsValue(value, "content.agreementAlign", 'center');
|
|
683
|
-
console.log(this.
|
|
706
|
+
console.log(this.customLogoUrl, 'this.customLogoUrl');
|
|
684
707
|
if(this.inputStyle === 'face'){
|
|
685
708
|
this.labelPosition = 'top';
|
|
686
709
|
this.labelAlign = 'left';
|
|
@@ -1075,6 +1098,7 @@ export default {
|
|
|
1075
1098
|
box-sizing: border-box;
|
|
1076
1099
|
|
|
1077
1100
|
&__body {
|
|
1101
|
+
padding-bottom: 160rpx;
|
|
1078
1102
|
.xd-form-checkbox {
|
|
1079
1103
|
::v-deep .checklist-content .checklist-text {
|
|
1080
1104
|
font-size: 26rpx !important;
|
|
@@ -1100,9 +1124,10 @@ export default {
|
|
|
1100
1124
|
.form-group {
|
|
1101
1125
|
padding: 40rpx 70rpx;
|
|
1102
1126
|
}
|
|
1127
|
+
// #ifdef H5
|
|
1103
1128
|
.form-item {
|
|
1104
1129
|
::v-deep &.uni-forms-item {
|
|
1105
|
-
padding-left: unit(
|
|
1130
|
+
// padding-left: unit(30,rpx) !important;
|
|
1106
1131
|
.uni-input-input{
|
|
1107
1132
|
font-size: var(--content-font-size);
|
|
1108
1133
|
color: var(--content-font-color);
|
|
@@ -1136,6 +1161,44 @@ export default {
|
|
|
1136
1161
|
|
|
1137
1162
|
}
|
|
1138
1163
|
}
|
|
1164
|
+
// #endif
|
|
1165
|
+
|
|
1166
|
+
// #ifdef MP
|
|
1167
|
+
::v-deep .uni-forms-item {
|
|
1168
|
+
// padding-left: 30rpx !important;
|
|
1169
|
+
.uni-input-input{
|
|
1170
|
+
font-size: var(--content-font-size);
|
|
1171
|
+
color: var(--content-font-color);
|
|
1172
|
+
font-weight: var(--content-font-weight);
|
|
1173
|
+
}
|
|
1174
|
+
.label-text {
|
|
1175
|
+
font-size: var(--label-font-size);
|
|
1176
|
+
color: var(--label-font-color);
|
|
1177
|
+
font-weight: var(--label-font-weight);
|
|
1178
|
+
}
|
|
1179
|
+
.uni-easyinput__placeholder-class{
|
|
1180
|
+
font-size: var(--placeholder-font-size);
|
|
1181
|
+
color: var(--placeholder-font-color);
|
|
1182
|
+
font-weight: var(--placeholder-font-weight);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
.linear{
|
|
1186
|
+
::v-deep .uni-forms-item--border{
|
|
1187
|
+
border-top: none !important;
|
|
1188
|
+
border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
.face{
|
|
1192
|
+
::v-deep .uni-forms-item__content{
|
|
1193
|
+
background: #F7F7F7;
|
|
1194
|
+
border-radius: 16rpx;
|
|
1195
|
+
}
|
|
1196
|
+
::v-deep .uni-forms-item--border{
|
|
1197
|
+
border: none;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
// #endif
|
|
1201
|
+
|
|
1139
1202
|
.get_code {
|
|
1140
1203
|
color: @xd-base-color;
|
|
1141
1204
|
font-size: 24rpx;
|
|
@@ -1143,6 +1206,22 @@ export default {
|
|
|
1143
1206
|
padding: 10rpx 24rpx;
|
|
1144
1207
|
border: 1px solid @xd-base-color;
|
|
1145
1208
|
border-radius: 40rpx;
|
|
1209
|
+
white-space: nowrap;
|
|
1210
|
+
}
|
|
1211
|
+
.logo-wrap {
|
|
1212
|
+
display: flex;
|
|
1213
|
+
align-items: center;
|
|
1214
|
+
justify-content: center;
|
|
1215
|
+
flex-direction: column;
|
|
1216
|
+
image {
|
|
1217
|
+
width: 180rpx;
|
|
1218
|
+
height: 180rpx;
|
|
1219
|
+
}
|
|
1220
|
+
& > view {
|
|
1221
|
+
font-size: unit(36,rpx);
|
|
1222
|
+
font-weight: 600;
|
|
1223
|
+
margin-top: 12rpx;
|
|
1224
|
+
}
|
|
1146
1225
|
}
|
|
1147
1226
|
.panel-login-auth {
|
|
1148
1227
|
::v-deep .uni-forms-item__label {
|
|
@@ -1151,21 +1230,7 @@ export default {
|
|
|
1151
1230
|
color: #a6a6a6;
|
|
1152
1231
|
}
|
|
1153
1232
|
}
|
|
1154
|
-
|
|
1155
|
-
display: flex;
|
|
1156
|
-
align-items: center;
|
|
1157
|
-
justify-content: center;
|
|
1158
|
-
flex-direction: column;
|
|
1159
|
-
image {
|
|
1160
|
-
width: 180rpx;
|
|
1161
|
-
height: 180rpx;
|
|
1162
|
-
margin-bottom: unit(12,rpx);
|
|
1163
|
-
}
|
|
1164
|
-
view {
|
|
1165
|
-
font-size: unit(36,rpx);
|
|
1166
|
-
font-weight: 600;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1233
|
+
|
|
1169
1234
|
.login_types {
|
|
1170
1235
|
padding: 10rpx 50rpx;
|
|
1171
1236
|
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
<view class="menu_list">
|
|
39
39
|
<view class="menu_item" @click="switchShowType('ticket')">
|
|
40
40
|
<view class="menu_inner" :class="menuShowType"
|
|
41
|
-
:style="
|
|
41
|
+
:style="menuType == 'ticket' ? menuItemActiveStyle : menuItemStyle">实体券</view>
|
|
42
42
|
</view>
|
|
43
43
|
<view class="menu_item" @click="switchShowType('code')">
|
|
44
44
|
<view class="menu_inner" :class="menuShowType"
|
|
45
|
-
:style="
|
|
45
|
+
:style="menuType == 'code' ? menuItemActiveStyle : menuItemStyle">电子码</view>
|
|
46
46
|
</view>
|
|
47
47
|
</view>
|
|
48
48
|
</view>
|
|
@@ -67,8 +67,9 @@
|
|
|
67
67
|
<xd-form-input
|
|
68
68
|
v-model="form.card_number"
|
|
69
69
|
placeholder="请输入票券号"
|
|
70
|
+
style="width: 100%;"
|
|
70
71
|
/>
|
|
71
|
-
<view @click="doScanCode">
|
|
72
|
+
<view @click.stop="doScanCode" style="margin-left: 20rpx;">
|
|
72
73
|
<xd-font-icon :icon="scanIcon.icon || 'iconsaoma'"
|
|
73
74
|
:color="scanIcon.color"
|
|
74
75
|
:style="{fontSize: scanIcon.fontSize}"
|
|
@@ -102,8 +103,9 @@
|
|
|
102
103
|
<xd-form-input
|
|
103
104
|
v-model="form.valid_code"
|
|
104
105
|
placeholder="请输入验证码"
|
|
106
|
+
style="width: 100%;"
|
|
105
107
|
/>
|
|
106
|
-
<view class="form_valid_code">
|
|
108
|
+
<view class="form_valid_code" @click="switchValidToken">
|
|
107
109
|
<image
|
|
108
110
|
style="width: 100%;height:100%"
|
|
109
111
|
:src="validImageAPIUrl + '?image_width=160&image_height=50&token='+ valid_token"
|
|
@@ -178,6 +180,9 @@
|
|
|
178
180
|
import extsMixins from "@/mixins/extsMixins";
|
|
179
181
|
import { mapState } from "vuex";
|
|
180
182
|
export default {
|
|
183
|
+
// #ifdef MP-WEIXIN
|
|
184
|
+
options: { styleIsolation: 'shared' },
|
|
185
|
+
// #endif
|
|
181
186
|
name: "JfbBaseTfkCardBind",
|
|
182
187
|
components: {
|
|
183
188
|
XdFontIcon,
|
|
@@ -332,14 +337,12 @@
|
|
|
332
337
|
fontSize: '24rpx',
|
|
333
338
|
})
|
|
334
339
|
},
|
|
335
|
-
|
|
340
|
+
menuItemBoxPadding(){
|
|
336
341
|
let padding = `${this.checkValue(this.menuBtnPadding.top, 20)}rpx`;
|
|
337
342
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.right, 20)}rpx`;
|
|
338
343
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.bottom, 20)}rpx`;
|
|
339
344
|
padding = `${padding} ${this.checkValue(this.menuBtnPadding.left, 20)}rpx`;
|
|
340
|
-
return
|
|
341
|
-
padding
|
|
342
|
-
})
|
|
345
|
+
return padding;
|
|
343
346
|
},
|
|
344
347
|
menuItemStyle(){
|
|
345
348
|
let styleObj = {
|
|
@@ -347,6 +350,7 @@
|
|
|
347
350
|
background: this.menuTabColor['bgColor'] || '#fff',
|
|
348
351
|
fontSize: this.menuTabColor['fontSize'] || '30rpx',
|
|
349
352
|
fontWeight: this.menuTabColor['fontWeight'] || 'normal',
|
|
353
|
+
padding: this.menuItemBoxPadding,
|
|
350
354
|
}
|
|
351
355
|
|
|
352
356
|
return this.styleObjectToString(styleObj)
|
|
@@ -358,6 +362,7 @@
|
|
|
358
362
|
background: this.menuTabColor['actBgColor'] || '#fff',
|
|
359
363
|
fontSize: this.menuTabColor['actFontSize'] || '30rpx',
|
|
360
364
|
fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
|
|
365
|
+
padding: this.menuItemBoxPadding,
|
|
361
366
|
}
|
|
362
367
|
if(this.menuShowType === 'text'){
|
|
363
368
|
styleActiveObj['borderBottom'] = `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`;
|
|
@@ -461,7 +466,7 @@
|
|
|
461
466
|
}
|
|
462
467
|
},
|
|
463
468
|
toShowCouponDialog(){
|
|
464
|
-
if(this.
|
|
469
|
+
if(this.form.card_number){
|
|
465
470
|
jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.form.card_number})
|
|
466
471
|
}
|
|
467
472
|
},
|
|
@@ -478,6 +483,7 @@
|
|
|
478
483
|
let path = this.getUrlCallback(this.my_card_url || this.backUrl);
|
|
479
484
|
//有优惠券处理
|
|
480
485
|
if(this.hasCon){
|
|
486
|
+
console.warn("绑定成功有优惠券处理");
|
|
481
487
|
this.toShowCouponDialog();
|
|
482
488
|
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
483
489
|
if(container_id === this.hasCon){
|
|
@@ -526,18 +532,24 @@
|
|
|
526
532
|
title: '请输入验证码',
|
|
527
533
|
icon: "none"
|
|
528
534
|
})
|
|
529
|
-
|
|
535
|
+
this.$xdShowLoading({});
|
|
530
536
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
537
|
+
this.checkValidToken().then(() => {
|
|
538
|
+
jfbRootExec("pwdCardBind", {
|
|
539
|
+
vm: this,
|
|
540
|
+
data: {
|
|
541
|
+
card_password: card_password,
|
|
542
|
+
card_number: card_number + "",
|
|
543
|
+
is_show_pop: "Y"
|
|
544
|
+
}
|
|
545
|
+
}).then(res => {
|
|
546
|
+
this.$xdHideLoading();
|
|
547
|
+
this.handlerAfterBindCard(res);
|
|
548
|
+
})
|
|
549
|
+
}).catch(err => {
|
|
550
|
+
this.$xdHideLoading();
|
|
540
551
|
})
|
|
552
|
+
|
|
541
553
|
},
|
|
542
554
|
//绑定电子码票券
|
|
543
555
|
toBindCardDigital(){
|
|
@@ -671,6 +683,7 @@
|
|
|
671
683
|
|
|
672
684
|
.jfb-base-tfk-card-bind {
|
|
673
685
|
&__body{
|
|
686
|
+
// #ifdef H5
|
|
674
687
|
.form-item {
|
|
675
688
|
::v-deep &.uni-forms-item {
|
|
676
689
|
.is-required{
|
|
@@ -697,8 +710,6 @@
|
|
|
697
710
|
}
|
|
698
711
|
&.linear{
|
|
699
712
|
::v-deep &.uni-forms-item--border{
|
|
700
|
-
// border-color: var(--form-border-color) !important;
|
|
701
|
-
// border-width: var(--form-border-width) !important;
|
|
702
713
|
border-top: none !important;
|
|
703
714
|
border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
|
|
704
715
|
}
|
|
@@ -742,13 +753,83 @@
|
|
|
742
753
|
::v-deep .label-icon{
|
|
743
754
|
font-size: var(--digital-icon-size) !important;
|
|
744
755
|
}
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
// #endif
|
|
759
|
+
|
|
760
|
+
// #ifdef MP
|
|
761
|
+
::v-deep .uni-forms-item {
|
|
762
|
+
.is-required{
|
|
763
|
+
display: none;
|
|
764
|
+
}
|
|
765
|
+
.uni-input-input{
|
|
766
|
+
font-size: var(--content-font-size);
|
|
767
|
+
color: var(--content-font-color);
|
|
768
|
+
font-weight: var(--content-font-weight);
|
|
769
|
+
}
|
|
770
|
+
.label-text {
|
|
771
|
+
font-size: var(--label-font-size);
|
|
772
|
+
color: var(--label-font-color);
|
|
773
|
+
font-weight: var(--label-font-weight);
|
|
774
|
+
}
|
|
775
|
+
.uni-easyinput__placeholder-class{
|
|
776
|
+
font-size: var(--placeholder-font-size);
|
|
777
|
+
color: var(--placeholder-font-color);
|
|
778
|
+
font-weight: var(--placeholder-font-weight);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
::v-deep .uni-forms-item--border{
|
|
782
|
+
padding: var(--form-input-padding) 0;
|
|
783
|
+
}
|
|
784
|
+
.linear{
|
|
785
|
+
::v-deep .uni-forms-item--border{
|
|
786
|
+
border-top: none !important;
|
|
787
|
+
border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
.face{
|
|
791
|
+
::v-deep .uni-forms-item__box{
|
|
792
|
+
background: #F7F7F7;
|
|
793
|
+
border-radius: var(--form-border-radius);
|
|
794
|
+
padding-right: 20rpx;
|
|
795
|
+
}
|
|
796
|
+
::v-deep .uni-forms-item--border{
|
|
797
|
+
border: none;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
.ticket_item{
|
|
801
|
+
::v-deep .label-icon{
|
|
802
|
+
font-size: var(--ticket-icon-size) !important;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
.password_item{
|
|
806
|
+
::v-deep .label-icon{
|
|
807
|
+
font-size: var(--password-icon-size) !important;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
.valid_item{
|
|
811
|
+
::v-deep .label-icon{
|
|
812
|
+
font-size: var(--valid-icon-size) !important;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
.digital_item{
|
|
816
|
+
&.linear{
|
|
817
|
+
::v-deep .uni-forms-item--border{
|
|
818
|
+
border-color: var(--digital-border-color) !important;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
&.face{
|
|
822
|
+
::v-deep .uni-forms-item__box{
|
|
823
|
+
border-radius: var(--digital-border-radius);
|
|
749
824
|
}
|
|
750
825
|
}
|
|
826
|
+
::v-deep .label-icon{
|
|
827
|
+
font-size: var(--digital-icon-size) !important;
|
|
828
|
+
}
|
|
751
829
|
}
|
|
830
|
+
// #endif
|
|
831
|
+
|
|
832
|
+
|
|
752
833
|
.menu_wrap{
|
|
753
834
|
.menu_list{
|
|
754
835
|
display: flex;
|