提交 88b7ce3b authored 作者: 曾美红's avatar 曾美红

提交

上级 bea2d3f4
......@@ -182,6 +182,12 @@ Page({
if (res.data.success){
//console.log("预定成功");
dd.removeStorage({
key:'signList',
success:function(res){
//console.log('清除已添加外部人员记录成功');
}
})
dd.vibrate({
success: () => {
dd.alert({
......@@ -189,6 +195,7 @@ Page({
content: '预定成功',
buttonText: '确定',
success: () => {
dd.reLaunch({
url: '../index/index'
});
......
......@@ -84,7 +84,7 @@ Page({
dd.removeStorage({
key:'signList',
success:function(res){
console.log('清除已添加外部人员记录成功');
//console.log('清除已添加外部人员记录成功');
}
})
// 页面显示
......
......@@ -75,15 +75,15 @@
</label>
<label onTap='clicks' >
<checkbox value="wechat" data-val="wechat" name="wechat" hidden='false' checked="{{message.wechat ==1?'true':'false'}}"/> 微信
<checkbox value="wechat" data-val="wechat" name="wechat" hidden='false' checked="{{message.wechat ==1?true:false}}"/> 微信
</label>
<label onTap='clicks' class='{{notice.checked?"is_checked":""}}'>
<checkbox value="mailbox" data-val="mailbox" name="mailbox" hidden='false' checked="{{message.mailbox ==1?'true':'false'}}"/> 邮箱
<checkbox value="mailbox" data-val="mailbox" name="mailbox" hidden='false' checked="{{message.mailbox ==1?true:false}}"/> 邮箱
</label>
<label onTap='clicks' >
<checkbox value="note" data-val="note" name="note" hidden='false' checked="{{message.note ==1?'true':'false'}}"/> 短信
<checkbox value="note" data-val="note" name="note" hidden='false' checked="{{message.note ==1?true:false}}"/> 短信
</label>
</checkbox-group>
</view>
......@@ -102,15 +102,15 @@
<view class="modaltime2" hidden="{{!showModal2}}">
<checkbox-group name="remindTime" class="checkbox-group" onChange="checkboxChange">
<label class='checkbox'>
<checkbox checked="{{message.minTen ==1?'true':'false'}}" name="minTen" value='minTen' ></checkbox>
<checkbox checked="{{message.minTen ==1? true:false}}" name="minTen" value='minTen' ></checkbox>
<text>提前十分钟</text>
</label>
<label class='checkbox'>
<checkbox checked="{{message.halfHour ==1?'true':'false'}}" name="halfHour" value='halfHour'></checkbox>
<checkbox checked="{{message.halfHour ==1?true:false}}" name="halfHour" value='halfHour'></checkbox>
<text>提前半小时</text>
</label>
<label class='checkbox'>
<checkbox checked="{{message.oneHour ==1?'true':'false'}}" name="oneHour" value='oneHour'></checkbox>
<checkbox checked="{{message.oneHour ==1?true:false}}" name="oneHour" value='oneHour'></checkbox>
<text>提前一小时</text>
</label>
</checkbox-group>
......
......@@ -6,6 +6,7 @@ let messageListUrl = domain + "/dingding/messageList";
let getMessageByIdUrl = domain +"/dingding/getMessageById";
let generateMidUrl = domain + "/dingding/generateMid";
let conferenceListUrl = domain + "/dingding/conferenceList";
let addmeetingeUrl = domain + "/dingding/addmeeting";
Page({
......@@ -82,9 +83,6 @@ Page({
//是否安排座位
switch: function() {
//console.log("点击");
var mid=this.data.mid;
console.log("会议室", this.data.cnum)
// if (this.data.cnum==""){
......@@ -95,7 +93,7 @@ Page({
// })
// return false;
// }
var _this=this;
var _this=this;
},
......@@ -146,6 +144,14 @@ var _this=this;
})
return false;
}
if ((this.data.time.startTime == ""|| this.data.time.startTime == null) && (this.data.time.endTime=="" || this.data.time.endTime == null)) {
dd.alert({
title: "参数错误",
content: "会议时间没有选择",
buttonText: '确定'
})
return false;
}
dd.httpRequest({
url: addmeetingeUrl,
method: 'POST',
......@@ -168,15 +174,25 @@ var _this=this;
if (res.data.success){
//console.log("预定成功");
dd.alert({
title: '预定成功',
content: '预定成功',
buttonText: '确定',
dd.removeStorage({
key:'signList',
success:function(res){
//console.log('清除已添加外部人员记录成功');
}
})
dd.vibrate({
success: () => {
dd.reLaunch({
url: '../index/index'
dd.alert({
content: '预定成功',
buttonText: '确定',
success: () => {
dd.reLaunch({
url: '../index/index'
});
},
});
},
}
});
}else {
dd.showToast({
......@@ -200,12 +216,8 @@ var _this=this;
}
});
},
datePicker() {
var timeList = this.data.timeList;
var hours = this.data.allTime.hours;
......@@ -306,16 +318,8 @@ var _this=this;
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);
......@@ -514,7 +518,7 @@ console.log(e.currentTarget.dataset.hour);
checkboxChange: function(e) {
var temp1 = e.detail.value
var temp2 = ''
console.log(temp1)
//console.log(temp1)
if (temp1.length != 0) {
for (var i = 0, len = temp1.length; i < len; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论