Commit 07b7e624 by zhangxw

bug修改 ui走查

1 parent 14cb61fe
......@@ -9,10 +9,10 @@
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
<view class="cancel btn text-center" bindtap="hidePopup">取消</view>
<view class="confirm btn text-center" bindtap="confirm">确认</view>
<view class="confirm btn text-center" bindtap="confirm">确定</view>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:else>
<view class="confirm doubtn text-center" bindtap="confirm">确认</view>
<view class="confirm doubtn text-center" bindtap="confirm">确定</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -210,12 +210,13 @@ Component({
})
},
confirm() {
if (this.data.screenConfirmFlag) return
wx.$api.showLoading('加载中')
let { userInfo, formData, staffList, sceneList } = this.data
formData.sceneType = sceneList.filter(val => val.active)[0]?.id || ''
formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid})
this.triggerEvent('screenFlag')
this.setData({screenFlag: true})
this.setData({screenConfirmFlag: true})
const thisPage = wx.$router.getPageInstance()
if (formData?.partnerMerchantIds[0] !== userInfo.subLoginUser.merchantId) {
USERAPI.switchSubLoginInfo({ merchantId: formData?.partnerMerchantIds[0] }).then(res => {
......@@ -230,6 +231,7 @@ Component({
screenFormData: formData,
})
thisPage.searchEvent()
this.setData({ screenConfirmFlag: false })
})
} else {
wx.$api.hideLoading()
......@@ -237,6 +239,7 @@ Component({
screenFormData: formData
})
thisPage.searchEvent()
this.setData({ screenConfirmFlag: false })
}
},
reset() {
......
......@@ -110,8 +110,8 @@
.box .list_box {
display: grid;
justify-content: space-between;
align-items: center;
grid-template-columns: repeat(auto-fill, 216rpx);
grid-template-rows: auto;
font-size: 26rpx;
}
......
<!--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;"
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
......
/** 具体时间截取月份 */
var filterDate = function (n) {
var year = n && n.split('-')[0]
var month = n && n.split('-')[1]
return n && year + '/' + month
}
/*
* 导出
*/
module.exports = {
filterDate: filterDate
}
......@@ -18,7 +18,7 @@
bindinput="input"
bindconfirm="search" />
</view>
<view class="search text-center" bindtap="showConfirm">
<view class="search text-center" bindtap="search" data-value="{{searchKeyword}}">
<view class="text-center">搜索</view>
</view>
</view>
......
......@@ -28,7 +28,7 @@
display: flex;
align-items: center;
box-sizing: border-box;
color: #A9A9A9;
color: #636465;
justify-content: center;
font-size: 34rpx;
}
......
......@@ -34,7 +34,8 @@ Component({
nothing: false,
scrollTop: 0,
isAsk: false,
emptyDataStyle: ''
emptyDataStyle: '',
searchFormData: {}
},
/**
......@@ -49,10 +50,10 @@ Component({
})
},
showMore(e) {
let { index } = e.currentTarget.dataset
let { index, flag } = e.currentTarget.dataset
let params = `dataList[${index}].showMore`
this.setData({
[params]: true
[params]: flag
})
},
onBottomRefresh() {
......@@ -97,6 +98,7 @@ Component({
merchantOutputValuesPageSize,
...thisPage.data.screenFormData
}
this.setData({ searchFormData: thisPage.data.screenFormData })
delete params.shopMerchantNames
delete params.sceneType // 删除场景参数
if (nothing || isAsk) {
......
/* pages/tab/outputValue/components/employees/employess.wxss */
.search_time_box{
height: 48rpx;
line-height: 48rpx;
width: 100%;
background: #EAEFFE;
color: #3666FE;
font-size: 24rpx;
text-align: center;
}
.list{
padding: 0 16rpx;
width: 100%;
......@@ -14,7 +23,7 @@
box-sizing: border-box;
width: 100%;
background: #FFFFFF;
box-shadow: 0 2rpx 2rpx 0 #b4bacc52;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 16rpx;
padding: 40rpx 0 24rpx 24rpx;
margin: 0 24rpx 24rpx 0;
......@@ -63,6 +72,7 @@
}
.merchant_num{
margin-left: 64rpx;
color: #5A6066;
}
.commission{
font-size: 24rpx;
......@@ -95,7 +105,7 @@
.line{
width: calc(100% + 48rpx);
height: 1rpx;
background: rgba(228, 230, 238, .5);
background: rgba(228, 230, 238, .3);
margin: 40rpx -24rpx 0;
}
.merchant_box{
......@@ -106,23 +116,27 @@
}
.flex_spa-arr{
display: flex;
justify-content: space-around;
align-items: flex-start;
.flex{
box-sizing: border-box;
padding-right: 30rpx;
}
.flex_1{
flex: 1;
width: calc(100% - 552rpx);
padding-right: 0;
}
.flex_2{
flex: 2;
width: 196rpx;
}
.flex_3{
flex: 3;
width: 314rpx;
padding-right: 52rpx;
}
.font_wei{
font-size: 28rpx;
font-weight: 600;
font-weight: 700;
color: #323436;
}
.padd_r16{
padding-right: 16rpx;
margin-bottom: 8rpx;
}
.name{
font-size: 26rpx;
......@@ -132,9 +146,7 @@
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.flex{
margin-right: 20rpx;
word-break: break-all;
}
.flex:last-child{
margin-right: 0;
......@@ -142,11 +154,7 @@
}
.merchant_item{
padding: 32rpx 0;
border-bottom: 2rpx solid rgba(228, 230, 238, .5);
}
.merchant_item:last-child{
border: none;
padding-bottom: 8rpx;
border-bottom: 2rpx solid rgba(228, 230, 238, .3);
}
.showMore{
display: flex;
......
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<wxs src="../../index.wxs" module="filter" />
<view wx:if="{{searchFormData.startTime && searchFormData.endTime}}" class="search_time_box">{{filter.filterDate(searchFormData.startTime)+ '-' + filter.filterDate(searchFormData.endTime)}}</view>
<scroll-view
scroll-y
enable-back-to-top
......@@ -9,6 +10,7 @@
refresher-threshold="104"
scroll-top="{{scrollTop}}"
class="list"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100vh - 48rpx)' : '100%'}}"
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
......@@ -20,8 +22,8 @@
<view class="name">{{item.staffName}}</view>
<view class="role_name" wx:if="{{item.staffRoleName && item.staffRoleName != '系统默认角色'}}">「<view>{{item.staffRoleName}}</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', false)}}</text></view>
<view wx:else class="output_text"><text style="font-size: 24rpx;">¥</text><text>一百万</text><text style="font-size: 24rpx;position: absolute;top: 0;">+</text></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: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>
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
......@@ -36,25 +38,28 @@
<!-- 驻店员工 -->
<block wx:if="{{item.outputValueType == 1}}">
<view class="title flex_spa-arr">
<view class="flex_2 flex">服务门店</view>
<view class="flex_1 flex">产值/客单价</view>
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">产值/客单价</view>
<view class="flex_1 padd_r16 flex">订单/转化率</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" style="{{item.outputValueStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="flex_2 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_1 flex">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', false)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', false)}}</view>
<view class="merchant_item flex_spa-arr" wx:if="{{subIndex < 3 || item.showMore}}" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view>
<view class="flex_1 padd_r16 flex">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.conversionRate}}%</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{true}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{false}}">
<glsx-image src="output/show_more_icon_up.png" webp></glsx-image>
</view>
</block>
</block>
<!-- 技师 -->
......
......@@ -46,10 +46,18 @@ var threeNumForTwo = {
}
}
/** 具体时间截取月份 */
var filterDate = function (n) {
var year = n && n.split('-')[0]
var month = n && n.split('-')[1]
return n && year + '/' + month
}
/*
* 导出
*/
module.exports = {
setPrice: setPrice,
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands, //暴露接口调用
filterDate: filterDate
}
......@@ -71,6 +71,7 @@
overflow: scroll;
// background-color: #fff;
background-color: #F2F3F7;
height: 100%;
}
.comCom::-webkit-scrollbar {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!