Commit 71cc172a authored by Facius's avatar Facius

首页高保真

parent ea7284f4
<template>
<view class="order-cell">
<view class="order-view" @click="handleClickCell">
<view class="order-top-view">
<view class="left-view">
......@@ -34,8 +33,8 @@
<view>
<view v-if="showCountTime" class="bottom-left-view">
<view :class="['bottom-tag-view', {'will': orderData.currentWillOverTime}]">{{tagText}}</view>
<u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime"
font-size="44" color="#FF930D" @change="handleChange" ref="order-count-down"></u-count-down>
<u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime" font-size="44"
color="#FF930D" @change="handleChange" ref="order-count-down"></u-count-down>
</view>
<view v-else-if="showTime">
<text>{{timeTitle}}</text>
......@@ -49,7 +48,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
......@@ -251,9 +249,6 @@
</script>
<style lang="scss" scoped>
.order-cell {
padding-bottom: 20rpx;
.order-view {
width: 100%;
background-color: #FFFFFF;
......@@ -384,5 +379,4 @@
.right-btn {}
}
}
}
</style>
......@@ -2,15 +2,10 @@
<view class="content">
<!-- <view style="width: 700rpx; height: 800rpx"> -->
<!-- <view class="title-view">充电桩自营平台</view> -->
<u-navbar
:is-back="false"
:is-fixed="false"
:background="{ background: 'transparent' }"
:border-bottom="false"
>
<u-navbar :is-back="false" :is-fixed="false" :background="{ background: 'transparent' }" :border-bottom="false">
<text class="title-view">充电桩自营平台</text>
</u-navbar>
<!-- <u-swiper
<!-- <u-swiper
:height="240"
:list="list"
:indicator-pos="indicatorPos"
......@@ -24,11 +19,7 @@
<view class="msg-view">
<view class="msg-title">最新消息</view>
<view class="msg-list-view">
<view
class="msg-content"
v-for="(item, index) in messageList"
:key="index"
>
<view class="msg-content" v-for="(item, index) in messageList" :key="index">
<view class="msg-content-view">
<view class="left-view">
<image class="msg-icon" :src="msgStyleImage[item.content_type]"></image>
......@@ -36,10 +27,7 @@
</view>
<image class="right-icon" :src="shouyeyouImage"></image>
</view>
<view
class="line-view"
v-if="index != 2"
></view>
<view class="line-view" v-if="index != 2"></view>
</view>
</view>
</view>
......@@ -57,33 +45,20 @@
<view class="tip-title">当前订单(笔)</view>
<view class="tip-count">{{ count }}</view>
<view class="tip-other">入驻通过后平台将向您推荐订单</view>
<u-button
class="settle-button"
type="primary"
shape="circle"
@click="immediatelyIn"
:custom-style="buttonStyle"
>
<u-button class="settle-button" type="primary" shape="circle" @click="immediatelyIn"
:custom-style="buttonStyle">
立即入驻
</u-button>
</view>
<view
v-else-if="!needSettled && orderList.length > 0"
class="order-item-view"
>
<view v-else-if="!needSettled && orderList.length > 0" class="order-item-view">
<view v-for="(item, index) in orderList" :key="index">
<OrderCell :orderData="item" :orderType="0" :location="location" @click="handleClick" @action="handleAction"> </OrderCell>
<OrderCell :orderData="item" :orderType="0" :location="location" @click="handleClick"
@action="handleAction"> </OrderCell>
</view>
<u-loadmore
:status="currentLoadStatus"
bgColor="#f2f2f2"
></u-loadmore>
<u-loadmore :status="currentLoadStatus" bgColor="#f2f2f2"></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if="!needSettled && orderList.length <= 0"
class="no-order-view"
>
<view v-else-if="!needSettled && orderList.length <= 0" class="no-order-view">
<image class="no-order-image" :src="wudingdanImage"></image>
<text>当前暂无订单</text>
</view>
......@@ -100,12 +75,12 @@
</template>
<script>
import util from "@/utils/util.js";
import util from "@/utils/util.js";
const app = getApp();
import OrderCell from "@/components/order/index.vue";
const app = getApp();
import OrderCell from "@/components/order/index.vue";
export default {
export default {
components: {
OrderCell,
},
......@@ -131,7 +106,7 @@ export default {
};
},
watch: {
vuex_token(val){
vuex_token(val) {
// 监听token变化,如果更新则重新加载页面数据
val && this.initSettleInfo()
}
......@@ -162,8 +137,7 @@ export default {
return process.uniEnv.qn_base_url + 'wudingdan.png'
}
},
onLoad() {
},
onLoad() {},
onShow() {
// 每次进入页面都刷新入驻状态
if (this.vuex_token) {
......@@ -267,10 +241,10 @@ export default {
this.orderList.push(...[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]);
// 加载完成
this.currentLoadStatus = false /*是否还有*/
? this.loadStatus[1]
: this.loadStatus[2];
this.$nextTick(function () {
this.currentLoadStatus = false /*是否还有*/ ?
this.loadStatus[1] :
this.loadStatus[2];
this.$nextTick(function() {
this.bottomLoading = false;
});
}, 1000);
......@@ -306,10 +280,8 @@ export default {
}
uni.navigateTo({
url:
this.status > 0
? "/pages/settle/prompt?pageIndex=" + pageIndex
: "/pages/settle/index",
url: this.status > 0 ?
"/pages/settle/prompt?pageIndex=" + pageIndex : "/pages/settle/index",
});
} else {
uni.navigateTo({
......@@ -318,16 +290,16 @@ export default {
}
},
},
};
};
</script>
<style lang="scss" scoped>
.content {
.content {
height: 100vh;
background-color: #f4f5f7;
padding: 0rpx 30rpx 0 30rpx;
overflow-y:auto;
overflow-y: auto;
.title-view {
color: #333333;
font-weight: bold;
......@@ -369,11 +341,13 @@ export default {
.left-view {
display: flex;
align-items: center;
.msg-icon {
width: 80rpx;
height: 36rpx;
margin-right: 20rpx;
}
.msg-text {
text-overflow: ellipsis;
overflow: hidden;
......@@ -394,34 +368,34 @@ export default {
}
}
}
}
}
.logo {
.logo {
height: 200 rpx;
width: 100%;
margin: 0 rpx auto 50 rpx auto;
}
}
.text-area {
.text-area {
display: flex;
justify-content: center;
}
}
.title {
.title {
font-size: 36 rpx;
color: #8f8f94;
}
// .sticky-view {
// position: sticky;
// position: -webkit-sticky;
// top: 0rpx;
// width: 100%;
// height: 200rpx;
// background-color: black;
// }
.sticky {
}
// .sticky-view {
// position: sticky;
// position: -webkit-sticky;
// top: 0rpx;
// width: 100%;
// height: 200rpx;
// background-color: black;
// }
.sticky {
background-color: #f4f5f7;
color: #fff;
padding: 24 rpx;
......@@ -430,37 +404,18 @@ export default {
font-weight: bold;
color: #333333;
padding: 46rpx 0 28rpx 0;
}
}
.order-view {
.order-view {
text-align: center;
min-height: 460rpx;
.order-list-view {
.tip-view {
padding: 30rpx;
background-color: #ffffff;
border-radius: 12rpx;
min-height: 460rpx;
padding: 30rpx;
margin-bottom: 30rpx;
.order-item-view {
}
.no-order-view {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #666666;
font-size: 28rpx;
.no-order-image {
width: 374rpx;
height: 218rpx;
margin-top: 100rpx;
margin-bottom: 20rpx;
}
}
.tip-view {
.tip-title {
font-size: 32rpx;
font-weight: bold;
......@@ -482,18 +437,48 @@ export default {
margin-bottom: 56rpx;
}
}
.order-item-view {
background-color: #F4F5F7;
border-radius: 12rpx;
}
.no-order-view {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #666666;
font-size: 28rpx;
padding: 30rpx;
background-color: #ffffff;
border-radius: 12rpx;
min-height: 460rpx;
.no-order-image {
width: 374rpx;
height: 218rpx;
margin-top: 70rpx;
margin-bottom: 20rpx;
}
}
}
}
}
.bottom-view {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 40rpx 50rpx 40rpx;
padding: 50rpx 40rpx 50rpx 40rpx;
.bottom-line-view {
background-color: #D5D5D5;
height: 2rpx;
width: 30%;
}
.bottom-text {
color: #999999;
font-size: 24rpx;
......
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