Keine Beschreibung

borrow-money02.html 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="yes" name="apple-mobile-web-app-capable">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  7. <title>借款</title>
  8. <link rel="stylesheet" type="text/css" href="../common/reset.css"/>
  9. <link rel="stylesheet" type="text/css" href="./css/borrow-money02.css?v=1"/>
  10. <script type="text/javascript" src="../common/jquery-2.1.0.js"></script>
  11. <script type="text/javascript">
  12. var viewport = document.querySelector("meta[name=viewport]")
  13. if (window.devicePixelRatio == 1) {
  14. viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no')
  15. }
  16. if (window.devicePixelRatio == 2) {
  17. viewport.setAttribute('content', 'width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no')
  18. }
  19. if (window.devicePixelRatio == 3) {
  20. viewport.setAttribute('content', 'width=device-width, initial-scale=0.333333333, maximum-scale=0.333333333, minimum-scale=0.333333333, user-scalable=no')
  21. }
  22. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  23. window.onresize = function(){
  24. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <div class="container">
  30. <div class="top_hint"><span>i</span>警惕“兼职刷单”、“假冒客服退款”、“转账到安全账户“等骗术!</div>
  31. <div class="borrow">
  32. <p>借多少</p>
  33. <div class="month borrow_money">
  34. <div class="active" data-money="5千">5千</div>
  35. <div data-money="5万">5万</div>
  36. <div data-money="10万">10万</div>
  37. </div>
  38. </div>
  39. <div class="money">
  40. <div><span>¥</span><em></em></div>
  41. <p class="money_hint">可提前还款,利息按天计算,免手续费</p>
  42. </div>
  43. <!-- 借多久 -->
  44. <div class="how_borrow">
  45. <p class="how_borrow_title">借多久</p>
  46. <div class="month borrow_month">
  47. <div class="active" data-month="3月">3个月</div>
  48. <div data-month="6月">6个月</div>
  49. <div data-month="12月">12个月</div>
  50. </div>
  51. </div>
  52. <!-- 怎么还 -->
  53. <ul class="how_return">
  54. <li>
  55. <div class="left">怎么还</div>
  56. <div class="right">
  57. <p>先息后本</p>
  58. <p>先还利息,到期还本金</p>
  59. </div>
  60. </li>
  61. <li>
  62. <div class="left">还款计划</div>
  63. <div class="right repayment_Date">
  64. <p>-</p>
  65. </div>
  66. </li>
  67. <li>
  68. <div class="left">总利息</div>
  69. <div class="right total_interest">
  70. <p>131.60</p>
  71. </div>
  72. </li>
  73. <li>
  74. <div class="left">收款账户</div>
  75. <div class="right">
  76. <p>6214830193746285</p>
  77. </div>
  78. </li>
  79. </ul>
  80. <button class="go_borrow_money" onclick="go_borrow_money()">去借钱</button>
  81. </div>
  82. <!-- 费用详情 -->
  83. <div class="cost_detail">
  84. <div class="content">
  85. <div class="top">
  86. <div></div>
  87. </div>
  88. <div class="detail">
  89. <div class="detail_con">
  90. <h3>费用详情</h3>
  91. <!-- <p class="borrowing_costs_title">借款费用</p> -->
  92. <ul class="borrowing_costs">
  93. <li><span>借款总额</span><span class="total_loan_money">2100.00元</span></li>
  94. <li><span>到账金额</span><span class="total_loan_money">2100.00元</span></li>
  95. <li><span>借款期限</span><span class="total_loan_month">3个月</span></li>
  96. <li><span>年利率</span><span>1.01%x12个月</span></li>
  97. <li><span>每期应还</span><span class="monthly_money">2100.00元</span></li>
  98. <li><span>收款账户</span><span class="">6214830193746285</span></li>
  99. </ul>
  100. <ul class="borrowing">
  101. <li><span>含服务费</span><span>10元</span></li>
  102. <li><span>含担保责任金</span><span>20元</span></li>
  103. <li><span>含担保服务费</span><span>28元</span></li>
  104. </ul>
  105. <p class="detail_con_hint">违约风险提示</p>
  106. <p class="detail_con_hint">以上数据均根据选择的金额及期数计算得出。每期还款金额仅供参考,具体费用说明以最终协议为准。</p>
  107. <p class="detail_con_hint">违约后果:如您违反合同约定,未按期足额还款,服务方有权自行或委托第三方代理人出借</p>
  108. </div>
  109. <button class='cost_detail_yes' onclick="go_identity_authentication()">确定</button>
  110. </div>
  111. </div>
  112. </div>
  113. <!--提示弹框-->
  114. <div class="alert-info" style="display: none;">
  115. <!-- tip提示,2s后消失 -->
  116. <p></p>
  117. </div>
  118. </body>
  119. </html>
  120. <script>
  121. var data_json ={
  122. "5千_3月": {"loan_amount":"5000","loan_month":"3","total_interest":"8.42","monthly_money":"1669.47"},
  123. "5千_6月": {"loan_amount":"5000","loan_month":"6","total_interest":"14.74","monthly_money":"835.79"},
  124. "5千_12月": {"loan_amount":"5000","loan_month":"12","total_interest":"27.4","monthly_money":"418.95"},
  125. "5万_3月": {"loan_amount":"50000","loan_month":"3","total_interest":"84.19","monthly_money":"16694.73"},
  126. "5万_6月": {"loan_amount":"50000","loan_month":"6","total_interest":"147.39","monthly_money":"8357.90"},
  127. "5万_12月": {"loan_amount":"50000","loan_month":"12","total_interest":"273.96","monthly_money":"4189.50"},
  128. "10万_3月": {"loan_amount":"100000","loan_month":"3","total_interest":"168.38","monthly_money":"33389.46"},
  129. "10万_6月": {"loan_amount":"100000","loan_month":"6","total_interest":"294.79","monthly_money":"16715.80"},
  130. "10万_12月": {"loan_amount":"100000","loan_month":"12","total_interest":"547.93","monthly_money":"8378.99"}
  131. }
  132. var loan_amount,loan_month
  133. $().ready(function () {
  134. clickEvent()
  135. init();
  136. })
  137. function clickEvent () {
  138. $(".borrow_month div").click(function () {
  139. $(".borrow_month div").removeClass('active')
  140. $(this).addClass('active');
  141. init()
  142. })
  143. $(".borrow_money div").click(function () {
  144. $(".borrow_money div").removeClass('active')
  145. $(this).addClass('active');
  146. init()
  147. })
  148. }
  149. function init () {
  150. loan_amount = $(".borrow_money .active").attr('data-money');//借款金额
  151. loan_month = $(".borrow_month .active").attr('data-month');//借款期限
  152. $(".money em").html(data_json[loan_amount+'_'+loan_month].loan_amount);//借款金额
  153. var today = new Date().getTime()
  154. var lastDay = today + 60 * 60 * 1000 * 24 * 30 //获取30天后的日期
  155. $('.repayment_Date p').html('首期'+ format(lastDay) + ' 应还<span>' + ((data_json[loan_amount+'_'+loan_month].loan_amount)/(data_json[loan_amount+'_'+loan_month].loan_month*30)).toFixed(2) + '</span>')
  156. $(".total_interest p").html(data_json[loan_amount+'_'+loan_month].total_interest)//总利息
  157. $(".total_loan_money").html(data_json[loan_amount+'_'+loan_month].loan_amount + '元')
  158. $(".total_loan_month").html(data_json[loan_amount+'_'+loan_month].loan_month + '个月')
  159. $(".monthly_money").html(data_json[loan_amount+'_'+loan_month].monthly_money)
  160. }
  161. function go_borrow_money () {
  162. // 去借款
  163. $(".cost_detail").show();
  164. }
  165. function go_identity_authentication () {
  166. //去身份证页面
  167. window.location.href = './InfoAuthentication.html?type=2'
  168. }
  169. function format (shijianchuo) {
  170. //shijianchuo是整数,否则要parseInt转换
  171. var time = new Date(shijianchuo);
  172. var y = time.getFullYear();
  173. var m = time.getMonth() + 1;
  174. var d = time.getDate();
  175. var h = time.getHours();
  176. var mm = time.getMinutes();
  177. var s = time.getSeconds();
  178. return m + '月' + d + '日';
  179. }
  180. </script>