Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
U
UbainsMeeting
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑礼德
UbainsMeeting
Commits
ae9155bf
提交
ae9155bf
authored
6 年前
作者:
曾美红
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
e8d36ccd
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
533 行增加
和
452 行删除
+533
-452
app.js
app.js
+1
-1
addmeeting.axml
pages/conference/addmeeting/addmeeting.axml
+6
-2
addmeeting.js
pages/conference/addmeeting/addmeeting.js
+298
-282
details.axml
pages/conference/details/details.axml
+2
-2
details.js
pages/conference/details/details.js
+13
-5
ex_visitor.axml
pages/conference/ex_visitor/ex_visitor.axml
+2
-2
ex_visitor.js
pages/conference/ex_visitor/ex_visitor.js
+65
-24
index.acss
pages/conference/index/index.acss
+1
-1
index.js
pages/conference/index/index.js
+1
-1
modifymeeting.axml
pages/conference/modifymeeting/modifymeeting.axml
+10
-10
modifymeeting.js
pages/conference/modifymeeting/modifymeeting.js
+37
-2
visitor.js
pages/conference/visitor/visitor.js
+4
-88
details.js
pages/meeting/details/details.js
+5
-3
record.axml
pages/meeting/record/record.axml
+4
-4
record.js
pages/meeting/record/record.js
+55
-12
recording.axml
pages/meeting/recording/recording.axml
+2
-2
recording.js
pages/meeting/recording/recording.js
+16
-6
opinion.axml
pages/mine/opinion/opinion.axml
+1
-1
opinion.js
pages/mine/opinion/opinion.js
+10
-4
没有找到文件。
app.js
浏览文件 @
ae9155bf
...
...
@@ -15,7 +15,7 @@ App({
globalData
:
{
//domain:'http://id24iu.natappfree.cc',
//domain:"http://dd2.ubainsyun.com",
domain
:
"http://zhenglide.natapp1.cc"
,
domain
:
"http://zhenglide.natapp1.cc"
,
corpId
:
''
,
userId
:
''
,
person
:
''
,
...
...
This diff is collapsed.
Click to expand it.
pages/conference/addmeeting/addmeeting.axml
浏览文件 @
ae9155bf
...
...
@@ -27,6 +27,10 @@
<image src='../../../resource/images/off.png' onTap='delTopic'></image>
</view>
</view>
<!-- <view class='item-avatar-xs'>
<text>会议密码:</text>
<input type='password' value="{{message.messagePassword}}" placeholder='请输入会议密码' name="messagePassword" />
</view> -->
<view class='item-avatar-xs'>
<text>会议信息:</text>
<textarea placeholder='输入内容' value="{{message.messageContent}}" name="messageContent"></textarea>
...
...
@@ -58,7 +62,7 @@
<text class="hour">{{hindex}}:00</text>
<view class="scroll-view-item_H" a:for="{{time}}" a:for-item="t" a:for-index="mindex">
<view data-hour="{{t.hour}}" data-unclick="{{t.unclick}}" data-minute="{{t.minute}}" data-hour-index="{{hindex}}" data-min-index="{{mindex}}" style="background-color:{{t.color}}" class="time-block" onTap="selTime"></view>
<view data-hour="{{t.hour}}" data-
max-book-time="{{maxBookTime}}" data-
unclick="{{t.unclick}}" data-minute="{{t.minute}}" data-hour-index="{{hindex}}" data-min-index="{{mindex}}" style="background-color:{{t.color}}" class="time-block" onTap="selTime"></view>
</view>
</view>
</scroll-view >
...
...
@@ -67,7 +71,7 @@
<text>公司参与人员</text>
<text class='left'>〉</text>
</navigator>
<navigator url="../ex_visitor/ex_visitor?mid={{mid}}" open-type="navigate" class='item-avatar-xs'>
<navigator url="../ex_visitor/ex_visitor?mid={{mid}}
&truntype={{truntype}}
" open-type="navigate" class='item-avatar-xs'>
<text>邀请外部人员</text>
<text class='left'>〉</text>
</navigator>
...
...
This diff is collapsed.
Click to expand it.
pages/conference/addmeeting/addmeeting.js
浏览文件 @
ae9155bf
...
...
@@ -29,7 +29,6 @@ Page({
timeList
:[],
msgTime
:[],
time
:{
startIndex
:
null
,
endIndex
:
null
,
startTime
:
null
,
...
...
@@ -38,7 +37,9 @@ Page({
},
username
:
""
,
message
:{}
message
:{},
maxBookDay
:
''
,
maxBookTime
:
''
},
//方式选项点击
clicks
:
function
(
e
)
{
...
...
@@ -61,7 +62,7 @@ Page({
var
mid
=
this
.
data
.
mid
;
console
.
log
(
"会议室"
,
this
.
data
.
cnum
)
var
_this
=
this
;
var
_this
=
this
;
dd
.
httpRequest
({
url
:
conferenceUrl
,
method
:
'POST'
,
...
...
@@ -142,7 +143,7 @@ var _this=this;
})
return
false
;
}
console
.
log
(
this
.
data
.
time
.
startTime
);
//
console.log(this.data.time.startTime);
if
((
this
.
data
.
time
.
startTime
==
""
||
this
.
data
.
time
.
startTime
==
null
)
&&
(
this
.
data
.
time
.
endTime
==
""
||
this
.
data
.
time
.
endTime
==
null
))
{
dd
.
alert
({
title
:
"参数错误"
,
...
...
@@ -161,7 +162,7 @@ var _this=this;
cnum
:
_this
.
data
.
cnum
,
startTime
:
startTime
,
endTime
:
endTime
,
departments
:
_this
.
data
.
departments
,
departments
:
_this
.
data
.
departments
,
userId
:
app
.
globalData
.
userId
,
messageName
:
e
.
detail
.
value
.
messageName
,
messageCompere
:
e
.
detail
.
value
.
messageCompere
,
...
...
@@ -170,18 +171,19 @@ var _this=this;
remindMethod
:
e
.
detail
.
value
.
remindMethod
,
remindTime
:
e
.
detail
.
value
.
remindTime
,
conferenceName
:
_this
.
data
.
conferenceName
,
messagePassword
:
e
.
detail
.
value
.
messagePassword
,
},
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----'
,
res
)
if
(
res
.
data
.
success
){
//console.log("预定成功");
dd
.
vibrate
({
success
:
()
=>
{
dd
.
alert
({
title
:
'预定成功'
,
//
title: '预定成功',
content
:
'预定成功'
,
buttonText
:
'确定'
,
success
:
()
=>
{
...
...
@@ -207,8 +209,8 @@ var _this=this;
}
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
dd
.
alert
({
content
:
JSON
.
stringify
(
res
)
});
//
console.log("httpRequestFail---", res)
//
dd.alert({ content: JSON.stringify(res) });
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
...
...
@@ -220,142 +222,214 @@ var _this=this;
},
datePicker
()
{
var
timeList
=
this
.
data
.
timeList
;
var
hours
=
this
.
data
.
allTime
.
hours
;
var
minutes
=
this
.
data
.
allTime
.
minutes
;
var
_this
=
this
;
dd
.
datePicker
({
success
:
(
res
)
=>
{
_this
.
setData
({
dates
:
res
.
date
});
//查询当天会议时间段
var
dates
=
res
.
date
;
//清空原來的
timeList
=
[];
_this
.
setData
({
timeList
});
var
msgTime
=
this
.
data
.
msgTime
;
var
nowHour
=
new
Date
().
getHours
();
var
nowMinute
=
new
Date
().
getMinutes
();
msgTime
=
[];
/**
*
* 显示时间轴
*/
showTimeList
:(
_this
,
cnum
)
=>
{
//查询当天会议时间段
var
timeList
=
_this
.
data
.
timeList
;
var
hours
=
_this
.
data
.
allTime
.
hours
;
var
minutes
=
_this
.
data
.
allTime
.
minutes
;
//清空原來的
timeList
=
[];
_this
.
setData
({
timeList
});
var
msgTime
=
_this
.
data
.
msgTime
;
var
nowHour
=
new
Date
().
getHours
();
var
nowMinute
=
new
Date
().
getMinutes
();
msgTime
=
[];
_this
.
setData
({
msgTime
});
dd
.
httpRequest
({
url
:
messageListUrl
,
method
:
'POST'
,
data
:
{
date
:
_this
.
data
.
dates
,
cnum
:
cnum
},
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----message'
,
res
);
// this.clearTime(timeList,hours,minutes,this);
var
msg
=
res
.
data
.
result
;
for
(
var
i
=
0
;
i
<
msg
.
length
;
i
++
)
{
var
json
=
{};
json
[
"startTime"
]
=
msg
[
i
].
startTimeFormat
;
json
[
"endTime"
]
=
msg
[
i
].
endTimeFormat
;
msgTime
.
push
(
json
);
}
_this
.
setData
({
msgTime
});
dd
.
httpRequest
({
url
:
messageListUrl
,
method
:
'POST'
,
data
:
{
date
:
_this
.
data
.
dates
,
cnum
:
_this
.
data
.
cnum
},
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----message'
,
res
)
var
msg
=
res
.
data
.
result
;
for
(
var
i
=
0
;
i
<
msg
.
length
;
i
++
)
{
if
(
timeList
.
length
==
0
)
{
for
(
var
i
=
0
;
i
<
hours
.
length
;
i
++
)
{
var
arr
=
new
Array
;
for
(
var
j
=
0
;
j
<
minutes
.
length
;
j
++
)
{
var
json
=
{};
json
[
"startTime"
]
=
msg
[
i
].
startTimeFormat
;
json
[
"endTime"
]
=
msg
[
i
].
endTimeFormat
;
msgTime
.
push
(
json
);
}
_this
.
setData
({
msgTime
});
console
.
log
(
msgTime
)
if
(
timeList
.
length
==
0
)
{
for
(
var
i
=
0
;
i
<
hours
.
length
;
i
++
)
{
var
arr
=
new
Array
;
for
(
var
j
=
0
;
j
<
minutes
.
length
;
j
++
)
{
//console.log(hours[i]);
// console.log(minutes[j]);
//dateCompare(startDate, endDate)
//Date.parse(new Date(e.detail.value)) < Date.parse(new Date())
var
json
=
{};
json
[
"hour"
]
=
hours
[
i
];
json
[
"minute"
]
=
minutes
[
j
];
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
dates
)
==
0
)
{
json
[
"hour"
]
=
hours
[
i
];
json
[
"minute"
]
=
minutes
[
j
];
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
_this
.
data
.
dates
)
==
0
)
{
json
[
"color"
]
=
"#ABABAB"
;
json
[
"unclick"
]
=
true
;
}
else
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
dates
)
==
1
)
{
}
else
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
_this
.
data
.
dates
)
==
1
)
{
if
(
nowHour
>
hours
[
i
])
{
json
[
"color"
]
=
"#ABABAB"
;
json
[
"unclick"
]
=
true
;
}
else
{
json
[
"color"
]
=
""
;
json
[
"unclick"
]
=
false
;
}
if
(
nowHour
==
hours
[
i
])
{
if
(
nowMinute
>
minutes
[
j
])
{
json
[
"color"
]
=
"#ABABAB"
;
json
[
"unclick"
]
=
true
;
}
else
{
json
[
"color"
]
=
""
;
json
[
"unclick"
]
=
false
;
}
}
}
else
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
dates
)
==
2
)
{
else
if
(
dateCompare
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
_this
.
data
.
dates
)
==
2
)
{
json
[
"color"
]
=
""
;
json
[
"unclick"
]
=
false
;
}
// console.log(msgTime);
if
(
msgTime
.
length
>
0
)
{
for
(
var
k
=
0
;
k
<
msgTime
.
length
;
k
++
)
{
var
msgstart
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
0
]);
var
msgend
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
0
]);
var
msgstartmin
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
1
])
-
15
;
var
msgendmin
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
1
]);
console
.
log
(
"会议开始时间"
,
msgstart
+
":"
+
msgstartmin
);
// console.log(msgTime[k].startTime.split(":")[0]);
if
(
time_range
(
msgstart
+
":"
+
msgstartmin
,
msgTime
[
k
].
endTime
,
hours
[
i
]
+
":"
+
minutes
[
j
]))
{
json
[
"color"
]
=
"#EEAD0E"
;
json
[
"unclick"
]
=
true
;
}
else
{
json
[
"unclick"
]
=
false
;
}
// console.log(msgTime);
if
(
msgTime
.
length
>
0
)
{
for
(
var
k
=
0
;
k
<
msgTime
.
length
;
k
++
)
{
var
msgstart
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
0
]);
var
msgend
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
0
]);
var
msgstartmin
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
1
])
-
15
;
var
msgendmin
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
1
]);
console
.
log
(
"会议开始时间"
,
msgstart
+
":"
+
msgstartmin
);
// console.log(msgTime[k].startTime.split(":")[0]);
}
if
(
time_range
(
msgstart
+
":"
+
msgstartmin
,
msgTime
[
k
].
endTime
,
hours
[
i
]
+
":"
+
minutes
[
j
]))
{
json
[
"color"
]
=
"#EEAD0E"
;
json
[
"unclick"
]
=
true
;
}
}
}
// console.log("json",json);
//console.log(this.data.time.allTime.hours[i] + this.data.time.allTime.minutes[j])
arr
.
push
(
json
);
}
// console.log("json",json);
//console.log(this.data.time.allTime.hours[i] + this.data.time.allTime.minutes[j])
arr
.
push
(
json
);
}
timeList
.
push
(
arr
);
}
}
//console.log(status);
_this
.
setData
({
timeList
})
dd
.
hideLoading
();
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
dd
.
alert
({
content
:
JSON
.
stringify
(
res
)
});
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
timeList
.
push
(
arr
);
}
}
//console.log(status);
_this
.
setData
({
timeList
})
console
.
log
(
"timeList"
,
timeList
)
dd
.
hideLoading
();
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
// dd.alert({ content: JSON.stringify(res) });
},
complete
:
function
(
res
)
{
//dd.hideLoading();
}
});
});
},
//点击时间格
datePicker
()
{
var
timeList
=
this
.
data
.
timeList
;
var
hours
=
this
.
data
.
allTime
.
hours
;
var
minutes
=
this
.
data
.
allTime
.
minutes
;
var
_this
=
this
;
dd
.
datePicker
({
success
:
(
res
)
=>
{
if
(
datedifference
(
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
res
.
date
)
>
Number
(
_this
.
data
.
maxBookDay
)){
dd
.
alert
({
content
:
'该时间段不可选择'
,
buttonText
:
'我知道了'
,
success
:()
=>
{
_this
.
setData
({
dates
:
dateFtt
(
"yyyy-MM-dd"
,
new
Date
())
});
this
.
showTimeList
(
_this
,
_this
.
data
.
cnum
)
}
})
}
else
{
_this
.
setData
({
dates
:
res
.
date
});
this
.
showTimeList
(
_this
,
_this
.
data
.
cnum
)
}
//查询当天会议时间段
//清空原來的
}
})
},
/***
* 清空预定时间
* ***/
clearBox
:(
startTime
,
endTime
,
startIndex
,
endIndex
,
timeList
,
_this
)
=>
{
if
(
startIndex
[
0
]
==
endIndex
[
0
])
{
for
(
var
j
=
startIndex
[
1
];
j
<=
endIndex
[
1
];
j
++
)
{
timeList
[
startIndex
[
0
]][
j
].
color
=
""
;
}
}
if
(
startIndex
[
0
]
<
endIndex
[
0
])
{
for
(
var
i
=
startIndex
[
0
];
i
<=
endIndex
[
0
];
i
++
)
{
if
(
i
==
startIndex
[
0
])
{
for
(
var
j
=
startIndex
[
1
];
j
<=
3
;
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
if
(
i
>
startIndex
[
0
]
&&
i
<
endIndex
[
0
])
{
for
(
var
j
=
0
;
j
<=
3
;
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
if
(
i
==
endIndex
[
0
])
{
for
(
var
j
=
0
;
j
<=
endIndex
[
1
];
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
}
}
endTime
=
null
;
startTime
=
null
;
startIndex
=
null
;
endIndex
=
null
;
_this
.
setData
({
"time.endTime"
:
endTime
,
"time.startTime"
:
startTime
,
"time.startIndex"
:
startIndex
,
"time.endIndex"
:
endIndex
,
"time.min"
:
0
,
timeList
});
},
//点击小方块
selTime
:
function
(
e
){
...
...
@@ -366,7 +440,15 @@ var _this=this;
var
endIndex
=
this
.
data
.
time
.
endIndex
;
var
timeList
=
this
.
data
.
timeList
;
var
unclick
=
e
.
currentTarget
.
dataset
.
unclick
;
// console.log(startIndex);
// console.log('startIndex----', startIndex);
console
.
log
(
e
);
if
(
unclick
){
dd
.
alert
({
content
:
'该时间段不可选择'
,
buttonText
:
'我知道了'
,
})
}
if
(
!
unclick
){
if
(
startTime
==
null
){
if
(
e
.
currentTarget
.
dataset
.
hour
<
10
){
...
...
@@ -390,6 +472,7 @@ var _this=this;
"time.startTime"
:
startTime
,
"time.startIndex"
:
[
e
.
currentTarget
.
dataset
.
hourIndex
,
e
.
currentTarget
.
dataset
.
minIndex
]
,
timeList
});
}
if
(
startTime
!=
null
&&
endTime
==
null
&&
startIndex
!=
null
){
...
...
@@ -418,6 +501,7 @@ var _this=this;
}
}
}
if
(
e
.
currentTarget
.
dataset
.
hour
<
10
)
{
var
hour
=
"0"
+
e
.
currentTarget
.
dataset
.
hour
endTime
=
hour
+
":"
+
(
e
.
currentTarget
.
dataset
.
minute
+
15
);
...
...
@@ -435,56 +519,50 @@ var _this=this;
var
minutes
=
(
eh
*
60
+
em
)
-
(
sh
*
60
+
sm
);
var
hours
=
minutes
/
60
;
var
maxBookTime
=
e
.
currentTarget
.
dataset
.
maxBookTime
;
this
.
setData
({
"time.endTime"
:
endTime
,
"time.endIndex"
:
[
e
.
currentTarget
.
dataset
.
hourIndex
,
e
.
currentTarget
.
dataset
.
minIndex
],
"time.min"
:
minutes
,
timeList
timeList
,
hours
,
//maxBookTime
});
}
if
(
startTime
!=
null
&&
endTime
!=
null
&&
startIndex
!=
null
&&
endIndex
!=
null
)
{
endTime
=
null
;
startTime
=
null
;
if
(
startIndex
[
0
]
==
endIndex
[
0
])
{
for
(
var
j
=
startIndex
[
1
];
j
<=
endIndex
[
1
];
j
++
)
{
timeList
[
startIndex
[
0
]][
j
].
color
=
""
;
}
}
if
(
startIndex
[
0
]
<
endIndex
[
0
])
{
for
(
var
i
=
startIndex
[
0
];
i
<=
endIndex
[
0
];
i
++
)
{
if
(
i
==
startIndex
[
0
])
{
for
(
var
j
=
startIndex
[
1
];
j
<=
3
;
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
if
(
i
>
startIndex
[
0
]
&&
i
<
endIndex
[
0
])
{
for
(
var
j
=
0
;
j
<=
3
;
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
if
(
i
==
endIndex
[
0
])
{
for
(
var
j
=
0
;
j
<=
endIndex
[
1
];
j
++
)
{
timeList
[
i
][
j
].
color
=
""
;
}
}
}
var
hours
=
this
.
data
.
time
.
min
/
60
;
var
maxBookTime
=
e
.
currentTarget
.
dataset
.
maxBookTime
;
//console.log('minutes----', this.data.hours);
if
(
hours
>
maxBookTime
){
dd
.
alert
({
content
:
'超过最大预定时长,请重新选择'
,
buttonText
:
'我知道了'
,
success
:
()
=>
{
var
startTime
=
this
.
data
.
time
.
startTime
;
var
endTime
=
this
.
data
.
time
.
endTime
;
var
startIndex
=
this
.
data
.
time
.
startIndex
;
var
endIndex
=
this
.
data
.
time
.
endIndex
;
var
timeList
=
this
.
data
.
timeList
;
this
.
clearBox
(
startTime
,
endTime
,
startIndex
,
endIndex
,
timeList
,
this
);
}
});
}
startIndex
=
null
;
endIndex
=
null
;
this
.
setData
({
"time.endTime"
:
endTime
,
"time.startTime"
:
startTime
,
"time.startIndex"
:
startIndex
,
"time.endIndex"
:
endIndex
,
"time.min"
:
0
,
timeList
});
if
(
startTime
!=
null
&&
endTime
!=
null
&&
startIndex
!=
null
&&
endIndex
!=
null
)
{
this
.
clearBox
(
startTime
,
endTime
,
startIndex
,
endIndex
,
timeList
,
this
);
}
}
else
{
return
false
;
}
console
.
log
(
e
.
currentTarget
.
dataset
.
hour
);
console
.
log
(
e
.
currentTarget
.
dataset
.
minute
);
//
console.log(e.currentTarget.dataset.hour);
//
console.log(e.currentTarget.dataset.minute);
// console.log(e.currentTarget.dataset.hourIndex);
// console.log(e.currentTarget.dataset.minIndex);
},
...
...
@@ -513,6 +591,8 @@ console.log(e.currentTarget.dataset.hour);
});
},
//消息选择
bindPickerChange
:
function
(
e
)
{
...
...
@@ -522,9 +602,9 @@ console.log(e.currentTarget.dataset.hour);
index
:
e
.
detail
.
value
,
// cnum: conferenceList[e.detail.value].conferenceNumber
});
},
},
//多项选择框
checkboxChange
:
function
(
e
)
{
checkboxChange
:
function
(
e
)
{
var
temp1
=
e
.
detail
.
value
var
temp2
=
''
console
.
log
(
temp1
)
...
...
@@ -609,6 +689,7 @@ console.log(e.currentTarget.dataset.hour);
onLoad
:
function
(
query
)
{
//showView: (options.showView == "true" ? true : false);
var
_this
=
this
;
console
.
log
(
query
)
//再次预定 数据回显
var
message
=
_this
.
data
.
message
;
message
[
'conferenceName'
]
=
query
.
conferenceName
;
...
...
@@ -616,126 +697,19 @@ console.log(e.currentTarget.dataset.hour);
message
[
'messageName'
]
=
query
.
messageName
;
message
[
'messageCompere'
]
=
query
.
messageCompere
;
message
[
'messageContent'
]
=
query
.
messageContent
;
message
[
'messagePassword'
]
=
query
.
messagePassword
;
_this
.
setData
({
message
,
cnum
:
query
.
cnum
cnum
:
query
.
cnum
,
maxBookTime
:
query
.
maxBookTime
,
maxBookDay
:
query
.
maxBookDay
,
})
//生成会议id
// console.log("会议id",_this.data.mid);
// console.log("maxBookTime---", this.data.maxBookTime);
// console.log("maxBookDay---", this.data.maxBookDay);
this
.
showTimeList
(
_this
,
query
.
cnum
);
//查询当天会议时间段
var
timeList
=
this
.
data
.
timeList
;
var
hours
=
this
.
data
.
allTime
.
hours
;
var
minutes
=
this
.
data
.
allTime
.
minutes
;
//清空原來的
timeList
=
[];
this
.
setData
({
timeList
,
cnum
:
query
.
cnum
});
var
msgTime
=
this
.
data
.
msgTime
;
var
nowHour
=
new
Date
().
getHours
();
var
nowMinute
=
new
Date
().
getMinutes
();
msgTime
=
[];
this
.
setData
({
msgTime
});
dd
.
httpRequest
({
url
:
messageListUrl
,
method
:
'POST'
,
data
:
{
date
:
_this
.
data
.
dates
,
cnum
:
query
.
cnum
},
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----message'
,
res
)
var
msg
=
res
.
data
.
result
;
for
(
var
i
=
0
;
i
<
msg
.
length
;
i
++
)
{
var
json
=
{};
json
[
"startTime"
]
=
msg
[
i
].
startTimeFormat
;
json
[
"endTime"
]
=
msg
[
i
].
endTimeFormat
;
msgTime
.
push
(
json
);
}
_this
.
setData
({
msgTime
});
if
(
timeList
.
length
==
0
)
{
for
(
var
i
=
0
;
i
<
hours
.
length
;
i
++
)
{
var
arr
=
new
Array
;
for
(
var
j
=
0
;
j
<
minutes
.
length
;
j
++
)
{
//console.log(hours[i]);
// console.log(minutes[j]);
var
json
=
{};
json
[
"hour"
]
=
hours
[
i
];
json
[
"minute"
]
=
minutes
[
j
];
if
(
nowHour
>
hours
[
i
])
{
json
[
"color"
]
=
"#ABABAB"
;
json
[
"unclick"
]
=
true
;
}
else
{
json
[
"color"
]
=
""
;
json
[
"unclick"
]
=
false
;
}
if
(
nowHour
==
hours
[
i
])
{
if
(
nowMinute
>
minutes
[
j
])
{
json
[
"color"
]
=
"#ABABAB"
;
json
[
"unclick"
]
=
true
;
}
else
{
json
[
"color"
]
=
""
;
json
[
"unclick"
]
=
false
;
}
}
// console.log(msgTime);
if
(
msgTime
.
length
>
0
)
{
for
(
var
k
=
0
;
k
<
msgTime
.
length
;
k
++
)
{
var
msgstart
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
0
]);
var
msgend
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
0
]);
var
msgstartmin
=
Number
(
msgTime
[
k
].
startTime
.
split
(
":"
)[
1
])
-
15
;
var
msgendmin
=
Number
(
msgTime
[
k
].
endTime
.
split
(
":"
)[
1
]);
console
.
log
(
"会议开始时间"
,
msgstart
+
":"
+
msgstartmin
);
// console.log(msgTime[k].startTime.split(":")[0]);
if
(
time_range
(
msgstart
+
":"
+
msgstartmin
,
msgTime
[
k
].
endTime
,
hours
[
i
]
+
":"
+
minutes
[
j
]))
{
json
[
"color"
]
=
"#EEAD0E"
;
json
[
"unclick"
]
=
true
;
}
}
}
// console.log("json",json);
//console.log(this.data.time.allTime.hours[i] + this.data.time.allTime.minutes[j])
arr
.
push
(
json
);
}
timeList
.
push
(
arr
);
}
}
//console.log(status);
_this
.
setData
({
timeList
})
console
.
log
(
"timeList"
,
timeList
)
dd
.
hideLoading
();
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
dd
.
alert
({
content
:
JSON
.
stringify
(
res
)
});
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
}
});
// console.log(hours);
// console.log(minutes);
...
...
@@ -790,8 +764,22 @@ console.log(e.currentTarget.dataset.hour);
});
// var employeeList= _this.data.employeeList;
// var pages = getCurrentPages(); //当前页面栈
// if(pages.length >=2){
// var beforePage = pages[pages.length - 2]; //获取上一个页面的实例对象
// //_this.data.employeeList = [];
// employeeList = [];
// _this.setData({
// employeeList
// })
// }
},
addlist
:
function
()
{
var
that
=
this
;
that
.
setData
({
...
...
@@ -809,33 +797,46 @@ console.log(e.currentTarget.dataset.hour);
// 页面加载完成
var
_this
=
this
;
if
(
_this
.
data
.
mid
==
null
){
dd
.
httpRequest
({
url
:
generateMidUrl
,
method
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
var
mid
=
res
.
data
.
result
;
console
.
log
(
'mid----'
,
res
)
_this
.
setData
({
mid
:
mid
})
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
dd
.
alert
({
content
:
JSON
.
stringify
(
res
)
});
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
}
dd
.
httpRequest
({
url
:
generateMidUrl
,
method
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
var
mid
=
res
.
data
.
result
;
var
topicList
=
_this
.
data
.
topicList
;
console
.
log
(
'mid----'
,
res
)
_this
.
setData
({
mid
:
mid
,
topicList
:[]
})
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
//dd.alert({ content: JSON.stringify(res) });
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
}
});
});
}
// console.log(this.data.timeList);
},
// changeParentData: function(){
// var pages = getCurrentPages(); //当前页面栈
// if(pages.length > 1){
// var beforePage = pages[pages.length - 2]; //获取上一个页面的实例对象
// beforePage.changeData(); // 触发父页面中的方法
// }
// },
onShow
()
{
// 页面显示
},
onHide
()
{
// 页面隐藏
...
...
@@ -853,6 +854,8 @@ console.log(e.currentTarget.dataset.hour);
// 页面被拉到底部
},
onShareAppMessage
()
{
var
_this
=
this
;
// 返回自定义分享信息
return
{
title
:
'My App'
,
...
...
@@ -883,12 +886,14 @@ function dateCompare(nowDate, selectDate) {
var
aEnd
=
selectDate
.
split
(
'-'
);
var
startDateTemp
=
aStart
[
0
]
+
"/"
+
aStart
[
1
]
+
"/"
+
aStart
[
2
];
var
endDateTemp
=
aEnd
[
0
]
+
"/"
+
aEnd
[
1
]
+
"/"
+
aEnd
[
2
];
if
(
startDateTemp
>
endDateTemp
)
return
0
;
else
if
(
startDateTemp
==
endDateTemp
)
return
1
;
else
if
(
startDateTemp
<
endDateTemp
)
return
2
;
}
var
time_range
=
function
(
beginTime
,
endTime
,
nowTime
)
{
var
strb
=
beginTime
.
split
(
":"
);
...
...
@@ -923,3 +928,14 @@ var time_range = function(beginTime, endTime, nowTime) {
return
false
;
}
}
function
datedifference
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2006-12-18格式
var
dateSpan
,
tempDate
,
iDays
;
sDate1
=
Date
.
parse
(
sDate1
);
sDate2
=
Date
.
parse
(
sDate2
);
dateSpan
=
sDate2
-
sDate1
;
dateSpan
=
Math
.
abs
(
dateSpan
);
iDays
=
Math
.
floor
(
dateSpan
/
(
24
*
3600
*
1000
));
return
iDays
};
This diff is collapsed.
Click to expand it.
pages/conference/details/details.axml
浏览文件 @
ae9155bf
...
...
@@ -7,7 +7,7 @@
</text></label> <label>人数:{{conference.maxPerson}}人 </label> <label>地点:{{conference.area.areaName}} |{{conference.nextArea.areaName}}</label>
</view>
<view class='de_bg'>
<view class='de_title2'>当天会议</vie
w>
<view class='de_title2'>当天会议</vie
<view class='de_border'></view>
</view>
<view class='de_time'>{{date}}</view>
...
...
@@ -30,6 +30,6 @@
</view>
</view>
<view class='de_btn' data-cnum="{{conference.conferenceNumber}}" onTap="goto">
<view class='de_btn' data-
max-book-time="{{conference.maxBookTime}}" data-max-book-day="{{conference.maxBookDay}}" data-
cnum="{{conference.conferenceNumber}}" onTap="goto">
<button class='de_btn2' >添加预定</button>
</view>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/conference/details/details.js
浏览文件 @
ae9155bf
...
...
@@ -12,13 +12,16 @@ Page({
date
:
dateFtt
(
"yyyy-MM-dd"
,
new
Date
())
},
goto
:
function
(
e
){
var
cnum
=
e
.
currentTarget
.
dataset
.
cnum
;
var
maxBookTime
=
e
.
currentTarget
.
dataset
.
maxBookTime
;
var
maxBookDay
=
e
.
currentTarget
.
dataset
.
maxBookDay
;
dd
.
navigateTo
({
url
:
'../addmeeting/addmeeting?cnum='
+
cnum
url
:
'../addmeeting/addmeeting?cnum='
+
cnum
+
'&maxBookTime='
+
maxBookTime
+
'&maxBookDay='
+
maxBookDay
})
},
setImageUrl
:
function
(
e
)
{
console
.
log
(
"图片加载错误detail"
);
//
console.log("图片加载错误detail");
var
index
=
e
.
currentTarget
.
dataset
.
index
;
// document.getElementById(id).src = "../../../resource/images/list-room.png";
...
...
@@ -35,8 +38,10 @@ Page({
// 生命周期函数--监听页面加载
console
.
log
(
"load会议室编号"
,
query
);
var
_this
=
this
;
_this
.
setData
({
conference
:
null
})
dd
.
httpRequest
({
...
...
@@ -48,10 +53,13 @@ Page({
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----'
,
res
)
//var maxBookTime= _this.data.result;
_this
.
setData
({
conference
:
res
.
data
.
result
conference
:
res
.
data
.
result
,
//maxBookTime
})
//console.log('maxbooktime',maxBookTime);
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
...
...
@@ -68,12 +76,12 @@ Page({
onReady
(
query
)
{
// 页面加载完成
console
.
log
(
"ready会议室编号"
,
query
)
//
console.log("ready会议室编号",query)
},
onShow
(
query
)
{
// 页面显示
console
.
log
(
"show会议室编号"
,
query
)
//
console.log("show会议室编号",query)
},
onHide
()
{
// 页面隐藏
...
...
This diff is collapsed.
Click to expand it.
pages/conference/ex_visitor/ex_visitor.axml
浏览文件 @
ae9155bf
...
...
@@ -26,9 +26,9 @@
<view a:for="{{employeeList}}" a:for-item="employee" a:for-index="index" class='item-avatar-xs-a'>
<!-- <checkbox value="{{employee.name}}" checked="{{employee.checked}}" /> -->
<view data-index="{{index}}" data-id="{{employee.id}}" onTap="deleteSign" class="del">
<view data-index="{{index}}" data-id="{{employee.id}}" onTap="deleteSign" class="del">
<icon type="cancel" size="18" color="red"/>
</view>
</view>
<text class="checkbox-text">{{employee.name}}</text>
</view>
...
...
This diff is collapsed.
Click to expand it.
pages/conference/ex_visitor/ex_visitor.js
浏览文件 @
ae9155bf
...
...
@@ -3,13 +3,12 @@ let domain = app.globalData.domain;
//获取用户信息的url
let
addExSignUrl
=
domain
+
"/dingding/addExSign"
;
let
delExSignUrl
=
domain
+
"/dingding/delExSign"
let
delExSignUrl
=
domain
+
"/dingding/delExSign"
;
Page
({
data
:
{
employeeList
:[
],
employeeList
:[],
mid
:
null
,
personNum
:
0
},
...
...
@@ -18,8 +17,6 @@ Page({
formSubmit
:
function
(
e
){
console
.
log
(
'form发生了submit事件,携带数据为:'
,
e
.
detail
.
value
);
var
_this
=
this
;
if
(
e
.
detail
.
value
.
signName
.
length
==
0
){
dd
.
alert
({
...
...
@@ -28,6 +25,7 @@ Page({
})
return
false
;
}
// if (e.detail.value.signMobile.length != 0) {
// var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
// var phone = e.detail.value.signMobile;
...
...
@@ -83,13 +81,13 @@ Page({
signMobile
:
e
.
detail
.
value
.
signMobile
,
signEmail
:
e
.
detail
.
value
.
signEmail
,
signName
:
e
.
detail
.
value
.
signName
,
},
dataType
:
'json'
,
success
:
function
(
res
)
{
// console.log('success----', res)
console
.
log
(
'success----'
,
res
)
if
(
res
.
data
.
success
)
{
//console.log("预定成功");
dd
.
alert
({
...
...
@@ -97,10 +95,9 @@ Page({
content
:
'添加成功'
,
buttonText
:
'确定'
,
success
:
()
=>
{
var
employeeList
=
_this
.
data
.
employeeList
;
var
emp
=
{};
var
emp
=
{};
emp
[
'name'
]
=
res
.
data
.
result
.
signName
;
emp
[
'id'
]
=
res
.
data
.
result
.
signId
;
emp
[
'checked'
]
=
true
;
...
...
@@ -108,13 +105,26 @@ Page({
_this
.
setData
({
personNum
:
_this
.
data
.
personNum
+
1
,
employeeList
employeeList
,
});
},
//console.log('employeeList---',_this.data.employeeList);
},
});
// var employeeList= _this.data.employeeList;
// if(getCurrentPages().length !=2){
// // let pages = getCurrentPages(); //当前页面栈
// // let curPage = pages[pages.length - 3];
// // let data = curPage.data;
// employeeList = [];
// _this.setData({
// employeeList:employeeList
// })
// }
}
else
{
dd
.
showToast
({
type
:
'fail'
,
...
...
@@ -177,7 +187,7 @@ Page({
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
dd
.
alert
({
content
:
JSON
.
stringify
(
res
)
});
//
dd.alert({ content: JSON.stringify(res) });
},
complete
:
function
(
res
)
{
dd
.
hideLoading
();
...
...
@@ -188,25 +198,56 @@ Page({
},
onLoad
:
function
(
query
)
{
// 生命周期函数--监听页面加载
this
.
setData
({
mid
:
query
.
mid
})
//var _this = this;
// if(getCurrentPages().length !=2){
// // let pages = getCurrentPages(); //当前页面栈
// // let curPage = pages[pages.length - 3];
// // let data = curPage.data;
// employeeList = [];
// _this.setData({
// isshowvisitor=0,
// employeeList:employeeList
// })
// }
},
onReady
()
{
onReady
(
query
)
{
// 页面加载完成
},
onShow
()
{
// 页面显示
// this.onLoad()
if
(
getCurrentPages
().
length
>=
3
){
console
.
log
(
'执行执行-----'
);
this
.
setData
({
//currentPage: 1,
employeeList
:[]
})
this
.
onLoad
()
}
},
onHide
()
{
// 页面隐藏
},
onUnload
()
{
// 页面被关闭
// var _this = this;
// var employeeList= _this.data.employeeList;
// var pages = getCurrentPages(); //当前页面栈
// if(pages.length >=3){
// var beforePage = pages[pages.length - 3]; //获取上一个页面的实例对象
// //_this.data.employeeList = [];
// employeeList = [];
// _this.setData({
// employeeList
// })
// }
// console.log('employeeList---', _this.data.employeeList);
},
onTitleClick
()
{
// 标题被点击
...
...
This diff is collapsed.
Click to expand it.
pages/conference/index/index.acss
浏览文件 @
ae9155bf
...
...
@@ -38,7 +38,7 @@ white-space: nowrap;
background: none;
font-size: 0.3rem;
position: absolute;
/* margin-top: 5rpx; */
margin-top: 5rpx;
}
.list_box{
margin-top: 30rpx;
...
...
This diff is collapsed.
Click to expand it.
pages/conference/index/index.js
浏览文件 @
ae9155bf
...
...
@@ -67,7 +67,7 @@ Page({
_this
.
setData
({
authCode
:
res
.
authCode
})
console
.
log
(
"authCode"
,
res
.
authCode
)
dd
.
httpRequest
({
url
:
url
,
...
...
This diff is collapsed.
Click to expand it.
pages/conference/modifymeeting/modifymeeting.axml
浏览文件 @
ae9155bf
...
...
@@ -10,16 +10,16 @@
<input type='text' value="{{message.messageCompere}}" placeholder='请输入主持人' name="messageCompere" />
</view>
<view class='item-avatar-xs'>
<text>添加议题:</text>
<input type='text' placeholder='输入议题' name="messageTheme
" />
<image src='../../../resource/images/add.png' onTap='addList
'></image>
</view>
<view class="item-avatar-xs" a:for="{{lists}}" a:key="{{index}}"
>
<view class='add'
>
<input type='text' placeholder='输入议题' name="messageTheme
" />
<image src='../../../resource/images/off.png' onTap='delList
'></image>
</view>
</view>
<text>添加议题:</text>
<input type='text' placeholder='输入议题' onInput="inputTopic" value="{{topicList[0]}}" data-index="{{0}}" name="topicList[0]
" />
<image src='../../../resource/images/add.png' onTap='addTopic
'></image>
</view>
<view class="item-avatar-xs" a:for="{{topicList.length-1}}" a:for-item="i" a:key="{{index}}"
>
<view class='add'
>
<input type='text' placeholder='输入议题' value="{{topicList[i]}}" onInput="inputTopic" data-index="{{index+1}}" name="topicList[{{index+1}}]
" />
<image src='../../../resource/images/off.png' onTap='delTopic
'></image>
</view>
</view>
<view class='item-avatar-xs'>
<text>会议信息:</text>
<textarea placeholder='输入内容' value="{{messageContent}}" name="messageContent"></textarea>
...
...
This diff is collapsed.
Click to expand it.
pages/conference/modifymeeting/modifymeeting.js
浏览文件 @
ae9155bf
...
...
@@ -19,7 +19,7 @@ Page({
//msgArray: ['无提醒', '提前十分钟', '提前半小时', '提前一小时'],
showView
:
false
,
dates
:
dateFtt
(
"yyyy-MM-dd"
,
new
Date
()),
lists
:
[{}
],
topicList
:
[
],
text
:
''
,
cnum
:
''
,
allTime
:
{
...
...
@@ -37,6 +37,33 @@ Page({
min
:
0
,
}
},
//添加议题
addTopic
:
function
()
{
var
topicList
=
this
.
data
.
topicList
;
var
newData
=
""
;
topicList
.
push
(
newData
);
//实质是添加lists数组内容,使for循环多一次
this
.
setData
({
topicList
:
topicList
,
})
},
//删除议题
delTopic
:
function
()
{
var
topicList
=
this
.
data
.
topicList
;
topicList
.
pop
();
//实质是删除lists数组内容,使for循环少一次
this
.
setData
({
topicList
:
topicList
,
})
},
inputTopic
:
function
(
e
){
// console.log(e);
var
topicList
=
this
.
data
.
topicList
;
var
index
=
e
.
currentTarget
.
dataset
.
index
;
topicList
[
index
]
=
e
.
detail
.
value
;
this
.
setData
({
topicList
})
console
.
log
(
this
.
data
.
topicList
)
},
//方式选项点击
clicks
:
function
(
e
)
{
...
...
@@ -583,11 +610,19 @@ console.log(e.currentTarget.dataset.hour);
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
'success----'
,
res
);
var
list
=
res
.
data
.
result
.
topicList
;
var
topicList
=
[];
for
(
var
t
in
list
){
topicList
.
push
(
list
[
t
].
topicName
);
}
console
.
log
(
"topicList"
,
topicList
)
_this
.
setData
({
message
:
res
.
data
.
result
,
messageContent
:
res
.
data
.
result
.
messageContent
,
topicList
:
topicList
});
var
noticeList
=
_this
.
data
.
noticeList
;
var
cnum
=
res
.
data
.
result
.
cnum
;
...
...
This diff is collapsed.
Click to expand it.
pages/conference/visitor/visitor.js
浏览文件 @
ae9155bf
...
...
@@ -46,18 +46,7 @@ Page({
method
:
'POST'
,
success
:
function
(
res
){
console
.
log
(
'res----'
,
res
.
data
)
// if(keyword == ""){
// this.setData({
// departmentList: res.data
// })
// return;
// }
// var departmentList= _this.data.departmentList;
// departmentList=[];
// _this.setData({
// departmentList
// });
var
departmentList
=
_this
.
data
.
departmentList
;
departmentList
=
res
.
data
.
result
;
for
(
var
i
=
0
;
i
<
departmentList
.
length
;
i
++
){
...
...
@@ -75,17 +64,7 @@ Page({
_this
.
setData
({
departmentList
})
// var userList= res.data.result;
// for(let i in userList){
// var department =userList[i].department;
// department['isColpand']=false;
// department['checked'] = false;
// department.uList=[];
// department.uList.push(userList[i]);
// department.uList[0]['checked']=true;
// departmentList.push(department);
// }
that
.
setData
({
departmentList
});
...
...
@@ -104,69 +83,6 @@ Page({
dd
.
hideLoading
();
}
})
// var that = this;
// dd.httpRequest({
// url: "getStaffUrl" + this.data.inputValue,
// data: {
// inputValue: this.data.inputValue
// },
// method: 'POST',
// success: function(res){
// console.log('res----', res.data)
// var searchData = res.data
// that.setData({
// searchData
// })
// //缓存
// dd.setStorage({
// key: 'departmentList',
// data: {
// inputValue: this.data.inputValue,
// departmentList: res.data
// }
// })
// if(!that.data.inputValue){
// dd.showToast({
// title: '请重新输入',
// duration: 2000,
// })
// } else if (searchData.search.length == 0){
// dd.showToast({
// title: '关键词不存在',
// duration: 2000,
// })
// } else {
// var searchIndex = searchData.search.length;
// var d = 0;
// for (var i = 0; i <= searchIndex -1; i++){
// var searchTitle = searchData.search[d].title;
// console.log(searchTitle);
// d = d + 1;
// for (var x = 0; x <= searchTitle.length; x++){
// for ( var y = 0; y <= searchTitle.length; y++){
// var keyWord = searchTitle.substring(x,y);
// console.log('keyword----', keyWord)
// }
// }
// }
// }
// },
// fail: function(res) {
// console.log("httpRequestFail---", res)
// dd.alert({ content: JSON.stringify(res) });
// },
// complete: function(res) {
// dd.hideLoading();
// }
// })
},
...
...
@@ -344,11 +260,11 @@ Page({
cnum
:
query
.
cnum
})
dd
.
httpRequest
({
url
:
get
Department
Url
,
url
:
get
Staff
Url
,
method
:
'POST'
,
data
:
{
userId
:
userId
,
},
dataType
:
'json'
,
success
:
function
(
res
)
{
...
...
This diff is collapsed.
Click to expand it.
pages/meeting/details/details.js
浏览文件 @
ae9155bf
...
...
@@ -40,10 +40,12 @@ Page({
console
.
log
(
'success----议题'
,
res
)
var
topicStr
=
_this
.
data
.
topicStr
;
var
topicList
=
res
.
data
.
result
;
for
(
var
i
=
0
;
i
<
topicList
.
length
;
i
++
){
topicStr
+=
topicList
[
i
].
topicName
+
" "
for
(
var
i
=
0
;
i
<
topicList
.
length
;
i
++
){
//for( var j=1; j<topicList.length; j++ ){
topicStr
+=
" "
+
'('
+
(
i
+
1
)
+
')、'
+
topicList
[
i
].
topicName
+
" "
//}
}
console
.
log
(
'topicStr'
,
topicStr
);
_this
.
setData
({
topicStr
...
...
This diff is collapsed.
Click to expand it.
pages/meeting/record/record.axml
浏览文件 @
ae9155bf
...
...
@@ -34,12 +34,12 @@
</view>
<view class="tr">
<view class="td td1">会议时间:{{message.startTimeFormat}} - {{message.endTimeFormat}}</view>
<view class="td td2">
会议范围
:{{message.department}}</view>
<view class="td td2">
部门
:{{message.department}}</view>
</view>
<view class="tr btn">
<view class="td td1">
<text>会议操作:</text>
<button class="btn1" size='mini' type='primary' data-mid="{{message.messageId}}" onTap="modify">修改会议</button>
<button class="btn1" size='mini' type='primary' data-mid="{{message.messageId}}"
data-config-value-id="{{message.configValueId}}"
onTap="modify">修改会议</button>
<button class="btn2" size='mini' type='warn' data-mid="{{message.messageId}}" data-config-value-id="{{message.configValueId}}" onTap="cancelmeeting">取消会议</button>
</view>
</view>
...
...
@@ -60,7 +60,7 @@
</view>
<view class="tr">
<view class="td td1">会议时间:{{mymessage.startTimeFormat}} - {{mymessage.endTimeFormat}}</view>
<view class="td td2">
会议范围
:{{mymessage.department}}</view>
<view class="td td2">
部门
:{{mymessage.department}}</view>
</view>
<view class="tr btn">
<view class="td td1">
...
...
@@ -69,7 +69,7 @@
<button class="btn1" a:if="{{mymessage.configValueId == 1}}" size='mini' type='primary'>正在会议</button>
<button class="btn1" a:if="{{mymessage.configValueId == 3}}" size='mini' type='warn'>暂停</button>
<button class="btn1" a:if="{{mymessage.configValueId == 2}}" size='mini' type='default'>未开始</button>
<button class="btn2" size='mini' data-date="{{dates}}" data-conference-name="{{mymessage.conference.conferenceName}}"
data-mid="{{mymessage.messageId}}"
type='primary' onTap="meetjy">会议纪要</button>
<button class="btn2" size='mini' data-date="{{dates}}" data-conference-name="{{mymessage.conference.conferenceName}}"
data-message-password="{{mymessage.messagePassword}}" data-mid="{{mymessage.messageId}}" data-minutesCode="{{conference.minutesCode}}"
type='primary' onTap="meetjy">会议纪要</button>
</view>
</view>
<view class="tr">
...
...
This diff is collapsed.
Click to expand it.
pages/meeting/record/record.js
浏览文件 @
ae9155bf
...
...
@@ -76,10 +76,20 @@ Page({
},
meetjy
:
function
(
e
){
var
mid
=
e
.
currentTarget
.
dataset
.
mid
;
// console.log("conferenceName", e.currentTarget.dataset.conferenceName);
dd
.
navigateTo
({
url
:
'../summary/summary?mid='
+
mid
+
'&conferenceName='
+
e
.
currentTarget
.
dataset
.
conferenceName
+
"&date="
+
e
.
currentTarget
.
dataset
.
date
})
let
minutesCode
=
e
.
currentTarget
.
dataset
.
minutesCode
;
let
messagePassword
=
e
.
currentTarget
.
dataset
.
messagePassword
;
console
.
log
(
"minutesCode"
,
minutesCode
);
if
(
minutesCode
!=
""
&&
minutesCode
!=
null
){
dd
.
navigateTo
({
url
:
'../summary/summary?mid='
+
mid
+
'&conferenceName='
+
e
.
currentTarget
.
dataset
.
conferenceName
+
"&date="
+
e
.
currentTarget
.
dataset
.
date
})
}
else
{
dd
.
alert
({
content
:
'没有授权码,无法查看'
,
buttonText
:
'我知道了'
,
})
}
},
onReady
()
{
// 页面加载完成
...
...
@@ -107,7 +117,7 @@ Page({
that
.
setData
({
messageList
,
messageList
});
console
.
log
(
'会议列表-----'
,
that
.
data
.
messageList
);
},
...
...
@@ -182,21 +192,54 @@ Page({
},
modify
:
function
(
e
){
dd
.
navigateTo
({
url
:
'../../conference/modifymeeting/modifymeeting?mid='
+
e
.
currentTarget
.
dataset
.
mid
})
//var mid= e.currentTarget.dataset.mid;
let
configValueId
=
e
.
currentTarget
.
dataset
.
configValueId
;
if
(
configValueId
===
1
){
dd
.
alert
({
content
:
'会议进行中,不可修改'
,
buttonText
:
'确定'
,
})
}
else
if
(
configValueId
===
4
){
dd
.
alert
({
content
:
'会议已结束,不可修改'
,
buttonText
:
'确定'
,
})
}
else
{
dd
.
navigateTo
({
url
:
'../../conference/modifymeeting/modifymeeting?mid='
+
e
.
currentTarget
.
dataset
.
mid
})
}
},
cancelmeeting
:
function
(
e
){
var
mid
=
e
.
currentTarget
.
dataset
.
mid
;
let
configValueId
=
e
.
currentTarget
.
dataset
.
configValueId
;
if
(
configValueId
===
1
||
configValueId
===
4
||
configValueId
===
3
){
// if( configValueId === 1 || configValueId === 4 || configValueId === 3 ){
// dd.alert({
// content: '会议结束或进行中,不可取消',
// buttonText: '确定',
// })
// }
if
(
configValueId
===
1
){
dd
.
alert
({
content
:
'会议结束或进行中,不可取消'
,
content
:
'会议进行中,不可取消'
,
buttonText
:
'确定'
,
})
}
else
if
(
configValueId
===
4
){
dd
.
alert
({
content
:
'会议已结束,不可取消'
,
buttonText
:
'确定'
,
})
}
else
{
dd
.
httpRequest
({
}
else
if
(
configValueId
===
3
){
dd
.
alert
({
content
:
'会议暂停中,不可取消'
,
buttonText
:
'确定'
,
})
}
else
{
dd
.
httpRequest
({
url
:
canclemeetingUrl
,
method
:
'POST'
,
data
:
{
...
...
This diff is collapsed.
Click to expand it.
pages/meeting/recording/recording.axml
浏览文件 @
ae9155bf
...
...
@@ -13,7 +13,7 @@
</view>
<view class="tr">
<view class="td td1">会议时间:{{history.startTimeFormat}} - {{history.endTimeFormat}}</view>
<view class="td td2">
会议范围
:{{history.department}}</view>
<view class="td td2">
部门
:{{history.department}}</view>
</view>
<view class="tr">
<view class="td td2">地点:{{history.conference.conferenceName}}</view>
...
...
@@ -24,7 +24,7 @@
<view class="tr btn">
<view class="td td1">
<text>会议操作:</text>
<button class="btn1" size='mini' data-mid="{{history.messageId}}" type='primary' onTap="summary">会议纪要</button>
<button class="btn1" size='mini' data-mid="{{history.messageId}}"
data-minutesCode="{{conference.minutesCode}}"
type='primary' onTap="summary">会议纪要</button>
<button class="btn3" size='mini' data-mid="{{history.messageId}}" data-message-name="{{history.messageName}}" data-conference-name="{{history.conference.conferenceName}}"
data-message-compere="{{history.messageCompere}}" data-topic-list="{{history.topicList}}" data-start-time="{{history.startTimeFormat}}" data-end-time="{{history.endTimeFormat}}"
data-department="{{history.department}}" data-message-content="{{history.messageContent}}" data-config-value-id-string="{{history.configValueIdString}}" type='default' onTap="details">详细信息</button>
...
...
This diff is collapsed.
Click to expand it.
pages/meeting/recording/recording.js
浏览文件 @
ae9155bf
...
...
@@ -33,7 +33,7 @@ Page({
historyList
});
console
.
log
(
that
.
data
.
historyList
);
//
console.log(that.data.historyList);
},
fail
:
function
(
res
)
{
console
.
log
(
"httpRequestFail---"
,
res
)
...
...
@@ -49,11 +49,21 @@ Page({
summary
(
e
){
var
mid
=
e
.
currentTarget
.
dataset
.
mid
;
console
.
log
(
e
)
dd
.
navigateTo
({
url
:
'/pages/meeting/summary/summary?mid='
+
mid
,
type
:
'redirect'
})
let
minutesCode
=
e
.
currentTarget
.
dataset
.
minutesCode
;
console
.
log
(
"minutesCode"
,
minutesCode
);
//console.log(e)
if
(
minutesCode
!=
""
&&
minutesCode
!=
null
){
dd
.
navigateTo
({
url
:
'/pages/meeting/summary/summary?mid='
+
mid
,
type
:
'redirect'
})
}
else
{
dd
.
alert
({
content
:
'没有授权,无法查看'
,
buttonText
:
'我知道了'
,
})
}
},
destine
(
e
){
console
.
log
(
e
.
currentTarget
.
dataset
.
cnum
);
...
...
This diff is collapsed.
Click to expand it.
pages/mine/opinion/opinion.axml
浏览文件 @
ae9155bf
...
...
@@ -15,6 +15,6 @@
<view class="contact">
联系方式<input type="text" placeholder="留下联系方式,我们将尽快与您联系" name="" />
</view>
<button class="btn" type="primary" >提交</button>
<button class="btn" type="primary"
onTap="sumit"
>提交</button>
</form>
</view>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/mine/opinion/opinion.js
浏览文件 @
ae9155bf
...
...
@@ -56,15 +56,21 @@ Page({
});
},
sumit
(){
dd
.
alert
({
content
:
'提交成功'
,
buttonText
:
'我知道了'
,
})
},
onReady
()
{
// 页面加载完成
opinion
({
})
},
onShow
()
{
},
onHide
()
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论