bug修改
This commit is contained in:
@@ -8,6 +8,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
form: {},
|
||||
name: '',
|
||||
id: '', // 在工作组id,项目id
|
||||
projectFileList: [], // 项目资料文件
|
||||
meetingList: [] // 会议文件
|
||||
@@ -35,12 +36,15 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
name: options.name
|
||||
})
|
||||
wx.showToast({
|
||||
title: '加载中...',
|
||||
icon: 'loading'
|
||||
})
|
||||
this.data.id = options.id
|
||||
MeetingApi.meetingList({caseCommitteeId: this.data.id}).then(res=>{
|
||||
MeetingApi.meetingList({caseCommitteeId: this.data.id, meetingSignUpType: 2, column: 'pm.createTime', order: 'desc'}).then(res=>{
|
||||
if(res.success){
|
||||
if(res.result.records && res.result.records.length <= 2){
|
||||
this.setData({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "详情",
|
||||
"navigationBarTitleText": "项目详情",
|
||||
"usingComponents": {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="basic-info">
|
||||
<view class="meeting-name">
|
||||
<text>项目名称</text>
|
||||
<text>{{form.name}}</text>
|
||||
<text>{{name}}</text>
|
||||
</view>
|
||||
<view style="height: auto !important;">
|
||||
<text>项目资料</text>
|
||||
@@ -26,4 +26,4 @@
|
||||
</view>
|
||||
<text wx:if="{{meetingList.length == 0}}" class="no-data" style="height: 40px;">暂无会议记录!</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -41,6 +41,11 @@ page{
|
||||
.meeting-name{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.meeting-name text:nth-child(2){
|
||||
text-overflow:ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.meeting-files{
|
||||
margin-top: 10px;
|
||||
flex-direction: column;
|
||||
@@ -145,6 +150,7 @@ page{
|
||||
.info-file text{
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
overflow:hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -267,4 +273,4 @@ page{
|
||||
display: block;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user