<!--pages/loans/loans.wxml-->
<import src="../../module/header.wxml"/>
<template 
	is="header"
	data="{{title:'贷款计算器',headerheight:headerheight,hasback:true}}"
/>
<page-scroll 
  className="content"
  styleSheet="height:{{contentheight}}px;"
  scroll-y="{{selectbar==''?'true':'false'}}"
>
	<view class="myloan_con_c">
		<view class="myloan_con_i">
			<view class="myloan_con_it">
				车价<view class="myloan_con_itu">(万)</view>
			</view>
			<view class="myloan_con_linec">
				<carslider
					min="50"
					max="260"
					show-value="true"
					splitnum="7"
					unit="万"
					bind:changeend="getPrice"
				>
					
				</carslider>
			</view>
		</view>
		<view class="myloan_con_i">
			<view class="myloan_con_it">
				首付
			</view>
			<view class="myloan_con_linec">
				<carslider
					min="0"
					max="60"
					show-value="true"
					splitnum="6"
					unit="%"
					bind:changeend="getFirstPay"
					splitvalue="10"
				>
					
				</carslider>
			</view>
		</view>
		<view class="myloan_con_i">
			<view class="myloan_con_it">
				贷款期数
			</view>
			<view class="myloan_con_linec">
				<carslider
					min="12"
					max="36"
					show-value="true"
					splitnum="2"
					unit="个月"
					splitvalue="12"
					bind:changeend="getTime"
				>
					
				</carslider>
			</view>
		</view>
	</view>
	<view class="myloan_result_c">
		<image class="myloan_result_bg" src="../../img/myloan.png"/>
		<view class="myloan_result">
			<view class="myloan_result_i">
				<view>车价</view>
				<view class="myloan_result_iv">¥{{price}}万</view>
			</view>
			<view class="myloan_result_i">
				<view>首付成数</view>
				<view class="myloan_result_iv">{{scalename}}成</view>
			</view>
			<view class="myloan_result_i">
				<view>首付款</view>
				<view class="myloan_result_iv">{{firstpay/10000}}万</view>
			</view>
			<view class="myloan_result_i">
				<view>月供</view>
				<view class="myloan_result_iv">{{premonthpay}}元</view>
			</view>
			<view class="myloan_result_i">
				<view>分期</view>
				<view class="myloan_result_iv">{{time}}期</view>
			</view>

			<view bindtap="toBuy" class="myloan_result_bt">
				去买车
			</view>
		</view>
	</view>
	<view class="myloan_condition">
		<!-- <view>首付条件：</view>
		<view>一成 需芝麻信用分600分以上，需有房产证明；</view>
		<view>二成 需芝麻信用分550分以上</view>
		<view>三成 需芝麻信用分450分以上</view> -->
		<view class='myloan_condition_po'>※本页面试算结果仅供参考，实际结果以最终复批结果为准</view>
	</view>
</page-scroll>