Skip to content

Commit

Permalink
refactor(pages): 更新 TIM 版本显示逻辑
Browse files Browse the repository at this point in the history
- 将版本显示从 'version' 更改为 'version_code' 字段
- 修改相关代码中的版本显示逻辑,确保正确显示 TIM 版本信息
  • Loading branch information
ArcticFoxPro committed Dec 19, 2024
1 parent 2b41bb6 commit d8338db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,27 +1555,27 @@ Page({
succeedExpBackFileSizeShare: `(大小:${isSuccess.fileSize} MB)`,
expVisible: false,
expBackWithUrlOnlyVisible: true,
expJsonBackTitle: `TIM ${this.data.timVersions[0].version} 正式版`,
expJsonBackTitle: `TIM ${this.data.timVersions[0].version_code} 正式版`,
expJsonBackResultTitle: "获取成功",
expBackStatus: "success",
getTimNewestLinkLoading: false
});
this.setData({
expShareText: `Android TIM ${this.data.timVersions[0].version} 正式版${this.data.succeedExpBackFileSizeShare}\n\n下载地址:${url}`
expShareText: `Android TIM ${this.data.timVersions[0].version_code} 正式版${this.data.succeedExpBackFileSizeShare}\n\n下载地址:${url}`
})
} else {
this.setData({
successExpBackLink: url,
succeedExpBackFileSizeShare: "",
expVisible: false,
expBackWithUrlOnlyVisible: true,
expJsonBackTitle: `TIM ${this.data.timVersions[0].version} 正式版`,
expJsonBackTitle: `TIM ${this.data.timVersions[0].version_code} 正式版`,
expJsonBackResultTitle: "获取成功",
expBackStatus: "success",
getTimNewestLinkLoading: false
});
this.setData({
expShareText: `Android TIM ${this.data.timVersions[0].version} 正式版\n\n下载地址:${url}`
expShareText: `Android TIM ${this.data.timVersions[0].version_code} 正式版\n\n下载地址:${url}`
})
}
}).catch(err => {
Expand Down

0 comments on commit d8338db

Please sign in to comment.