Browse Source

页码样式修改

master
song 3 years ago
parent
commit
02008db387
  1. 6
      .env.production
  2. 4
      src/components/LeftNav/LeftNav.vue
  3. 4
      src/components/ListPage/ListPage.vue

6
.env.production

@ -1,10 +1,10 @@
VUE_APP_MODE=production
VUE_APP_NODE_ENV=production
VUE_APP_SCENE=/
VUE_APP_SCENE=/v1.0/datang/
VUE_APP_BASE_URL=http://10.119.190.12:8000
VUE_APP_API_URL=http://10.119.190.12:8000/v1.0
VUE_APP_PROXY_URL=/v1.0
VUE_APP_PUBLIC_PATH=
VUE_APP_MSG_URL=wss://192.168.101.69:8000/websocket/message/v4.0/ws
VUE_APP_PUBLIC_PATH=/v1.0/datang
VUE_APP_MSG_URL=wss://10.119.190.12:8000/websocket/message/v4.0/ws
VUE_APP_TITLE=大唐
VUE_APP_DESCRIPTION=大唐

4
src/components/LeftNav/LeftNav.vue

@ -64,7 +64,9 @@ export default {
}
if (!url) {
if (this.code && code !== this.code) {
this.$router.push({ query: { code: childCode } });
// this.$router.push({ query: { code: childCode } });
const path = window.location.href.split('?')
window.location.href= path[0]+`?code=${childCode}`
this.$emit('changeCode', code);
this.childCode = code;
} else if (code === this.code) {

4
src/components/ListPage/ListPage.vue

@ -10,7 +10,7 @@
</span>
</div>
<template v-if="code !== '0204' && code !== '0207' && code !== '0209' && code !== '0210'">
<ul v-if="content.total - 0" style="max-width: 892px">
<ul v-if="content.total - 0" style="max-width: 892px;min-height: 420px;">
<li v-for="item in content.list" :key="item.introId" class="mb-5" @click="openPage(item.introId)">
<div class="d-flex justify-space-between align-center">
<div style="cursor: pointer;max-width: 680px" class="one-text">{{ item.title }}</div>
@ -43,7 +43,7 @@
</div>
</template>
<div v-if="content.total - 0 > 10" style="position:absolute;right:0;bottom:-20px;" class="d-flex justify-center align-center">
<div v-if="content.total - 0 > 10" style="position:absolute;right:0;bottom:-80px;" class="d-flex justify-center align-center">
<a-pagination show-quick-jumper :default-current="1" :total="content.total - 0" @change="onChange" />
</div>
</div>

Loading…
Cancel
Save