Commit 24ebd916 by zhangxw

接口对接

1 parent 37c1d207
import outputValueApi from './outputValue.js'
export default new outputValueApi()
import api from '~/utils/request/request'
class outputValueApi {
/** 我的员工分页 */
GETSTAFFLISTAPI(data) {
return api.post({
method: 'scrm.api.busassistant.outputValue.staff.list',
...data
})
}
/** 员工列表(仅员工信息筛选用) */
GETALLSTAFFDATAAPI(data) {
return api.post({
method: 'scrm.api.busassistant.staff.list',
...data
})
}
}
export default outputValueApi
...@@ -10,7 +10,8 @@ Component({ ...@@ -10,7 +10,8 @@ Component({
bgColor: { bgColor: {
type: String, type: String,
value: '#fff' value: '#fff'
} },
emptyDataStyle: String
}, },
/** /**
......
<!-- components/Nothing-tips/nothingTips.wxml --> <!-- components/Nothing-tips/nothingTips.wxml -->
<view class="nothingCon custom-class" style="background-color: {{bgColor}};"> <view class="nothingCon custom-class" style="background-color: {{bgColor}};{{emptyDataStyle}}">
<image <image
wx:if="{{bg}}" wx:if="{{bg}}"
class="bg" class="bg"
......
...@@ -76,7 +76,7 @@ Page({ ...@@ -76,7 +76,7 @@ Page({
staffList: tempList, staffList: tempList,
currentPage: currentPage + 1, currentPage: currentPage + 1,
total: res.total, total: res.total,
nothing: res.count == tempList.length, nothing: res.total == tempList.length,
triggered: false triggered: false
}) })
if (isReset) { if (isReset) {
......
...@@ -189,6 +189,10 @@ Page({ ...@@ -189,6 +189,10 @@ Page({
onShow: function () { onShow: function () {
this.messageBoxPageIsRead() this.messageBoxPageIsRead()
this.getUnreadApi() this.getUnreadApi()
let { userInfo } = wx.$storage.get()
this.setData({
userInfo: userInfo.subLoginUser
})
}, },
/** /**
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
<view>{{handleCommissionObj.staffName}}</view> <view>{{handleCommissionObj.staffName}}</view>
</view> </view>
<scroll-view scroll-y class="month_box"> <scroll-view scroll-y class="month_box">
<view class="month_item" wx:for="{{monthCommossionData}}" wx:key="index"> <view class="month_item" wx:for="{{handleCommissionObj.performance.performanceResults}}" wx:key="index">
<view class="month">{{item.month}}<view class="inline_b" wx:if="{{nowMonth == item.month}}">(当前月)</view></view> <view class="month">{{item.performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceMonth}}">(当前月)</view></view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth == item.month}}" class="tips">提成在本月完结后自动计算</view> <view wx:if="{{item.ruleStatus == '1' && nowMonth == item.performanceMonth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{item.ruleStatus == '0'}}" class="tips">提成未设置,请登录后台设置</view> <view wx:if="{{item.ruleStatus == '1' && nowMonth != item.performanceMonth && item.commission}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.commission || '0.00', false)}}</view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth != item.month}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.commission || '0.00', false)}}</view> <view wx:else="">-</view>
</view> </view>
</scroll-view> </scroll-view>
</popup> </popup>
...@@ -32,6 +32,11 @@ Component({ ...@@ -32,6 +32,11 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
handleScreenFlag() {
this.setData({
screenFlag: true
})
},
// 选择门店 // 选择门店
handleSlectMerchant() { handleSlectMerchant() {
this.setData({ this.setData({
...@@ -48,13 +53,15 @@ Component({ ...@@ -48,13 +53,15 @@ Component({
// 获取服务商下的4s店 // 获取服务商下的4s店
getMerchantList() { getMerchantList() {
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
this.setData({
pageLoaded: true,
userInfo
})
getMerchantListApi({serviceMerchantId: userInfo?.subLoginUser?.merchantId}).then(res => { getMerchantListApi({serviceMerchantId: userInfo?.subLoginUser?.merchantId}).then(res => {
let { code, data } = res let { code, data } = res
if (code == '0') { if (code == '0') {
this.setData({ this.setData({
merchantList: data, merchantList: data
pageLoaded: true,
userInfo
}) })
} }
}) })
...@@ -63,7 +70,7 @@ Component({ ...@@ -63,7 +70,7 @@ Component({
let {merchantId, merchantName} = e.detail let {merchantId, merchantName} = e.detail
let { formData } = this.data let { formData } = this.data
const thisPage = wx.$router.getPageInstance() const thisPage = wx.$router.getPageInstance()
formData.shopMerchantIds = [merchantId] formData.shopMerchantIds = merchantId ? [merchantId] : []
formData.shopMerchantNames = merchantName formData.shopMerchantNames = merchantName
this.setData({ this.setData({
formData formData
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="merchant_name">{{ formData.shopMerchantNames }}</view> <view class="merchant_name">{{ formData.shopMerchantNames }}</view>
<glsx-image src="{{'output/drop_down.png'}}" class="icon" /> <glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view> </view>
<view class="screen_item wid_140 {{formData}}" bindtap="filterTypeFn"> <view class="screen_item wid_140 {{screenFlag ? 'active' : ''}}" bindtap="filterTypeFn">
筛选 筛选
<glsx-image src="{{'output/drop_down.png'}}" class="icon" /> <glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view> </view>
...@@ -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}}" isTab="{{true}}"/> <select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}" isTab="{{true}}"/>
<!-- 筛选 --> <!-- 筛选 -->
<screen-confirm-box wx:if="{{pageLoaded}}" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindreloadMerchantList="getMerchantList"></screen-confirm-box>
\ No newline at end of file \ No newline at end of file
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}"></screen-confirm-box>
\ No newline at end of file \ No newline at end of file
// pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.js // pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.js
import USERAPI from '~/api/usersApi/index' import USERAPI from '~/api/usersApi/index'
import outputApi from '~/api/outputApi/index' import outputValueApi from '~/api/outputValueApi/index'
import { setUserInfo } from '~/utils/cache/storageApi' import { setUserInfo } from '~/utils/cache/storageApi'
Component({ Component({
/** /**
...@@ -17,7 +17,7 @@ Component({ ...@@ -17,7 +17,7 @@ Component({
thisPage.setData({ thisPage.setData({
isShowFilterScreen: true isShowFilterScreen: true
}) })
if (this.data.tabType == 1) this.setDate() // 员工默认展示当前月份 this.setDate() // 默认展示当前月份
this.setViewData() this.setViewData()
} }
} }
...@@ -131,7 +131,15 @@ Component({ ...@@ -131,7 +131,15 @@ Component({
}) })
}, },
setDate() { setDate() {
let { formData } = this.data
let month = new Date().getMonth() + 1
let year = new Date().getFullYear()
let day = this.getLastDay(year, month)
formData.startTime = year + '-' + month + '-01' + ' 00:00:00'
formData.endTime = year + '-' + month + '-' + day + ' 23:59:59'
this.setData({
formData
})
}, },
getLastDay(year, month) { getLastDay(year, month) {
var new_year = year //取当前的年份 var new_year = year //取当前的年份
...@@ -145,28 +153,14 @@ Component({ ...@@ -145,28 +153,14 @@ Component({
}, },
// 员工数据 // 员工数据
getStaffList() { getStaffList() {
let { partnerMerchantIds, sceneType } = this.data.formData let { partnerMerchantIds } = this.data.formData
outputApi.getStaffList({partnerMerchantId: partnerMerchantIds[0]}).then(res => { outputValueApi.GETALLSTAFFDATAAPI({partnerMerchantId: partnerMerchantIds[0]}).then(res => {
let _list = [] let arr = res || []
// 1-会员权益/升级;2-精品升级 if (!arr?.length || arr[0]?.staffName !== '全部') {
let attrToNum = {
'': 'totalStat',
'1': 'vdStat',
'2': 'boutiqueStat',
'3': 'carTransformStat'
}
_list = res[attrToNum[sceneType || '']] || []
let arr = []
_list.forEach(val => {
val.list.length && val.list.forEach(subVal => {
arr.push(subVal)
})
})
if (!arr.length || arr[0]?.userName !== '全部') {
arr.unshift({ arr.unshift({
active: true, active: true,
userId: '', uuid: '',
userName: '全部' staffName: '全部'
}) })
} }
this.setData({ this.setData({
...@@ -210,18 +204,19 @@ Component({ ...@@ -210,18 +204,19 @@ Component({
wx.$api.showLoading('加载中') wx.$api.showLoading('加载中')
let { userInfo, formData, staffList, sceneList } = this.data let { userInfo, formData, staffList, sceneList } = this.data
formData.sceneType = sceneList.filter(val => val.active)[0]?.id || '' formData.sceneType = sceneList.filter(val => val.active)[0]?.id || ''
formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {return subVal.userId}) formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid})
formData.shopMerchantIds =
this.triggerEvent('screenFlag')
const thisPage = wx.$router.getPageInstance() const thisPage = wx.$router.getPageInstance()
if (formData?.partnerMerchantIds[0] !== userInfo.subLoginUser.merchantId) { if (formData?.partnerMerchantIds[0] !== userInfo.subLoginUser.merchantId) {
USERAPI.switchSubLoginInfo({ merchantId: formData?.partnerMerchantIds[0] }).then(res => { USERAPI.switchSubLoginInfo({ merchantId: formData?.partnerMerchantIds[0] }).then(res => {
setUserInfo(res) setUserInfo(res)
wx.$api.hideLoading() wx.$api.hideLoading()
this.triggerEvent('reloadMerchantList')
// 切换服务商 清空已选的门店 // 切换服务商 清空已选的门店
formData.shopMerchantIds = [] formData.shopMerchantIds = []
formData.shopMerchantNames = '全部门店' formData.shopMerchantNames = '全部门店'
thisPage.setData({ thisPage.setData({
screenFormData: formData screenFormData: formData,
}) })
thisPage.searchEvent() thisPage.searchEvent()
}) })
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
padding: 0 24rpx; padding: 0 24rpx;
} }
.box { .box {
margin: 0 24rpx; margin: 0 24rpx 16rpx;
} }
.box .title { .box .title {
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<view class="list_box"> <view class="list_box">
<block wx:for="{{staffList}}" wx:key="index"> <block wx:for="{{staffList}}" wx:key="index">
<view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-multiple="true" data-list-name="staffList"> <view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-multiple="true" data-list-name="staffList">
<view>{{item.userName}}</view> <view>{{item.staffName}}</view>
</view> </view>
</block> </block>
</view> </view>
......
...@@ -2,13 +2,19 @@ ...@@ -2,13 +2,19 @@
const IMAGES = Object.freeze({ const IMAGES = Object.freeze({
userAvatarUrl: `/personal/userAvatarUrl.png` userAvatarUrl: `/personal/userAvatarUrl.png`
}) })
import outputValueApi from '~/api/outputValueApi/index'
import { IMG_URL } from '~/utils/constantData' import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
tabBarStyle: {
type: Number,
observer: function(n) {
if (n) this.setData({emptyDataStyle: `height: calc(100vh - ${n}px - 88rpx - 24rpx)`})
}
}
}, },
/** /**
...@@ -17,77 +23,18 @@ Component({ ...@@ -17,77 +23,18 @@ Component({
data: { data: {
IMAGES, IMAGES,
IMG_URL, IMG_URL,
dataList: [{ dataList: [],
staffRoleName: '技师',
staffName: '张三',
staffUUID: 1,
totalOutputValue: 185041,
commissionFlag: false,
outputValueType: 1,
outputValueStats: [
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A明明崇文4s店A明明崇文4s店A明明崇文4s店A',
totalOrderMoney: 15,
customerUnitPrice: 2000.01,
orderCount: 20
},
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
totalOrderMoney: 15,
customerUnitPrice: 2000.01,
orderCount: 20
},
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
totalOrderMoney: 15,
customerUnitPrice: 2000.01,
orderCount: 20
},
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
totalOrderMoney: 10,
customerUnitPrice: 2000.01,
orderCount: 15
}
]
}, {
staffRoleName: '驻店员工',
staffName: '李四',
staffUUID: 1,
totalOutputValue: 185041,
commissionFlag: true,
outputValueType: 2,
constructionStats: [
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
upgradeConstructionCount: 15,
notUpgradeConstructionCount: 20,
upgradeIncentiveFee: 40
},
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
upgradeConstructionCount: 15,
notUpgradeConstructionCount: 20,
upgradeIncentiveFee: 40
},
{
shopMerchantId: 123123,
shopMerchantName: '明明崇文4s店A',
upgradeConstructionCount: 15,
notUpgradeConstructionCount: 20,
upgradeIncentiveFee: 40
}
]
}],
commissionPopup: false, commissionPopup: false,
handleCommissionObj: {}, handleCommissionObj: {},
bgUrl: `${IMG_URL}/personal/empty_tran.png`, bgUrl: `${IMG_URL}/personal/empty_tran.png`,
pageNum: 1,
total: 0,
pageSize: 4,
merchantOutputValuesPageSize: 9999, // 员工卡片服务门店数据分页
nothing: false,
scrollTop: 0,
isAsk: false,
emptyDataStyle: ''
}, },
/** /**
...@@ -107,6 +54,82 @@ Component({ ...@@ -107,6 +54,82 @@ Component({
this.setData({ this.setData({
[params]: true [params]: true
}) })
},
onBottomRefresh() {
this.getListData()
},
refreshList() {
this.setData({
pageNum: 1,
nothing: false,
total: 0
})
this.getListData(true)
},
actionOperationResult(val1, val2, rate = false){
const p = this.actionOperation(val1, val2)
return rate ? ((val1 * p) / (val2 * p)) * 100 : ((val1 * p) / (val2 * p)).toFixed(2)
},
actionOperation(val1, val2){
const len1 = val1.toString().length - val1.toString().indexOf(".") - 1
const len2 = val2.toString().length - val2.toString().indexOf(".") - 1
const p = Math.max(len1, len2)
return Math.pow(10, p)
},
getListData(isReset = false) {
let _this = this
if (isReset) {
_this.setData({
pageNum: 1,
nothing: false,
total: 0
})
}
let { pageNum, pageSize, merchantOutputValuesPageSize, nothing, isAsk, dataList } = _this.data
const thisPage = wx.$router.getPageInstance()
let params = {
pageNum,
pageSize,
merchantOutputValuesPageSize,
...thisPage.data.screenFormData
}
delete params.shopMerchantNames
if (nothing || isAsk) {
return
}
_this.setData({
isAsk: true
})
outputValueApi.GETSTAFFLISTAPI(params).then(res => {
let { list, total } = res
list?.forEach(val => {
val?.outputValueStats?.forEach(subVal => {
subVal.customerUnitPrice = this.actionOperationResult(subVal.totalOrderMoney, subVal.upgradeOrderCount) // 客单价计算
subVal.conversionRate = this.actionOperationResult(subVal.upgradeOrderCount, subVal.orderCount, true) // 转化率
})
val.commissionFlag = val?.performance?.staffType == 0 ? (val?.performance?.performanceFlag == 1) : (val?.performance?.constructionBonusFlag == 1) // 是否设置提成 0关闭 1开启
})
let tempList = isReset ? list || [] : dataList.concat(list || [])
_this.setData({
dataList: tempList,
pageNum: pageNum + 1,
total: total,
nothing: total == tempList.length,
triggered: false
})
if (isReset) {
_this.setData({
scrollTop: 0
})
}
}).finally(function () {
_this.setData({
isAsk: false,
triggered: false
})
})
} }
} }
}) })
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
.list{ .list{
padding: 0 16rpx; padding: 0 16rpx;
width: 100%; width: 100%;
height: 100%;
box-sizing: border-box; box-sizing: border-box;
.empty_box{ .empty_box{
width: 100%; width: 100%;
...@@ -34,6 +35,10 @@ ...@@ -34,6 +35,10 @@
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
max-width: 200rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.role_name{ .role_name{
margin: 6rpx 0 0 8rpx; margin: 6rpx 0 0 8rpx;
...@@ -145,4 +150,7 @@ ...@@ -145,4 +150,7 @@
text-align: center; text-align: center;
color: #CCCED1; color: #CCCED1;
padding-bottom: 60rpx; padding-bottom: 60rpx;
}
.empty_data_box{
padding: 0;
} }
\ No newline at end of file \ No newline at end of file
<!--pages/tab/outputValue/components/employees/employess.wxml--> <!--pages/tab/outputValue/components/employees/employess.wxml-->
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<scroll-view scroll-y <scroll-view
scroll-y
enable-back-to-top enable-back-to-top
refresher-enabled="{{true}}" refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList" bindrefresherrefresh="refreshList"
bindscrolltolower="onBottomRefresh"
refresher-threshold="104" refresher-threshold="104"
scroll-top="{{scrollTop}}" scroll-top="{{scrollTop}}"
class="list" class="list"
data-type="message"
refresher-triggered="{{triggered}}"> refresher-triggered="{{triggered}}">
<view class="empty_box"></view> <view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index"> <block wx:for="{{dataList}}" wx:key="index">
...@@ -24,8 +25,8 @@ ...@@ -24,8 +25,8 @@
<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>
<view class="commission"> <view class="commission">
<view class="flex" wx:if="{{item.commissionFlag}}" data-target="{{item}}" bindtap="handleCommissionPopup"><text>提成</text><text class="arrow"></text></view> <view class="flex" data-target="{{item}}" bindtap="handleCommissionPopup"><text>提成</text><text class="arrow"></text></view>
<view class="disabled" wx:else="">提成未设置</view> <!-- <view class="disabled" wx:else="">提成未设置</view> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
</view> </view>
<view class="flex_1 padd_r16"> <view class="flex_1 padd_r16">
<view class="font_wei">{{subItem.orderCount}}单</view> <view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.orderCount}}%</view> <view>{{subItem.conversionRate}}%</view>
</view> </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}}">
...@@ -84,11 +85,11 @@ ...@@ -84,11 +85,11 @@
</view> </view>
</view> </view>
</block> </block>
<view wx:if="{{!dataList.length}}" class="end-txt"> <view wx:if="{{!dataList.length}}" class="end-txt empty_data_box">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" /> <nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}"/>
</view>
<view wx:else class="end-txt">
<view>到底啦~</view>
</view> </view>
<block wx:elif="{{nothing}}">
<view class="end-txt">到底了~</view>
</block>
</scroll-view> </scroll-view>
<commissionPopup wx:if="commissionPopup" popShow="{{commissionPopup}}" bind:hidePopup="handleCommissionPopup" handleCommissionObj="{{handleCommissionObj}}"/> <commissionPopup wx:if="commissionPopup" popShow="{{commissionPopup}}" bind:hidePopup="handleCommissionPopup" handleCommissionObj="{{handleCommissionObj}}"/>
...@@ -76,7 +76,9 @@ Component({ ...@@ -76,7 +76,9 @@ Component({
icon: 'error' icon: 'error'
}) })
} else { } else {
if (actObj.merchantId == '' && actObj.merchantName == '全部') actObj.merchantName = '所有门店' if (actObj.merchantId == '' && actObj.merchantName == '全部') {
actObj.merchantName = '所有门店'
}
this.changePicker(actObj) this.changePicker(actObj)
} }
}, },
......
...@@ -62,11 +62,15 @@ Page({ ...@@ -62,11 +62,15 @@ Page({
}, },
init() { init() {
this.setUserInfo() this.setUserInfo()
this.searchEvent(true)
}, },
// 筛选回调 // 筛选回调
searchEvent(isNoBack = false) { searchEvent(isNoBack = false) {
console.log(this.data.screenFormData, 'screenFormData') console.log(this.data.screenFormData, 'screenFormData')
if (!isNoBack) this.back() if (!isNoBack) this.back()
let merchantModule = this.selectComponent('#merchant')
let employessModule = this.selectComponent('#employess')
employessModule.getListData && employessModule.getListData(true)
}, },
setUserInfo() { setUserInfo() {
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<block> <block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" index="{{tabIndx}}" tabHeight unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" /> <tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" index="{{tabIndx}}" tabHeight 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" merchantRange="{{merchantRange}}"></screen-box> <screen-box id="screenBox" formData="{{screenFormData}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
</view> </view>
</block> </block>
<block wx:if="{{isShowFilterScreen}}"> <block wx:if="{{isShowFilterScreen}}">
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
</view> </view>
<!-- 我的员工 --> <!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}"> <view class="comCom" hidden="{{tabIndx != 1}}">
<employess id="employess"/> <employess id="employess" tabBarStyle="{{tabBarStyle}}"/>
</view> </view>
</view> </view>
\ 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!