jufubao-base 1.0.219 → 1.0.220-beta2
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
|
@@ -38,4 +38,29 @@ module.exports = [
|
|
|
38
38
|
isConsole: true,
|
|
39
39
|
disabled: true,
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
mapFnName: "checkSendStatus",
|
|
43
|
+
path: "/common/v1/valid_code/sms/check-send-status",
|
|
44
|
+
title: "校验验证码发送状态",
|
|
45
|
+
isRule: false,
|
|
46
|
+
data: {
|
|
47
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
48
|
+
biz_name: ['业务名称', 'String', '必选']
|
|
49
|
+
},
|
|
50
|
+
isConsole: true,
|
|
51
|
+
disabled: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
mapFnName: "loginJumpPhone",
|
|
55
|
+
path: "/passport/v1/user/login-jump-phone",
|
|
56
|
+
title: "授权登录(跳过手机号验证码)",
|
|
57
|
+
isRule: false,
|
|
58
|
+
data: {
|
|
59
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
60
|
+
provider_id: ['登录方式id', 'Number', '必选'],
|
|
61
|
+
auth_code: ['临时授权码', 'String', '否'],
|
|
62
|
+
},
|
|
63
|
+
isConsole: true,
|
|
64
|
+
disabled: true,
|
|
65
|
+
}
|
|
41
66
|
];
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
'--placeholder-font-color': placeholderFont.color,
|
|
42
42
|
'--placeholder-font-weight': placeholderFont.fontWeight,
|
|
43
43
|
'margin-top': '40rpx',
|
|
44
|
+
'--main-color': mainColor,
|
|
44
45
|
}"
|
|
45
46
|
>
|
|
46
47
|
<xd-form-item
|
|
@@ -131,6 +132,30 @@
|
|
|
131
132
|
@click="toNotLoginHome"
|
|
132
133
|
>暂不登录,去逛逛</view> -->
|
|
133
134
|
</view>
|
|
135
|
+
<xd-dialog :show.sync="showDialog"
|
|
136
|
+
:showClose="false"
|
|
137
|
+
maskAutoClose
|
|
138
|
+
:showTitle="false">
|
|
139
|
+
<view class="p_dialog_content">
|
|
140
|
+
<view class="">
|
|
141
|
+
<xd-font-icon icon="iconmingchengtubiao" :size="48" color="#666"></xd-font-icon>
|
|
142
|
+
</view>
|
|
143
|
+
<view class="cont_text">检测到短信发送异常<br/>是否跳过手机号收集?</view>
|
|
144
|
+
</view>
|
|
145
|
+
<view slot="btn" class="btn_foot" style="background-color: #DDD;">
|
|
146
|
+
<view class="btn_item" :style="{
|
|
147
|
+
backgroundColor: '#FFF',
|
|
148
|
+
}"
|
|
149
|
+
@click="p_loginNotJump"
|
|
150
|
+
>不跳过</view>
|
|
151
|
+
<view class="btn_item" :style="{
|
|
152
|
+
backgroundColor: mainColor,
|
|
153
|
+
color: '#FFF'
|
|
154
|
+
}"
|
|
155
|
+
@click="p_loginJumpPhone"
|
|
156
|
+
>跳过</view>
|
|
157
|
+
</view>
|
|
158
|
+
</xd-dialog>
|
|
134
159
|
</view>
|
|
135
160
|
</view>
|
|
136
161
|
</template>
|
|
@@ -147,6 +172,7 @@ import XdForm from "@/components/XdForm/XdForm";
|
|
|
147
172
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
148
173
|
import XdButton from "@/components/XdButton/XdButton";
|
|
149
174
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
175
|
+
import XdDialog from "@/components/XdDailog/XdDailog";
|
|
150
176
|
//#ifdef H5
|
|
151
177
|
import cookie from "@/common/cookie";
|
|
152
178
|
//#endif
|
|
@@ -164,6 +190,7 @@ export default {
|
|
|
164
190
|
XdFormInput,
|
|
165
191
|
XdButton,
|
|
166
192
|
XdFormCheckbox,
|
|
193
|
+
XdDialog
|
|
167
194
|
},
|
|
168
195
|
mixins: [componentsMixins, extsMixins, JfbBasePhoneLoginMixin],
|
|
169
196
|
data() {
|
|
@@ -179,6 +206,7 @@ export default {
|
|
|
179
206
|
provider_id: "",
|
|
180
207
|
callback_url: "",
|
|
181
208
|
isCollectUsername: false,
|
|
209
|
+
showDialog: false,
|
|
182
210
|
|
|
183
211
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
184
212
|
formBorderColor: "#F9F9F9", //
|
|
@@ -493,6 +521,7 @@ export default {
|
|
|
493
521
|
},
|
|
494
522
|
})
|
|
495
523
|
.then((res) => {
|
|
524
|
+
this.p_checkSendStatus(phone_number);
|
|
496
525
|
this.$xdHideLoading();
|
|
497
526
|
this.jfbTimeer = 120;
|
|
498
527
|
this.interval = setInterval(() => {
|
|
@@ -507,6 +536,44 @@ export default {
|
|
|
507
536
|
this.$xdLog.catch(error);
|
|
508
537
|
});
|
|
509
538
|
},
|
|
539
|
+
p_checkSendStatus(phone_number){
|
|
540
|
+
jfbRootExec("checkSendStatus", {
|
|
541
|
+
vm: this,
|
|
542
|
+
data: {
|
|
543
|
+
phone_number
|
|
544
|
+
}
|
|
545
|
+
}).then(res => {
|
|
546
|
+
if(res.is_jump === 'Y'){
|
|
547
|
+
this.showDialog = true;
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
},
|
|
551
|
+
p_loginNotJump(){
|
|
552
|
+
this.showDialog = false;
|
|
553
|
+
},
|
|
554
|
+
p_loginJumpPhone(){
|
|
555
|
+
const { auth_code, provider_id } = this;
|
|
556
|
+
const { phone_number } = this.accountForm;
|
|
557
|
+
this.$xdShowLoading({});
|
|
558
|
+
jfbRootExec("loginJumpPhone", {
|
|
559
|
+
vm: this,
|
|
560
|
+
data: {
|
|
561
|
+
auth_code,
|
|
562
|
+
provider_id,
|
|
563
|
+
phone_number,
|
|
564
|
+
}
|
|
565
|
+
}).then(res => {
|
|
566
|
+
this.$xdHideLoading();
|
|
567
|
+
let { callback_url } = this;
|
|
568
|
+
if (callback_url) callback_url = decodeURIComponent(callback_url);
|
|
569
|
+
this.$xdUniHelper.redirectTo({
|
|
570
|
+
url: callback_url || this.settings.index,
|
|
571
|
+
});
|
|
572
|
+
}).catch((error) => {
|
|
573
|
+
this.$xdHideLoading();
|
|
574
|
+
this.$xdLog.catch(error);
|
|
575
|
+
});
|
|
576
|
+
},
|
|
510
577
|
doLoginForm() {
|
|
511
578
|
const { auth_code, provider_id } = this;
|
|
512
579
|
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
@@ -564,6 +631,35 @@ export default {
|
|
|
564
631
|
|
|
565
632
|
.jfb-base-phone-login {
|
|
566
633
|
&__body {
|
|
634
|
+
::v-deep .xd-dailog__body-content{
|
|
635
|
+
padding: 2rpx;
|
|
636
|
+
overflow: hidden;
|
|
637
|
+
}
|
|
638
|
+
.p_dialog_content{
|
|
639
|
+
padding: 100rpx 0rpx;
|
|
640
|
+
display: flex;
|
|
641
|
+
align-items: center;
|
|
642
|
+
justify-content: center;
|
|
643
|
+
.cont_text{
|
|
644
|
+
text-align: left;
|
|
645
|
+
margin-left: 12rpx;
|
|
646
|
+
font-size: 32rpx;
|
|
647
|
+
color: #333;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
.btn_foot{
|
|
651
|
+
width: 100%;
|
|
652
|
+
display: flex;
|
|
653
|
+
.btn_item{
|
|
654
|
+
flex: 1;
|
|
655
|
+
border: 1px solid #E5E5E5;
|
|
656
|
+
height: 96rpx;
|
|
657
|
+
line-height: 96rpx;
|
|
658
|
+
text-align: center;
|
|
659
|
+
font-size: 32rpx;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
567
663
|
// #ifdef H5
|
|
568
664
|
.form-item {
|
|
569
665
|
::v-deep &.uni-forms-item {
|