Commit c2783a1a by zhangxw

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

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