提交 1c3ca8c2 authored 作者: 曾美红's avatar 曾美红

aaa

上级 362cbff5
流水线 #155 已取消 于阶段
...@@ -13,7 +13,9 @@ App({ ...@@ -13,7 +13,9 @@ App({
}, },
//全局数据 //全局数据
globalData: { globalData: {
domain:"https://dd2.ubainsyun.com", //domain:'http://id24iu.natappfree.cc',
//domain:"http://dd2.ubainsyun.com",
domain: "http://zhenglide.natapp1.cc" ,
corpId: '', corpId: '',
userId:'', userId:'',
person:'', person:'',
......
...@@ -21,6 +21,7 @@ Page({ ...@@ -21,6 +21,7 @@ Page({
lists: [{}], lists: [{}],
text: '', text: '',
cnum:'', cnum:'',
departments:'全体',
allTime: { allTime: {
hours: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], hours: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
minutes: [0, 15, 30, 45] minutes: [0, 15, 30, 45]
...@@ -163,17 +164,19 @@ var _this=this; ...@@ -163,17 +164,19 @@ var _this=this;
mid: _this.data.mid, mid: _this.data.mid,
cnum: _this.data.cnum, cnum: _this.data.cnum,
startTime: startTime, startTime: startTime,
endTime: endTime, endTime: endTime,
departments: _this.data.departments,
userId: app.globalData.userId, userId: app.globalData.userId,
messageName: e.detail.value.messageName, messageName: e.detail.value.messageName,
messageCompere: e.detail.value.messageCompere, messageCompere: e.detail.value.messageCompere,
messageTheme: e.detail.value.messageTheme,
messageContent: e.detail.value.messageContent, messageContent: e.detail.value.messageContent,
remindMethod : e.detail.value.remindMethod, remindMethod : e.detail.value.remindMethod,
remindTime: e.detail.value.remindTime, remindTime: e.detail.value.remindTime,
}, },
dataType: 'json', dataType: 'json',
success: function(res) { success: function(res) {
// console.log('success----', res) console.log('success----', res)
if (res.data.success){ if (res.data.success){
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="tr"> <view class="tr">
<view class="td td1">会议名称:{{msg.messageName}}</view> <view class="td td1">会议名称:{{msg.messageName}}</view>
<view class="td td2">发起人:{{msg.manageUser.nickname}}</view> <view class="td td2">发起人:{{msg.messageCompere}}</view>
</view> </view>
<view class="tr"> <view class="tr">
......
...@@ -23,12 +23,13 @@ Page({ ...@@ -23,12 +23,13 @@ Page({
// document.getElementById(id).src = "../../../resource/images/list-room.png"; // document.getElementById(id).src = "../../../resource/images/list-room.png";
var conference = this.data.conference; var conference = this.data.conference;
if(conference!=null){
if (conference.photoUrl) if (conference.photoUrl)
conference.photoUrl = "/images/conference/dd-defalut.png" conference.photoUrl = "/images/conference/dd-defalut.png"
this.setData({ this.setData({
conference conference
}); });
}
}, },
onLoad: function(query) { onLoad: function(query) {
// 生命周期函数--监听页面加载 // 生命周期函数--监听页面加载
......
...@@ -135,4 +135,7 @@ checkbox{ ...@@ -135,4 +135,7 @@ checkbox{
width: 40rpx; width: 40rpx;
float: left; float: left;
margin-top: 5rpx; margin-top: 5rpx;
}
.required{
color: red;
} }
\ No newline at end of file
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<view class="graySpace"></view> --> <view class="graySpace"></view> -->
<form onSubmit="formSubmit" onReset=""> <form onSubmit="formSubmit" onReset="">
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>用户名:</text> <text><text class="required">*</text>用户名:</text>
<input type="text" name="signName" placeholder="请输入用户名" /> <input type="text" name="signName" placeholder="请输入用户名" required="required" />
</view> </view>
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>手机号:</text> <text>手机号:</text>
......
...@@ -21,50 +21,57 @@ Page({ ...@@ -21,50 +21,57 @@ Page({
var _this = this; var _this = this;
if (e.detail.value.signMobile.length != 0) { if(e.detail.value.signName.length == 0){
var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
var phone = e.detail.value.signMobile;
if (!phoneReg.test(phone)) {
dd.alert({ dd.alert({
title: "添加失败", title: "用户名不能为空",
content: "手机格式错误",
buttonText: '确定' buttonText: '确定'
}) })
return false; 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;
// if (!phoneReg.test(phone)) {
} else { // dd.alert({
dd.alert({ // title: "添加失败",
title: "添加失败", // content: "手机格式错误",
content: "手机不为空", // buttonText: '确定'
buttonText: '确定' // })
}); // return false;
return false; // }
}
if (e.detail.value.signEmail.length!=0 ) {
var reg = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
var email = e.detail.value.signEmail;
if (!reg.test(email)) { // } else {
dd.alert({ // dd.alert({
title: "添加失败", // title: "添加失败",
content: "邮箱格式错误", // content: "手机不为空",
buttonText: '确定' // buttonText: '确定'
}); // });
return false; // return false;
// }
} // if (e.detail.value.signEmail.length!=0 ) {
// var reg = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
// var email = e.detail.value.signEmail;
// if (!reg.test(email)) {
// dd.alert({
// title: "添加失败",
// content: "邮箱格式错误",
// buttonText: '确定'
// });
// return false;
// }
} else { // } else {
dd.alert({ // dd.alert({
title: "添加失败", // title: "添加失败",
content: "邮箱不为空", // content: "邮箱不为空",
buttonText: '确定' // buttonText: '确定'
}); // });
return false; // return false;
} // }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
.banner image{ .banner image{
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin: 10rpx 30rpx; margin: 10rpx 10rpx 10rpx 60rpx;
} }
.function_text{ .function_text{
display: block; display: block;
...@@ -38,7 +38,7 @@ white-space: nowrap; ...@@ -38,7 +38,7 @@ white-space: nowrap;
background: none; background: none;
font-size: 0.3rem; font-size: 0.3rem;
position: absolute; position: absolute;
margin-top: 5rpx; /* margin-top: 5rpx; */
} }
.list_box{ .list_box{
margin-top: 30rpx; margin-top: 30rpx;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
border: 1px solid #eee; border: 1px solid #eee;
} }
.ver{ .ver{
width: 45%; width: 46%;
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
position: absolute; position: absolute;
......
...@@ -7,14 +7,19 @@ ...@@ -7,14 +7,19 @@
} }
.row{ .row{
width: 100%; width: 100%;
height: 80rpx; height: auto;
line-height: 80rpx; line-height: 80rpx;
display: flex;
align-items: center;
flex-wrap: wrap;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
.row label{ .row label{
/* height: 80rpx; */ height: auto;
line-height: 80rpx; line-height: 80rpx;
display: inline-block; display: inline-block;
text-align: center; text-align: center;
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
word-wrap:break-word;
word-break: break-all;
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</view> </view>
<view class="row"> <view class="row">
<label style="width:30%">会议议题</label> <label style="width:30%">会议议题</label>
<label style="width:68%">{{message.messageName}}</label> <label style="width:68%">{{message.messageTheme}}</label>
</view> </view>
<view class="row"> <view class="row">
<label style="width:30%">会议开始时间</label> <label style="width:30%">会议开始时间</label>
......
...@@ -12,6 +12,7 @@ Page({ ...@@ -12,6 +12,7 @@ Page({
message['messageName']=query.messageName; message['messageName']=query.messageName;
message['conferenceName'] = query.conferenceName; message['conferenceName'] = query.conferenceName;
message['messageCompere'] = query.messageCompere; message['messageCompere'] = query.messageCompere;
message['messageTheme'] = query.messageTheme;
message['startTime'] = query.startTime; message['startTime'] = query.startTime;
message['endTime'] = query.endTime; message['endTime'] = query.endTime;
message['department'] = query.department; message['department'] = query.department;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<text>会议操作:</text> <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}}" type='primary' onTap="summary">会议纪要</button>
<button class="btn3" size='mini' data-message-name="{{history.messageName}}" data-conference-name="{{history.conference.conferenceName}}" <button class="btn3" size='mini' data-message-name="{{history.messageName}}" data-conference-name="{{history.conference.conferenceName}}"
data-message-compere="{{history.messageCompere}}" data-start-time="{{history.startTimeFormat}}" data-end-time="{{history.endTimeFormat}}" data-message-compere="{{history.messageCompere}}" data-message-theme="{{history.messageTheme}}" 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> data-department="{{history.department}}" data-message-content="{{history.messageContent}}" data-config-value-id-string="{{history.configValueIdString}}" type='default' onTap="details">详细信息</button>
<button class="btn2" size='mini' type='default' data-cnum="{{history.conference.conferenceNumber}}" onTap="destine">再次预定</button> <button class="btn2" size='mini' type='default' data-cnum="{{history.conference.conferenceNumber}}" onTap="destine">再次预定</button>
</view> </view>
......
...@@ -66,7 +66,7 @@ Page({ ...@@ -66,7 +66,7 @@ Page({
console.log(e.currentTarget.dataset.messageName); console.log(e.currentTarget.dataset.messageName);
dd.navigateTo({ dd.navigateTo({
url: '/pages/meeting/details/details?messageName=' + e.currentTarget.dataset.messageName + '&conferenceName=' + e.currentTarget.dataset.conferenceName + "&messageCompere=" + e.currentTarget.dataset.messageCompere + "&startTime=" + e.currentTarget.dataset.startTime + "&endTime=" + e.currentTarget.dataset.endTime + "&department=" + e.currentTarget.dataset.department + "&messageContent=" + e.currentTarget.dataset.messageContent + "&configValueIdString=" + e.currentTarget.dataset.configValueIdString url: '/pages/meeting/details/details?messageName=' + e.currentTarget.dataset.messageName + '&conferenceName=' + e.currentTarget.dataset.conferenceName + "&messageCompere=" + e.currentTarget.dataset.messageCompere+ "&messageTheme=" + e.currentTarget.dataset.messageTheme + "&startTime=" + e.currentTarget.dataset.startTime + "&endTime=" + e.currentTarget.dataset.endTime + "&department=" + e.currentTarget.dataset.department + "&messageContent=" + e.currentTarget.dataset.messageContent + "&configValueIdString=" + e.currentTarget.dataset.configValueIdString
}) })
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</view> </view>
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>手 机 :</text> <text>手 机 :</text>
<input type='number' name="phonetel" value='{{user.phonetel}}'></input> <input type='num' name="phonetel" value='{{user.phonetel}}' maxlength="11" onBlur="Phone" />
</view> </view>
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>昵 称 : <text>昵 称 :
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
</view> </view>
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>邮 箱 :</text> <text>邮 箱 :</text>
<input value="{{user.email}}" name="email" placeholder='请输入常用邮箱' /> <input type="email" value="{{user.email}}" name="email" placeholder='请输入常用邮箱' onBlur="Email" />
</view> </view>
<view class='item-avatar-xs'> <view class='item-avatar-xs'>
<text>性 别 :</text> <text>性 别 :</text>
<radio-group class="radio-group" name="sex"> <radio-group class="radio-group" name="sex" onChange="SexChange">
<label class="radio" a:for="{{sexs}}" a:for-item="sex" > <label class="radio" a:for="{{sexs}}" a:for-item="sex" >
{{sex.value}} <radio value="{{sex.name}}" checked="{{sex.checked}}" > {{sex.value}} <radio value="{{sex.value}}" checked="{{sex.checked}}" >
</label> </label>
</radio-group> </radio-group>
......
...@@ -10,7 +10,8 @@ Page({ ...@@ -10,7 +10,8 @@ Page({
sexs:[ sexs:[
{ name: 'man', value: '男' , checked:true}, { name: 'man', value: '男' , checked:true},
{ name: 'women', value: '女' } { name: 'women', value: '女' }
] ],
inputValue: ''
}, },
selectImg() { selectImg() {
var _self = this var _self = this
...@@ -32,18 +33,49 @@ Page({ ...@@ -32,18 +33,49 @@ Page({
} }
}) })
}, },
Phone(e) {
var phone = e.detail.value;
if (!(/^1[34578]\d{9}$/.test(phone))) {
if (phone.length < 11) {
dd.alert({
content: '手机号码格式有误',
buttonText: '我知道了',
});
}
}
},
Email(e) {
var email = e.detail.value;
let str = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/
if (str.test(email)) {
return true
}
else {
dd.alert({
content: '请填写正确的邮箱号',
buttonText: '我知道了',
})
}
},
// SexChange(e) {
// console.log('你选择的是:', e.detail.value)
// },
onLoad(query) { onLoad(query) {
// 页面加载 // 页面加载
// console.info(`Page onLoad with query: ${JSON.stringify(query)}`); console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
var user = {}; var user = {};
user['nickname']=query.nickname; user['nickname']=query.nickname;
user['phonetel']=query.phonetel; user['phonetel']=query.phonetel;
user['email'] = query.email; user['email'] = query.email;
user['id'] = query.id; user['id'] = query.id;
user['headPortait'] = query.headPortait; user['headPortait'] = query.headPortait;
var sexs=this.data.sexs; user['sex'] = query.sex;
if (query.sex=='男'){ //var sexs=this.data.sexs;
var sexs = this.data.sexs;
if (query.sex=='男'){
sexs[0]["checked"]=true; sexs[0]["checked"]=true;
sexs[1]["checked"] = false; sexs[1]["checked"] = false;
}else { }else {
...@@ -51,10 +83,11 @@ Page({ ...@@ -51,10 +83,11 @@ Page({
sexs[0]["checked"] = false; sexs[0]["checked"] = false;
} }
this.setData({ this.setData({
sexs:sexs,
user user
}); });
}, },
updateInfo:function(e){ updateInfo:function(e){
console.log("携带参数", e.detail.value); console.log("携带参数", e.detail.value);
...@@ -65,11 +98,12 @@ Page({ ...@@ -65,11 +98,12 @@ Page({
id:this.data.user.id, id:this.data.user.id,
phonetel: e.detail.value.phonetel, phonetel: e.detail.value.phonetel,
nickname: e.detail.value.nickname, nickname: e.detail.value.nickname,
email: e.detail.value.email email: e.detail.value.email,
sex: e.detail.value.sex
}, },
dataType: 'json', dataType: 'json',
success: function(res) { success: function(res) {
// console.log('success----', res) console.log('success----', res)
if (res.data.success) { if (res.data.success) {
...@@ -79,9 +113,12 @@ Page({ ...@@ -79,9 +113,12 @@ Page({
content: '修改成功', content: '修改成功',
buttonText: '确定', buttonText: '确定',
success: () => { success: () => {
dd.reLaunch({ dd.navigateBack({
url: '../my/my' delta: 1
}); })
// dd.({
// url: '../my/my'
// });
}, },
}); });
} else { } else {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<text class="user_title">{{user.nickname}}</text> <text class="user_title">{{user.nickname}}</text>
</view> </view>
<view class="flex"> <view class="flex">
<text class="user_title2">用户:{{user.userAccount}}</text> <text class="user_title2">用户账号:{{user.userAccount}}</text>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -84,7 +84,7 @@ Page({ ...@@ -84,7 +84,7 @@ Page({
}, },
dataType: 'json', dataType: 'json',
success: function(res) { success: function(res) {
console.log('success----', res) console.log('我的信息--->>', res)
_this.setData({ _this.setData({
user: res.data.result user: res.data.result
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论