repairDetail.vue 3.9 KB

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