Commit ef23f99f by 张立顺

fix bug修复

1 parent d8eb7873
......@@ -84,12 +84,12 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) { },
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
onReady() {},
/**
* 生命周期函数--监听页面显示
......@@ -114,13 +114,18 @@ Page({
this.getStaffAuditPage(true);
});
},
// 切换tab 重新请求
changeTabIndx(e) {
// console.log(e);
let { detail } = e;
this.setData({
tabIndx: detail,
});
detail == 0 ? this.getList(true) : this.getStaffAuditPage(true)
this.setData({
currentPageApplication: 1,
currentPage: 1,
});
detail == 0 ? this.getList(true) : this.getStaffAuditPage(true);
},
getStaffAuditPage(isReset = false) {
let {
......@@ -145,6 +150,7 @@ Page({
}
this.setData({
isAskApplication: true,
triggeredApplication: true,
});
mineApi
.staffAuditPage(params)
......@@ -229,11 +235,11 @@ Page({
search() {
this.setData({
nothingApplication: false,
totalApplication: 0,
currentPageApplication: 1,
currentPage: 1,
nothing: false,
total: 0,
});
this.getStaffAuditPage(true);
this.getList(true);
},
onBottomRefreshApplication() {
console.log("onBottomRefreshApplication");
......@@ -242,11 +248,11 @@ Page({
searchApplication() {
this.setData({
currentPage: 1,
nothing: false,
total: 0,
nothingApplication: false,
totalApplication: 0,
currentPageApplication: 1,
});
this.getList(true);
this.getStaffAuditPage(true);
},
// 筛选员工类型
......@@ -285,13 +291,13 @@ Page({
// 创建/编辑员工
jump(e) {
console.log(e, 'e');
let info = e.currentTarget.dataset.info
if (info.auditStatus == 0) {
console.log(e, "e");
let info = e.currentTarget.dataset.info;
if (info?.auditStatus == 0) {
return wx.$api.showToast({
title: '审核中不可操作',
icon: 'error'
})
title: "审核中不可操作",
icon: "error",
});
}
// 校验是否有配置服务中心
if (!this.data.serviceList.length) {
......@@ -315,25 +321,25 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() { },
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() { },
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() { },
onShareAppMessage() {},
});
......@@ -105,7 +105,7 @@
border-radius: 50%;
}
.message-text {
display: flex;
......@@ -138,10 +138,11 @@
width: 36rpx;
height: 36rpx;
}
.auditstatus {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 24rpx;
font-weight: 500;
font-size: 24rpx;
color: #3666FE;
}
}
......@@ -356,7 +357,7 @@ font-size: 24rpx;
margin: 0 6rpx;
}
.order-value.auditType {
.list .item .order .order-value.auditType {
color: #EF971E;
}
......
......@@ -77,7 +77,7 @@
<view wx:else class="order-value">{{li[i.key] || ''}}</view>
</view>
</block>
<view class="order" wx:if="{{ li.auditStatus == 3 }}">
<view class="order" wx:if="{{ li.auditStatus == 2 }}">
<view class="order-label">驳回原因:</view>
<view class="order-value">{{li.auditRemark || ''}}</view>
</view>
......
......@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 1
let index = 2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!