Commit e6f67aee by 肖康

首页 修改

parent 888f9e25
......@@ -103,22 +103,22 @@
.cdcons{
position: absolute;
width: 200rpx;
height: 292rpx;
background: #292B33;
border-radius: 10px;
padding:0 24rpx;
padding-bottom: 10rpx;
display: none;
top:75rpx;
left:-150rpx;
z-index: 2;
a{
height:73rpx;
display: block;
width: 152rpx;
border-bottom: 1rpx solid #484B59;
color:#fff;
line-height: 72rpx;
font-size: 24rpx;
&:last-child{
border:0rpx;
}
......
......@@ -18,11 +18,11 @@
@touchstart="touchstart"
@touchend="touchend"
>
<view class="navxfbox25" >
<a class="navxfbox25" :href="url" target="_balnk">
<text class="icon iconfont icon-qq icon-qqnavxf"></text>
<view class="texttmavsk">QQ</view>
<view class="texttmavsk">咨询</view>
</view>
</a>
<slot>
</slot>
......@@ -47,6 +47,11 @@
type: Boolean,
default: true
},
url: {
type: String,
default: ''
},
follow: {
type: String | Boolean,
default: 'all'
......
<template>
<view class="page indexPage">
<drag-button-follow follow="left,right" className="drag-button" class="drag-button"></drag-button-follow>
<drag-button-follow follow="left,right" className="drag-button" class="drag-button" :url="kfurl"></drag-button-follow>
<view class="header " :class="{'fixedtop':scrollTop>45}">
<view class="search-topb row bothSide ">
<image src="../../static/logosmall.png"></image>
......@@ -17,8 +17,8 @@
<text class="icon iconfont icon-candan"></text>
<text class="sj"></text>
<view class="cdcons">
<a :url="item.url" v-for="(item,index) in obj.h5_home_function_nav"
:key="index">{{item.ttile}}</a>
<a :href="item.url" v-for="(item,index) in pbobj.h5_home_hide_menu"
:key="index">{{item.title}}</a>
</view>
</view>
</view>
......@@ -156,19 +156,18 @@
</template>
<script>
import {
Ichunt_Api
Ichunt_Api,
Api_Url
} from '@/util/api.js';
import bottomNavFixed from '@/components/bottom_nav.vue';
export default {
data() {
return {
kfurl:"",
autoplay: true,
scrollTop: 0,
bannerlist: [],
pbobj:{},
obj: {},
h5_home_concept_text: [],
h5_home_function_nav: [],
h5_home_original_supply: [],
brandact: 1,
newsindex: 0,
translateY: 0,
......@@ -217,7 +216,19 @@
}
this.intervalHandler = setInterval(() => {
this.moveUp()
}, 5000)
}, 10000)
}
});
this.request(Ichunt_Api + "/api/common/data", 'GET', {}, ).then(res => {
if (res.err_code === 0) {
console.log(res.data)
this.pbobj = res.data;
this.kfurl=this.pbobj.kfqq_xk.data
}
});
this.request(Api_Url + "/msg/allnum", 'POST', {}, ).then(res => {
if (res.err_code === 0) {
console.log(res.data)
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment