apply.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <template>
  2. <view class="total-page page-env-160 page-box">
  3. <Nav :title="title" :genre="1" :fixedHeight="fixedHeight">
  4. <!-- 步鄹条start -->
  5. <view class="task-tabs" :style="{top:`${$tools.topHeight()}px`}">
  6. <view class="row-justify-sb m-tb20 step-content">
  7. <view class="column-c" style="text-align: center;">
  8. <image class="wh-45 m-b16" :src="`/static/img/information/${step === 1?'double':'correct'}.png`"
  9. mode="aspectFill"></image>
  10. <text class="size-24"
  11. :class="step === 1?'color-0FB160 sys-weight-600':'sys-weight-400'">基本信息</text>
  12. </view>
  13. <view class="line"></view>
  14. <view class="column-c justify-center">
  15. <image class="wh-45 m-b16" :src="`/static/img/information/${stepTwo[step-1]}.png`"
  16. mode="aspectFill"></image>
  17. <text class="size-24"
  18. :class="step === 2?'color-0FB160 sys-weight-600':'sys-weight-400'">抵押信息</text>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 步鄹条end -->
  23. </Nav>
  24. <view class="sys-list-background-color attestation_content page-env-160"
  25. :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: 75,
  234. stepOne: ['double', 'correct'],
  235. stepTwo: ['two', 'double', 'correct'],
  236. value: '',
  237. formData: {
  238. is_farming: null,
  239. is_materials: null
  240. },
  241. farming: [{
  242. text: '是',
  243. value: 1
  244. }, {
  245. text: '否',
  246. value: 0
  247. }],
  248. materials: [{
  249. text: '已缴纳',
  250. value: 1
  251. }, {
  252. text: '未缴纳',
  253. value: 0
  254. }],
  255. impawn: [{
  256. text: '抵押',
  257. value: 1
  258. }, {
  259. text: '买卖',
  260. value: 0
  261. }],
  262. applyList: [{
  263. is_edit: true,
  264. data: {}
  265. }, {
  266. is_edit: false,
  267. data: {}
  268. }]
  269. }
  270. },
  271. onLoad(options) {
  272. this.title = options.title
  273. },
  274. methods: {
  275. // 身份认证
  276. onAuthentication(item) {
  277. uni.navigateTo({
  278. url: "/page_task/identity_upload/identity_upload"
  279. })
  280. },
  281. // 保存
  282. onLeftSubmit() {
  283. console.log(this.formData);
  284. console.log('保存');
  285. this.applyList.map(item => {
  286. item.is_edit = true
  287. })
  288. if (this.step === 1) return
  289. this.step--
  290. },
  291. // 下一步
  292. onStep() {
  293. if (this.step === 2) return
  294. this.step++
  295. },
  296. // 完成
  297. onSubmit() {
  298. this.step = 4
  299. },
  300. // 添加信息
  301. onAddInfo() {
  302. this.applyList.push({
  303. is_edit: false
  304. })
  305. },
  306. // 编辑单个信息
  307. onEditInfo(item) {
  308. item.is_edit = !item.is_edit
  309. },
  310. // 删除信息
  311. onDeleteInfo(index) {
  312. uni.showModal({
  313. title: '提示',
  314. content: '确定删除?',
  315. success: (res) => {
  316. if (res.confirm) {
  317. this.applyList.splice(index, 1)
  318. }
  319. }
  320. })
  321. },
  322. // 保存单个信息
  323. onSaveInfo(item) {
  324. item.is_edit = !item.is_edit
  325. },
  326. onSetFarming(value) {
  327. this.formData.is_farming = value
  328. },
  329. onSetMaterials(value) {
  330. this.formData.is_materials = value
  331. },
  332. }
  333. }
  334. </script>
  335. <style lang="scss" scoped>
  336. .apply-body {
  337. padding-bottom: 100rpx;
  338. }
  339. .step-content {
  340. padding: 0 200rpx;
  341. }
  342. .attestation_content {
  343. width: 100%;
  344. position: absolute;
  345. }
  346. .title-line {
  347. width: 2rpx;
  348. height: 30rpx;
  349. background: #9EABCA;
  350. }
  351. .line {
  352. width: 70rpx;
  353. height: 4rpx;
  354. background: #8EDBDA;
  355. margin-top: 22rpx;
  356. }
  357. button::after {
  358. border: none;
  359. }
  360. .radiu-item {
  361. width: 140rpx;
  362. padding: 6rpx 16rpx;
  363. border-radius: 100rpx;
  364. border: 1rpx solid #CCCCCC;
  365. }
  366. .active-radiu {
  367. color: #0FB160;
  368. border: 1rpx solid #0FB160;
  369. }
  370. .wh-input {
  371. width: 100%;
  372. text-align: right;
  373. direction: rtl;
  374. }
  375. .wh-text {
  376. width: 110rpx;
  377. text-align: justify;
  378. text-align-last: justify;
  379. vertical-align: top;
  380. height: 38rpx;
  381. }
  382. .wh-text:after {
  383. content: '';
  384. width: 110rpx;
  385. height: 0;
  386. display: inline-block;
  387. overflow: hidden;
  388. }
  389. .apply-button {
  390. height: 80rpx;
  391. line-height: 80rpx;
  392. background: #FFFFFF;
  393. border: 2rpx solid #0FB160;
  394. margin-bottom: 100rpx;
  395. }
  396. .apply-button-save {
  397. width: 140rpx;
  398. background: #FFFFFF;
  399. border: 2rpx solid #0FB160;
  400. }
  401. .apply-button-delete {
  402. color: #E83F37;
  403. width: 140rpx;
  404. background: #FFFFFF;
  405. border: 2rpx solid #E83F37;
  406. }
  407. </style>