sqed.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <title>潜山市个人创业担保贷款</title>
  9. <meta name="keywords" content="潜山市个人创业担保贷款">
  10. <meta name="description" content="潜山市个人创业担保贷款">
  11. <script src="static/js/vue.js"></script>
  12. <script type="text/javascript" src="static/js/vue-router.js"></script>
  13. <script src="static/js/index.js" type="text/javascript"></script>
  14. <script src="static/js/croods-1.3.3.js" type="text/javascript" charset="utf-8"></script>
  15. <script type="text/javascript" src="./static/js/jquery.min.js"></script>
  16. <script src="static/js/common.js"></script>
  17. <link href="static/css/common.css" rel="stylesheet" />
  18. <link href="static/css/style.css" rel="stylesheet" />
  19. <link rel="stylesheet" href="static/css/theme-chalk/index.css">
  20. <style></style>
  21. </head>
  22. <body class="dbody">
  23. <div id="app">
  24. <div id="appse">
  25. <header>
  26. <div class="dtop act" >
  27. <div class="back backimg"><img src="static/images/wback.png" /></div>
  28. <div class="tit over">申请贷款额度要求</div>
  29. </div>
  30. </header>
  31. </div>
  32. <main>
  33. <div class="tsqbox">
  34. <div class="f20 fw c16 mb10">申请额度</div>
  35. <div class="f13 fw5 c6 mb24">请如实填写您所需申请的额度,如输入额度,请输入数字,否则识别不出</div>
  36. <div class="flexc bbe6 ptb32" @click="getChose">
  37. <img src="static/images/micon.png" class="mimg flex0"/>
  38. <div class="flex1" @click.stop="getInput">
  39. <input placeholder="请选择或输入额度" class="flex1" v-model='limitval'/>
  40. </div>
  41. <img src="static/images/brimg.png" class="rimg flex0"/>
  42. <div>万元</div>
  43. </div>
  44. <div class="sqbtn" @click="getNext">下一步</div>
  45. </div>
  46. <!-- 弹框样式 -->
  47. <my-load :showflag='showflag' :datalist="datalist" @getclose="getCloseFn" @getconfirm="getConfirmFn"></my-load>
  48. <!-- <div>
  49. <div class="bgbox" v-if="showflag"></div>
  50. <div class="pickbox " :class="showflag?'show':''">
  51. <div class="top flexcc">
  52. <div class="left flex0" @click="getCloseFn">取消</div>
  53. <div class="cent"></div>
  54. <div class="right flex0" @click="getConfirmFn">确认</div>
  55. </div>
  56. <div class="box">
  57. <div :class="changevalue==ite.dictValue?'act':''" @click="getChange(ite)" v-for="(ite,idx) in datalist" :key="idx">{{ite.dictLabel}}</div>
  58. </div>
  59. </div>
  60. </div> -->
  61. </main>
  62. </div>
  63. <script src="./static/js/my_component.js"></script>
  64. <script type="text/javascript">
  65. var app = new Vue({
  66. el: '#app',
  67. data: {
  68. // base_url: 'https://qsfy.qs163.cn/prod-api',
  69. base_url: 'http://192.168.101.168:8020',
  70. value:'',
  71. showflag:false,
  72. datalist:[{dictLabel: 10,dictValue: 1},{dictLabel: 20,dictValue: 2},{dictLabel: 30,dictValue: 3},{dictLabel: 40,dictValue: 4},{dictLabel: 50,dictValue: 5}],
  73. changevalue:-1,
  74. money:"",
  75. limitval:'',//额度
  76. limitdata:'',//选择额度
  77. },
  78. created() {
  79. // this.init()
  80. },
  81. mounted() {
  82. },
  83. destroyed() {
  84. },
  85. methods: {
  86. getToken(){
  87. return window.localStorage.getItem('token')
  88. },
  89. getNext(){
  90. var val=this.limitval;
  91. var grade=1;
  92. var s=$.trim(val)
  93. if(!val||!s){
  94. this.$message({
  95. message: "请选择或输入额度",
  96. type: 'error',
  97. center: true,
  98. });
  99. return
  100. }
  101. if(Number(s)!='NaN'){
  102. if(s<10||s==10){
  103. window.location.href='one.html?grade=1&sqMoney='+s
  104. }else if(s<20||s==20){
  105. window.location.href='one.html?grade=2&sqMoney='+s
  106. }else if(s<50||s==50){
  107. window.location.href='one.html?grade=3&sqMoney='+s
  108. }else{
  109. this.$message({
  110. message: "您输入的额度超出限制",
  111. type: 'error',
  112. center: true,
  113. });
  114. return
  115. }
  116. }else{
  117. this.$message({
  118. message: "请选择或输入正确格式的额度",
  119. type: 'error',
  120. center: true,
  121. });
  122. return
  123. }
  124. // var str=this.selectDictValue(this.datalist,this.limitval)
  125. // if(str){
  126. // grade=this.limitdata.dictValue;
  127. // if(grade==1){
  128. // window.location.href='one.html?grade=1&sqMoney='+str;
  129. // }else if(grade==2){
  130. // window.location.href='one.html?grade=2&sqMoney='+str;
  131. // }else{
  132. // window.location.href='one.html?grade=3&sqMoney='+str;
  133. // }
  134. // }else{
  135. // if(Number(s)!='NaN'){
  136. // if(s<10||s==10){
  137. // window.location.href='one.html?grade=1&sqMoney='+s
  138. // }else if(s<20||s==20){
  139. // window.location.href='one.html?grade=2&sqMoney='+s
  140. // }else if(s<50||s==50){
  141. // window.location.href='one.html?grade=3&sqMoney='+s
  142. // }else{
  143. // this.$message({
  144. // message: "您输入的额度超出限制",
  145. // type: 'error',
  146. // center: true,
  147. // });
  148. // return
  149. // }
  150. // }else{
  151. // this.$message({
  152. // message: "请选择或输入正确格式的额度",
  153. // type: 'error',
  154. // center: true,
  155. // });
  156. // return
  157. // }
  158. // }
  159. },
  160. selectDictValue(datas, value){
  161. var actions = [];
  162. Object.keys(datas).some((key) => {
  163. if (datas[key].dictLabel == ('' + value)) {
  164. actions.push(datas[key].dictLabel);
  165. return true;
  166. }
  167. })
  168. return actions.join('');
  169. },
  170. init(){
  171. var that = this;
  172. var header='Bearer '+this.getToken()
  173. $.ajax({
  174. url: this.base_url + '/system/dict/data/type/application_quota',
  175. type: 'get',
  176. data: {},
  177. dataType: 'json',
  178. headers: {
  179. 'Authorization': header
  180. },
  181. success: function(res) {
  182. that.loading=false;
  183. if (res.code == 200) {
  184. that.datalist = res.data.map(v => {
  185. return {
  186. dictLabel: v.dictLabel,
  187. dictValue: Number(v.dictValue)
  188. }
  189. })
  190. } else {
  191. that.$message({
  192. message: res.msg,
  193. type: 'error',
  194. center: true,
  195. });
  196. }
  197. },
  198. fail:function(res){
  199. that.loading=false;
  200. that.$message({
  201. message: "网络请求错误",
  202. type: 'error',
  203. center: true,
  204. });
  205. }
  206. })
  207. },
  208. getChose(){
  209. this.showflag=true;
  210. },
  211. getInput(){
  212. this.showflag=false;
  213. },
  214. getCloseFn(){
  215. this.showflag=false;
  216. },
  217. getConfirmFn(e){
  218. var str=e.data
  219. this.limitval=str.dictLabel;
  220. this.limitdata=str;
  221. this.showflag=false;
  222. }
  223. }
  224. })
  225. </script>
  226. <script type="text/javascript">
  227. $(document).ready(function() {
  228. $('.backimg').click(function() {
  229. window.history.go(-1)
  230. })
  231. })
  232. </script>
  233. </body>
  234. </html>