添加页面
This commit is contained in:
@@ -7,6 +7,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
process: [] as any[],
|
||||
isFirstEnter: true,
|
||||
},
|
||||
navDetail(e: any) {
|
||||
const index = getDataSet(e).index.split(',');
|
||||
@@ -14,7 +15,7 @@ Page({
|
||||
const cProcess = pProcess.child[index[1]];
|
||||
const { p_process_name, process_name, process_id } = cProcess;
|
||||
const title = encodeURIComponent(`${p_process_name} - ${process_name}`);
|
||||
|
||||
this.data.isFirstEnter = false;
|
||||
wx.navigateTo({
|
||||
url: `/pages/produce/processManageDetail/processManageDetail?process_id=${process_id}&title=${title}`,
|
||||
});
|
||||
@@ -58,7 +59,11 @@ Page({
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
onShow() {
|
||||
if (!this.data.isFirstEnter) {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
|
||||
@@ -1,25 +1,35 @@
|
||||
.process-box {
|
||||
border: 1rpx solid #ddd;
|
||||
margin-bottom: 24rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.process-child-box {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
column-gap: 32rpx;
|
||||
row-gap: 32rpx;
|
||||
margin-bottom: 32rpx;
|
||||
padding: 32rpx 16rpx 24rpx;
|
||||
}
|
||||
|
||||
.p_process_name {
|
||||
font-size: 1.125em;
|
||||
font-weight: bold;
|
||||
margin-bottom: 24rpx;
|
||||
padding: 16rpx;
|
||||
border-bottom: 1rpx solid #ddd;
|
||||
}
|
||||
|
||||
.process-child-item-box {
|
||||
position: relative;
|
||||
border: 1rpx solid #ddd;
|
||||
padding: 16rpx;
|
||||
padding: 12rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.process-child-item-box:active {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.process-child-item-num {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user