图片预览,版本更新的版本号调整
This commit is contained in:
4
App.vue
4
App.vue
@@ -7,12 +7,12 @@
|
|||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
im.initIm('lmxuhwaglu76d')
|
im.initIm('lmxuhwaglu76d')
|
||||||
return
|
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
// 获取系统版本号
|
// 获取系统版本号
|
||||||
getVersions({
|
getVersions({
|
||||||
platform: plus.os.name,
|
platform: plus.os.name,
|
||||||
version: plus.runtime.versionCode
|
version: plus.runtime.version
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.update) {
|
if (res.update) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name" : "ZH-HEALTH",
|
"name" : "ZH-HEALTH",
|
||||||
"appid" : "__UNI__C29473D",
|
"appid" : "__UNI__C29473D",
|
||||||
"description" : "ZH-HEALTH,您手上的健康管理专家",
|
"description" : "ZH-HEALTH,您手上的健康管理专家",
|
||||||
"versionName" : "1.0.13",
|
"versionName" : "1.0.15",
|
||||||
"versionCode" : 113,
|
"versionCode" : 113,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|||||||
@@ -45,44 +45,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
previewImage() {
|
showImage(path) {
|
||||||
if (this.content.local) {
|
uni.previewImage({
|
||||||
uni.previewImage({
|
urls: [
|
||||||
urls: [
|
path
|
||||||
this.content.local
|
]
|
||||||
],
|
})
|
||||||
success: (e) => {
|
},
|
||||||
console.log(e);
|
previewImage() {
|
||||||
},
|
if (this.content.local && this.content.local.indexOf('///data/user/') < 0) {
|
||||||
fail: (er) => {
|
this.showImage(this.content.local)
|
||||||
console.log(er);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
RongIMLib.downloadMediaMessage(this.messageId, {
|
RongIMLib.downloadMediaMessage(this.message.messageId, {
|
||||||
success: (path) => {
|
success: (path) => {
|
||||||
this.content.local = path
|
this.content.local = path
|
||||||
uni.previewImage({
|
this.showImage(path)
|
||||||
urls: [
|
},
|
||||||
path
|
error: (errorCode, messageId) => {
|
||||||
],
|
uni.showToast({
|
||||||
success: (e) => {
|
icon: 'none',
|
||||||
console.log(e);
|
title: errorCode
|
||||||
},
|
|
||||||
fail: (er) => {
|
|
||||||
console.log(er);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
|
||||||
progress: (progress, messageId) => {
|
|
||||||
console.log('progress', progress);
|
|
||||||
},
|
|
||||||
cancel: (messageId) => {
|
|
||||||
console.log('cancel', messageId);
|
|
||||||
},
|
|
||||||
error: (errorCode, messageId) => {
|
|
||||||
console.log('errorCode', errorCode);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user