uni-agreements.vue 839 字节
Newer Older
DCloud_JSON's avatar
DCloud_JSON 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<template>
	<view class="root">
		<text>登陆即表示同意</text>
		<template v-for="(agreement,index) in agreements">
			<text class="agreement" @click="navigateTo(agreement)">{{agreement.title}}</text>
			<text class="hint" v-if="agreements.length-1>index"></text>
		</template>
	</view>
</template>

<script>
	export default {
		name:"uni-agreements",
		computed:{
			agreements(){
DCloud_JSON's avatar
DCloud_JSON 已提交
16
				return getApp().globalData.config.about.agreements
DCloud_JSON's avatar
DCloud_JSON 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
			}
		},
		methods:{
			navigateTo({url,title}){
				uni.navigateTo({
					url: '/pages/common/webview/webview?url='+url+'&title='+title,
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>
.root{
	flex-direction: row;
	font-size: 28rpx;
	color: #8a8f8b;
}
.agreement{
	color:#04498c;
}
</style>