Commit a00f7338 by 张立顺

fix 样式

1 parent 01585592
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
color: #8A8C90; color: #8A8C90;
overflow: scroll; overflow: scroll;
margin: 0 var(--fontSize20); margin: 0 var(--fontSize20);
padding-bottom: 30rpx; padding-bottom: 120rpx;
.tabContainer { .tabContainer {
height: 100rpx; height: 100rpx;
......
...@@ -9,9 +9,9 @@ function formatYMDHM(val) { ...@@ -9,9 +9,9 @@ function formatYMDHM(val) {
const yyyy = d.getFullYear() const yyyy = d.getFullYear()
const MM = String(d.getMonth() + 1).padStart(2, '0') const MM = String(d.getMonth() + 1).padStart(2, '0')
const DD = String(d.getDate()).padStart(2, '0') const DD = String(d.getDate()).padStart(2, '0')
const HH = String(d.getHours()).padStart(2, '0') // const HH = String(d.getHours()).padStart(2, '0')
const mm = String(d.getMinutes()).padStart(2, '0') // const mm = String(d.getMinutes()).padStart(2, '0')
return `${yyyy}-${MM}-${DD} ${HH}:${mm}` return `${yyyy}-${MM}-${DD}`
} }
Page({ Page({
/** /**
...@@ -151,40 +151,40 @@ Page({ ...@@ -151,40 +151,40 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) {}, onLoad(options) { },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, onShow() { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
// flex: 1; // flex: 1;
color: #292d33; color: #292d33;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
// width: 100%; // width: 100%;
// width: 120rpx; // width: 120rpx;
// height: 50rpx; // height: 50rpx;
...@@ -131,22 +131,24 @@ ...@@ -131,22 +131,24 @@
.newStore { .newStore {
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
background: #347bff14;
border-radius: 4rpx; border-radius: 4rpx;
color: #347bff; background: #35c37614;
color: #35C376;
font-size: 22rpx; font-size: 22rpx;
margin-right: 10rpx; margin-right: 10rpx;
line-height: 40rpx; line-height: 40rpx;
padding: 0rpx 8rpx; padding: 0rpx 8rpx;
font-weight: 500;
} }
.oldStore { .oldStore {
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
background: #35c37614; background: #347bff14;
color: #347bff;
border-radius: 4rpx; border-radius: 4rpx;
line-height: 40rpx; line-height: 40rpx;
color: #35C376; font-weight: 500;
font-size: 22rpx; font-size: 22rpx;
margin-right: 10rpx; margin-right: 10rpx;
line-height: 40rpx; line-height: 40rpx;
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
.icon { .icon {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-left: 3rpx; margin-left: 5rpx;
// 旋转90度 // 旋转90度
transform: rotate(45deg); // transform: rotate(45deg);
// margin-left: 8rpx; // margin-left: 8rpx;
} }
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
color: #757b85; color: #757b85;
line-height: 56rpx; line-height: 56rpx;
text-align: center; text-align: center;
margin-right: 16px; margin-right: 16rpx;
} }
.active { .active {
...@@ -596,9 +596,9 @@ ...@@ -596,9 +596,9 @@
margin-left: auto; margin-left: auto;
.icon { .icon {
margin-top: 5rpx; display: inline-block;
width: 24rpx; width: 32rpx;
height: 24rpx; height: 32rpx;
} }
} }
......
<!-- 总监页面 --> <!-- 总监页面 -->
<!-- <view class="scence"> --> <!-- <view class="scence"> -->
<!-- tabBoxStyle="{{ tabBoxStyle }}" --> <!-- tabBoxStyle="{{ tabBoxStyle }}" -->
<tab-no-line <tab-no-line noLine="{{ true }}" tab="{{ tabList }}" itemWidth="{{ '11%' }}" index="{{ tabIndx }}" unreadClueCount="{{ unreadClueCount }}" bindclick="changeTabIndx" class="tabContainer" />
noLine="{{ true }}"
tab="{{ tabList }}"
itemWidth="{{ '11%' }}"
index="{{ tabIndx }}"
unreadClueCount="{{ unreadClueCount }}"
bindclick="changeTabIndx"
class="tabContainer"
/>
<view class="overview"> <view class="overview">
<view class="header"> <view class="header">
<view class="left">数据总览</view> <view class="left">数据总览</view>
...@@ -29,14 +21,14 @@ ...@@ -29,14 +21,14 @@
<text class="bold text-hide" wx:if="{{ selectedMainBrand.length > 0 }}">{{selectedMainBrand[0].children[0].name}}</text> <text class="bold text-hide" wx:if="{{ selectedMainBrand.length > 0 }}">{{selectedMainBrand[0].children[0].name}}</text>
<text class="bold text-hide" wx:else>全部</text> <text class="bold text-hide" wx:else>全部</text>
</view> </view>
<glsx-image class="icon" src="{{ '/index/arrow.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
<view class="mode box" bind:tap="changeCooperationModeByList"> <view class="mode box" bind:tap="changeCooperationModeByList">
<view class="text"> <view class="text">
合作模式 / 合作模式 /
<text class="bold">{{cooperationModelabel}}</text> <text class="bold">{{cooperationModelabel}}</text>
</view> </view>
<glsx-image class="icon" src="{{ '/index/arrow.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
</view> </view>
<view class="statistics"> <view class="statistics">
...@@ -64,14 +56,7 @@ ...@@ -64,14 +56,7 @@
<glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
</view> </view>
<tableScrollX <tableScrollX table="{{ dataOverviewTable }}" headerConfig="{{ headerConfigOverview }}" tableObj="{{ tableObj }}" tableFlag="{{ tableFlag }}" tableWidth="{{ tableWidthOverview }}" itemTableHeight="{{ itemTableHeightOverview }}"></tableScrollX>
table="{{ dataOverviewTable }}"
headerConfig="{{ headerConfigOverview }}"
tableObj="{{ tableObj }}"
tableFlag="{{ tableFlag }}"
tableWidth="{{ tableWidthOverview }}"
itemTableHeight="{{ itemTableHeightOverview }}"
></tableScrollX>
</block> </block>
<block wx:if="{{ overviewTabIndex == 0 }}"> <block wx:if="{{ overviewTabIndex == 0 }}">
<view class="statistics storeExpansion"> <view class="statistics storeExpansion">
...@@ -98,30 +83,15 @@ ...@@ -98,30 +83,15 @@
<view class="title">拓店排行榜</view> <view class="title">拓店排行榜</view>
<view class="rankingSelect"> <view class="rankingSelect">
<view class="left"> <view class="left">
<view <view class="item {{ rankingSelectIndexOverview == 1 ? 'active' : '' }}" bindtap="changeRankingSelectIndexOverview" data-index="1">前十位</view>
class="item {{ rankingSelectIndexOverview == 1 ? 'active' : '' }}" <view class="item {{ rankingSelectIndexOverview == 2 ? 'active' : '' }}" bindtap="changeRankingSelectIndexOverview" data-index="2">后十位</view>
bindtap="changeRankingSelectIndexOverview"
data-index="1"
>前十位</view>
<view
class="item {{ rankingSelectIndexOverview == 2 ? 'active' : '' }}"
bindtap="changeRankingSelectIndexOverview"
data-index="2"
>后十位</view>
</view> </view>
<view class="select" bindtap="changeRankingSelect"> <view class="select" bindtap="changeRankingSelect">
{{sortDimensionlabel||'拓客数'}} {{sortDimensionlabel||'拓客数'}}
<glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
</view> </view>
<tableScrollX <tableScrollX table="{{ dataOverviewTable }}" headerConfig="{{ headerConfigStoreExpansion }}" tableObj="{{ tableHeaderConfigStoreExpansion }}" tableFlag="{{ tableFlag }}" tableWidth="{{ tableWidthOverview }}" itemTableHeight="{{ itemTableHeightOverview }}"></tableScrollX>
table="{{ dataOverviewTable }}"
headerConfig="{{ headerConfigStoreExpansion }}"
tableObj="{{ tableHeaderConfigStoreExpansion }}"
tableFlag="{{ tableFlag }}"
tableWidth="{{ tableWidthOverview }}"
itemTableHeight="{{ itemTableHeightOverview }}"
></tableScrollX>
</block> </block>
</view> </view>
<view class="overview"> <view class="overview">
...@@ -146,24 +116,17 @@ ...@@ -146,24 +116,17 @@
<text class="bold text-hide" wx:if="{{ selectedMainBrandOverview.length > 0 }}">{{selectedMainBrandOverview[0].children[0].name}}</text> <text class="bold text-hide" wx:if="{{ selectedMainBrandOverview.length > 0 }}">{{selectedMainBrandOverview[0].children[0].name}}</text>
<text class="bold text-hide" wx:else>全部</text> <text class="bold text-hide" wx:else>全部</text>
</view> </view>
<glsx-image class="icon" src="{{ '/index/arrow.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
<view class="mode box" bind:tap="changeCooperationModeByListOverView"> <view class="mode box" bind:tap="changeCooperationModeByListOverView">
<view class="text"> <view class="text">
合作模式 / 合作模式 /
<text class="bold">{{regionCooperationModelabel}}</text> <text class="bold">{{regionCooperationModelabel}}</text>
</view> </view>
<glsx-image class="icon" src="{{ '/index/arrow.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
</view> </view>
<tableScrollX <tableScrollX table="{{ tableData }}" headerConfig="{{ headerConfig }}" tableObj="{{ overviewTabIndexRegion == 1?tableConfigOverview: tableObjStoreExpansion }}" tableFlag="{{ tableFlag }}" tableWidth="{{ tableWidth }}" itemTableHeight="{{ itemTableHeightOverview }}"></tableScrollX>
table="{{ tableData }}"
headerConfig="{{ headerConfig }}"
tableObj="{{ overviewTabIndexRegion == 1?tableConfigOverview: tableObjStoreExpansion }}"
tableFlag="{{ tableFlag }}"
tableWidth="{{ tableWidth }}"
itemTableHeight="{{ itemTableHeightOverview }}"
></tableScrollX>
</view> </view>
<store-waring></store-waring> <store-waring></store-waring>
<view class="box indicator indicatorlast" bind:tap="navigateToSalesSummary"> <view class="box indicator indicatorlast" bind:tap="navigateToSalesSummary">
...@@ -187,23 +150,7 @@ ...@@ -187,23 +150,7 @@
</view> </view>
</view> </view>
</view> </view>
<select-popup <select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" title="{{ selectTitle }}" customIsTab="{{ true }}"></select-popup>
show="{{ showSelectPopup }}" <popup show="{{ carBrandPopupShow }}" title="选择品牌" bind:hidePopup="hideBrandPopupFormSelf" customPopupSlotStyle="{{ 'height: calc(100% - 282rpx)' }}" bindconfirm="brandConfirm" height="90%">
options="{{ selectOptions }}"
multiple="{{ selectMultiple }}"
values="{{ selectValues }}"
value="{{ selectValue }}"
bindconfirm="handlePopupConfirm"
title="{{ selectTitle }}"
customIsTab="{{ true }}"
></select-popup>
<popup
show="{{ carBrandPopupShow }}"
title="选择品牌"
bind:hidePopup="hideBrandPopupFormSelf"
customPopupSlotStyle="{{ 'height: calc(100% - 282rpx)' }}"
bindconfirm="brandConfirm"
height="90%"
>
<car-brand id="car-brand" popupShow="{{ carBrandPopupShow }}" multiple="{{ false }}" selectedList="{{ selectedMainBrandList }}"></car-brand> <car-brand id="car-brand" popupShow="{{ carBrandPopupShow }}" multiple="{{ false }}" selectedList="{{ selectedMainBrandList }}"></car-brand>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
...@@ -219,8 +219,9 @@ ...@@ -219,8 +219,9 @@
margin-left: auto; margin-left: auto;
.icon { .icon {
width: 24rpx; display: inline-block;
height: 24rpx; width: 32rpx;
height: 32rpx;
} }
} }
......
...@@ -217,6 +217,7 @@ ...@@ -217,6 +217,7 @@
.date { .date {
color: #5a5e66; color: #5a5e66;
margin-left: 16rpx; margin-left: 16rpx;
margin-top: 4rpx;
} }
} }
...@@ -227,9 +228,8 @@ ...@@ -227,9 +228,8 @@
.icon { .icon {
display: inline-block; display: inline-block;
margin-top: 5rpx; width: 32rpx;
width: 24rpx; height: 32rpx;
height: 24rpx;
} }
} }
......
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
margin-left: auto; margin-left: auto;
.icon { .icon {
margin-top: 4rpx; display: inline-block;
width: 24rpx; width: 32rpx;
height: 24rpx; height: 32rpx;
} }
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!