Commit 4c6c0fd4 authored by chenqikuai's avatar chenqikuai

feat: 新增getnewestappmsg

parent beda8ee7
...@@ -46,7 +46,19 @@ export default defineComponent({ ...@@ -46,7 +46,19 @@ export default defineComponent({
setup() { setup() {
const btn = ref<HTMLButtonElement | null>(null) const btn = ref<HTMLButtonElement | null>(null)
const getNewestApp = () => {
new Bridge().getNewestApp({
status: 1, // 0代表强制更新 1代表普通更新
modifyContent: '代表本次更新的修改内容', // 代表本次更新的修改内容
versionCode: '版本号', // 版本号
versionName: '版本名称', //版本名称
downloadUrl: '安卓下载链接',
downloadUrl_ios: '下载链接' // 下载链接
})
}
onMounted(() => { onMounted(() => {
getNewestApp();
const clipboard = new ClipboardJS('.clipboardBtn'); const clipboard = new ClipboardJS('.clipboardBtn');
clipboard.on('success', function (e) { clipboard.on('success', function (e) {
Toast.success('复制成功') Toast.success('复制成功')
......
...@@ -572,4 +572,14 @@ jsBridge.prototype.bridge_gotoLiveRoom = function (params, success) { ...@@ -572,4 +572,14 @@ jsBridge.prototype.bridge_gotoLiveRoom = function (params, success) {
} }
} }
/* 传递app信息 */
jsBridge.prototype.bridge_getNewestApp = function (params, success) {
if (this.curApp == ANDROID) {
dsBridge.call('bridge_getNewestApp', params, success)
}
else if (this.curApp == IOS) {
this.callHandler('bridge_getNewestApp', params, success)
}
}
export default jsBridge; export default jsBridge;
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