<template>
		<view class="" style="margin:0  20upx 0 20upx;padding-top: 50upx;">
			<view class="" style="width: 100%;text-align: center;font-weight: 700;font-size: 32upx;margin-bottom: 20upx;">
				用户注册协议和隐私政策
			</view>
			<view class="" v-html="$i18n.locale=='zh'?'<p>【审慎阅读】</p> <p>您在申请注册流程中点击同意前，应当认真阅读以下协议。请您务必审慎阅读、充分理解协议中相关条款内容，其中包括：</p><p>1. 与您约定免除或限制责任的条款；</p><p>2. 与您约定法律适用和管辖的条款；</p><p>3. 其他以粗体下划线标识的重要条款。</p><p>如您对协议有任何疑问，可向平台客服咨询。</p><p>【特别提示】</p><p>当您按照注册页面提示填写信息、阅读并同意协议且完成全部注册程序后，即表示您已充分阅读、理解并接受协议的全部内容。如您因平台服务与全球能源互联网发展合作平台发生争议的，适用《全球能源互联网发展合作平台用户协议》和《全球能源互联网发展合作平台隐私政策》处理。如您在使用平台服务过程中与其他用户发生争议的，  依您与其他用户达成的协议处理。</p>  <p>阅读协议的过程中，如果您不同意相关协议或其中任何条款约定，您应立即停止注册程序。</p>':'<p>【Read carefully】</p> <p>You should carefully read the following agreement before you click agree in the registration process. Please read carefully and fully understand the relevant clauses in the agreement, including:</p><p>1. Agreement with you on terms of exemption or limitation of liability;</p><p>2. Agree with you on the terms of application of law and jurisdiction;</p><p>3. Other important terms marked with bold underline.</p><p>If you have any questions about the agreement, you can consult the platform customer service.</p><p>【Special Note】</p><p>When you follow the instructions on the registration page to fill in the information, read and agree to the agreement, and complete all the registration procedures, it means that you have fully read, understood and accepted all the contents of the agreement. If you have a dispute with World of  Energy Interconnection Development and Cooperation Platform due to platform services, the 《User Agreement of The World of Energy Interconnection Development and Cooperation Platform》 and the 《Privacy Policy of the World of  Energy Interconnection Development and Cooperation Platform》 shall apply. If you have a dispute with other users during the use of platform services, it will be handled inaccordance with the agreement reached between you and other users.</p>  <p>In the process of reading the agreement, if you do not agree to the relevant agreement or any of itsterms, you should immediately stop the registration process.</p>'">	
			</view>
			 <p>
				1.
				<text
				  style="color: #0c27ff;"
				  class="cursor"
				  @click="open(1)"
				>《{{$i18n.locale=='en'?'User Agreement World of Energy Interconnection Development and Cooperation Platform':'全球能源互联网发展合作平台用户协议'}}》</text>
			  </p>
			  <p>
				2.
				<text
				  style="color: #0c27ff;"
				  class="cursor"
				  @click="open(2)"
				>《{{$i18n.locale=='en'?'Privacy Policy World of Energy Interconnection Development and Cooperation Platform':'全球能源互联网发展合作平台隐私政策'}}》</text>
			  </p>
			<u-button type="warning" @click="back" style="margin: 40upx 0;">不同意</u-button>
			<u-button type="primary" @click="toView('/pages/index/index')">同意</u-button>
			 
		</view>
		
</template>

<script>
	export default {
		data() {
			return {
				innerVisible2:false,
				allUrl:''
			}
		},
		onLoad() {
			 
		},
		methods: {
			// 关闭
			back(){
				// #ifdef APP-PLUS
				 if (plus.os.name.toLowerCase() === 'android') {
					 plus.runtime.quit();
				 }
				 else{ 
					 const threadClass = plus.ios.importClass("NSThread");
					 const mainThread = plus.ios.invoke(threadClass, "mainThread");
					 plus.ios.invoke(mainThread, "exit");
				 }
				// #endif
			},
			open(num){
				let url = null;
				if(num == 1){
					url = this.$i18n.locale == 'zh'?
						'api/file/pub/PolicyAgreement/privacyPolicyZH.doc':
							'api/file/PolicyAgreement/def/privacyPolicyEN.doc'
				}else {
					url = this.$i18n.locale == 'zh'?
						'api/file/pub/PolicyAgreement/userAgreementZH.doc':
							'api/file/pub/PolicyAgreement/userAgreementEN.doc'
				}
				uni.navigateTo({
				  url: '/pages/public/pdf?links=' + url,
				});
				
			},
			toView(route){
				try {
					uni.setStorageSync('stroage', true);
				} catch (e) {
				};
				uni.navigateBack();
			}
		}
	}
</script>

<style>
page {
	background-color: #fff;
}
</style>
