<template>
	<view class="all">
		<u-navbar title="我要加盟"></u-navbar>
	
		<view class="main">
			<view class="main-content">
				<p class="title">适合对象</p>
				<view class="text">
					已经在经营充电桩业务的商家，可以申请加入“<text style="color: #e14173;">51充电联盟</text>”。
				</view>
				<p class="title">平台能为您提供：</p>
				<view class="text-box">
					<p>1.便捷的找桩、充电服务，提升用户体验。</p>
					<p>2.获得更多的用户资源和运营支持，提高市场竞争力。</p>
					<p>3.良好的平台背书,提高公信力</p>
				</view>
			</view>
			<view class="application-form ">
				<view class="name">
					<p>申请人姓名</p>
					<u-input placeholder=""></u-input>
				</view>
				<view class="tel">
					<p>联系电话</p>
					<u-input placeholder=""></u-input>
				</view>
				<view class="place">
					<p>自有电桩地点</p>
					<textarea class="textarea" placeholder="填写详细位置"></textarea>
				</view>
				<view class="type">
					<p>场地类型</p>
					<view class="checkbox">
							<view class="">
									<u-checkbox-group @change="checkboxGroupChange" active-color="#00B962">
										<u-checkbox 
											@change="checkboxChange" 
											v-model="item.checked" 
											v-for="(item, index) in typeList" :key="index" 
											:name="item.name"
										>{{item.name}}</u-checkbox>
									</u-checkbox-group>
									
								</view>
						</view>
				</view>
				<view class="want">
					<p>自由电桩数量</p>
					<view class="radio-box">
						
									<view class="">
										<u-radio-group v-model="value" @change="radioGroupChange" active-color="#00B962">
											<u-radio 
												@change="radioChange" 
												v-for="(item, index) in numlist" :key="index" 
												:name="item.name"
												:disabled="item.disabled"
											>
												{{item.name}}
											</u-radio>
										</u-radio-group>
									</view>
						</view>
				</view>
			      <view class="hint">
			      	*请保持手机畅通，我们将安排专人与您联系。您也可以拨打 
					 <text class="tel-num">400-8899-619</text>查询申请审核进度！
			      </view>
				 <u-button type="warning">提交申请</u-button>
			</view>


		</view>

	</view>
</template>

<script>
	export default{
		data() {
				return {
					elderMode:false,
					typeList: [
									{
										name: '电动汽车充电桩（快充）',
										checked: false,
										disabled: false
									},
									{
										name: '电动汽车充电桩（慢充）',
										checked: false,
										disabled: false
									},
									{
										name: '电动摩托/自行车充电桩',
										checked: false,
										disabled: false
									}
								],
								numlist: [
												{
													name: '5台以内',
													disabled: false
												},
												{
													name: '5~10台',
													disabled: false
												},
												{
													name: '10台以上',
													disabled: false
												}
											],
											// u-radio-group的v-model绑定的值如果设置为某个radio的name，就会被默认选中
											value: 'orange',
							
								
				};
				
			},
			methods:{
				theme(type) {
					
				  if(type == 'elder')	
				  {
					document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
					 let data = {
					 	"font-size":'32rpx',
						"font-weight":'bold!important'
					 	};
					 this.titleStyle = data;
				  }
				  else
				  {
					document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
					 let data = {
					 	"font-size":'28rpx'
					 	};
					 this.titleStyle = data;
				  } 
				}
			},
			onReady(){
				this.elderMode = this.carhelp.get('getElderModeClass')  == '长辈模式';
				if(this.elderMode)
					this.theme('elder')
				else
					this.theme('standard')
			}
	}
</script>

<style>
	page {
		
		background:url(../../static/img/earth_@2.png) no-repeat top center #00b962 ;
		background-size: 100%;
		background-position: 50% 4%
	}
</style>

<style lang="scss" scoped>
	@import "@/_theme.scss";
	.all{
		@include themeify{
			font-size: themed('font-size1');
		}
	}
	.main {
		width: 100%;
	    margin-top: 131px;
		@include themeify{
 			line-height: themed('font-size5');
		}
/*		line-height: 20px;*/
		border-radius: 16px;
	
		padding: 0 28px 85px;

		.main-content {
			padding:24px 24px;
			background-color: #fff;
            border-radius: 16px;
			.title{
/*				height: 18px;*/
				color: rgba(16, 16, 16, 100);
				@include themeify{
					font-size: themed('font-size4');
					height: themed('font-size4');
				}
/*				font-size: 18px;*/
				font-weight: 600;
				
			}
			.text{
				margin-top: 12px;
				margin-bottom: 24px;
			}
			.text-box{
				margin-top: 12px;
				p{
					margin-top: 10px;
					@include themeify{
						line-height: themed('font-size7');
					}
/*					line-height: 24px;*/
					text-align: justify;
				}
			}
		}
		.application-form{
			background-color: #fff;
			 border-radius: 16px;
			 margin-top: 24px;
			  padding: 24px;
			  .u-input{
				  border-radius: 50px;
				  background-color: rgba(232, 236, 234, 100);
				  margin-top: 12px;
				
			  }
			  /deep/.uni-input-input{
				  margin-left: 10px;
			  }
			  p{
				  @include themeify{
				  	font-size: themed('font-size4');
				  	line-height: themed('font-size4');
				  	height: themed('font-size4');
				  }
/*			  				  height: 18px;
							  line-height: 18px;*/
			  				  color: rgba(16, 16, 16, 100);
/*			  				  font-size: 18px;*/
			  }
			  
			  .tel,.place,.type,.want{
				  margin-top: 24px;
			  }
			  .textarea{
				  width: 72.2vw;
				  height: 100px;
				  border-radius: 22px;
				  background-color: rgba(232, 236, 234, 100);
				   margin-top: 12px;
				 .uni-textarea-placeholder{
					 padding: 12px;
				 }
				 /deep/.uni-textarea-textarea{
					 margin: 10px;
				 }
			  }
			  .type{
			  	.checkbox{
			  		margin-top: 12px;
			  		/deep/.u-checkbox{
			  			
			  			margin-top: 4px;
			  		}
			  	}
			  	
			  }
			  .want{
				
				  .radio-box{
					  margin-top: 12px;
				  }
			  /deep/.u-radio{
			  	width: 50% !important;
				margin-top: 4px;
			  }
			  }
			  .hint{
			  	margin-top: 12px;
			  	@include themeify{
			  		font-size: themed('font-size2');
			  		line-height: themed('font-size5'); 
			  	}
/*			  	font-size: 14px;
			  	line-height: 20px;*/
			  	text-align: justify;
			  	.tel-num{
			  		color: #9FC7FF;
			  	}
			  }
			  /deep/.u-btn{
			  	border-radius: 50px ;
			  	margin-top: 24px;
			  }
		}

	}
</style>
