gpc-ui 0.1.15 → 0.1.17
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/lib/gpc-ui.common.js +109 -35
- package/lib/gpc-ui.common.js.map +1 -1
- package/lib/gpc-ui.css +1 -1
- package/lib/gpc-ui.umd.js +109 -35
- package/lib/gpc-ui.umd.js.map +1 -1
- package/lib/gpc-ui.umd.min.js +1 -1
- package/lib/gpc-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gpc-login/index.vue +30 -12
package/lib/gpc-ui.common.js
CHANGED
|
@@ -440,17 +440,6 @@ module.exports = function (it, Prototype) {
|
|
|
440
440
|
};
|
|
441
441
|
|
|
442
442
|
|
|
443
|
-
/***/ }),
|
|
444
|
-
|
|
445
|
-
/***/ "19fc":
|
|
446
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
447
|
-
|
|
448
|
-
"use strict";
|
|
449
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_cc6bd70c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9d43");
|
|
450
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_cc6bd70c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_cc6bd70c_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
451
|
-
/* unused harmony reexport * */
|
|
452
|
-
|
|
453
|
-
|
|
454
443
|
/***/ }),
|
|
455
444
|
|
|
456
445
|
/***/ "1a2d":
|
|
@@ -1132,6 +1121,13 @@ module.exports = {
|
|
|
1132
1121
|
};
|
|
1133
1122
|
|
|
1134
1123
|
|
|
1124
|
+
/***/ }),
|
|
1125
|
+
|
|
1126
|
+
/***/ "5fb6":
|
|
1127
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1128
|
+
|
|
1129
|
+
// extracted by mini-css-extract-plugin
|
|
1130
|
+
|
|
1135
1131
|
/***/ }),
|
|
1136
1132
|
|
|
1137
1133
|
/***/ "6374":
|
|
@@ -1519,6 +1515,17 @@ if (!isCallable(store.inspectSource)) {
|
|
|
1519
1515
|
module.exports = store.inspectSource;
|
|
1520
1516
|
|
|
1521
1517
|
|
|
1518
|
+
/***/ }),
|
|
1519
|
+
|
|
1520
|
+
/***/ "8c88":
|
|
1521
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1522
|
+
|
|
1523
|
+
"use strict";
|
|
1524
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_4044d188_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5fb6");
|
|
1525
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_4044d188_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_4044d188_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
1526
|
+
/* unused harmony reexport * */
|
|
1527
|
+
|
|
1528
|
+
|
|
1522
1529
|
/***/ }),
|
|
1523
1530
|
|
|
1524
1531
|
/***/ "90e3":
|
|
@@ -1724,13 +1731,6 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P
|
|
|
1724
1731
|
};
|
|
1725
1732
|
|
|
1726
1733
|
|
|
1727
|
-
/***/ }),
|
|
1728
|
-
|
|
1729
|
-
/***/ "9d43":
|
|
1730
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1731
|
-
|
|
1732
|
-
// extracted by mini-css-extract-plugin
|
|
1733
|
-
|
|
1734
1734
|
/***/ }),
|
|
1735
1735
|
|
|
1736
1736
|
/***/ "a04b":
|
|
@@ -2663,7 +2663,7 @@ var es_iterator_constructor = __webpack_require__("e9f5");
|
|
|
2663
2663
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
2664
2664
|
var es_iterator_for_each = __webpack_require__("7d54");
|
|
2665
2665
|
|
|
2666
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d82290ec-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gpc-login/index.vue?vue&type=template&id=
|
|
2666
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d82290ec-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gpc-login/index.vue?vue&type=template&id=4044d188&scoped=true
|
|
2667
2667
|
var render = function render() {
|
|
2668
2668
|
var _vm = this,
|
|
2669
2669
|
_c = _vm._self._c;
|
|
@@ -2691,7 +2691,7 @@ var render = function render() {
|
|
|
2691
2691
|
"font-style": "unset",
|
|
2692
2692
|
"text-align": "right"
|
|
2693
2693
|
}
|
|
2694
|
-
}, [_vm._v("
|
|
2694
|
+
}, [_vm._v("·" + _vm._s(_vm.subtitle))])]), _c('div', {
|
|
2695
2695
|
staticClass: "wrap-box"
|
|
2696
2696
|
}, [_c('div', {
|
|
2697
2697
|
staticClass: "box-content"
|
|
@@ -2755,7 +2755,7 @@ var render = function render() {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
})]), _c('div', {
|
|
2757
2757
|
staticClass: "input-box"
|
|
2758
|
-
}, [_c('input', {
|
|
2758
|
+
}, [_vm.inputType === 'checkbox' ? _c('input', {
|
|
2759
2759
|
directives: [{
|
|
2760
2760
|
name: "model",
|
|
2761
2761
|
rawName: "v-model",
|
|
@@ -2763,8 +2763,59 @@ var render = function render() {
|
|
|
2763
2763
|
expression: "accountFrom.password"
|
|
2764
2764
|
}],
|
|
2765
2765
|
attrs: {
|
|
2766
|
-
"
|
|
2767
|
-
"
|
|
2766
|
+
"placeholder": "密码",
|
|
2767
|
+
"type": "checkbox"
|
|
2768
|
+
},
|
|
2769
|
+
domProps: {
|
|
2770
|
+
"checked": Array.isArray(_vm.accountFrom.password) ? _vm._i(_vm.accountFrom.password, null) > -1 : _vm.accountFrom.password
|
|
2771
|
+
},
|
|
2772
|
+
on: {
|
|
2773
|
+
"change": function ($event) {
|
|
2774
|
+
var $$a = _vm.accountFrom.password,
|
|
2775
|
+
$$el = $event.target,
|
|
2776
|
+
$$c = $$el.checked ? true : false;
|
|
2777
|
+
if (Array.isArray($$a)) {
|
|
2778
|
+
var $$v = null,
|
|
2779
|
+
$$i = _vm._i($$a, $$v);
|
|
2780
|
+
if ($$el.checked) {
|
|
2781
|
+
$$i < 0 && _vm.$set(_vm.accountFrom, "password", $$a.concat([$$v]));
|
|
2782
|
+
} else {
|
|
2783
|
+
$$i > -1 && _vm.$set(_vm.accountFrom, "password", $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
2784
|
+
}
|
|
2785
|
+
} else {
|
|
2786
|
+
_vm.$set(_vm.accountFrom, "password", $$c);
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
}) : _vm.inputType === 'radio' ? _c('input', {
|
|
2791
|
+
directives: [{
|
|
2792
|
+
name: "model",
|
|
2793
|
+
rawName: "v-model",
|
|
2794
|
+
value: _vm.accountFrom.password,
|
|
2795
|
+
expression: "accountFrom.password"
|
|
2796
|
+
}],
|
|
2797
|
+
attrs: {
|
|
2798
|
+
"placeholder": "密码",
|
|
2799
|
+
"type": "radio"
|
|
2800
|
+
},
|
|
2801
|
+
domProps: {
|
|
2802
|
+
"checked": _vm._q(_vm.accountFrom.password, null)
|
|
2803
|
+
},
|
|
2804
|
+
on: {
|
|
2805
|
+
"change": function ($event) {
|
|
2806
|
+
return _vm.$set(_vm.accountFrom, "password", null);
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}) : _c('input', {
|
|
2810
|
+
directives: [{
|
|
2811
|
+
name: "model",
|
|
2812
|
+
rawName: "v-model",
|
|
2813
|
+
value: _vm.accountFrom.password,
|
|
2814
|
+
expression: "accountFrom.password"
|
|
2815
|
+
}],
|
|
2816
|
+
attrs: {
|
|
2817
|
+
"placeholder": "密码",
|
|
2818
|
+
"type": _vm.inputType
|
|
2768
2819
|
},
|
|
2769
2820
|
domProps: {
|
|
2770
2821
|
"value": _vm.accountFrom.password
|
|
@@ -2776,7 +2827,13 @@ var render = function render() {
|
|
|
2776
2827
|
}
|
|
2777
2828
|
}
|
|
2778
2829
|
}), _c('i', {
|
|
2779
|
-
staticClass: "el-icon-
|
|
2830
|
+
staticClass: "el-icon-view",
|
|
2831
|
+
class: {
|
|
2832
|
+
icon: _vm.Color
|
|
2833
|
+
},
|
|
2834
|
+
on: {
|
|
2835
|
+
"click": _vm.Show
|
|
2836
|
+
}
|
|
2780
2837
|
})]), _c('drag-verify', {
|
|
2781
2838
|
ref: "dragVerifyLogin",
|
|
2782
2839
|
attrs: {
|
|
@@ -2799,10 +2856,10 @@ var render = function render() {
|
|
|
2799
2856
|
}
|
|
2800
2857
|
}), _c('div', {
|
|
2801
2858
|
staticClass: "buttons clearfix"
|
|
2802
|
-
}, [_c('button', {
|
|
2859
|
+
}, [_c('el-button', {
|
|
2803
2860
|
staticClass: "btn-login fr button",
|
|
2804
2861
|
attrs: {
|
|
2805
|
-
"
|
|
2862
|
+
"loading": _vm.loading
|
|
2806
2863
|
},
|
|
2807
2864
|
on: {
|
|
2808
2865
|
"click": _vm.getAccountLogin
|
|
@@ -3042,7 +3099,7 @@ var render = function render() {
|
|
|
3042
3099
|
};
|
|
3043
3100
|
var staticRenderFns = [];
|
|
3044
3101
|
|
|
3045
|
-
// CONCATENATED MODULE: ./src/components/gpc-login/index.vue?vue&type=template&id=
|
|
3102
|
+
// CONCATENATED MODULE: ./src/components/gpc-login/index.vue?vue&type=template&id=4044d188&scoped=true
|
|
3046
3103
|
|
|
3047
3104
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d82290ec-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gpc-tabs/Tabs.vue?vue&type=template&id=a848dcd8&scoped=true
|
|
3048
3105
|
var Tabsvue_type_template_id_a848dcd8_scoped_true_render = function render() {
|
|
@@ -3414,11 +3471,17 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3414
3471
|
waNo: {
|
|
3415
3472
|
type: String,
|
|
3416
3473
|
default: ''
|
|
3474
|
+
},
|
|
3475
|
+
loading: {
|
|
3476
|
+
type: Boolean,
|
|
3477
|
+
default: false
|
|
3417
3478
|
}
|
|
3418
3479
|
},
|
|
3419
3480
|
data() {
|
|
3420
3481
|
return {
|
|
3421
3482
|
isLogin: true,
|
|
3483
|
+
inputType: "password",
|
|
3484
|
+
Color: false,
|
|
3422
3485
|
// 当前选中的标签
|
|
3423
3486
|
curTab: "1",
|
|
3424
3487
|
// 账号登录
|
|
@@ -3460,6 +3523,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3460
3523
|
methods: {
|
|
3461
3524
|
// 获取传入验证码
|
|
3462
3525
|
getCodeRequest(type, authCode) {
|
|
3526
|
+
console.log('getCodeRequest', type, authCode);
|
|
3463
3527
|
if (type === 'account') {
|
|
3464
3528
|
this.accountFrom.authCode = authCode;
|
|
3465
3529
|
} else if (type === 'login') {
|
|
@@ -3470,11 +3534,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3470
3534
|
},
|
|
3471
3535
|
// 账号登录
|
|
3472
3536
|
getAccountLogin() {
|
|
3473
|
-
if (!this.accountFrom.
|
|
3474
|
-
this.$notify.error({
|
|
3475
|
-
message: '请先验证滑块'
|
|
3476
|
-
});
|
|
3477
|
-
} else if (!this.accountFrom.username) {
|
|
3537
|
+
if (!this.accountFrom.username) {
|
|
3478
3538
|
this.$notify.error({
|
|
3479
3539
|
message: '请先输入账号或手机号'
|
|
3480
3540
|
});
|
|
@@ -3482,6 +3542,14 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3482
3542
|
this.$notify.error({
|
|
3483
3543
|
message: '请先输入密码'
|
|
3484
3544
|
});
|
|
3545
|
+
} else if (this.isPassingAccount == false) {
|
|
3546
|
+
this.$notify.error({
|
|
3547
|
+
message: '请先进行滑块验证'
|
|
3548
|
+
});
|
|
3549
|
+
} else if (!this.accountFrom.authCode) {
|
|
3550
|
+
this.$notify.error({
|
|
3551
|
+
message: '验证滑块码获取失败,请刷新页面,重新获取。'
|
|
3552
|
+
});
|
|
3485
3553
|
} else {
|
|
3486
3554
|
this.$emit('applyAccountLoginRequest', this.accountFrom);
|
|
3487
3555
|
}
|
|
@@ -3565,6 +3633,12 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3565
3633
|
} else {
|
|
3566
3634
|
console.warn(`Element with selector ${selector} not found.`);
|
|
3567
3635
|
}
|
|
3636
|
+
},
|
|
3637
|
+
// 密码的可见和不可见
|
|
3638
|
+
Show() {
|
|
3639
|
+
// 点击改变input框的展示方式
|
|
3640
|
+
this.inputType = this.inputType === "password" ? "text" : "password";
|
|
3641
|
+
this.Color = !this.Color;
|
|
3568
3642
|
}
|
|
3569
3643
|
},
|
|
3570
3644
|
mounted() {
|
|
@@ -3576,8 +3650,8 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
3576
3650
|
});
|
|
3577
3651
|
// CONCATENATED MODULE: ./src/components/gpc-login/index.vue?vue&type=script&lang=js
|
|
3578
3652
|
/* harmony default export */ var components_gpc_loginvue_type_script_lang_js = (gpc_loginvue_type_script_lang_js);
|
|
3579
|
-
// EXTERNAL MODULE: ./src/components/gpc-login/index.vue?vue&type=style&index=0&id=
|
|
3580
|
-
var
|
|
3653
|
+
// EXTERNAL MODULE: ./src/components/gpc-login/index.vue?vue&type=style&index=0&id=4044d188&prod&scoped=true&lang=css
|
|
3654
|
+
var gpc_loginvue_type_style_index_0_id_4044d188_prod_scoped_true_lang_css = __webpack_require__("8c88");
|
|
3581
3655
|
|
|
3582
3656
|
// CONCATENATED MODULE: ./src/components/gpc-login/index.vue
|
|
3583
3657
|
|
|
@@ -3594,7 +3668,7 @@ var gpc_login_component = normalizeComponent(
|
|
|
3594
3668
|
staticRenderFns,
|
|
3595
3669
|
false,
|
|
3596
3670
|
null,
|
|
3597
|
-
"
|
|
3671
|
+
"4044d188",
|
|
3598
3672
|
null
|
|
3599
3673
|
|
|
3600
3674
|
)
|