details.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="details">
  3. <view class="detop">
  4. <view class="headbox">
  5. <view class="head">林</view>
  6. <view class="flex1">
  7. <view class="headt">林振宇</view>
  8. <view class="headx">资料更新时间 | 2023年5月24日</view>
  9. </view>
  10. </view>
  11. <view class="tit">
  12. <image :src="titimg"></image>客户基本信息
  13. </view>
  14. <view class="txt">身份证号:<text>34282419730618003X</text></view>
  15. <view class="txt">证件有效期:<text>2017.12.27 - 2037.12.27</text></view>
  16. <view class="txt">居住地址:<text>安徽省安庆市潜山市梅城镇</text></view>
  17. <view class="txt">手机号码:<text>18705568888</text></view>
  18. </view>
  19. <!-- 已添加关联企业 -->
  20. <view class="zhead flexc">
  21. <view class="tit">
  22. <image :src="titimg"></image>已添加关联企业
  23. </view>
  24. <view class="zheadr flexc" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(0)">
  25. {{zheList[0].zheflag?'折叠信息':'展开信息'}}
  26. <image :src="upimg"></image></view>
  27. </view>
  28. <!-- 列表 -->
  29. <block v-if="zheList[0].zheflag">
  30. <bus-list :datalist="qylist" type="qy"></bus-list>
  31. </block>
  32. <!-- 历史申贷记录 -->
  33. <view class="zhead flexc">
  34. <view class="tit">
  35. <image :src="titimg"></image>历史申贷记录
  36. </view>
  37. <view class="zheadr flexc" :class="zheList[1].zheflag?'':'act'" @click="getZheFn(1)">
  38. {{zheList[1].zheflag?'折叠信息':'展开信息'}}
  39. <image :src="upimg"></image></view>
  40. </view>
  41. <!-- 列表 -->
  42. <block v-if="zheList[1].zheflag">
  43. <bus-list :datalist="sdjllist" type="sdjl" @getDetail="getDetail"></bus-list>
  44. </block>
  45. </view>
  46. </template>
  47. <script>
  48. import config from '@/config'
  49. const baseUrl = config.baseUrl
  50. import busList from "@/work/components/business/list.vue"
  51. import {uploadmore} from '@/utils/common.js'
  52. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  53. export default{
  54. components:{busList},
  55. data(){
  56. return{
  57. titimg:require('@/work/static/images/infotit.png'),
  58. upimg:require('@/work/static/images/up.png'),
  59. list:[{tit:'123'}],
  60. qylist:[{tit:123},{tit:123},],
  61. sdjllist:[{tit:123}],
  62. zheList:[{zheflag:true},{zheflag:true},{zheflag:true},{zheflag:true}],
  63. type:'qy',
  64. pageSize: 10,
  65. pageNum: 1,
  66. reachflag: true,
  67. wtdt:'',
  68. }
  69. },
  70. methods:{
  71. checkPermi, checkRole,
  72. getDetail(){
  73. this.$tab.navigateTo("/work/pages/business/details")
  74. },
  75. getZheFn(idx){
  76. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .detop{
  83. background-color: #ffffff;padding: 0rpx 24rpx 2rpx;
  84. .headbox{display: flex;align-items: center;padding: 42rpx 12rpx;border-bottom: 2rpx solid #E6E6E6;;
  85. .head{width: 86rpx;height: 86rpx;background: #00A9F0;border-radius: 10rpx;font-weight: bold;margin-right: 36rpx;flex: 0 0 auto;font-size: 40rpx;display: flex;align-items: center;justify-content: center;color: #FFFFFF;}
  86. .headt{font-weight: bold;font-size: 40rpx;color: #222327;margin-bottom: 10rpx;}
  87. .headx{font-weight: 500;font-size: 24rpx;color: #666666;}
  88. }
  89. }
  90. .tit{font-weight: bold;font-size: 30rpx;color: $com-cd3;display: flex;align-items: center;padding-top: 44rpx;margin-bottom:32rpx;padding-left: 14rpx;
  91. image{width: 30rpx;height: 30rpx;margin-right: 12rpx;}
  92. }
  93. .txt{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 44rpx;padding-left: 14rpx;
  94. text{color: #666666;font-weight: 500;
  95. &.txta{color: #28C529;}
  96. }
  97. }
  98. .flexcw{display: flex;
  99. .txt{min-width: 50%;padding-right: 20rpx;box-sizing: border-box;}
  100. }
  101. .zhead{padding: 30rpx 40rpx 30rpx 24rpx;
  102. .tit{margin-bottom: 0;padding-top: 0;flex: 1;}
  103. .zheadr{font-weight: 500;font-size: 26rpx;flex: 0 0 auto;color: #666666;
  104. &.act{
  105. image{transform: rotate(180deg);}
  106. }
  107. image{width: 26rpx;height: 22rpx;margin-left: 18rpx;transition: all 0.3;}
  108. }
  109. }
  110. </style>