jufubao-base 1.0.212-beta89 → 1.0.213-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<view class="h_sub">请务必由本人签收,字迹工整</view>
|
|
132
132
|
</view>
|
|
133
133
|
<view class="sign_box">
|
|
134
|
-
<xd-signature ref="signatureRef" v-if="showSignatureRef"></xd-signature>
|
|
134
|
+
<xd-signature ref="signatureRef" backgroundColor="#fff" v-if="showSignatureRef"></xd-signature>
|
|
135
135
|
</view>
|
|
136
136
|
<view slot="btn" class="btn_wrap">
|
|
137
137
|
<xd-button style="width: 220rpx;" @click="clearSign">重写</xd-button>
|
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
'margin-top': '40rpx'
|
|
42
42
|
}"
|
|
43
43
|
>
|
|
44
|
+
<xd-form-item
|
|
45
|
+
v-if="isCollectUsername"
|
|
46
|
+
class="form-item"
|
|
47
|
+
:class="[inputStyle]"
|
|
48
|
+
:labelWidth="labelWidth"
|
|
49
|
+
label="姓名"
|
|
50
|
+
content-align="left">
|
|
51
|
+
<xd-form-input
|
|
52
|
+
v-model="accountForm.user_name"
|
|
53
|
+
placeholder="请输入姓名"
|
|
54
|
+
/>
|
|
55
|
+
</xd-form-item>
|
|
44
56
|
<xd-form-item
|
|
45
57
|
class="form-item"
|
|
46
58
|
:class="[inputStyle]"
|
|
@@ -131,6 +143,9 @@ import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
|
131
143
|
import XdButton from "@/components/XdButton/XdButton";
|
|
132
144
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
133
145
|
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
146
|
+
//#ifdef H5
|
|
147
|
+
import cookie from "@/common/cookie";
|
|
148
|
+
//#endif
|
|
134
149
|
|
|
135
150
|
export default {
|
|
136
151
|
// #ifdef MP-WEIXIN
|
|
@@ -159,6 +174,7 @@ export default {
|
|
|
159
174
|
provider_id: "",
|
|
160
175
|
callback_url: "",
|
|
161
176
|
is_show_skip: "Y",
|
|
177
|
+
isCollectUsername: false,
|
|
162
178
|
|
|
163
179
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
164
180
|
formBorderColor: "#F9F9F9", //
|
|
@@ -294,6 +310,9 @@ export default {
|
|
|
294
310
|
},
|
|
295
311
|
created() {
|
|
296
312
|
this.init(this.container);
|
|
313
|
+
// #ifdef H5
|
|
314
|
+
this.isCollectUsername = !!cookie.get("JFB-IS-COLLECT-NAME");
|
|
315
|
+
// #endif
|
|
297
316
|
},
|
|
298
317
|
methods: {
|
|
299
318
|
handlePrivacy(code) {
|
|
@@ -413,8 +432,9 @@ export default {
|
|
|
413
432
|
},
|
|
414
433
|
doLoginForm() {
|
|
415
434
|
const { provider_id } = this;
|
|
416
|
-
const { phone_number, verification_code } = this.accountForm;
|
|
435
|
+
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
417
436
|
if (!phone_number || !verification_code) return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
|
|
437
|
+
if(this.isCollectUsername && !user_name) return uni.showToast({ title: "用户名不能为空", icon: "none" });
|
|
418
438
|
|
|
419
439
|
this.$xdShowLoading({})
|
|
420
440
|
jfbRootExec("phoneCollect", {
|
|
@@ -423,6 +443,7 @@ export default {
|
|
|
423
443
|
provider_id,
|
|
424
444
|
phone_number,
|
|
425
445
|
verification_code,
|
|
446
|
+
user_name,
|
|
426
447
|
},
|
|
427
448
|
}).then((res) => {
|
|
428
449
|
this.$xdHideLoading()
|
|
@@ -43,6 +43,19 @@
|
|
|
43
43
|
'margin-top': '40rpx',
|
|
44
44
|
}"
|
|
45
45
|
>
|
|
46
|
+
<xd-form-item
|
|
47
|
+
v-if="isCollectUsername"
|
|
48
|
+
class="form-item"
|
|
49
|
+
:class="[inputStyle]"
|
|
50
|
+
:labelWidth="labelWidth"
|
|
51
|
+
label="姓名"
|
|
52
|
+
content-align="left"
|
|
53
|
+
>
|
|
54
|
+
<xd-form-input
|
|
55
|
+
v-model="accountForm.user_name"
|
|
56
|
+
placeholder="请输入姓名"
|
|
57
|
+
/>
|
|
58
|
+
</xd-form-item>
|
|
46
59
|
<xd-form-item
|
|
47
60
|
class="form-item"
|
|
48
61
|
:class="[inputStyle]"
|
|
@@ -134,6 +147,9 @@ import XdForm from "@/components/XdForm/XdForm";
|
|
|
134
147
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
135
148
|
import XdButton from "@/components/XdButton/XdButton";
|
|
136
149
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
150
|
+
//#ifdef H5
|
|
151
|
+
import cookie from "@/common/cookie";
|
|
152
|
+
//#endif
|
|
137
153
|
|
|
138
154
|
export default {
|
|
139
155
|
// #ifdef MP-WEIXIN
|
|
@@ -162,6 +178,7 @@ export default {
|
|
|
162
178
|
auth_code: "",
|
|
163
179
|
provider_id: "",
|
|
164
180
|
callback_url: "",
|
|
181
|
+
isCollectUsername: false,
|
|
165
182
|
|
|
166
183
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
167
184
|
formBorderColor: "#F9F9F9", //
|
|
@@ -305,6 +322,9 @@ export default {
|
|
|
305
322
|
},
|
|
306
323
|
created() {
|
|
307
324
|
this.init(this.container);
|
|
325
|
+
// #ifdef H5
|
|
326
|
+
this.isCollectUsername = !!cookie.get("JFB-IS-COLLECT-NAME");
|
|
327
|
+
// #endif
|
|
308
328
|
},
|
|
309
329
|
methods: {
|
|
310
330
|
handlePrivacy(code) {
|
|
@@ -489,9 +509,13 @@ export default {
|
|
|
489
509
|
},
|
|
490
510
|
doLoginForm() {
|
|
491
511
|
const { auth_code, provider_id } = this;
|
|
492
|
-
const { phone_number, verification_code } = this.accountForm;
|
|
493
|
-
if (!phone_number || !verification_code)
|
|
512
|
+
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
513
|
+
if (!phone_number || !verification_code){
|
|
494
514
|
return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
|
|
515
|
+
}
|
|
516
|
+
if(this.isCollectUsername && !user_name){
|
|
517
|
+
return uni.showToast({ title: "用户名不能为空", icon: "none" });
|
|
518
|
+
}
|
|
495
519
|
this.$xdShowLoading({});
|
|
496
520
|
jfbRootExec("phoneLogin", {
|
|
497
521
|
vm: this,
|
|
@@ -500,6 +524,7 @@ export default {
|
|
|
500
524
|
provider_id,
|
|
501
525
|
phone_number,
|
|
502
526
|
verification_code,
|
|
527
|
+
user_name
|
|
503
528
|
},
|
|
504
529
|
})
|
|
505
530
|
.then((res) => {
|