apply.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. <template>
  2. <view class="total-page page-env-160 page-box task-bg">
  3. <Nav :title="title" :genre="4" is_fixed :opacity="scrollTop" :fixedHeight="fixedHeight"
  4. :navsHeight="fixedHeight" :bgHeight="fixedHeight">
  5. <!-- 步鄹条start -->
  6. <view class="task-tabs" :style="{top:`${$tools.topHeight()}px`}">
  7. <view class="row-justify-sb m-tb20 step-content">
  8. <view class="column-c" style="text-align: center;">
  9. <image class="wh-45 m-b16" :src="`/static/img/information/${step === 1?'double':'correct'}.png`"
  10. mode="aspectFill"></image>
  11. <text class="size-24"
  12. :class="step === 1?'color-0FB160 sys-weight-600':'sys-weight-400'">基本信息</text>
  13. </view>
  14. <view class="line"></view>
  15. <view class="column-c justify-center">
  16. <image class="wh-45 m-b16" :src="`/static/img/information/${stepTwo[step-1]}.png`"
  17. mode="aspectFill"></image>
  18. <text class="size-24"
  19. :class="step === 2?'color-0FB160 sys-weight-600':'sys-weight-400'">抵押信息</text>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 步鄹条end -->
  24. </Nav>
  25. <view class="" :style="[{top:`${$tools.topHeight() + fixedHeight}px`}]">
  26. <!-- 基本信息start -->
  27. <view class="m-t20 m-lr30 text-color-12" v-if="step === 1">
  28. <view class="sys-background-fff r-20 p-lr30 p-t30">
  29. <text class="size-30 sys-weight-600'">基本信息</text>
  30. <view class="m-t20">
  31. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  32. <view class="wh-text"><text></text>贷款额度</view>
  33. <view class="row-c flex">
  34. <input class="wh-input sys-size-28 text-color-12 m-lr20 flex"
  35. placeholder-class="sys-size-28 text-color-999 sys-weight-400" placeholder="请输入"
  36. v-model="inputValue"></input>
  37. </view>
  38. <text>万元</text>
  39. </view>
  40. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  41. <view class="wh-text"><text></text>是否涉农</view>
  42. <view class="row-c">
  43. <view class="row-c radiu-item m-l20"
  44. :class="{'active-radiu':formData.is_farming === item.value}"
  45. v-for="(item,index) in farming" :key="index" @click="onSetFarming(item.value)">
  46. <image class="wh-30 m-r20"
  47. :src="formData.is_farming == item.value?'/static/img/information/correct.png':'/static/img/information/error.png'"
  48. mode="aspectFill"></image>
  49. <text>{{item.text}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. <WhInput :name="'贷款形式'" disabled is_select></WhInput>
  54. <WhInput :name="'贷款类别'" disabled is_select></WhInput>
  55. <WhInput :name="'投向行业'" disabled is_select></WhInput>
  56. <WhInput :name="'企业类似'" disabled is_select></WhInput>
  57. <view class="row-justify-sb center p-tb30 size-28">
  58. <view class="wh-text"><text></text>材料费</view>
  59. <view class="row-c">
  60. <view class="row-c radiu-item m-l20"
  61. :class="{'active-radiu':formData.is_materials === item.value}"
  62. v-for="(item,index) in materials" :key="index" @click="onSetMaterials(item.value)">
  63. <image class="wh-30 m-r20"
  64. :src="formData.is_materials === item.value?'/static/img/information/correct.png':'/static/img/information/error.png'"
  65. mode="aspectFill"></image>
  66. <text>{{item.text}}</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 基本信息end -->
  74. <!-- 抵押信息start -->
  75. <view id="apply-info" class="m-t20 m-lr30 text-color-12" v-if="step === 2">
  76. <view :id="`info${index}`" class="sys-background-fff r-20 p-20 m-b20" v-for="(item,index) in applyList"
  77. :key="index">
  78. <view class="sys-from-background-color p-20 r-20 size-26" v-if="item.is_edit">
  79. <view class="">
  80. <view class="row-justify-sb center">
  81. <text class="size-28 sys-weight-600">抵押信息({{index+1}})</text>
  82. <view class="row-c sys-background-fff r-100 p-lr30 p-tb10">
  83. <image class="wh-30" src="/static/img/information/edit.png" mode="aspectFill"
  84. @click="onEditInfo(item)"></image>
  85. <view class="title-line m-lr20"></view>
  86. <image class="wh-30" src="/static/img/information/delete.png" mode="aspectFill"
  87. @click="onDeleteInfo(index)">
  88. </image>
  89. </view>
  90. </view>
  91. <view class="row-c p-tb30">
  92. <view class="text-color-666"><text></text>申请类型:</view>
  93. <text>抵押</text>
  94. </view>
  95. </view>
  96. <view class="">
  97. <text class="size-28 sys-weight-600">绑定资产信息</text>
  98. <view class="row-c p-tb30">
  99. <view class="text-color-666"><text></text>绑定资产:</view>
  100. <text>绑定资产</text>
  101. </view>
  102. </view>
  103. <view class="">
  104. <text class="size-28 sys-weight-600">还款账户信息</text>
  105. <view class="row-c p-tb30">
  106. <view class="text-color-666"><text></text>还款金额:</view>
  107. <text>100万</text>
  108. </view>
  109. <view class="row-c ">
  110. <view class="text-color-666"><text></text>银行卡号:</view>
  111. <text>4576476465498790878</text>
  112. </view>
  113. <view class="row-c p-tb30">
  114. <view class="text-color-666"><text></text>所属银行:</view>
  115. <text>中国银行</text>
  116. </view>
  117. </view>
  118. <view class="">
  119. <text class="size-28 sys-weight-600">放款账户信息</text>
  120. <view class="row-c p-tb30">
  121. <view class="text-color-666"><text></text>批复金额:</view>
  122. <text>100万</text>
  123. </view>
  124. <view class="row-c ">
  125. <view class="text-color-666"><text></text>银行卡号:</view>
  126. <text>4576476465498790878</text>
  127. </view>
  128. <view class="row-c p-t30">
  129. <view class="text-color-666"><text></text>所属银行:</view>
  130. <text>中国银行</text>
  131. </view>
  132. </view>
  133. </view>
  134. <view v-else>
  135. <view class="">
  136. <text class="size-30 sys-weight-600'">抵押信息{{index+1}}</text>
  137. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  138. <view class="wh-text"><text></text>申请类型</view>
  139. <view class="row-c">
  140. <view class="row-c radiu-item m-l20"
  141. :class="{'active-radiu':formData.is_materials === item.value}"
  142. v-for="(item,index) in impawn" :key="index" @click="onSetMaterials(item.value)">
  143. <image class="wh-30 m-r20"
  144. :src="formData.is_materials === item.value?'/static/img/information/correct.png':'/static/img/information/error.png'"
  145. mode="aspectFill"></image>
  146. <text>{{item.text}}</text>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="m-t30">
  152. <text class="size-30 sys-weight-600'">绑定资产信息</text>
  153. <WhInput :name="'绑定资产'" disabled is_select></WhInput>
  154. </view>
  155. <view class="m-t30">
  156. <text class="size-30 sys-weight-600'">还款账户信息</text>
  157. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  158. <view class="wh-text"><text></text>还款金额</view>
  159. <view class="row-c flex">
  160. <input class="wh-input sys-size-28 text-color-12 m-lr20 flex"
  161. placeholder-class="sys-size-28 text-color-999 sys-weight-400" placeholder="请输入"
  162. v-model="inputValue"></input>
  163. </view>
  164. <text>万元</text>
  165. </view>
  166. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  167. <view class="wh-text"><text></text>银行卡</view>
  168. <view class="row-c flex">
  169. <input class="wh-input sys-size-28 text-color-12 m-lr20 flex"
  170. placeholder-class="sys-size-28 text-color-999 sys-weight-400"
  171. placeholder="请输入银行账号" v-model="inputValue"></input>
  172. </view>
  173. <uni-icons type="camera" size="30"></uni-icons>
  174. </view>
  175. <WhInput :is_border="false" :name="'所属银行'" disabled is_select></WhInput>
  176. </view>
  177. <view class="m-t30">
  178. <text class="size-30 sys-weight-600'">放款账户信息</text>
  179. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  180. <view class="wh-text"><text></text>还款金额</view>
  181. <view class="row-c flex">
  182. <input class="wh-input sys-size-28 text-color-12 m-lr20 flex"
  183. placeholder-class="sys-size-28 text-color-999 sys-weight-400" placeholder="请输入"
  184. v-model="inputValue"></input>
  185. </view>
  186. <text>万元</text>
  187. </view>
  188. <view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
  189. <view class="wh-text"><text></text>银行卡</view>
  190. <view class="row-c flex">
  191. <input class="wh-input sys-size-28 text-color-12 m-lr20 flex"
  192. placeholder-class="sys-size-28 text-color-999 sys-weight-400"
  193. placeholder="请输入银行账号" v-model="inputValue"></input>
  194. </view>
  195. <uni-icons type="camera" size="30"></uni-icons>
  196. </view>
  197. <WhInput :is_border="false" :name="'所属银行'" disabled is_select></WhInput>
  198. </view>
  199. <view class="row-justify-sb">
  200. <view class="flex"></view>
  201. <view class="row-c m-tb20">
  202. <button class="size-26 r-10 apply-button-delete m-r20" hover-class="is-hover"
  203. @click="onDeleteInfo(index)">删除</button>
  204. <button class="size-26 r-10 button-color apply-button-save" hover-class="is-hover"
  205. @click="onSaveInfo(item)">保存</button>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. <button class="size-26 r-10 button-color apply-button m-t30" hover-class="is-hover"
  211. @click="onAddInfo">+添加抵押信息</button>
  212. </view>
  213. <!-- 抵押信息end -->
  214. </view>
  215. <EnButton is_both :leftText="'保存'" :rightText="step === 2?'提交':'下一步'" @onLeftSubmit="onLeftSubmit"
  216. @onSubmit="onStep">
  217. </EnButton>
  218. </view>
  219. </template>
  220. <!-- correct -->
  221. <script>
  222. import TaskImgTab from "@/common/task/task_ima_tab.vue"
  223. import WhInput from "@/page_task/module/wh-input.vue"
  224. export default {
  225. components: {
  226. TaskImgTab,
  227. WhInput
  228. },
  229. data() {
  230. return {
  231. title: '',
  232. step: 1,
  233. fixedHeight: 70,
  234. scrollTop: 0,
  235. stepOne: ['double', 'correct'],
  236. stepTwo: ['two', 'double', 'correct'],
  237. value: '',
  238. formData: {
  239. is_farming: null,
  240. is_materials: null
  241. },
  242. farming: [{
  243. text: '是',
  244. value: 1
  245. }, {
  246. text: '否',
  247. value: 0
  248. }],
  249. materials: [{
  250. text: '已缴纳',
  251. value: 1
  252. }, {
  253. text: '未缴纳',
  254. value: 0
  255. }],
  256. impawn: [{
  257. text: '抵押',
  258. value: 1
  259. }, {
  260. text: '买卖',
  261. value: 0
  262. }],
  263. applyList: [{
  264. is_edit: true,
  265. data: {}
  266. }, {
  267. is_edit: false,
  268. data: {}
  269. }]
  270. }
  271. },
  272. onPageScroll(res) {
  273. this.scrollTop = res.scrollTop / 120
  274. },
  275. onLoad(options) {
  276. this.title = options.title
  277. },
  278. methods: {
  279. // 身份认证
  280. onAuthentication(item) {
  281. uni.navigateTo({
  282. url: "/page_task/identity_upload/identity_upload"
  283. })
  284. },
  285. // 保存
  286. onLeftSubmit() {
  287. console.log(this.formData);
  288. console.log('保存');
  289. this.applyList.map(item => {
  290. item.is_edit = true
  291. })
  292. if (this.step === 1) return
  293. this.step--
  294. },
  295. // 下一步
  296. onStep() {
  297. if (this.step === 2) return
  298. this.step++
  299. },
  300. // 完成
  301. onSubmit() {
  302. this.step = 4
  303. },
  304. // 添加信息
  305. onAddInfo() {
  306. this.applyList.push({
  307. is_edit: false
  308. })
  309. },
  310. // 编辑单个信息
  311. onEditInfo(item) {
  312. item.is_edit = !item.is_edit
  313. },
  314. // 删除信息
  315. onDeleteInfo(index) {
  316. uni.showModal({
  317. title: '提示',
  318. content: '确定删除?',
  319. success: (res) => {
  320. if (res.confirm) {
  321. this.applyList.splice(index, 1)
  322. }
  323. }
  324. })
  325. },
  326. // 保存单个信息
  327. onSaveInfo(item) {
  328. item.is_edit = !item.is_edit
  329. },
  330. onSetFarming(value) {
  331. this.formData.is_farming = value
  332. },
  333. onSetMaterials(value) {
  334. this.formData.is_materials = value
  335. },
  336. }
  337. }
  338. </script>
  339. <style lang="scss" scoped>
  340. .apply-body {
  341. padding-bottom: 100rpx;
  342. }
  343. .step-content {
  344. padding: 0 200rpx;
  345. }
  346. .attestation_content {
  347. width: 100%;
  348. position: absolute;
  349. }
  350. .title-line {
  351. width: 2rpx;
  352. height: 30rpx;
  353. background: #9EABCA;
  354. }
  355. .line {
  356. width: 70rpx;
  357. height: 4rpx;
  358. background: #8EDBDA;
  359. margin-top: 22rpx;
  360. }
  361. button::after {
  362. border: none;
  363. }
  364. .radiu-item {
  365. width: 140rpx;
  366. padding: 6rpx 16rpx;
  367. border-radius: 100rpx;
  368. border: 1rpx solid #CCCCCC;
  369. }
  370. .active-radiu {
  371. color: #0FB160;
  372. border: 1rpx solid #0FB160;
  373. }
  374. .wh-input {
  375. width: 100%;
  376. text-align: right;
  377. direction: rtl;
  378. }
  379. .wh-text {
  380. width: 110rpx;
  381. text-align: justify;
  382. text-align-last: justify;
  383. vertical-align: top;
  384. height: 38rpx;
  385. }
  386. .wh-text:after {
  387. content: '';
  388. width: 110rpx;
  389. height: 0;
  390. display: inline-block;
  391. overflow: hidden;
  392. }
  393. .apply-button {
  394. height: 80rpx;
  395. line-height: 80rpx;
  396. background: #FFFFFF;
  397. border: 2rpx solid #0FB160;
  398. margin-bottom: 100rpx;
  399. }
  400. .apply-button-save {
  401. width: 140rpx;
  402. background: #FFFFFF;
  403. border: 2rpx solid #0FB160;
  404. }
  405. .apply-button-delete {
  406. color: #E83F37;
  407. width: 140rpx;
  408. background: #FFFFFF;
  409. border: 2rpx solid #E83F37;
  410. }
  411. </style>