Commit d79c5a58 by zhangxw

修改

1 parent 8311ec21
......@@ -31,8 +31,7 @@ Component({
}
},
serviceList: Array,
selectInfo: Object,
tabBarStyle: String
selectInfo: Object
},
/**
......
<!--packagesList/mineDetail/pages/staffManage/selectServicePage.wxml-->
<view class="select-service-page" hidden="{{!show}}" style="margin-top:{{tabBarStyle}}px;">
<view class="select-service-page" hidden="{{!show}}">
<view class="search-content">
<view class="search-box">
<view class="search-input">
......@@ -23,13 +23,10 @@
</view>
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
class="list"
style="height:calc(100vh - 108rpx - {{tabBarStyle}}px)"
class="isFullSucreen"
style="height:calc(100% - 108rpx)"
data-type="message"
refresher-triggered="{{triggered}}">
<block wx:for="{{serviceList}}" wx:key="index">
......
......@@ -66,6 +66,7 @@ Page({
staffBusinessTypeStr: optionsInfo.staffBusinessType == 0 ? '驻店' : optionsInfo.staffBusinessType == 1 ? '技师' : '',
staffTypeSelectInfo: optionsInfo?.staffBusinessType ? {staffBusinessType: optionsInfo?.staffBusinessType} : undefined
} : {}
if (options?.info) wx.setNavigationBarTitle({ title: '编辑员工' })
this.setData({
addOrEdit: options?.info ? 'edit' : 'add',
'formItems[0].disabled': options?.info ? true : false,
......@@ -88,13 +89,6 @@ Page({
},
navbarReady(e) {
let { height, statusBarHeight } = e.detail
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
},
// 获取服务中心下的客户列表
getConnectionList(e) {
mineApi.getConnectionListByServiceAPI({
......
......@@ -3,5 +3,5 @@
"select-service-confirm": "../../../components/selectServiceConfirm/selectServiceConfirm",
"staff-type-popup": "../../../components/staffTypePopup/staffTypePopup"
},
"navigationStyle": "custom"
"navigationBarTitleText": "创建员工"
}
\ No newline at end of file
<!--packagesList/mineDetail/pages/staffManage/createStaff/createStaff.wxml-->
<navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back" customBack="{{true}}">
<!-- <navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back" customBack="{{true}}">
{{!showServiceConfirm ? (addOrEdit == 'add' ? '创建员工' : '编辑员工') : '选择服务中心'}}
</navigation-bar>
</navigation-bar> -->
<view class="create-staff-page" style="padding-top:{{tabBarStyle}}px;">
<view class="tips" wx:if="{{addOrEdit == 'add'}}">请完善员工资料完成创建:</view>
<view class="form-content">
......@@ -29,5 +29,5 @@
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
</view>
</view>
<select-service-confirm show="{{showServiceConfirm}}" tabBarStyle="{{tabBarStyle}}" serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<select-service-confirm show="{{showServiceConfirm}}" serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{formData.selectInfo}}" staffTypeSelectInfo="{{formData.staffTypeSelectInfo}}" bindconfirm="staffTypeConfiem" popShow="{{staffPopupShow}}" notAll="{{true}}"/>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!