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
|
@@ -32734,45 +32734,45 @@ function unBindMobile(data) {
|
|
|
32734
32734
|
data: data
|
|
32735
32735
|
});
|
|
32736
32736
|
}
|
|
32737
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
32737
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
32738
32738
|
|
|
32739
|
-
var
|
|
32739
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_1 = {
|
|
32740
32740
|
"class": "verify"
|
|
32741
32741
|
};
|
|
32742
|
-
var
|
|
32742
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_2 = {
|
|
32743
32743
|
key: 1,
|
|
32744
32744
|
"class": "aly"
|
|
32745
32745
|
};
|
|
32746
|
-
var
|
|
32746
|
+
var verifyComponentsvue_type_template_id_5ed3cdce_hoisted_3 = {
|
|
32747
32747
|
id: "clickButton",
|
|
32748
32748
|
ref: "clickButton"
|
|
32749
32749
|
};
|
|
32750
|
-
function
|
|
32750
|
+
function verifyComponentsvue_type_template_id_5ed3cdce_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32751
32751
|
var _component_TJCaptcha = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("TJCaptcha");
|
|
32752
32752
|
var _component_AliyunCaptchaModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("AliyunCaptchaModal");
|
|
32753
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
32753
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_1, [$data.type == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_TJCaptcha, {
|
|
32754
32754
|
key: 0,
|
|
32755
32755
|
ref: "TJCaptcha",
|
|
32756
32756
|
CaptchaAppId: $data.CaptchaAppId,
|
|
32757
32757
|
onSuccess: $options.success
|
|
32758
|
-
}, null, 8, ["CaptchaAppId", "onSuccess"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
32758
|
+
}, null, 8, ["CaptchaAppId", "onSuccess"])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_AliyunCaptchaModal, {
|
|
32759
32759
|
id: "clickButton",
|
|
32760
32760
|
ref: "aliyunCaptcha",
|
|
32761
32761
|
sceneId: $data.sceneId,
|
|
32762
32762
|
onSuccess: $options.success
|
|
32763
|
-
}, null, 8, ["sceneId", "onSuccess"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
32763
|
+
}, null, 8, ["sceneId", "onSuccess"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", verifyComponentsvue_type_template_id_5ed3cdce_hoisted_3, null, 512)]))]);
|
|
32764
32764
|
}
|
|
32765
|
-
;// ./src/components/verifyComponents.vue?vue&type=template&id=
|
|
32765
|
+
;// ./src/components/verifyComponents.vue?vue&type=template&id=5ed3cdce
|
|
32766
32766
|
|
|
32767
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
32767
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
32768
32768
|
|
|
32769
|
-
var
|
|
32769
|
+
var TJCaptchavue_type_template_id_4adf8476_hoisted_1 = {
|
|
32770
32770
|
"class": "TJCaptcha"
|
|
32771
32771
|
};
|
|
32772
|
-
function
|
|
32773
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
32772
|
+
function TJCaptchavue_type_template_id_4adf8476_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32773
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", TJCaptchavue_type_template_id_4adf8476_hoisted_1);
|
|
32774
32774
|
}
|
|
32775
|
-
;// ./src/components/TJCaptcha.vue?vue&type=template&id=
|
|
32775
|
+
;// ./src/components/TJCaptcha.vue?vue&type=template&id=4adf8476
|
|
32776
32776
|
|
|
32777
32777
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/TJCaptcha.vue?vue&type=script&lang=js
|
|
32778
32778
|
|
|
@@ -32807,6 +32807,13 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32807
32807
|
},
|
|
32808
32808
|
init: function init(aidEncrypted) {
|
|
32809
32809
|
try {
|
|
32810
|
+
// 检查环境是否支持腾讯验证码
|
|
32811
|
+
if (typeof TencentCaptcha === 'undefined') {
|
|
32812
|
+
console.warn('腾讯验证码库未加载,使用容错处理');
|
|
32813
|
+
this.loadErrorCallback();
|
|
32814
|
+
return;
|
|
32815
|
+
}
|
|
32816
|
+
|
|
32810
32817
|
// 生成一个验证码对象
|
|
32811
32818
|
// CaptchaAppId:登录验证码控制台,从【验证管理】页面进行查看。如果未创建过验证,请先新建验证。注意:不可使用客户端类型为小程序的CaptchaAppId,会导致数据统计错误。
|
|
32812
32819
|
//callback:定义的回调函数
|
|
@@ -32818,7 +32825,7 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32818
32825
|
} catch (error) {
|
|
32819
32826
|
console.log("%c Line:32 🥛 error", "color:#93c0a4", error);
|
|
32820
32827
|
// 加载异常,调用验证码js加载错误处理函数
|
|
32821
|
-
|
|
32828
|
+
this.loadErrorCallback();
|
|
32822
32829
|
}
|
|
32823
32830
|
},
|
|
32824
32831
|
loadErrorCallback: function loadErrorCallback() {
|
|
@@ -32852,20 +32859,25 @@ function TJCaptchavue_type_template_id_1aa05eb8_render(_ctx, _cache, $props, $se
|
|
|
32852
32859
|
|
|
32853
32860
|
|
|
32854
32861
|
;
|
|
32855
|
-
const TJCaptcha_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(TJCaptchavue_type_script_lang_js, [['render',
|
|
32862
|
+
const TJCaptcha_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(TJCaptchavue_type_script_lang_js, [['render',TJCaptchavue_type_template_id_4adf8476_render]])
|
|
32856
32863
|
|
|
32857
32864
|
/* harmony default export */ const TJCaptcha = (TJCaptcha_exports_);
|
|
32858
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
32865
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
32859
32866
|
|
|
32860
|
-
var
|
|
32861
|
-
function
|
|
32867
|
+
var AliyunCaptchaModalvue_type_template_id_283e7c5a_hoisted_1 = ["id"];
|
|
32868
|
+
function AliyunCaptchaModalvue_type_template_id_283e7c5a_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32862
32869
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
32863
|
-
id: "captcha-element-".concat(
|
|
32864
|
-
}, null, 8,
|
|
32870
|
+
id: "captcha-element-".concat($data.uniqueId)
|
|
32871
|
+
}, null, 8, AliyunCaptchaModalvue_type_template_id_283e7c5a_hoisted_1)]);
|
|
32865
32872
|
}
|
|
32866
|
-
;// ./src/components/AliyunCaptchaModal.vue?vue&type=template&id=
|
|
32873
|
+
;// ./src/components/AliyunCaptchaModal.vue?vue&type=template&id=283e7c5a
|
|
32867
32874
|
|
|
32868
32875
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/AliyunCaptchaModal.vue?vue&type=script&lang=js
|
|
32876
|
+
|
|
32877
|
+
|
|
32878
|
+
|
|
32879
|
+
|
|
32880
|
+
|
|
32869
32881
|
/* harmony default export */ const AliyunCaptchaModalvue_type_script_lang_js = ({
|
|
32870
32882
|
props: {
|
|
32871
32883
|
id: {
|
|
@@ -32879,83 +32891,75 @@ function AliyunCaptchaModalvue_type_template_id_79c1c071_render(_ctx, _cache, $p
|
|
|
32879
32891
|
},
|
|
32880
32892
|
data: function data() {
|
|
32881
32893
|
return {
|
|
32882
|
-
captcha: null
|
|
32894
|
+
captcha: null,
|
|
32895
|
+
uniqueId: '' // Vue 3 兼容的唯一ID
|
|
32883
32896
|
};
|
|
32884
32897
|
},
|
|
32885
32898
|
mounted: function mounted() {
|
|
32886
|
-
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
32893
|
-
|
|
32894
|
-
|
|
32895
|
-
|
|
32896
|
-
// 验证码验证通过回调函数
|
|
32897
|
-
success: function success(captchaVerifyParam) {
|
|
32898
|
-
// 入参为验签captchaVerifyParam
|
|
32899
|
-
// 1.根据校验结果来进行业务处理
|
|
32900
|
-
_this.$emit("success", captchaVerifyParam);
|
|
32901
|
-
_this.initAliyunCaptcha();
|
|
32902
|
-
},
|
|
32903
|
-
// 验证码验证不通过回调函数
|
|
32904
|
-
fail: function fail(result) {
|
|
32905
|
-
// 入参为不通过信息
|
|
32906
|
-
// 正常验证有效期内不需要做任何操作,验证码自动刷新,重新进行验证
|
|
32907
|
-
console.error(result);
|
|
32908
|
-
},
|
|
32909
|
-
// 绑定验证码实例回调函数,该回调会在验证码初始化成功后调用
|
|
32910
|
-
getInstance: function getInstance(instance) {
|
|
32911
|
-
_this.$emit("getInstance", instance);
|
|
32912
|
-
_this.captcha = instance;
|
|
32913
|
-
},
|
|
32914
|
-
slideStyle: {
|
|
32915
|
-
width: 420,
|
|
32916
|
-
height: 40
|
|
32917
|
-
},
|
|
32918
|
-
// 滑块验证码样式,支持自定义宽度和高度,单位为px。其中,width最小值为320 px
|
|
32919
|
-
language: localStorage.getItem("language") || "cn" // 验证码语言类型,支持简体中文(cn)、繁体中文(tw)、英文(en)
|
|
32920
|
-
});
|
|
32899
|
+
this.uniqueId = 'captcha-' + Math.random().toString(36).substr(2, 9);
|
|
32900
|
+
try {
|
|
32901
|
+
if (typeof window.initAliyunCaptcha === 'undefined') {
|
|
32902
|
+
console.warn('阿里云验证码库未加载');
|
|
32903
|
+
return;
|
|
32904
|
+
}
|
|
32905
|
+
this.initAliyunCaptcha();
|
|
32906
|
+
} catch (error) {
|
|
32907
|
+
console.error('阿里云验证码初始化失败:', error);
|
|
32908
|
+
}
|
|
32921
32909
|
},
|
|
32922
32910
|
methods: {
|
|
32923
32911
|
initAliyunCaptcha: function initAliyunCaptcha() {
|
|
32924
|
-
var
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
|
|
32931
|
-
|
|
32932
|
-
|
|
32933
|
-
|
|
32934
|
-
|
|
32935
|
-
|
|
32936
|
-
//
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
|
|
32941
|
-
|
|
32942
|
-
|
|
32943
|
-
|
|
32944
|
-
|
|
32945
|
-
|
|
32946
|
-
|
|
32947
|
-
|
|
32948
|
-
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
|
|
32952
|
-
|
|
32953
|
-
|
|
32954
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
|
|
32912
|
+
var _this = this;
|
|
32913
|
+
try {
|
|
32914
|
+
if (typeof window.initAliyunCaptcha === 'undefined') {
|
|
32915
|
+
console.warn('阿里云验证码库未加载,跳过初始化');
|
|
32916
|
+
return;
|
|
32917
|
+
}
|
|
32918
|
+
window.initAliyunCaptcha({
|
|
32919
|
+
SceneId: this.sceneId,
|
|
32920
|
+
// 场景ID。根据步骤二新建验证场景后,您可以在验证码场景列表,获取该场景的场景ID
|
|
32921
|
+
mode: "popup",
|
|
32922
|
+
// 验证码模式。popup表示要集成的验证码模式为弹出式。无需修改
|
|
32923
|
+
element: "#captcha-element-".concat(this.uniqueId),
|
|
32924
|
+
// 页面上预留的渲染验证码的元素,与原代码中预留的页面元素保持一致。
|
|
32925
|
+
button: "#".concat(this.id),
|
|
32926
|
+
captchaLogoImg: "https://file.icve.com.cn/app/site/prod/zyzyzx_components/zhzj_logo.webp",
|
|
32927
|
+
// 验证码验证通过回调函数
|
|
32928
|
+
success: function success(captchaVerifyParam) {
|
|
32929
|
+
try {
|
|
32930
|
+
// 入参为验签captchaVerifyParam
|
|
32931
|
+
// 1.根据校验结果来进行业务处理
|
|
32932
|
+
_this.$emit("success", captchaVerifyParam);
|
|
32933
|
+
_this.initAliyunCaptcha();
|
|
32934
|
+
} catch (error) {
|
|
32935
|
+
console.error('验证码成功回调处理失败:', error);
|
|
32936
|
+
}
|
|
32937
|
+
},
|
|
32938
|
+
// 验证码验证不通过回调函数
|
|
32939
|
+
fail: function fail(result) {
|
|
32940
|
+
// 入参为不通过信息
|
|
32941
|
+
// 正常验证有效期内不需要做任何操作,验证码自动刷新,重新进行验证
|
|
32942
|
+
console.error(result);
|
|
32943
|
+
},
|
|
32944
|
+
// 绑定验证码实例回调函数,该回调会在验证码初始化成功后调用
|
|
32945
|
+
getInstance: function getInstance(instance) {
|
|
32946
|
+
try {
|
|
32947
|
+
_this.$emit("getInstance", instance);
|
|
32948
|
+
_this.captcha = instance;
|
|
32949
|
+
} catch (error) {
|
|
32950
|
+
console.error('验证码实例绑定失败:', error);
|
|
32951
|
+
}
|
|
32952
|
+
},
|
|
32953
|
+
slideStyle: {
|
|
32954
|
+
width: 360,
|
|
32955
|
+
height: 40
|
|
32956
|
+
},
|
|
32957
|
+
// 滑块验证码样式,支持自定义宽度和高度,单位为px。其中,width最小值为320 px
|
|
32958
|
+
language: typeof localStorage !== 'undefined' ? localStorage.getItem("language") || "cn" : "cn" // 验证码语言类型,支持简体中文(cn)、繁体中文(tw)、英文(en)
|
|
32959
|
+
});
|
|
32960
|
+
} catch (error) {
|
|
32961
|
+
console.error('阿里云验证码初始化失败:', error);
|
|
32962
|
+
}
|
|
32959
32963
|
}
|
|
32960
32964
|
}
|
|
32961
32965
|
});
|
|
@@ -32967,7 +32971,7 @@ function AliyunCaptchaModalvue_type_template_id_79c1c071_render(_ctx, _cache, $p
|
|
|
32967
32971
|
|
|
32968
32972
|
|
|
32969
32973
|
;
|
|
32970
|
-
const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(AliyunCaptchaModalvue_type_script_lang_js, [['render',
|
|
32974
|
+
const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(AliyunCaptchaModalvue_type_script_lang_js, [['render',AliyunCaptchaModalvue_type_template_id_283e7c5a_render]])
|
|
32971
32975
|
|
|
32972
32976
|
/* harmony default export */ const AliyunCaptchaModal = (AliyunCaptchaModal_exports_);
|
|
32973
32977
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/verifyComponents.vue?vue&type=script&lang=js
|
|
@@ -32993,36 +32997,55 @@ const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)
|
|
|
32993
32997
|
var _this = this;
|
|
32994
32998
|
getCaptcha().then(function (res) {
|
|
32995
32999
|
_this.type = res.data.data;
|
|
33000
|
+
})["catch"](function (error) {
|
|
33001
|
+
console.warn('获取验证码类型失败,使用默认类型:', error);
|
|
33002
|
+
_this.type = 'alibaba'; // 默认使用阿里云验证码
|
|
32996
33003
|
});
|
|
32997
33004
|
},
|
|
32998
33005
|
// 验证成功
|
|
32999
33006
|
success: function success(captchaVerifyParam) {
|
|
33000
|
-
|
|
33001
|
-
this
|
|
33002
|
-
|
|
33003
|
-
|
|
33004
|
-
captchaVerifyParam
|
|
33005
|
-
|
|
33006
|
-
|
|
33007
|
+
try {
|
|
33008
|
+
if (this.type === 'tencent') {
|
|
33009
|
+
this.$emit('success', captchaVerifyParam);
|
|
33010
|
+
} else {
|
|
33011
|
+
var VerifyParam = captchaVerifyParam ? {
|
|
33012
|
+
captchaVerifyParam: captchaVerifyParam,
|
|
33013
|
+
sceneId: this.sceneId
|
|
33014
|
+
} : {
|
|
33015
|
+
specialKey: true
|
|
33016
|
+
};
|
|
33017
|
+
this.$emit('success', VerifyParam);
|
|
33018
|
+
}
|
|
33019
|
+
} catch (error) {
|
|
33020
|
+
console.error('验证码处理失败:', error);
|
|
33021
|
+
// 发送默认成功参数
|
|
33022
|
+
this.$emit('success', {
|
|
33007
33023
|
specialKey: true
|
|
33008
|
-
};
|
|
33009
|
-
this.$emit('success', VerifyParam);
|
|
33024
|
+
});
|
|
33010
33025
|
}
|
|
33011
33026
|
},
|
|
33012
33027
|
show: function show() {
|
|
33013
|
-
|
|
33014
|
-
this
|
|
33015
|
-
|
|
33016
|
-
if (
|
|
33017
|
-
|
|
33028
|
+
try {
|
|
33029
|
+
if (this.type === 'tencent') {
|
|
33030
|
+
this.$refs.TJCaptcha.getCaptchaAppid();
|
|
33031
|
+
} else if (this.type === 'alibaba') {
|
|
33032
|
+
if (window.AliyunCaptcha) {
|
|
33033
|
+
this.$refs.aliyunCaptcha.captcha.show();
|
|
33034
|
+
} else {
|
|
33035
|
+
var VerifyParam = {
|
|
33036
|
+
specialKey: true
|
|
33037
|
+
};
|
|
33038
|
+
this.$emit('success', VerifyParam);
|
|
33039
|
+
}
|
|
33018
33040
|
} else {
|
|
33019
|
-
|
|
33020
|
-
specialKey: true
|
|
33021
|
-
};
|
|
33022
|
-
this.$emit('success', VerifyParam);
|
|
33041
|
+
this.$emit('success');
|
|
33023
33042
|
}
|
|
33024
|
-
}
|
|
33025
|
-
|
|
33043
|
+
} catch (error) {
|
|
33044
|
+
console.error('显示验证码失败:', error);
|
|
33045
|
+
// 容错处理:直接发送成功信号
|
|
33046
|
+
this.$emit('success', {
|
|
33047
|
+
specialKey: true
|
|
33048
|
+
});
|
|
33026
33049
|
}
|
|
33027
33050
|
}
|
|
33028
33051
|
},
|
|
@@ -33038,69 +33061,69 @@ const AliyunCaptchaModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)
|
|
|
33038
33061
|
|
|
33039
33062
|
|
|
33040
33063
|
;
|
|
33041
|
-
const verifyComponents_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(verifyComponentsvue_type_script_lang_js, [['render',
|
|
33064
|
+
const verifyComponents_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(verifyComponentsvue_type_script_lang_js, [['render',verifyComponentsvue_type_template_id_5ed3cdce_render]])
|
|
33042
33065
|
|
|
33043
33066
|
/* harmony default export */ const verifyComponents = (verifyComponents_exports_);
|
|
33044
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
33067
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
33045
33068
|
|
|
33046
|
-
var
|
|
33069
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1 = {
|
|
33047
33070
|
"class": "qr-code-wrapper"
|
|
33048
33071
|
};
|
|
33049
|
-
var
|
|
33050
|
-
var
|
|
33072
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_2 = ["id"];
|
|
33073
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3 = {
|
|
33051
33074
|
key: 0,
|
|
33052
33075
|
"class": "qr-login-overlay"
|
|
33053
33076
|
};
|
|
33054
|
-
var
|
|
33077
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4 = {
|
|
33055
33078
|
key: 0,
|
|
33056
33079
|
"class": "overlay-content"
|
|
33057
33080
|
};
|
|
33058
|
-
var
|
|
33081
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5 = {
|
|
33059
33082
|
"class": "overlay-text"
|
|
33060
33083
|
};
|
|
33061
|
-
var
|
|
33084
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6 = {
|
|
33062
33085
|
"class": "overlay-tip"
|
|
33063
33086
|
};
|
|
33064
|
-
var
|
|
33087
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7 = {
|
|
33065
33088
|
key: 1,
|
|
33066
33089
|
"class": "overlay-content"
|
|
33067
33090
|
};
|
|
33068
|
-
var
|
|
33091
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8 = {
|
|
33069
33092
|
"class": "overlay-text",
|
|
33070
33093
|
style: {
|
|
33071
33094
|
"color": "red"
|
|
33072
33095
|
}
|
|
33073
33096
|
};
|
|
33074
|
-
var
|
|
33097
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9 = {
|
|
33075
33098
|
"class": "overlay-tip"
|
|
33076
33099
|
};
|
|
33077
|
-
var
|
|
33100
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10 = {
|
|
33078
33101
|
"class": "qr-tip"
|
|
33079
33102
|
};
|
|
33080
|
-
var
|
|
33103
|
+
var QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11 = {
|
|
33081
33104
|
key: 0,
|
|
33082
33105
|
"class": "bind-tip"
|
|
33083
33106
|
};
|
|
33084
|
-
function
|
|
33107
|
+
function QRCodeLoginvue_type_template_id_6badd114_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33085
33108
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
33086
33109
|
"class": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["qr-login-container", {
|
|
33087
33110
|
'qr-login-container1': $props.bdwxShow
|
|
33088
33111
|
}])
|
|
33089
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
33090
|
-
id: "qrcode-container-".concat(
|
|
33091
|
-
}, null, 8,
|
|
33112
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
33113
|
+
id: "qrcode-container-".concat($data.uniqueId)
|
|
33114
|
+
}, 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_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_3, [$data.loginStatus == 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_5, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('已扫码')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请在手机上确认')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
33092
33115
|
"class": "rescan-btn",
|
|
33093
33116
|
onClick: _cache[0] || (_cache[0] = function () {
|
|
33094
33117
|
return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
|
|
33095
33118
|
})
|
|
33096
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
33119
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新扫码')), 1)])) : $data.loginStatus == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_8, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('二维码已过期')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_9, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('请点击下方按钮刷新')), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("button", {
|
|
33097
33120
|
"class": "rescan-btn",
|
|
33098
33121
|
onClick: _cache[1] || (_cache[1] = function () {
|
|
33099
33122
|
return $options.handleRescanQrCode && $options.handleRescanQrCode.apply($options, arguments);
|
|
33100
33123
|
})
|
|
33101
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p",
|
|
33124
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('重新生成')), 1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.bdwxShow ? _ctx.i18n('微信扫码进行账号绑定') : _ctx.i18n('微信或App扫码均可登录')), 1), $data.wxRandom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", QRCodeLoginvue_type_template_id_6badd114_scoped_true_hoisted_11, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.i18n('你当前的微信暂未绑定账号或手机号,需先完成绑定,后续登录将无需重复验证,直接进入即可~')), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
|
|
33102
33125
|
}
|
|
33103
|
-
;// ./src/components/QRCodeLogin.vue?vue&type=template&id=
|
|
33126
|
+
;// ./src/components/QRCodeLogin.vue?vue&type=template&id=6badd114&scoped=true
|
|
33104
33127
|
|
|
33105
33128
|
// EXTERNAL MODULE: ./node_modules/qrcodejs2/qrcode.js
|
|
33106
33129
|
var qrcode = __webpack_require__(9118);
|
|
@@ -33123,6 +33146,11 @@ function removeToken() {
|
|
|
33123
33146
|
|
|
33124
33147
|
|
|
33125
33148
|
|
|
33149
|
+
|
|
33150
|
+
|
|
33151
|
+
|
|
33152
|
+
|
|
33153
|
+
|
|
33126
33154
|
/* harmony default export */ const QRCodeLoginvue_type_script_lang_js = ({
|
|
33127
33155
|
mixins: [i18nMixin],
|
|
33128
33156
|
props: {
|
|
@@ -33143,10 +33171,12 @@ function removeToken() {
|
|
|
33143
33171
|
statusTimer: null,
|
|
33144
33172
|
loginStatus: 0,
|
|
33145
33173
|
// 0-未扫码, 1-已扫码待确认, 2-登录成功, 3-过期
|
|
33146
|
-
wxRandom: ''
|
|
33174
|
+
wxRandom: '',
|
|
33175
|
+
uniqueId: '' // Vue 3 兼容的唯一ID
|
|
33147
33176
|
};
|
|
33148
33177
|
},
|
|
33149
33178
|
mounted: function mounted() {
|
|
33179
|
+
this.uniqueId = 'qr-' + Math.random().toString(36).substr(2, 9);
|
|
33150
33180
|
this.generateQrCode();
|
|
33151
33181
|
},
|
|
33152
33182
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -33176,7 +33206,7 @@ function removeToken() {
|
|
|
33176
33206
|
});
|
|
33177
33207
|
},
|
|
33178
33208
|
generateQRCode: function generateQRCode(url) {
|
|
33179
|
-
var containerId = "qrcode-container-".concat(this.
|
|
33209
|
+
var containerId = "qrcode-container-".concat(this.uniqueId);
|
|
33180
33210
|
document.getElementById(containerId).innerHTML = '';
|
|
33181
33211
|
// 创建新的二维码实例
|
|
33182
33212
|
new (qrcode_default())(document.getElementById(containerId), {
|
|
@@ -33243,10 +33273,10 @@ function removeToken() {
|
|
|
33243
33273
|
});
|
|
33244
33274
|
;// ./src/components/QRCodeLogin.vue?vue&type=script&lang=js
|
|
33245
33275
|
|
|
33246
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=
|
|
33276
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
33247
33277
|
// extracted by mini-css-extract-plugin
|
|
33248
33278
|
|
|
33249
|
-
;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=
|
|
33279
|
+
;// ./src/components/QRCodeLogin.vue?vue&type=style&index=0&id=6badd114&lang=scss&scoped=true
|
|
33250
33280
|
|
|
33251
33281
|
;// ./src/components/QRCodeLogin.vue
|
|
33252
33282
|
|
|
@@ -33256,7 +33286,7 @@ function removeToken() {
|
|
|
33256
33286
|
;
|
|
33257
33287
|
|
|
33258
33288
|
|
|
33259
|
-
const QRCodeLogin_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(QRCodeLoginvue_type_script_lang_js, [['render',
|
|
33289
|
+
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"]])
|
|
33260
33290
|
|
|
33261
33291
|
/* harmony default export */ const QRCodeLogin = (QRCodeLogin_exports_);
|
|
33262
33292
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|