about.vue 1.9 KB
Newer Older
芊里 已提交
1
<template>
L
123  
linju 已提交
2 3 4 5 6
	<view class="aboutus">
		<view class="logo">
			<image class="logoImg" src="@/static/logo.png"></image>
			<text class="tip appName">{{aboutus.appName}}</text>
			<text class="tip" style="font-size:24upx;">Version {{version}}</text>
芊里 已提交
7
		</view>
L
123  
linju 已提交
8 9 10 11 12 13
		<view class="copyright">
			<text class="agreement" @click="navigateTo(aboutus.agreement.privacy,'用户服务协议')">《用户服务协议》</text>
			<text class="hint"></text>
			<text class="agreement" @click="navigateTo(aboutus.agreement.business,'隐私政策')">《隐私政策》</text>
			<text class="hint">Copyright © {{year}}</text>
			<text class="hint">{{aboutus.company}}</text>
芊里 已提交
14 15 16 17
		</view>
	</view>
</template>
<script>
L
123  
linju 已提交
18
import baseappConfig from '@/baseapp.config.json';
芊里 已提交
19 20 21
	export default {
		onLoad() {
			// #ifdef APP-PLUS
L
123  
linju 已提交
22
			this.version = plus.runtime.version
芊里 已提交
23 24
			// #endif
		},
L
123  
linju 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
		data() {
			return {
				version:"V1.0.0",
				year:"2020",
				aboutus:{}
			};
		},
		created() {
			this.aboutus = baseappConfig.aboutus
			this.year = (new Date).getFullYear()
		},
		methods:{
			navigateTo(url,title){
				uni.navigateTo({
					url: '/pages/common/webview/webview?url='+url+'&title='+title,
					success: res => {},
					fail: () => {},
					complete: () => {}
芊里 已提交
43 44 45 46 47
				});
			}
		}
	}
</script>
L
123  
linju 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
<style lang="scss" scoped>
.aboutus {
	width: 750upx;
	flex-direction: column;
}
.logo {
	width: 750upx;
	position: fixed;
	left:0;
	top:100px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.logoImg{
	margin-bottom: 10upx;
	width:160upx;
	height:160upx;
	border-radius: 15px;
}
.appName{
	margin-top: 20px;
	margin-bottom:5px;
	font-size:42rpx;
	font-weight: 500;
}
.copyright {
	width: 750upx;
	font-size:32rpx;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	bottom:20px;
	left: 0;
	position: fixed;
}
.agreement {
	color:#2285ff;
	font-size:26rpx;
}
.hint {
	color:#999999;
	font-size:26rpx;
}
</style>