receivingDetail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="content">
  3. <view class="box hflex astart">
  4. <image :src="user.user.headimg" class="item_avatar"></image>
  5. <view class="vflex" style="padding-left: 20rpx;">
  6. <view class="item_name text_hide">{{user.username}}</view>
  7. <view class="hflex acenter cell">
  8. <u-icon name="phone-fill" color="#b8b8b8" size="14"></u-icon>
  9. <view class="text_style1" style="padding-left: 16rpx;">{{user.user.phone}}</view>
  10. </view>
  11. <view class="hflex astart cell">
  12. <u-icon name="map-fill" color="#b8b8b8" size="14"></u-icon>
  13. <view class="text_style1" style="padding-left: 16rpx;">{{user.addr}}</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="box">
  18. <view class="item_name">接单需求</view>
  19. <view class="input_bg">{{user.description}}</view>
  20. <view class="item_name">营业执照或者身份证件照</view>
  21. <image :src="user.business_img" mode="aspectFill" class="img2"></image>
  22. </view>
  23. <view class="box">
  24. <view class="item_name">图片以及资质证件图片</view>
  25. <view class="hflex fwrap">
  26. <block v-for="(item,index) in user.imgs" :key="index">
  27. <image :src="item" mode="aspectFill" class="img1"></image>
  28. </block>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import $api from '@/static/js/api.js'
  35. var that = ''
  36. export default {
  37. data() {
  38. return {
  39. id: '',
  40. user: {
  41. }
  42. }
  43. },
  44. onLoad(options) {
  45. that = this
  46. that.id = options.id
  47. that.getData()
  48. },
  49. methods: {
  50. getData() {
  51. $api.req({
  52. url: '/data/api.auth.Purchase/needs_show',
  53. data: {
  54. id: that.id
  55. }
  56. }, function(res) {
  57. if(res.code == 1) {
  58. that.user = res.data
  59. }
  60. })
  61. },
  62. },
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .content {
  67. background: url('https://ship-expert.zhousi.hdlkeji.com/common/background.png') #f4f4f4 no-repeat;
  68. background-size: 100%;
  69. padding: 0 30rpx;
  70. .box {
  71. margin-top: 20rpx;
  72. width: 100%;
  73. box-sizing: border-box;
  74. padding: 24rpx 20rpx;
  75. background: #FFFFFF;
  76. border-radius: 10px;
  77. .item_avatar {
  78. width: 84rpx;
  79. height: 84rpx;
  80. border-radius: 50%;
  81. }
  82. .cell {
  83. margin-top: 20rpx;
  84. }
  85. .item_name {
  86. max-width: 500rpx;
  87. font-size: 28rpx;
  88. font-weight: 400;
  89. color: #222222;
  90. // padding: 20rpx 0;
  91. }
  92. .input_bg {
  93. margin: 24rpx 0;
  94. width: 100%;
  95. background: #F5F5F5;
  96. border-radius: 16rpx;
  97. box-sizing: border-box;
  98. padding: 22rpx 20rpx;
  99. font-size: 26rpx;
  100. font-weight: 400;
  101. color: #303030;
  102. }
  103. .text_style1 {
  104. font-size: 24rpx;
  105. font-weight: 400;
  106. color: #888888;
  107. }
  108. .img2 {
  109. width: 320rpx;
  110. height: 200rpx;
  111. border-radius: 16rpx;
  112. margin: 16rpx 20rpx 0 0;
  113. }
  114. .img1 {
  115. width: 310rpx;
  116. height: 200rpx;
  117. border-radius: 16rpx;
  118. margin: 16rpx 20rpx 0 0;
  119. }
  120. .img1:nth-child(2n+2) {
  121. margin: 16rpx 0 0;
  122. }
  123. }
  124. }
  125. </style>