2025-04-19 15:38:48 +08:00
..
2025-04-19 15:38:48 +08:00
2025-04-19 15:38:48 +08:00
2025-04-19 15:38:48 +08:00
2025-04-19 15:38:48 +08:00

使用说明

  • template
<template>
	<view class="content">
		<view style="width:100px;height:100px;border:1px solid #000000" @click="checkVersion">检测更新</view>

		<upVersion :upLoadUrl="upLoadUrl" :newVision="newVision"></upVersion>
	</view>
</template>
  • js
<script>
	import upVersion from "@/components/am-upVersion/am-upVersion.vue"
	export default {
		components: {
			upVersion
		},
		data() {
			return {
				upLoadUrl: "",
				newVision: "",
			}
		},
		onLoad() {

		},
		methods: {
			checkVersion() {
				//此处调用后端接口返回当前版本号和下载地址
				//回调赋值
				this.newVision = "13.6.5"
				this.upLoadUrl = "http://xxxx/xxxxx/xxxxx/xxxx.apk"
			},
		}
	}
</script>