<style lang="less">
	.container{
		&>view{
			margin:30rpx;
			color:#777;
			&+view{
				border-top:1rpx solid rgba(216, 216, 216, 0.2);
				padding-top:20rpx;
			}
			&>view:first-child{
				margin-bottom:5rpx;
			}
			&>.qrcode{
				margin:20rpx auto 0 auto;
				padding:20rpx;
				height:250rpx;
				width:250rpx;
				background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='102' height='102' viewBox='0 0 102 102'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;stroke:%2310c176;stroke-width:2px;%7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(-115.917 -307)'%3E%3Cpath class='a' d='M90.917,0H100V10' transform='translate(116.917 308)'/%3E%3Cpath class='a' d='M90.917,10H100V0' transform='translate(116.917 398)'/%3E%3Cpath class='a' d='M100,0H90.917V10' transform='translate(26 308)'/%3E%3Cpath class='a' d='M100,10H90.917V0' transform='translate(26 398)'/%3E%3C/g%3E%3C/svg%3E");
				background-size:100% 100%;
			}
		}
	}
</style>
<template>
	<view class="container">
		<view>
			<view>当前最新版本号</view>
			<view>{{detail.currentVersion}}</view>
		</view>
		<!-- <view>
			<view>溯源门户URL</view>
			<view style="color:#10C176;">{{detail.pcUrl}}</view>
		</view> -->
		<view>
			<view>安卓设备浏览器扫描二维码下载</view>
			<view class="qrcode">
				<uqrcode canvas-id="qrcode" :value="`${host}/ymapp/ymappversion/getLastAppVersion`" :options="{margin:0}" :size="106"/>
				<!-- <u-image width="160rpx" height="160rpx" mode="aspectFit" :src="`${host}/${detail.appQrCode}`"/> -->
			</view>
		</view>
	</view>
</template>
<script>
import request,{host} from '@/common/request'
export default {
	data(){
		return{
			host:host('default',''),
			detail:{}
		}
	},
	async onLoad(){
		var res=await request("/api/appAbout/queryAppAbout",{
			params:{type:1}
		})
		if(res.statu){
			this.detail=res.data
		}else{
			uni.showModal({
				title:"提示",
				content:res.msg||"获取详情失败！",
				showCancel:false,
			})
		}
	},
}
</script>