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
      <el-row :gutter="32">
7
      <el-row :gutter="32">
8
        <el-col :span="8">
8
        <el-col :span="8">
9
          <div class="m-login">
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
          </div>
17
          </div>
17
        </el-col>
18
        </el-col>
18
        <el-col :span="16">
19
        <el-col :span="16">
144
    moreExam() {
145
    moreExam() {
145
      this.$router.push("/examination_announcement");
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
    detail(item) {
178
    detail(item) {
151
      local.set("ggdetails", item);
179
      local.set("ggdetails", item);
162
  width: 95%;
190
  width: 95%;
163
  margin: 0 auto;
191
  margin: 0 auto;
164
  .el-row {
192
  .el-row {
165
    
166
    &:last-child {
193
    &:last-child {
167
      margin-bottom: 0;
194
      margin-bottom: 0;
168
    }
195
    }
176
        float: right;
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
    .content-ann {
222
    .content-ann {
180
      margin: 10px 0 10px 0;
223
      margin: 10px 0 10px 0;
181
      line-height: 30px;
224
      line-height: 30px;

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

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