Browse Source

首页修改

yy 3 years ago
parent
commit
73285fe8fa
2 changed files with 56 additions and 9 deletions
  1. 52 9
      src/views/Home.vue
  2. 4 0
      src/views/PersonalCenter/index.vue

+ 52 - 9
src/views/Home.vue

@ -7,12 +7,13 @@
7 7
      <el-row :gutter="32">
8 8
        <el-col :span="8">
9 9
          <div class="m-login">
10
            <el-card class="box-card">
11
              <div slot="header">用户信息</div>
12
              <div class="content">
13
                <p @click="toPersonal">个人中心</p>
14
              </div>
15
            </el-card>
10
            <div class="box-item">
11
              <div @click="openApply">网上报名</div>
12
              <div @click="openPay">考试缴费</div>
13
              <div @click="openTicket">打印准考证</div>
14
              <div @click="openScore">成绩查询</div>
15
              <div @click="openCer">打印合格证</div>
16
            </div>
16 17
          </div>
17 18
        </el-col>
18 19
        <el-col :span="16">
@ -144,8 +145,35 @@ export default {
144 145
    moreExam() {
145 146
      this.$router.push("/examination_announcement");
146 147
    },
147
    toPersonal() {
148
      this.$router.push("/personal_center")
148
    openApply() {
149
      this.$router.push({
150
        path:"/personal_center",
151
        query:{selected_index: 1}
152
      });
153
    },
154
    openPay() {
155
      this.$router.push({
156
        path:"/personal_center",
157
        query:{selected_index: 2}
158
      });
159
    },
160
    openTicket() {
161
      this.$router.push({
162
        path:"/personal_center",
163
        query:{selected_index: 3}
164
      });
165
    },
166
    openScore() {
167
      this.$router.push({
168
        path:"/personal_center",
169
        query:{selected_index: 4}
170
      });
171
    },
172
    openCer() {
173
      this.$router.push({
174
        path:"/personal_center",
175
        query:{selected_index: 5}
176
      });
149 177
    },
150 178
    detail(item) {
151 179
      local.set("ggdetails", item);
@ -162,7 +190,6 @@ export default {
162 190
  width: 95%;
163 191
  margin: 0 auto;
164 192
  .el-row {
165
    
166 193
    &:last-child {
167 194
      margin-bottom: 0;
168 195
    }
@ -176,6 +203,22 @@ export default {
176 203
        float: right;
177 204
      }
178 205
    }
206
    .box-item div {
207
      background-color: rgba(255, 255, 255, 1);
208
      border: 1px solid rgba(242, 242, 242, 1);
209
      box-sizing: border-box;
210
      box-shadow: 10px 10px 5px #F2F2F2;
211
      height: 65px;
212
      line-height: 65px;
213
      text-align: center;
214
      margin: 0 0 5px 0;
215
    }
216
    .box-item div:hover {
217
      background-color: #2475D9;
218
    }
219
    .box-item {
220
      height: 344px;
221
    }
179 222
    .content-ann {
180 223
      margin: 10px 0 10px 0;
181 224
      line-height: 30px;

+ 4 - 0
src/views/PersonalCenter/index.vue

@ -90,6 +90,7 @@ export default {
90 90
    created() {
91 91
        this.dialog = !local.get("id");
92 92
        this.form.id = local.get("id");
93
        this.selected_index = this.$route.query.selected_index;
93 94
    },
94 95
    methods: {
95 96
        onChange(index) {
@ -181,6 +182,9 @@ export default {
181 182
.left-mid-btn:hover {
182 183
	background-color: #E5F1FD;
183 184
}
185
.left-mid-btn:visited {
186
	background-color: #E5F1FD;
187
}
184 188
.right {
185 189
    display: flex;
186 190
    flex-grow: 1;