【修改】 页面标题
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!-- 自定义头部start -->
|
||||
<view class="custom flex_center" style="padding-top:{{statusBarHeight}}px">
|
||||
<image src="../../assets/images/back.png" bindtap="goBack"></image>
|
||||
<text>项目</text>
|
||||
<text>分标委</text>
|
||||
</view>
|
||||
<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view><!-- 空view用来填充自定义头部的padding-top -->
|
||||
<!-- 自定义头部end -->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "项目详情",
|
||||
"navigationBarTitleText": "分标委详情",
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,8 @@ Page({
|
||||
particularYear:'',// 资料网元的运行年份,
|
||||
// 创建时间倒叙排序
|
||||
column:'createTime',
|
||||
order:'desc'
|
||||
order:'desc',
|
||||
pageTitle:'项目'
|
||||
}
|
||||
},
|
||||
goBack(){
|
||||
@@ -179,6 +180,20 @@ Page({
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.data.type = options.type
|
||||
switch(options.type){
|
||||
case 'ziliao': this.setData({
|
||||
pageTitle:'资料网员'
|
||||
})
|
||||
break
|
||||
case 'work': this.setData({
|
||||
pageTitle:'工作组'
|
||||
})
|
||||
break
|
||||
default : this.setData({
|
||||
pageTitle:'项目'
|
||||
})
|
||||
break
|
||||
}
|
||||
this.loadData()
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- 自定义头部start -->
|
||||
<view class="custom flex_center" style="padding-top:{{statusBarHeight}}px">
|
||||
<image src="../../assets/images/back.png" bindtap="goBack"></image>
|
||||
<text>项目</text>
|
||||
<text>{{pageTitle}}</text>
|
||||
</view>
|
||||
<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view><!-- 空view用来填充自定义头部的padding-top -->
|
||||
<!-- 自定义头部end -->
|
||||
|
||||
@@ -21,7 +21,8 @@ Page({
|
||||
// 合同签订联系人的id
|
||||
signedContactsId:{},
|
||||
// 当前登录人的id
|
||||
currentId:''
|
||||
currentId:'',
|
||||
pageTitle:'项目',// 页面标题 默认是 项目
|
||||
},
|
||||
goBack(){
|
||||
wx.navigateBack()
|
||||
@@ -113,14 +114,16 @@ Page({
|
||||
}
|
||||
if(options.type === 'ziliao'){
|
||||
this.setData({
|
||||
showProjectData:false
|
||||
showProjectData:false,
|
||||
pageTitle:'资料网员详情'
|
||||
})
|
||||
}
|
||||
this.data.id = options.id
|
||||
this.data.workingGroupId = options.workingGroupId
|
||||
if (options.type == 'work') { // 工作组项目有会议详情
|
||||
this.setData({
|
||||
showMeeting: true
|
||||
showMeeting: true,
|
||||
pageTitle:'工作组详情'
|
||||
})
|
||||
MeetingApi.meetingList({
|
||||
workingGroupProjectId: this.data.id,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- 自定义头部start -->
|
||||
<view class="custom flex_center" style="padding-top:{{statusBarHeight}}px">
|
||||
<image src="../../assets/images/back.png" bindtap="goBack"></image>
|
||||
<text>项目详情</text>
|
||||
<text>{{pageTitle}}</text>
|
||||
</view>
|
||||
<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view><!-- 空view用来填充自定义头部的padding-top -->
|
||||
<!-- 自定义头部end -->
|
||||
|
||||
Reference in New Issue
Block a user