Commit e010714d authored by Morson's avatar Morson
parents a90b8aba 87838937
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
> >
<text class="title-view">充电桩自营平台</text> <text class="title-view">充电桩自营平台</text>
</u-navbar> </u-navbar>
<u-swiper <!-- <u-swiper
:height="240" :height="240"
:list="list" :list="list"
:indicator-pos="indicatorPos" :indicator-pos="indicatorPos"
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
:interval="3000" :interval="3000"
@click="clickSwiper" @click="clickSwiper"
> >
</u-swiper> </u-swiper> -->
<image class="banner-image" :src="bannerImage"></image>
<view class="msg-view"> <view class="msg-view">
<view class="msg-title">最新消息</view> <view class="msg-title">最新消息</view>
<view class="msg-list-view"> <view class="msg-list-view">
...@@ -33,14 +35,14 @@ ...@@ -33,14 +35,14 @@
> >
<view class="msg-content-view"> <view class="msg-content-view">
<view class="left-view"> <view class="left-view">
<image class="msg-icon"></image> <image class="msg-icon" :src="msgStyleImage[item.content_type]"></image>
<text>{{ item.body }}</text> <text>{{ item.title }}</text>
</view> </view>
<image class="right-icon"></image> <image class="right-icon" :src="shouyeyouImage"></image>
</view> </view>
<view <view
class="line-view" class="line-view"
v-if="messageList.length > index + 1" v-if="index != 2"
></view> ></view>
</view> </view>
</view> </view>
...@@ -109,20 +111,20 @@ export default { ...@@ -109,20 +111,20 @@ export default {
return { return {
status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交' status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered: false, triggered: false,
list: [ // list: [
{ // {
image: "https://cdn.uviewui.com/uview/swiper/1.jpg", // 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/2.jpg",
}, // },
{ // {
image: "https://cdn.uviewui.com/uview/swiper/3.jpg", // image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
}, // },
], // ],
title: false, title: false,
mode: "round", // mode: "round",
indicatorPos: "bottomCenter", // indicatorPos: "bottomCenter",
title: "Hello", title: "Hello",
loaded: false, loaded: false,
needSettled: true, needSettled: true,
...@@ -154,13 +156,19 @@ export default { ...@@ -154,13 +156,19 @@ export default {
"font-weight": "bold", "font-weight": "bold",
}; };
}, },
msgStyle() { msgStyleImage() {
return { return {
1: "", // 置顶 '1': process.uniEnv.qn_base_url + "zhiding.png", // 置顶
2: "", // 通知 '2': process.uniEnv.qn_base_url + "tongzhi.png", // 通知
3: "", // 消息 '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() { onLoad() {
this._freshing = false; this._freshing = false;
...@@ -265,7 +273,7 @@ export default { ...@@ -265,7 +273,7 @@ export default {
}); });
}, 1000); }, 1000);
}, },
clickSwiper(index) {}, // clickSwiper(index) {},
handleScroll() { handleScroll() {
console.log("-----scroll-------"); console.log("-----scroll-------");
}, },
...@@ -328,6 +336,12 @@ export default { ...@@ -328,6 +336,12 @@ export default {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
font-size: 40rpx; font-size: 40rpx;
}
.banner-image {
width: 730rpx;
height: 280rpx;
margin-left: -14rpx;
} }
.msg-view { .msg-view {
...@@ -335,14 +349,14 @@ export default { ...@@ -335,14 +349,14 @@ export default {
color: #333333; color: #333333;
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
padding: 50rpx 0rpx 30rpx 0rpx; padding: 1rpx 0rpx 30rpx 0rpx;
} }
.msg-list-view { .msg-list-view {
border-radius: 12rpx; border-radius: 12rpx;
background-color: #ffffff; background-color: #ffffff;
padding: 6rpx 30rpx; padding: 12rpx 30rpx;
height: 268rpx; height: 252rpx;
} }
.msg-content { .msg-content {
...@@ -362,13 +376,14 @@ export default { ...@@ -362,13 +376,14 @@ export default {
.msg-icon { .msg-icon {
width: 80rpx; width: 80rpx;
height: 36rpx; height: 36rpx;
margin-right: 20rpx;
} }
} }
.right-icon { .right-icon {
width: 14rpx; width: 14rpx;
height: 24px; height: 24rpx;
} }
} }
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
return process.uniEnv.qn_base_url + 'erweima-bg.png' return process.uniEnv.qn_base_url + 'erweima-bg.png'
}, },
}, },
onLoad(e) { onLoad(e) {
if (e) { if (e) {
if (e.pageIndex) { if (e.pageIndex) {
this.pageIndex = e.pageIndex; this.pageIndex = e.pageIndex;
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
// } // }
}, },
onShow() { onShow() {
if (!this.settledInfo) { if (!this.settledInfo) {
this.getBaseInfo() this.getBaseInfo()
} }
}, },
...@@ -131,7 +131,28 @@ ...@@ -131,7 +131,28 @@
} }
let settledInfo = await app.getBaseInfo(this, callBack) let settledInfo = await app.getBaseInfo(this, callBack)
this.settledInfo = settledInfo this.settledInfo = settledInfo
this.status = settledInfo.record.status this.status = settledInfo.record.status
switch (this.status) {
case 1:
case 2:
case 3:
case 4:
this.pageIndex = 2;
break;
case 8:
this.pageIndex = 3;
break;
case 5:
case 6:
this.pageIndex = 4;
break;
case 7:
this.pageIndex = 5;
break;
default:
this.pageIndex = 1;
break;
}
uni.hideLoading() uni.hideLoading()
this.initInfo(settledInfo.record) this.initInfo(settledInfo.record)
}, },
......
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