gpc-ui 0.1.14 → 0.1.16
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 +40 -32
- package/lib/gpc-ui.common.js.map +1 -1
- package/lib/gpc-ui.css +1 -1
- package/lib/gpc-ui.umd.js +40 -32
- 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 +13 -10
package/package.json
CHANGED
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
<div class="wrap-box">
|
|
10
10
|
<div class="box-content">
|
|
11
11
|
<div class="sign">
|
|
12
|
-
<h2 class="title"
|
|
13
|
-
<p class="desc"
|
|
14
|
-
<button type="button" class="get-register" @click="getRegister">重置</button>
|
|
12
|
+
<h2 class="title">欢迎使用 {{subtitle}}</h2>
|
|
13
|
+
<p class="desc">华西绿舍数智化建设核心竞争力</p>
|
|
15
14
|
</div>
|
|
16
15
|
<div class="login">
|
|
17
16
|
<h2 class="title">已经有账号了吗?</h2>
|
|
@@ -38,6 +37,7 @@
|
|
|
38
37
|
</drag-verify>
|
|
39
38
|
<div class="buttons clearfix">
|
|
40
39
|
<button type="button" class="btn-login fr button" @click="getAccountLogin">登录</button>
|
|
40
|
+
<el-button type="text" style="color: #028037;" size="small" @click="getRegister">重置密码</el-button>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</TabPane>
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<div>
|
|
97
97
|
<p>主办:{{orgTitle}}</p>
|
|
98
98
|
<p>ICP备案/许可证编号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{icpNo}}</a>
|
|
99
|
-
<a href="http://www.beian.gov.cn/portal/registerSystemInfo
|
|
99
|
+
<a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank">
|
|
100
100
|
<img style="width: 20px;" src="https://beian.mps.gov.cn/img/logo01.dd7ff50e.png">
|
|
101
101
|
川公网安备 {{waNo}}
|
|
102
102
|
</a>
|
|
@@ -190,6 +190,7 @@ export default {
|
|
|
190
190
|
methods: {
|
|
191
191
|
// 获取传入验证码
|
|
192
192
|
getCodeRequest(type, authCode){
|
|
193
|
+
console.log('getCodeRequest', type, authCode)
|
|
193
194
|
if(type === 'account'){
|
|
194
195
|
this.accountFrom.authCode = authCode
|
|
195
196
|
} else if(type === 'login'){
|
|
@@ -199,14 +200,16 @@ export default {
|
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
// 账号登录
|
|
202
|
-
getAccountLogin(){
|
|
203
|
-
if(!this.accountFrom.
|
|
204
|
-
this.$notify.error({message: '请先验证滑块'});
|
|
205
|
-
} else if(!this.accountFrom.username){
|
|
203
|
+
getAccountLogin() {
|
|
204
|
+
if (!this.accountFrom.username) {
|
|
206
205
|
this.$notify.error({message: '请先输入账号或手机号'});
|
|
207
|
-
} else if(!this.accountFrom.password){
|
|
206
|
+
} else if (!this.accountFrom.password) {
|
|
208
207
|
this.$notify.error({message: '请先输入密码'});
|
|
209
|
-
} else {
|
|
208
|
+
} else if(this.isPassingAccount == false) {
|
|
209
|
+
this.$notify.error({message: '请先进行滑块验证'});
|
|
210
|
+
} else if (!this.accountFrom.authCode){
|
|
211
|
+
this.$notify.error({message: '验证滑块码获取失败,请刷新页面,重新获取。'});
|
|
212
|
+
} else {
|
|
210
213
|
this.$emit('applyAccountLoginRequest', this.accountFrom);
|
|
211
214
|
}
|
|
212
215
|
},
|