repairDetail.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="hflex acenter cell">
  5. <u-avatar :src="pageData.user.headimg"></u-avatar>
  6. <view class="name text_hide">{{pageData.name}}</view>
  7. </view>
  8. <view class="hflex acenter cell">
  9. <u-icon name="phone-fill" color="#666666" size="14"></u-icon>
  10. <view class="text_style1">{{pageData.phone}}</view>
  11. </view>
  12. <view class="hflex acenter cell">
  13. <u-icon name="email-fill" color="#666666" size="14"></u-icon>
  14. <view class="text_style1">{{pageData.email}}<span class="copy" @click="copy"> | 复制</span></view>
  15. </view>
  16. <view class="hflex acenter cell">
  17. <image src="https://ship-expert.zhousi.hdlkeji.com/common/company.png" class="icon"></image>
  18. <view class="text_style1">{{pageData.company_name}}</view>
  19. </view>
  20. <view class="hflex acenter cell">
  21. <u-icon name="map-fill" color="#666666" size="14"></u-icon>
  22. <view class="text_style1">{{pageData.city}}{{pageData.area}}{{pageData.address}}</view>
  23. </view>
  24. </view>
  25. <view class="box">
  26. <view class="title cell">营业执照照片</view>
  27. <image :src="pageData.business_img" mode="aspectFill" class="img1 cell"></image>
  28. <view class="line"></view>
  29. <view class="title cell">身份证正反面</view>
  30. <view class="hflex acenter jbetween cell">
  31. <image :src="pageData.id_card_zheng" mode="aspectFill" class="img2"></image>
  32. <image :src="pageData.id_card_fan" mode="aspectFill" class="img2"></image>
  33. </view>
  34. </view>
  35. <view class="box" style="margin-bottom: 72rpx;">
  36. <view class="title cell">工作简历</view>
  37. <view class="cell text_style2">{{pageData.job_resume}}</view>
  38. <view class="line"></view>
  39. <view class="title cell">维修特长</view>
  40. <view class="cell text_style2">{{pageData.specialty}}</view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import $api from '@/static/js/api.js'
  46. var that = ''
  47. export default {
  48. data() {
  49. return {
  50. pageData: {
  51. },
  52. id: ''
  53. }
  54. },
  55. onLoad(options) {
  56. that = this
  57. that.id = options.id
  58. that.getData()
  59. },
  60. methods: {
  61. getData() {
  62. $api.req({
  63. url: '/data/api.auth.ShipEngineMaintenance/acceptancedetail',
  64. method: 'POST',
  65. data: {
  66. id: that.id
  67. }
  68. }, function(res) {
  69. if(res.code == 1) {
  70. that.pageData = res.data
  71. }
  72. })
  73. },
  74. copy() {
  75. uni.setClipboardData({
  76. data: that.pageData.email,
  77. success: function () {
  78. $api.info('复制成功')
  79. }
  80. });
  81. }
  82. },
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. .content {
  87. background: url('https://ship-expert.zhousi.hdlkeji.com/common/background.png') #F4F4F4 no-repeat;
  88. background-size: 100%;
  89. padding: 0 30rpx;
  90. .box {
  91. background: #FFFFFF;
  92. border-radius: 10px;
  93. box-sizing: border-box;
  94. padding: 0 20rpx 15rpx;
  95. margin-top: 20rpx;
  96. .cell {
  97. padding: 14rpx 0;
  98. .icon {
  99. width: 28rpx;
  100. height: 28rpx;
  101. }
  102. }
  103. .name {
  104. max-width: 500rpx;
  105. font-size: 30rpx;
  106. font-weight: 500;
  107. color: #222222;
  108. line-height: 42rpx;
  109. padding-left: 20rpx;
  110. }
  111. .text_style1 {
  112. font-size: 26rpx;
  113. font-weight: 400;
  114. color: #222222;
  115. line-height: 30rpx;
  116. padding-left: 20rpx;
  117. }
  118. .copy {
  119. font-size: 24rpx;
  120. font-weight: 400;
  121. color: #506DFF;
  122. line-height: 34rpx;
  123. padding-left: 8rpx;
  124. }
  125. .title {
  126. font-size: 28rpx;
  127. font-weight: 500;
  128. color: #222222;
  129. line-height: 40rpx;
  130. }
  131. .img1 {
  132. width: 100%;
  133. height: 400rpx;
  134. border-radius: 12rpx;
  135. }
  136. .line {
  137. width: 100%;
  138. height: 1rpx;
  139. background: #F4F4F4;
  140. }
  141. .img2 {
  142. width: 310rpx;
  143. height: 228rpx;
  144. border-radius: 12rpx;
  145. }
  146. .text_style2 {
  147. font-size: 26rpx;
  148. font-weight: 400;
  149. color: #222222;
  150. line-height: 36rpx;
  151. }
  152. }
  153. }
  154. </style>