<template>
	<view class="">
		<navigation :showBack="true" :bgnum="true">
			Node settings
		</navigation>
		<view class="main">
			<view class="main_con">
   
		
		 	
	
			 <view class="item flex" v-for="(item, index) in list" :key="index" @click="handove('en')">
			<view class="text1">
			 {{item.lang}}
			</view>
			<view class="text2">
			 {{item.name}}
			 <image src="../../../../static/tongyonh/chevron_right_24px.png" mode="aspectFit" class="img1"></image>
			</view>
						 </view>
		
	<view class="select_btn">
		Select
	</view>
		</view>
			</view>
	</view>
	
</template>

<script>
	import cont from "@/components/navigation/navigation.vue"
	export default {
		data() {
			return {
			checked: false,
					list: [
									{
										lang:'BTC',
										disabled: false,
										name:"https://bitcoin.maiziqia..."
									},
									{
										lang:'Ethereum',
										disabled: false,
										name:"https://bitcoin.maiziqia..."
									},
									{
										lang:'Binance Smart Chain',
										disabled: false,
										name:"https://bitcoin.maiziqia..."
									},
								
								],
								// u-radio-group的v-model绑定的值如果设置为某个radio的name，就会被默认选中
								value: '',
			};
		},
		
		methods: {
				handove(item){
					// if(item){
						
					// }
							 this.$i18n.locale = item;
							 // #ifdef APP-PLUS
							 plus.storage.setItem('locale', item);
							 // #endif
							 // #ifdef H5
							 localStorage.setItem('locale', item);
							 // #endif
						},
				radioChange(e) {
						// console.log(e);
					},
					// 选中任一radio时，由radio-group触发
					radioGroupChange(e) {
						// console.log(e);
					},
		change(status) {
						// console.log(status);
					},
		},
		computed: {
		   i18n() {
		    return this.$t('index')
		   }
		   },
	};
</script>
<style scoped>
page {
		background: #FAFAFA;
	}
</style>

<style>

	@import './index.css';

</style>
