|
@@ -4,7 +4,7 @@
|
|
|
<el-col :span="24" class="main">
|
|
|
<div class="w_1200">
|
|
|
<el-col :span="24" class="one">
|
|
|
- <el-col :span="6" class="list" v-for="(item, index) in list" :key="index" @click.native="link(item.type)">
|
|
|
+ <el-col :span="6" class="list" v-for="(item, index) in list" :key="index" @click.native="link(item)">
|
|
|
<el-col :span="24" class="name">
|
|
|
<i class="iconfont" :class="item.icon"></i>
|
|
|
<p>{{ item.name }}</p>
|
|
@@ -25,13 +25,13 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-dialog title="高企政策服务" class="dialog2" :visible.sync="dialog2" width="30%" :before-close="dialog2Colse">
|
|
|
+ <el-dialog :title="dialogTitle" class="dialog2" :visible.sync="dialog2" width="30%" :before-close="dialog2Colse">
|
|
|
<el-form :model="form2" :rules="rulesForm2" ref="form2" label-width="80px">
|
|
|
- <el-form-item label="用户账号" prop="phone">
|
|
|
- <el-input v-model="form2.phone" placeholder="请输入用户账号"></el-input>
|
|
|
+ <el-form-item label="用户账号" prop="institution_code">
|
|
|
+ <el-input v-model="form2.institution_code" placeholder="请输入用户账号" maxlength="18"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="登录密码" prop="password">
|
|
|
- <el-input v-model="form2.password" placeholder="请输入登录密码"></el-input>
|
|
|
+ <el-form-item label="登录密码" prop="passwd">
|
|
|
+ <el-input v-model="form2.passwd" placeholder="请输入登录密码" type="password" show-password></el-input>
|
|
|
</el-form-item>
|
|
|
<el-col :span="24" class="btn">
|
|
|
<el-button type="primary" size="mini" @click="onSubmit2('form2')">登录</el-button>
|
|
@@ -46,6 +46,7 @@ import top from './parts/top.vue';
|
|
|
import list from './parts/list.vue';
|
|
|
import { btnList } from './btnList.js';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: organization } = createNamespacedHelpers('organization');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -66,17 +67,25 @@ export default {
|
|
|
company: '11111',
|
|
|
},
|
|
|
],
|
|
|
+ dialogTitle: '高企政策服务',
|
|
|
+ dialogType: undefined,
|
|
|
};
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
- link(type) {
|
|
|
+ ...organization(['login']),
|
|
|
+ link(data) {
|
|
|
+ const { type, name } = data;
|
|
|
if (type == '1') {
|
|
|
console.log('1');
|
|
|
} else if (type == '2') {
|
|
|
- console.log('2');
|
|
|
+ this.dialog2 = true;
|
|
|
+ this.dialogTitle = name;
|
|
|
+ this.dialogType = type;
|
|
|
} else if (type == '3') {
|
|
|
this.dialog2 = true;
|
|
|
+ this.dialogTitle = name;
|
|
|
+ this.dialogType = type;
|
|
|
} else if (type == '4') {
|
|
|
window.location.href = 'http://broadcast.waityou24.cn/liveAchieve';
|
|
|
} else if (type == '5') {
|
|
@@ -93,11 +102,14 @@ export default {
|
|
|
},
|
|
|
// 高企政策服务登录
|
|
|
onSubmit2(formName) {
|
|
|
- this.$refs[formName].validate((valid) => {
|
|
|
+ this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
let data = this.form2;
|
|
|
- console.log(data);
|
|
|
- this.$router.push({ path: '/service/policy' });
|
|
|
+ const res = await this.login(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ if (this.dialogType === '2') this.$router.push({ path: '/service/policy' });
|
|
|
+ if (this.dialogType === '3') this.$router.push({ path: '/service/ticket' });
|
|
|
+ }
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|