Commit c2783a1a by zhangxw

权益 首页样式调整 入口名称修改

1 parent 67ca2783
......@@ -29,6 +29,7 @@ Component({
this.setData({
tipsProps: false
})
this.triggerEvent('closeTips')
} else {
thisPage.tipsEvent()
}
......
......@@ -8,10 +8,10 @@
</view>
</navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout" style="padding-top:{{navBarHeight}}px; height: calc(100vh - {{navBarHeight}}px);">
<view class="layout" style="padding-top:{{navBarHeight}}px;position: relative;">
<block wx:if="{{navBarHeight && showPage}}">
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="{{tabIndex == 0?'':'hide'}}" />
<equity-list id="page-1" navBarHeight="{{navBarHeight}}" class="{{tabIndex == 1?'':'hide'}}" />
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" />
<equity-list id="page-1" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 1?'':'hide'}}" />
</block>
</view>
<custom-tabBar list="{{tabBarList}}" color="#6C6C70" selectedColor="#3582EE" tabIndex="{{tabIndex}}" bindchange="changeTabBar" />
......
......@@ -44,6 +44,10 @@
color: #8A8C90;
display: flex;
flex-direction: column;
height: calc(100vh - 50px);
height: calc(100vh - 100rpx - env(safe-area-inset-bottom));
height: calc(100vh - 100rpx - constant(safe-area-inset-bottom));
overflow: hidden;
}
\ No newline at end of file
}
.layout .pagedetail{
height: 100%;
}
......@@ -65,7 +65,8 @@ Component({
iconUrl: '../images/order-close.png'
},
triggered: false,
scrollTop: 0
scrollTop: 0,
isShowTips: true
},
lifetimes: {
......@@ -92,6 +93,11 @@ Component({
onBottomRefresh() {
this.getList()
},
closeTips() {
this.setData({
isShowTips: false
})
},
getTotal() {
let { storeInfo } = this.data
carLifeApi.equityStatistics({
......
......@@ -32,11 +32,11 @@
<tab-bar tabList="{{tabList}}" bindclick="tabClick" />
</view>
<view class="total-box">总订单 · <text>{{statisticsObj.totalOder}}</text> 待补单 · <text style="color: #E7AA47;">{{statisticsObj.ladingOder}}</text> 提单失败 · <text style="color: #D26F6B;">{{statisticsObj.failed}}</text></view>
<view wx:if="{{tabIndex != 3 && list.length}}" class="tips-box">
<tips-bottom custom-class="tips-custom" style="width: 100%;box-sizing: border-box;" tipsProps="{{tipsProps}}" />
<view wx:if="{{tabIndex != 3 && list.length && isShowTips}}" class="tips-box">
<tips-bottom custom-class="tips-custom" style="width: 100%;box-sizing: border-box;" tipsProps="{{tipsProps}}" bind:closeTips="closeTips"/>
</view>
<view wx:if="{{flag}}" class="order-box">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" style="height:calc(100vh - {{navBarHeight}}px - 300px - 84px);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view wx:if="{{flag}}" class="order-box" style="height: calc(100% - 104rpx - 104rpx - 80rpx - {{isShowTips ? 48 : 0}}rpx);">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{scrollTop}}" style="height: calc(100% - 2rpx)" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}">
<view wx:for="{{list}}" wx:key="index" class="item">
<view class="item-header">
......
......@@ -94,6 +94,7 @@
background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0;
overflow: hidden;
height: calc(100% - 192rpx);
}
.to-box {
......@@ -194,7 +195,6 @@
}
.order-box {
margin-bottom: 200rpx;
background-color: #fdfdfd;
}
......
......@@ -47,7 +47,7 @@
<text wx:if="{{tabIndex == 0}}" class="total-tips">今日成功支付{{statisticsObj.todaySuccessPay || 0}}位,战败{{statisticsObj.todayFailurePay || 0}}位</text>
</view>
<view wx:if="{{flag}}" class="order-box">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" style="height:calc(100vh - {{navBarHeight}}px - 300px - 60px);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}">
<view wx:for="{{list}}" wx:key="index" class="item">
<view class="itme-content">
......
......@@ -87,6 +87,7 @@
background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0;
overflow: hidden;
height: calc(100% - 260rpx);
}
.to-box {
......@@ -176,14 +177,16 @@
}
.order-box {
margin-bottom: 200rpx;
background-color: #fdfdfd;
height: calc(100% - 104rpx - 104rpx - 52rpx);
}
.list {
box-sizing: border-box;
width: 100%;
padding: 20rpx;
padding-bottom: 0;
height: calc(100% - 20rpx);
}
.list .item {
......
......@@ -9,14 +9,14 @@ Page({
timeState: '',
sceneList: [
{
sceneName: '1.1 精品升级',
sceneDesc: '1.1太阳膜升级转化下单',
sceneName: '精品升级',
sceneDesc: '太阳膜升级转化下单',
sceneType: 1,
actived: false
},
{
sceneName: '2.1 会员权益/升级',
sceneDesc: '2.1新车车损险下单',
sceneName: '会员权益/升级',
sceneDesc: '新车车损险下单',
sceneType: 0,
actived: false
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!