Commit bc73caf0 by xiexiaoqin

merge

parent 456a758f
...@@ -84,20 +84,28 @@ create.Component({ ...@@ -84,20 +84,28 @@ create.Component({
projectName: 'MING_MEETING', projectName: 'MING_MEETING',
fileIds: file.fileId fileIds: file.fileId
} }
uploadPermissions(data).then(res => { if (file.spaceId) {
dd.previewFileInDingTalk({ dd.previewFileInDingTalk({
corpId: dd.corpId, corpId: dd.corpId,
spaceId: res.data.data, spaceId: file.spaceId,
fileId: file.fileId, fileId: file.fileId,
fileName: file.name, fileName: file.name,
fileSize: file.size, fileSize: file.size,
fileType: file.mimeType, fileType: file.mimeType,
}) })
}) } else {
uploadPermissions(data).then(res => {
dd.previewFileInDingTalk({
corpId: dd.corpId,
spaceId: res.data.data,
fileId: file.fileId,
fileName: file.name,
fileSize: file.size,
fileType: file.mimeType,
})
})
}
} }
}, },
//显示操作框 //显示操作框
showOperate(e) { showOperate(e) {
......
Component({ Component({
data: { data: {
userInfo: {} userInfo: {
username: '明我智会'
}
}, },
props: {}, props: {},
didMount() { didMount() {
this.setData({ if (dd.getStorageSync({ key: 'userInfo' }).data) {
userInfo: dd.getStorageSync({ key: 'userInfo' }).data this.setData({
}); userInfo: dd.getStorageSync({ key: 'userInfo' }).data
});
}
if (getApp().globalData.userInfo) {
this.setData({
userInfo: JSON.parse(getApp().globalData.userInfo)
});
}
}, },
didUpdate() { didUpdate() {
}, },
......
export const globalUrl = "https://gateway-beta.mingwork.com"; export const globalUrl = "https://gateway-beta.mingwork.com";
export const globalUrl2 = "https://third-authentication.mingwork.com"; export const globalUrl2 = "https://third-authentication.mingwork.com";
export const version = 0.0320; export const version = 0.0321;
export const websocketUrl = 'ws://139.196.213.18:9999'; export const websocketUrl = 'ws://139.196.213.18:9999';
...@@ -38,7 +38,9 @@ const uuid = Math.random().toString(36).substr(2); ...@@ -38,7 +38,9 @@ const uuid = Math.random().toString(36).substr(2);
create.Page({ create.Page({
store: pageStore, store: pageStore,
data: { data: {
userInfo: {}, userInfo: {
username: '明我智会'
},
actionLog: { actionLog: {
"comment_reply": "添加了评论", "comment_reply": "添加了评论",
"file_create": "上传了文件", "file_create": "上传了文件",
...@@ -186,9 +188,17 @@ create.Page({ ...@@ -186,9 +188,17 @@ create.Page({
this.onSocketMessageCallback(res.data) this.onSocketMessageCallback(res.data)
}); });
this.setData({ if (dd.getStorageSync({ key: 'userInfo' }).data) {
userInfo: dd.getStorageSync({ key: 'userInfo' }).data this.setData({
}); userInfo: dd.getStorageSync({ key: 'userInfo' }).data
});
}
if (getApp().globalData.userInfo) {
this.setData({
userInfo: JSON.parse(getApp().globalData.userInfo)
});
}
}, },
connect_start() { connect_start() {
const userId = dd.getStorageSync({ key: 'mwUserId' }).data; const userId = dd.getStorageSync({ key: 'mwUserId' }).data;
......
...@@ -324,6 +324,8 @@ create.Page({ ...@@ -324,6 +324,8 @@ create.Page({
modifyModel: modifyModel, modifyModel: modifyModel,
needNotice: needNotice, needNotice: needNotice,
modifyContent: 'modify_location', modifyContent: 'modify_location',
startTime: this.$store.data.startTime.replace(/\//g, "-"),
endTime: this.$store.data.endTime.replace(/\//g, "-"),
location: { location: {
longitude: '-999', longitude: '-999',
latitude: '-999', latitude: '-999',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment