Commit 87838937 authored by Facius's avatar Facius

首页

parent ecfb6d4b
......@@ -14,7 +14,7 @@
>
<text class="title-view">充电桩自营平台</text>
</u-navbar>
<u-swiper
<!-- <u-swiper
:height="240"
:list="list"
:indicator-pos="indicatorPos"
......@@ -22,7 +22,9 @@
:interval="3000"
@click="clickSwiper"
>
</u-swiper>
</u-swiper> -->
<image class="banner-image" :src="bannerImage"></image>
<view class="msg-view">
<view class="msg-title">最新消息</view>
<view class="msg-list-view">
......@@ -33,14 +35,14 @@
>
<view class="msg-content-view">
<view class="left-view">
<image class="msg-icon"></image>
<text>{{ item.body }}</text>
<image class="msg-icon" :src="msgStyleImage[item.content_type]"></image>
<text>{{ item.title }}</text>
</view>
<image class="right-icon"></image>
<image class="right-icon" :src="shouyeyouImage"></image>
</view>
<view
class="line-view"
v-if="messageList.length > index + 1"
v-if="index != 2"
></view>
</view>
</view>
......@@ -109,20 +111,20 @@ export default {
return {
status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered: false,
list: [
{
image: "https://cdn.uviewui.com/uview/swiper/1.jpg",
},
{
image: "https://cdn.uviewui.com/uview/swiper/2.jpg",
},
{
image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
},
],
// list: [
// {
// image: "https://cdn.uviewui.com/uview/swiper/1.jpg",
// },
// {
// image: "https://cdn.uviewui.com/uview/swiper/2.jpg",
// },
// {
// image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
// },
// ],
title: false,
mode: "round",
indicatorPos: "bottomCenter",
// mode: "round",
// indicatorPos: "bottomCenter",
title: "Hello",
loaded: false,
needSettled: true,
......@@ -149,13 +151,19 @@ export default {
"font-weight": "bold",
};
},
msgStyle() {
msgStyleImage() {
return {
1: "", // 置顶
2: "", // 通知
3: "", // 消息
};
},
'1': process.uniEnv.qn_base_url + "zhiding.png", // 置顶
'2': process.uniEnv.qn_base_url + "tongzhi.png", // 通知
'3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息
}
},
bannerImage() {
return process.uniEnv.qn_base_url + 'banner.png'
},
shouyeyouImage() {
return process.uniEnv.qn_base_url + 'shouyeyou.png'
}
},
onLoad() {
this._freshing = false;
......@@ -259,7 +267,7 @@ export default {
});
}, 1000);
},
clickSwiper(index) {},
// clickSwiper(index) {},
handleScroll() {
console.log("-----scroll-------");
},
......@@ -322,6 +330,12 @@ export default {
color: #333333;
font-weight: bold;
font-size: 40rpx;
}
.banner-image {
width: 730rpx;
height: 280rpx;
margin-left: -14rpx;
}
.msg-view {
......@@ -329,14 +343,14 @@ export default {
color: #333333;
font-size: 32rpx;
font-weight: bold;
padding: 50rpx 0rpx 30rpx 0rpx;
padding: 1rpx 0rpx 30rpx 0rpx;
}
.msg-list-view {
border-radius: 12rpx;
background-color: #ffffff;
padding: 6rpx 30rpx;
height: 268rpx;
padding: 12rpx 30rpx;
height: 252rpx;
}
.msg-content {
......@@ -356,13 +370,14 @@ export default {
.msg-icon {
width: 80rpx;
height: 36rpx;
height: 36rpx;
margin-right: 20rpx;
}
}
.right-icon {
width: 14rpx;
height: 24px;
height: 24rpx;
}
}
......
......@@ -103,7 +103,7 @@
return process.uniEnv.qn_base_url + 'erweima-bg.png'
},
},
onLoad(e) {
onLoad(e) {
if (e) {
if (e.pageIndex) {
this.pageIndex = e.pageIndex;
......@@ -114,8 +114,8 @@
// }
},
onShow() {
if (!this.settledInfo) {
onShow() {
if (!this.settledInfo) {
this.getBaseInfo()
}
},
......
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 to comment