Commit 2c2219bb by xiexiaoqin

fix: avatar, location with time, file preview

parent f1a6450b
......@@ -84,20 +84,28 @@ create.Component({
projectName: 'MING_MEETING',
fileIds: file.fileId
}
uploadPermissions(data).then(res => {
if (file.spaceId) {
dd.previewFileInDingTalk({
corpId: dd.corpId,
spaceId: res.data.data,
spaceId: file.spaceId,
fileId: file.fileId,
fileName: file.name,
fileSize: file.size,
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) {
......
Component({
data: {
userInfo: {}
userInfo: {
username: '明我智会'
}
},
props: {},
didMount() {
this.setData({
userInfo: dd.getStorageSync({ key: 'userInfo' }).data
});
if (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() {
},
......
export const globalUrl = "https://gateway-ding.mingwork.com";
export const globalUrl2 = "https://third-authentication.mingwork.com";
export const version = 0.043;
export const version = 0.049;
export const websocketUrl = 'wss://gateway-ding.mingwork.com';
......@@ -38,7 +38,9 @@ const uuid = Math.random().toString(36).substr(2);
create.Page({
store: pageStore,
data: {
userInfo: {},
userInfo: {
username: '明我智会'
},
actionLog: {
"comment_reply": "添加了评论",
"file_create": "上传了文件",
......@@ -186,9 +188,17 @@ create.Page({
this.onSocketMessageCallback(res.data)
});
this.setData({
userInfo: dd.getStorageSync({ key: 'userInfo' }).data
});
if (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() {
const userId = dd.getStorageSync({ key: 'mwUserId' }).data;
......
......@@ -324,6 +324,8 @@ create.Page({
modifyModel: modifyModel,
needNotice: needNotice,
modifyContent: 'modify_location',
startTime: this.$store.data.startTime.replace(/\//g, "-"),
endTime: this.$store.data.endTime.replace(/\//g, "-"),
location: {
longitude: '-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