Commit e6f67aee by 肖康

首页 修改

parent 888f9e25
...@@ -103,22 +103,22 @@ ...@@ -103,22 +103,22 @@
.cdcons{ .cdcons{
position: absolute; position: absolute;
width: 200rpx; width: 200rpx;
height: 292rpx;
background: #292B33; background: #292B33;
border-radius: 10px; border-radius: 10px;
padding:0 24rpx; padding:0 24rpx;
padding-bottom: 10rpx;
display: none; display: none;
top:75rpx; top:75rpx;
left:-150rpx; left:-150rpx;
z-index: 2; z-index: 2;
a{ a{
height:73rpx; height:73rpx;
display: block; display: block;
width: 152rpx; width: 152rpx;
border-bottom: 1rpx solid #484B59; border-bottom: 1rpx solid #484B59;
color:#fff; color:#fff;
line-height: 72rpx; line-height: 72rpx;
font-size: 24rpx;
&:last-child{ &:last-child{
border:0rpx; border:0rpx;
} }
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
@touchstart="touchstart" @touchstart="touchstart"
@touchend="touchend" @touchend="touchend"
> >
<view class="navxfbox25" > <a class="navxfbox25" :href="url" target="_balnk">
<text class="icon iconfont icon-qq icon-qqnavxf"></text> <text class="icon iconfont icon-qq icon-qqnavxf"></text>
<view class="texttmavsk">QQ</view> <view class="texttmavsk">QQ</view>
<view class="texttmavsk">咨询</view> <view class="texttmavsk">咨询</view>
</view> </a>
<slot> <slot>
</slot> </slot>
...@@ -47,6 +47,11 @@ ...@@ -47,6 +47,11 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
url: {
type: String,
default: ''
},
follow: { follow: {
type: String | Boolean, type: String | Boolean,
default: 'all' default: 'all'
......
<template> <template>
<view class="page indexPage"> <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="header " :class="{'fixedtop':scrollTop>45}">
<view class="search-topb row bothSide "> <view class="search-topb row bothSide ">
<image src="../../static/logosmall.png"></image> <image src="../../static/logosmall.png"></image>
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<text class="icon iconfont icon-candan"></text> <text class="icon iconfont icon-candan"></text>
<text class="sj"></text> <text class="sj"></text>
<view class="cdcons"> <view class="cdcons">
<a :url="item.url" v-for="(item,index) in obj.h5_home_function_nav" <a :href="item.url" v-for="(item,index) in pbobj.h5_home_hide_menu"
:key="index">{{item.ttile}}</a> :key="index">{{item.title}}</a>
</view> </view>
</view> </view>
</view> </view>
...@@ -156,19 +156,18 @@ ...@@ -156,19 +156,18 @@
</template> </template>
<script> <script>
import { import {
Ichunt_Api Ichunt_Api,
Api_Url
} from '@/util/api.js'; } from '@/util/api.js';
import bottomNavFixed from '@/components/bottom_nav.vue'; import bottomNavFixed from '@/components/bottom_nav.vue';
export default { export default {
data() { data() {
return { return {
kfurl:"",
autoplay: true, autoplay: true,
scrollTop: 0, scrollTop: 0,
bannerlist: [], pbobj:{},
obj: {}, obj: {},
h5_home_concept_text: [],
h5_home_function_nav: [],
h5_home_original_supply: [],
brandact: 1, brandact: 1,
newsindex: 0, newsindex: 0,
translateY: 0, translateY: 0,
...@@ -217,7 +216,19 @@ ...@@ -217,7 +216,19 @@
} }
this.intervalHandler = setInterval(() => { this.intervalHandler = setInterval(() => {
this.moveUp() 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