Commit 7be89fa1 by zhangxw

二次ui走查修改

1 parent e002e12d
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<block wx:for="{{yearList}}" wx:for-item="item" wx:for-index="index" wx:key="index"> <block wx:for="{{yearList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<swiper-item class="calenderMonth"> <swiper-item class="calenderMonth">
<block wx:for="{{item}}" wx:for-item="monItem" wx:for-index="monIndex" wx:key="monIndex"> <block wx:for="{{item}}" wx:for-item="monItem" wx:for-index="monIndex" wx:key="monIndex">
<view bindtap="monChoose" data-type="month" data-index="{{monIndex}}" data-yearindex="{{index}}" data-data="{{monItem}}" class="monItem {{monItem.start?'active':''}} {{monItem.select?'select':''}} {{monItem.end?'end':''}} {{monItem.disable?'disable':''}}"> <view bindtap="monChoose" data-type="month" data-index="{{monIndex}}" data-yearindex="{{index}}" data-data="{{monItem}}" class="monItem {{monItem.start?'active':''}} {{monItem.select?'select':''}} {{monItem.end?'end':''}} {{monItem.disable?'disable':''}}" style="background: {{monItem.start || monItem.select || monItem.end ? calenderColor : ''}};">
<view>{{monItem.label}}</view> <view>{{monItem.label}}</view>
<view class="text" wx:if="{{monItem.start}}">开始</view> <view class="text" wx:if="{{monItem.start}}">开始</view>
<view class="text" wx:if="{{monItem.end}}">结束</view> <view class="text" wx:if="{{monItem.end}}">结束</view>
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
height: 80rpx; height: 80rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 32rpx;
} }
.popup-footer .doubtn { .popup-footer .doubtn {
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
height: 80rpx; height: 80rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 32rpx;
} }
.popup-footer .cancel { .popup-footer .cancel {
......
...@@ -8,7 +8,9 @@ Component({ ...@@ -8,7 +8,9 @@ Component({
formData: Object, formData: Object,
tabBarStyle: String, tabBarStyle: String,
isShowFilterScreen: Boolean, isShowFilterScreen: Boolean,
tabType: Number tabType: Number,
statusBarHeight: Number,
navigationBarHeight: Number
}, },
/** /**
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
<!-- 选择门店 --> <!-- 选择门店 -->
<select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}"/> <select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}"/>
<!-- 筛选 --> <!-- 筛选 -->
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindchangeService="hanbleChangeService"></screen-confirm-box>
\ No newline at end of file \ No newline at end of file
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindchangeService="hanbleChangeService"></screen-confirm-box>
\ No newline at end of file \ No newline at end of file
...@@ -23,7 +23,9 @@ Component({ ...@@ -23,7 +23,9 @@ Component({
} }
}, },
tabType: Number, // tab值 0我的门店 1我的员工 tabType: Number, // tab值 0我的门店 1我的员工
userInfo: Object userInfo: Object,
statusBarHeight: Number,
navigationBarHeight: Number
}, },
/** /**
...@@ -209,6 +211,11 @@ Component({ ...@@ -209,6 +211,11 @@ Component({
isReset: false isReset: false
}) })
}, },
// 日期组件
showCalendar(e) {
let calendarMonthModule = this.selectComponent('#calendarMonth')
calendarMonthModule.showCalendar && calendarMonthModule.showCalendar(e)
},
confirm() { confirm() {
if (this.data.screenConfirmFlag) return if (this.data.screenConfirmFlag) return
wx.$api.showLoading('加载中') wx.$api.showLoading('加载中')
......
<!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml--> <!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{height}}px);margin-top:{{tabBarStyle}}px;" <scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{height}}px);margin-top:calc({{statusBarHeight + navigationBarHeight}}px);"
hidden="{{!show}}"> hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);"> <view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
<view class="box"> <view class="box">
...@@ -24,13 +24,14 @@ ...@@ -24,13 +24,14 @@
自定义月份 自定义月份
<view class="picker_box"> <view class="picker_box">
<CalendarMonth <CalendarMonth
id="calendarMonth"
wx:if="{{isShowCalendarMonth}}" wx:if="{{isShowCalendarMonth}}"
allowSameDay allowSameDay
shortcut shortcut
bindselect="dateRangeSelect" bindselect="dateRangeSelect"
rangeAll rangeAll
dateType="range" dateType="range"
calenderColor="#3582EE" calenderColor="#3666FE"
vertical vertical
minDate="2020-10-01" minDate="2020-10-01"
maxDate="{{ dateObj.today }}" maxDate="{{ dateObj.today }}"
...@@ -49,11 +50,15 @@ ...@@ -49,11 +50,15 @@
</view> </view>
</view> </view>
<view class="date_box"> <view class="date_box">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view> <view bindtap="showCalendar" data-type="show">
<view class="date_item placeholder" wx:else>请选择</view> <view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
<view>-</view> <view>-</view>
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view> <view bindtap="showCalendar" data-type="show">
<view class="date_item placeholder" wx:else>请选择</view> <view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
</view> </view>
</view> </view>
<view class="box" wx:if="{{tabType == 0}}"> <view class="box" wx:if="{{tabType == 0}}">
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
} }
.search-box .search-input .search-icon { .search-box .search-input .search-icon {
width: 28rpx; width: 48rpx;
height: 28rpx; height: 48rpx;
margin: 0 10rpx 0 26rpx; margin: 0 10rpx 0 26rpx;
} }
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
.search-box .search-input .input { .search-box .search-input .input {
font-size: 28rpx; font-size: 28rpx;
width: calc(100% - 136rpx); width: calc(100% - 136rpx);
text-align: left;
} }
.input-placeholder { .input-placeholder {
...@@ -80,7 +81,8 @@ ...@@ -80,7 +81,8 @@
color: #323436; color: #323436;
line-height: 80rpx; line-height: 80rpx;
padding: 0 32rpx; padding: 0 32rpx;
font-size: 28rpx;
font-weight: normal;
} }
.active { .active {
......
...@@ -64,11 +64,12 @@ ...@@ -64,11 +64,12 @@
} }
.output_text { .output_text {
position: relative; position: relative;
text{ font-family: "ali-bold";
color: #4772FC; color: #4772FC;
font-size: 36rpx; font-size: 36rpx;
font-family: 'ali-bold'; font-weight: 700;
font-weight: 700; .unit{
font-size: 24rpx;
} }
} }
.merchant_num{ .merchant_num{
...@@ -114,6 +115,7 @@ ...@@ -114,6 +115,7 @@
font-size: 28rpx; font-size: 28rpx;
.title{ .title{
font-size: 24rpx; font-size: 24rpx;
font-weight: normal;
color: #8A8C90; color: #8A8C90;
} }
.flex_spa-arr{ .flex_spa-arr{
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<view class="name">{{item.staffName}}</view> <view class="name">{{item.staffName}}</view>
<view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</view>」</view> <view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</view>」</view>
</view> </view>
<view wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', true)}}</text></view> <view wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text class="unit">¥</text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', true)}}</view>
<view wx:else class="output_text" style="padding-right: 18rpx;"><text style="font-size: 24rpx;">¥</text><text>一百万</text><text style="font-size: 24rpx;position: absolute;top: 0;right: 0;">+</text></view> <view wx:else class="output_text" style="padding-right: 18rpx;"><text class="unit">¥</text>一百万<text style="font-size: 24rpx;position: absolute;top: 0;right: 0;">+</text></view>
</view> </view>
<view class="flex_spa-be"> <view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view> <view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
</view> </view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex"> <block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content"> <view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}"> <view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && (!item.showMore && subIndex == 2) || item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view> <view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex"> <view class="flex_2 flex">
<view class="font_wei700">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view> <view class="font_wei700">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view class="font_wei500">{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view> <view class="font_wei500">{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view> </view>
<view class="flex_1 flex"> <view class="flex_1 flex">
<view class="font_wei700">{{subItem.orderCount}}单</view> <view class="font_wei700">{{subItem.orderCount}}单</view>
...@@ -73,16 +73,16 @@ ...@@ -73,16 +73,16 @@
</view> </view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex"> <block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content"> <view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}"> <view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && (!item.showMore && subIndex == 2) || item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view> <view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex"> <view class="flex_2 flex">
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view> <view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view> <view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view> </view>
<view class="flex_1 flex"> <view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view> <view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view> <view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view> <view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view> <view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
</view> </view>
</view> </view>
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
color: rgba(200, 201, 204, .89); color: rgba(200, 201, 204, .89);
} }
.search-icon { .search-icon {
width: 28rpx; width: 48rpx;
height: 28rpx; height: 48rpx;
} }
.search-clear { .search-clear {
width: 36rpx; width: 36rpx;
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
font-size: 28rpx; font-size: 28rpx;
width: calc(100% - 136rpx); width: calc(100% - 136rpx);
margin-left: 10rpx; margin-left: 10rpx;
text-align: left;
} }
} }
} }
...@@ -68,6 +69,8 @@ ...@@ -68,6 +69,8 @@
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
color: #323436; color: #323436;
font-size: 28rpx;
font-weight: normal;
line-height: 80rpx; line-height: 80rpx;
padding: 0 32rpx; padding: 0 32rpx;
} }
......
...@@ -33,6 +33,19 @@ ...@@ -33,6 +33,19 @@
height: 34rpx; height: 34rpx;
} }
.bg_iamge{
width: 100%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
.image_class{
background-color: #fff;
width: 100%;
height: 100%;
}
}
.layout { .layout {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
...@@ -45,19 +58,19 @@ ...@@ -45,19 +58,19 @@
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
&::after { // &::after {
content: ''; // content: '';
width: 100%; // width: 100%;
// height: 486rpx; // // height: 486rpx;
height: 264rpx; // height: 264rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/background.png') no-repeat; // background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/background.png') no-repeat;
background-size: 100% 100%; // background-size: 100% 100%;
background-color: #fff; // background-color: #fff;
position: absolute; // position: absolute;
left: 0; // left: 0;
top: 0; // top: 0;
z-index: -1; // z-index: -1;
} // }
.tabContainer { .tabContainer {
// height: 100rpx; // height: 100rpx;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<block> <block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" /> <tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="screen_box"> <view class="screen_box">
<screen-box id="screenBox" formData="{{screenFormData}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box> <screen-box id="screenBox" formData="{{screenFormData}}" statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
</view> </view>
</block> </block>
<block wx:if="{{isShowFilterScreen}}"> <block wx:if="{{isShowFilterScreen}}">
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
<view>筛选</view> <view>筛选</view>
</block> </block>
</navigation-bar> </navigation-bar>
<view class="bg_iamge" style="height: calc({{statusBarHeight + navigationBarHeight}}px + 88rpx);">
<glsx-image src="{{'output/background.png'}}" class="image_class" />
</view>
<view class="layout" style="padding-top:calc({{statusBarHeight + navigationBarHeight}}px + 88rpx);"> <view class="layout" style="padding-top:calc({{statusBarHeight + navigationBarHeight}}px + 88rpx);">
<!-- 我的门店 --> <!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}"> <view class="comCom" hidden="{{tabIndx != 0}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!