Browse Source

跳转

master
我叫MT 1 year ago
parent
commit
5bd299ecee
4 changed files with 104 additions and 19142 deletions
  1. +95
    -19105
      package-lock.json
  2. +0
    -32
      src/router/index.js
  3. +8
    -4
      src/views/home/index.vue
  4. +1
    -1
      src/views/information/index.vue

+ 95
- 19105
package-lock.json
File diff suppressed because it is too large
View File


+ 0
- 32
src/router/index.js View File

@@ -12,38 +12,6 @@ const routes = [
{
path: '',
component: home
// children: [
// {
// path: '',
// name: 'reveal',
// component: reveal
// },
// {
// path: '/observationDataQuery',
// name: 'observationDataQuery',
// component: () => import(/* webpackChunkName: "observationDataQuery" */ '../views/observation/index.vue')
// },
// {
// path: '/forecast',
// name: 'forecast',
// component: () => import(/* webpackChunkName: "forecast" */ '../views/forecast/index.vue')
// },
// {
// path: '/otherforecast',
// name: 'otherforecast',
// component: () => import(/* webpackChunkName: "otherforecast" */ '../views/otherforecast/index.vue')
// },
// {
// path: '/examine',
// name: 'examine',
// component: () => import(/* webpackChunkName: "examine" */ '../views/examine/index.vue')
// },
// {
// path: '/diagnosis',
// name: 'diagnosis',
// component: () => import(/* webpackChunkName: "diagnosis" */ '../views/diagnosis/index.vue')
// }
// ]
},
{
path: '/information',


+ 8
- 4
src/views/home/index.vue View File

@@ -20,7 +20,7 @@
<p class="content">{{ hotList.right[index].content }}</p>
</div>
<div class="btn">
<el-button plain class="more" size="small">MORE</el-button>
<el-button plain class="more" size="small" @click="routerToCar">MORE</el-button>
</div>
</div>
</el-carousel-item>
@@ -47,12 +47,10 @@
<p class="content" v-html="item.content" />
</div>
<div class="btn">
<el-button plain class="more" size="small">MORE</el-button>
<el-button plain class="more" size="small" @click="routerToMate">MORE</el-button>
</div>
</div>
<div class="yyzrbimg lr" >
<!-- <img :src="daliay.right[index].img" alt=""> -->
<!-- <video></video> -->
<video :id="'davideo'+index" :src="daliay.right[index].video" @click="videoPlayer(`davideo${index}`, `daplay${index}`)"/>
<img class="play" src="@/assets/play.png" @click="videoPlayer(`davideo${index}`, `daplay${index}`)" :id="'daplay'+index">
</div>
@@ -110,6 +108,12 @@ export default {
this.getyuanyuzhouHotList()
},
methods: {
routerToCar () {
this.$router.push({ path: '/information' })
},
routerToMate () {
this.$router.push({ path: '/metadaily' })
},
async getlunboList () {
const { data: { message, data } } = await lunboList()
if (message === 'success') {


+ 1
- 1
src/views/information/index.vue View File

@@ -10,7 +10,7 @@
</div>
<div id="hottxt">
<div id="htitle">
<a class="tle">热点新闻</a>
<a class="tle">汽车文章</a>
<el-button type="text" @click="routerTo">MORE+</el-button>
</div>
<div id="hotList">


Loading…
Cancel
Save