icve-sso-vue3 0.0.1 → 0.0.3
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/dist/icve-sso-vue3.common.js +169 -139
- package/dist/icve-sso-vue3.common.js.map +1 -1
- package/dist/icve-sso-vue3.css +1 -1
- package/dist/icve-sso-vue3.umd.js +169 -139
- package/dist/icve-sso-vue3.umd.js.map +1 -1
- package/dist/icve-sso-vue3.umd.min.js +4 -4
- package/dist/icve-sso-vue3.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -32716,45 +32716,45 @@ function unBindMobile(data) {
|
|
|
32716
32716
|
data: data
|
|
32717
32717
|
});
|
|
32718
32718
|
}
|
|
32719
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/verifyComponents.vue?vue&type=template&id=
|
|
32719
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/verifyComponents.vue?vue&type=template&id=5ed3cdce
|
|
32720
32720
|
|
|
32721
|
-
var
|
|
32721
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_1 = {
|
|
32722
32722
|
"class": "verify"
|
|
32723
32723
|
};
|
|
32724
|
-
var
|
|
32724
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_2 = {
|
|
32725
32725
|
key: 1,
|
|
32726
32726
|
"class": "aly"
|
|
32727
32727
|
};
|
|
32728
|
-
var
|
|
32728
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_3 = {
|
|
32729
32729
|
id: "clickButton",
|
|
32730
32730
|
ref: "clickButton"
|
|
32731
32731
|
};
|
|
32732
|
-
function
|
|
32732
|
+
function verifyComponentsvue_type_template_id_5ed3cdce_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32733
32733
|
var _component_TJCaptcha = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("TJCaptcha");
|
|
32734
32734
|
var _component_AliyunCaptchaModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("AliyunCaptchaModal");
|
|
32735
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
32735
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_1, [$data.type == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_TJCaptcha, {
|
|
32736
32736
|
key: 0,
|
|
32737
32737
|
ref: "TJCaptcha",
|
|
32738
32738
|
CaptchaAppId: $data.CaptchaAppId,
|
|
32739
32739
|
onSuccess: $options.success
|
|
32740
|
-
}, null, 8, ["CaptchaAppId", "onSuccess"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
32740
|
+
}, null, 8, ["CaptchaAppId", "onSuccess"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_AliyunCaptchaModal, {
|
|
32741
32741
|
id: "clickButton",
|
|
32742
32742
|
ref: "aliyunCaptcha",
|
|
32743
32743
|
sceneId: $data.sceneId,
|
|
32744
32744
|
onSuccess: $options.success
|
|
32745
|
-
}, null, 8, ["sceneId", "onSuccess"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
32745
|
+
}, null, 8, ["sceneId", "onSuccess"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_3, null, 512)]))]);
|
|
32746
32746
|
}
|
|
32747
|
-
;// ./src/components/verifyComponents.vue?vue&type=template&id=
|
|
32747
|
+
;// ./src/components/verifyComponents.vue?vue&type=template&id=5ed3cdce
|
|
32748
32748
|
|
|
32749
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/TJCaptcha.vue?vue&type=template&id=
|
|
32749
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/TJCaptcha.vue?vue&type=template&id=4adf8476
|
|
32750
32750
|
|
|
32751
|
-
var
|
|
32751
|
+
var TJCaptchavue_type_template_id_4adf8476_hoisted_1 = {
|
|
32752
32752
|
"class": "TJCaptcha"
|
|
32753
32753
|
};
|
|
32754
|
-
function
|
|
32755
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
32754
|
+
function TJCaptchavue_type_template_id_4adf8476_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32755
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", TJCaptchavue_type_template_id_4adf8476_hoisted_1);
|
|
32756
32756
|
}
|
|
32757
|
-
;// ./src/components/TJCaptcha.vue?vue&type=template&id=
|
|
32757
|
+
;// ./src/components/TJCaptcha.vue?vue&type=template&id=4adf8476
|
|
32758
32758
|
|
|
32759
32759
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/TJCaptcha.vue?vue&type=script&lang=js
|
|
32760
32760
|
|
|
@@ -32789,6 +32789,13 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32789
32789
|
},
|
|
32790
32790
|
init: function init(aidEncrypted) {
|
|
32791
32791
|
try {
|
|
32792
|
+
// 检查环境是否支持腾讯验证码
|
|
32793
|
+
if (typeof TencentCaptcha === 'undefined') {
|
|
32794
|
+
console.warn('腾讯验证码库未加载,使用容错处理');
|
|
32795
|
+
this.loadErrorCallback();
|
|
32796
|
+
return;
|
|
32797
|
+
}
|
|
32798
|
+
|
|
32792
32799
|
// 生成一个验证码对象
|
|
32793
32800
|
// CaptchaAppId:登录验证码控制台,从【验证管理】页面进行查看。如果未创建过验证,请先新建验证。注意:不可使用客户端类型为小程序的CaptchaAppId,会导致数据统计错误。
|
|
32794
32801
|
//callback:定义的回调函数
|
|
@@ -32800,7 +32807,7 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32800
32807
|
} catch (error) {
|
|
32801
32808
|
console.log("%c Line:32 🥛 error", "color:#93c0a4", error);
|
|
32802
32809
|
// 加载异常,调用验证码js加载错误处理函数
|
|
32803
|
-
|
|
32810
|
+
this.loadErrorCallback();
|
|
32804
32811
|
}
|
|
32805
32812
|
},
|
|
32806
32813
|
loadErrorCallback: function loadErrorCallback() {
|
|
@@ -32834,20 +32841,25 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32834
32841
|
|
|
32835
32842
|
|
|
32836
32843
|
;
|
|
32837
|
-
const TJCaptcha_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(TJCaptchavue_type_script_lang_js, [['render',
|
|
32844
|
+
const TJCaptcha_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(TJCaptchavue_type_script_lang_js, [['render',TJCaptchavue_type_template_id_4adf8476_render]])
|
|
32838
32845
|
|
|
32839
32846
|
/* harmony default export */ const TJCaptcha = (TJCaptcha_exports_);
|
|
32840
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/AliyunCaptchaModal.vue?vue&type=template&id=
|
|
32847
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/AliyunCaptchaModal.vue?vue&type=template&id=283e7c5a
|
|
32841
32848
|
|
|
32842
|
-
var
|
|
32843
|
-
function
|
|
32849
|
+
var AliyunCaptchaModalvue_type_template_id_283e7c5a_hoisted_1 = ["id"];
|
|
32850
|
+
function AliyunCaptchaModalvue_type_template_id_283e7c5a_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32844
32851
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
32845
|
-
id: "captcha-element-".concat(
|
|
32846
|
-
}, null, 8,
|
|
32852
|
+
id: "captcha-element-".concat($data.uniqueId)
|
|
32853
|
+
}, null, 8, AliyunCaptchaModalvue_type_template_id_283e7c5a_hoisted_1)]);
|
|
32847
32854
|
}
|
|
32848
|
-
;// ./src/components/AliyunCaptchaModal.vue?vue&type=template&id=
|
|
32855
|
+
;// ./src/components/AliyunCaptchaModal.vue?vue&type=template&id=283e7c5a
|
|
32849
32856
|
|
|
32850
32857
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/AliyunCaptchaModal.vue?vue&type=script&lang=js
|
|
32858
|
+
|
|
32859
|
+
|
|
32860
|
+
|
|
32861
|
+
|
|
32862
|
+
|
|
32851
32863
|
/* harmony default export */ const AliyunCaptchaModalvue_type_script_lang_js = ({
|
|
32852
32864
|
props: {
|
|
32853
32865
|
id: {
|
|
@@ -32861,83 +32873,75 @@ function AliyunCaptchaModalvue_type_template_id_79c1c071_render(_ctx, _cache, $p
|
|
|
32861
32873
|
},
|
|
32862
32874
|
data: function data() {
|
|
32863
32875
|
return {
|
|
32864
|
-
captcha: null
|
|
32876
|
+
captcha: null,
|
|
32877
|
+
uniqueId: '' // Vue 3 兼容的唯一ID
|
|
32865
32878
|
};
|
|
32866
32879
|
},
|
|
32867
32880
|
mounted: function mounted() {
|
|
32868
|
-
|
|
32869
|
-
|
|
32870
|
-
|
|
32871
|
-
|
|
32872
|
-
|
|
32873
|
-
|
|
32874
|
-
|
|
32875
|
-
|
|
32876
|
-
|
|
32877
|
-
|
|
32878
|
-
// 验证码验证通过回调函数
|
|
32879
|
-
success: function success(captchaVerifyParam) {
|
|
32880
|
-
// 入参为验签captchaVerifyParam
|
|
32881
|
-
// 1.根据校验结果来进行业务处理
|
|
32882
|
-
_this.$emit("success", captchaVerifyParam);
|
|
32883
|
-
_this.initAliyunCaptcha();
|
|
32884
|
-
},
|
|
32885
|
-
// 验证码验证不通过回调函数
|
|
32886
|
-
fail: function fail(result) {
|
|
32887
|
-
// 入参为不通过信息
|
|
32888
|
-
// 正常验证有效期内不需要做任何操作,验证码自动刷新,重新进行验证
|
|
32889
|
-
console.error(result);
|
|
32890
|
-
},
|
|
32891
|
-
// 绑定验证码实例回调函数,该回调会在验证码初始化成功后调用
|
|
32892
|
-
getInstance: function getInstance(instance) {
|
|
32893
|
-
_this.$emit("getInstance", instance);
|
|
32894
|
-
_this.captcha = instance;
|
|
32895
|
-
},
|
|
32896
|
-
slideStyle: {
|
|
32897
|
-
width: 420,
|
|
32898
|
-
height: 40
|
|
32899
|
-
},
|
|
32900
|
-
// 滑块验证码样式,支持自定义宽度和高度,单位为px。其中,width最小值为320 px
|
|
32901
|
-
language: localStorage.getItem("language") || "cn" // 验证码语言类型,支持简体中文(cn)、繁体中文(tw)、英文(en)
|
|
32902
|
-
});
|
|
32881
|
+
this.uniqueId = 'captcha-' + Math.random().toString(36).substr(2, 9);
|
|
32882
|
+
try {
|
|
32883
|
+
if (typeof window.initAliyunCaptcha === 'undefined') {
|
|
32884
|
+
console.warn('阿里云验证码库未加载');
|
|
32885
|
+
return;
|
|
32886
|
+
}
|
|
32887
|
+
this.initAliyunCaptcha();
|
|
32888
|
+
} catch (error) {
|
|
32889
|
+
console.error('阿里云验证码初始化失败:', error);
|
|
32890
|
+
}
|
|
32903
32891
|
},
|
|
32904
32892
|
methods: {
|
|
32905
32893
|
initAliyunCaptcha: function initAliyunCaptcha() {
|
|
32906
|
-
var
|
|
32907
|
-
|
|
32908
|
-
|
|
32909
|
-
|
|
32910
|
-
|
|
32911
|
-
|
|
32912
|
-
|
|
32913
|
-
|
|
32914
|
-
|
|
32915
|
-
|
|
32916
|
-
|
|
32917
|
-
|
|
32918
|
-
//
|
|
32919
|
-
|
|
32920
|
-
|
|
32921
|
-
|
|
32922
|
-
|
|
32923
|
-
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
|
|
32931
|
-
|
|
32932
|
-
|
|
32933
|
-
|
|
32934
|
-
|
|
32935
|
-
|
|
32936
|
-
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
|
|
32894
|
+
var _this = this;
|
|
32895
|
+
try {
|
|
32896
|
+
if (typeof window.initAliyunCaptcha === 'undefined') {
|
|
32897
|
+
console.warn('阿里云验证码库未加载,跳过初始化');
|
|
32898
|
+
return;
|
|
32899
|
+
}
|
|
32900
|
+
window.initAliyunCaptcha({
|
|
32901
|
+
SceneId: this.sceneId,
|
|
32902
|
+
// 场景ID。根据步骤二新建验证场景后,您可以在验证码场景列表,获取该场景的场景ID
|
|
32903
|
+
mode: "popup",
|
|
32904
|
+
// 验证码模式。popup表示要集成的验证码模式为弹出式。无需修改
|
|
32905
|
+
element: "#captcha-element-".concat(this.uniqueId),
|
|
32906
|
+
// 页面上预留的渲染验证码的元素,与原代码中预留的页面元素保持一致。
|
|
32907
|
+
button: "#".concat(this.id),
|
|
32908
|
+
captchaLogoImg: "https://file.icve.com.cn/app/site/prod/zyzyzx_components/zhzj_logo.webp",
|
|
32909
|
+
// 验证码验证通过回调函数
|
|
32910
|
+
success: function success(captchaVerifyParam) {
|
|
32911
|
+
try {
|
|
32912
|
+
// 入参为验签captchaVerifyParam
|
|
32913
|
+
// 1.根据校验结果来进行业务处理
|
|
32914
|
+
_this.$emit("success", captchaVerifyParam);
|
|
32915
|
+
_this.initAliyunCaptcha();
|
|
32916
|
+
} catch (error) {
|
|
32917
|
+
console.error('验证码成功回调处理失败:', error);
|
|
32918
|
+
}
|
|
32919
|
+
},
|
|
32920
|
+
// 验证码验证不通过回调函数
|
|
32921
|
+
fail: function fail(result) {
|
|
32922
|
+
// 入参为不通过信息
|
|
32923
|
+
// 正常验证有效期内不需要做任何操作,验证码自动刷新,重新进行验证
|
|
32924
|
+
console.error(result);
|
|
32925
|
+
},
|
|
32926
|
+
// 绑定验证码实例回调函数,该回调会在验证码初始化成功后调用
|
|
32927
|
+
getInstance: function getInstance(instance) {
|
|
32928
|
+
try {
|
|
32929
|
+
_this.$emit("getInstance", instance);
|
|
32930
|
+
_this.captcha = instance;
|
|
32931
|
+
} catch (error) {
|
|
32932
|
+
console.error('验证码实例绑定失败:', error);
|
|
32933
|
+
}
|
|
32934
|
+
},
|
|
32935
|
+
slideStyle: {
|
|
32936
|
+
width: 360,
|
|
32937
|
+
height: 40
|
|
32938
|
+
},
|
|
32939
|
+
// 滑块验证码样式,支持自定义宽度和高度,单位为px。其中,width最小值为320 px
|
|
32940
|
+
language: typeof localStorage !== 'undefined' ? localStorage.getItem("language") || "cn" : "cn" // 验证码语言类型,支持简体中文(cn)、繁体中文(tw)、英文(en)
|
|
32941
|
+
});
|
|
32942
|
+
} catch (error) {
|
|
32943
|
+
console.error('阿里云验证码初始化失败:', error);
|
|
32944
|
+
}
|
|
32941
32945
|
}
|
|
32942
32946
|
}
|
|
32943
32947
|
});
|
|
@@ -32949,7 +32953,7 @@ function AliyunCaptchaModalvue_type_template_id_79c1c071_render(_ctx, _cache, $p
|
|
|
32949
32953
|
|
|
32950
32954
|
|
|
32951
32955
|
;
|
|
32952
|
-
const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(AliyunCaptchaModalvue_type_script_lang_js, [['render',
|
|
32956
|
+
const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(AliyunCaptchaModalvue_type_script_lang_js, [['render',AliyunCaptchaModalvue_type_template_id_283e7c5a_render]])
|
|
32953
32957
|
|
|
32954
32958
|
/* harmony default export */ const AliyunCaptchaModal = (AliyunCaptchaModal_exports_);
|
|
32955
32959
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/verifyComponents.vue?vue&type=script&lang=js
|
|
@@ -32975,36 +32979,55 @@ const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)
|
|
|
32975
32979
|
var _this = this;
|
|
32976
32980
|
getCaptcha().then(function (res) {
|
|
32977
32981
|
_this.type = res.data.data;
|
|
32982
|
+
})["catch"](function (error) {
|
|
32983
|
+
console.warn('获取验证码类型失败,使用默认类型:', error);
|
|
32984
|
+
_this.type = 'alibaba'; // 默认使用阿里云验证码
|
|
32978
32985
|
});
|
|
32979
32986
|
},
|
|
32980
32987
|
// 验证成功
|
|
32981
32988
|
success: function success(captchaVerifyParam) {
|
|
32982
|
-
|
|
32983
|
-
this
|
|
32984
|
-
|
|
32985
|
-
|
|
32986
|
-
captchaVerifyParam
|
|
32987
|
-
|
|
32988
|
-
|
|
32989
|
+
try {
|
|
32990
|
+
if (this.type === 'tencent') {
|
|
32991
|
+
this.$emit('success', captchaVerifyParam);
|
|
32992
|
+
} else {
|
|
32993
|
+
var VerifyParam = captchaVerifyParam ? {
|
|
32994
|
+
captchaVerifyParam: captchaVerifyParam,
|
|
32995
|
+
sceneId: this.sceneId
|
|
32996
|
+
} : {
|
|
32997
|
+
specialKey: true
|
|
32998
|
+
};
|
|
32999
|
+
this.$emit('success', VerifyParam);
|
|
33000
|
+
}
|
|
33001
|
+
} catch (error) {
|
|
33002
|
+
console.error('验证码处理失败:', error);
|
|
33003
|
+
// 发送默认成功参数
|
|
33004
|
+
this.$emit('success', {
|
|
32989
33005
|
specialKey: true
|
|
32990
|
-
};
|
|
32991
|
-
this.$emit('success', VerifyParam);
|
|
33006
|
+
});
|
|
32992
33007
|
}
|
|
32993
33008
|
},
|
|
32994
33009
|
show: function show() {
|
|
32995
|
-
|
|
32996
|
-
this
|
|
32997
|
-
|
|
32998
|
-
if (
|
|
32999
|
-
|
|
33010
|
+
try {
|
|
33011
|
+
if (this.type === 'tencent') {
|
|
33012
|
+
this.$refs.TJCaptcha.getCaptchaAppid();
|
|
33013
|
+
} else if (this.type === 'alibaba') {
|
|
33014
|
+
if (window.AliyunCaptcha) {
|
|
33015
|
+
this.$refs.aliyunCaptcha.captcha.show();
|
|
33016
|
+
} else {
|
|
33017
|
+
var VerifyParam = {
|
|
33018
|
+
specialKey: true
|
|
33019
|
+
};
|
|
33020
|
+
this.$emit('success', VerifyParam);
|
|
33021
|
+
}
|
|
33000
33022
|
} else {
|
|
33001
|
-
|
|
33002
|
-
specialKey: true
|
|
33003
|
-
};
|
|
33004
|
-
this.$emit('success', VerifyParam);
|
|
33023
|
+
this.$emit('success');
|
|
33005
33024
|
}
|
|
33006
|
-
}
|
|
33007
|
-
|
|
33025
|
+
} catch (error) {
|
|
33026
|
+
console.error('显示验证码失败:', error);
|
|
33027
|
+
// 容错处理:直接发送成功信号
|
|
33028
|
+
this.$emit('success', {
|
|
33029
|
+
specialKey: true
|
|
33030
|
+
});
|
|
33008
33031
|
}
|
|
33009
33032
|
}
|
|
33010
33033
|
},
|
|
@@ -33020,69 +33043,69 @@ const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)
|
|
|
33020
33043
|
|
|
33021
33044
|
|
|
33022
33045
|
;
|
|
33023
|
-
const verifyComponents_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(verifyComponentsvue_type_script_lang_js, [['render',
|
|
33046
|
+
const verifyComponents_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(verifyComponentsvue_type_script_lang_js, [['render',verifyComponentsvue_type_template_id_5ed3cdce_render]])
|
|
33024
33047
|
|
|
33025
33048
|
/* harmony default export */ const verifyComponents = (verifyComponents_exports_);
|
|
33026
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=template&id=
|
|
33049
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=template&id=6badd114&scoped=true
|
|
33027
33050
|
|
|
33028
|
-
var
|
|
33051
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1 = {
|
|
33029
33052
|
"class": "qr-code-wrapper"
|
|
33030
33053
|
};
|
|
33031
|
-
var
|
|
33032
|
-
var
|
|
33054
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_2 = ["id"];
|
|
33055
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3 = {
|
|
33033
33056
|
key: 0,
|
|
33034
33057
|
"class": "qr-login-overlay"
|
|
33035
33058
|
};
|
|
33036
|
-
var
|
|
33059
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4 = {
|
|
33037
33060
|
key: 0,
|
|
33038
33061
|
"class": "overlay-content"
|
|
33039
33062
|
};
|
|
33040
|
-
var
|
|
33063
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5 = {
|
|
33041
33064
|
"class": "overlay-text"
|
|
33042
33065
|
};
|
|
33043
|
-
var
|
|
33066
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6 = {
|
|
33044
33067
|
"class": "overlay-tip"
|
|
33045
33068
|
};
|
|
33046
|
-
var
|
|
33069
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7 = {
|
|
33047
33070
|
key: 1,
|
|
33048
33071
|
"class": "overlay-content"
|
|
33049
33072
|
};
|
|
33050
|
-
var
|
|
33073
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8 = {
|
|
33051
33074
|
"class": "overlay-text",
|
|
33052
33075
|
style: {
|
|
33053
33076
|
"color": "red"
|
|
33054
33077
|
}
|
|
33055
33078
|
};
|
|
33056
|
-
var
|
|
33079
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9 = {
|
|
33057
33080
|
"class": "overlay-tip"
|
|
33058
33081
|
};
|
|
33059
|
-
var
|
|
33082
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10 = {
|
|
33060
33083
|
"class": "qr-tip"
|
|
33061
33084
|
};
|
|
33062
|
-
var
|
|
33085
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11 = {
|
|
33063
33086
|
key: 0,
|
|
33064
33087
|
"class": "bind-tip"
|
|
33065
33088
|
};
|
|
33066
|
-
function
|
|
33089
|
+
function QRCodeLoginvue_type_template_id_6badd114_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33067
33090
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
33068
33091
|
"class": (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["qr-login-container", {
|
|
33069
33092
|
'qr-login-container1': $props.bdwxShow
|
|
33070
33093
|
}])
|
|
33071
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
33072
|
-
id: "qrcode-container-".concat(
|
|
33073
|
-
}, null, 8,
|
|
33094
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
33095
|
+
id: "qrcode-container-".concat($data.uniqueId)
|
|
33096
|
+
}, null, 8, QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_2), $data.loginStatus == 1 || $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3, [$data.loginStatus == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('已扫码')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('请在手机上确认')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", {
|
|
33074
33097
|
"class": "rescan-btn",
|
|
33075
33098
|
onClick: _cache[0] || (_cache[0] = function () {
|
|
33076
33099
|
return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
|
|
33077
33100
|
})
|
|
33078
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
33101
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('二维码已过期')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('请点击下方按钮刷新')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", {
|
|
33079
33102
|
"class": "rescan-btn",
|
|
33080
33103
|
onClick: _cache[1] || (_cache[1] = function () {
|
|
33081
33104
|
return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
|
|
33082
33105
|
})
|
|
33083
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p",
|
|
33106
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.bdwxShow ? _ctx.i18n('微信扫码进行账号绑定') : _ctx.i18n('微信或App扫码均可登录')), 1), $data.wxRandom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.i18n('你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~')), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
|
|
33084
33107
|
}
|
|
33085
|
-
;// ./src/components/QRCodeLogin.vue?vue&type=template&id=
|
|
33108
|
+
;// ./src/components/QRCodeLogin.vue?vue&type=template&id=6badd114&scoped=true
|
|
33086
33109
|
|
|
33087
33110
|
// EXTERNAL MODULE: ./node_modules/qrcodejs2/qrcode.js
|
|
33088
33111
|
var qrcode = __webpack_require__(9118);
|
|
@@ -33105,6 +33128,11 @@ function removeToken() {
|
|
|
33105
33128
|
|
|
33106
33129
|
|
|
33107
33130
|
|
|
33131
|
+
|
|
33132
|
+
|
|
33133
|
+
|
|
33134
|
+
|
|
33135
|
+
|
|
33108
33136
|
/* harmony default export */ const QRCodeLoginvue_type_script_lang_js = ({
|
|
33109
33137
|
mixins: [i18nMixin],
|
|
33110
33138
|
props: {
|
|
@@ -33125,10 +33153,12 @@ function removeToken() {
|
|
|
33125
33153
|
statusTimer: null,
|
|
33126
33154
|
loginStatus: 0,
|
|
33127
33155
|
// 0-未扫码, 1-已扫码待确认, 2-登录成功, 3-过期
|
|
33128
|
-
wxRandom: ''
|
|
33156
|
+
wxRandom: '',
|
|
33157
|
+
uniqueId: '' // Vue 3 兼容的唯一ID
|
|
33129
33158
|
};
|
|
33130
33159
|
},
|
|
33131
33160
|
mounted: function mounted() {
|
|
33161
|
+
this.uniqueId = 'qr-' + Math.random().toString(36).substr(2, 9);
|
|
33132
33162
|
this.generateQrCode();
|
|
33133
33163
|
},
|
|
33134
33164
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -33158,7 +33188,7 @@ function removeToken() {
|
|
|
33158
33188
|
});
|
|
33159
33189
|
},
|
|
33160
33190
|
generateQRCode: function generateQRCode(url) {
|
|
33161
|
-
var containerId = "qrcode-container-".concat(this.
|
|
33191
|
+
var containerId = "qrcode-container-".concat(this.uniqueId);
|
|
33162
33192
|
document.getElementById(containerId).innerHTML = '';
|
|
33163
33193
|
// 创建新的二维码实例
|
|
33164
33194
|
new (qrcode_default())(document.getElementById(containerId), {
|
|
@@ -33225,10 +33255,10 @@ function removeToken() {
|
|
|
33225
33255
|
});
|
|
33226
33256
|
;// ./src/components/QRCodeLogin.vue?vue&type=script&lang=js
|
|
33227
33257
|
|
|
33228
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=
|
|
33258
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=6badd114&lang=scss&scoped=true
|
|
33229
33259
|
// extracted by mini-css-extract-plugin
|
|
33230
33260
|
|
|
33231
|
-
;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=
|
|
33261
|
+
;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=6badd114&lang=scss&scoped=true
|
|
33232
33262
|
|
|
33233
33263
|
;// ./src/components/QRCodeLogin.vue
|
|
33234
33264
|
|
|
@@ -33238,7 +33268,7 @@ function removeToken() {
|
|
|
33238
33268
|
;
|
|
33239
33269
|
|
|
33240
33270
|
|
|
33241
|
-
const QRCodeLogin_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(QRCodeLoginvue_type_script_lang_js, [['render',
|
|
33271
|
+
const QRCodeLogin_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(QRCodeLoginvue_type_script_lang_js, [['render',QRCodeLoginvue_type_template_id_6badd114_scoped_true_render],['__scopeId',"data-v-6badd114"]])
|
|
33242
33272
|
|
|
33243
33273
|
/* harmony default export */ const QRCodeLogin = (QRCodeLogin_exports_);
|
|
33244
33274
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/mobileBinding.vue?vue&type=template&id=3371c604&scoped=true
|