resumeDetail.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="resume-container">
  3. <view class="server-info">
  4. <view class="worker">
  5. <view class="name">
  6. {{workerInfo.workerName}}
  7. </view>
  8. <view class="info">
  9. <view class="age">
  10. {{workerInfo.age}}岁
  11. </view>
  12. <view class="worker-years">
  13. {{workerInfo.workerYears}}年服务经验
  14. </view>
  15. <view class="address">
  16. {{workerInfo.cityName}}
  17. </view>
  18. </view>
  19. <view class="introduce">
  20. {{workerInfo.introduce}}
  21. </view>
  22. </view>
  23. </view>
  24. <view class="zz-info">
  25. </view>
  26. <view class="huawang-info">
  27. <view class="img">
  28. <image :src="workerInfo.certificateFileUrl" mode=""></image>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. const api = require('@/config/api.js');
  35. var util = require('../../../utils/util.js');
  36. export default {
  37. data() {
  38. return {
  39. servantId: '',
  40. workerInfo: {
  41. workerName: '',
  42. workerYears: '',
  43. introduce: '',
  44. age: '',
  45. certificateFileUrl: '',
  46. cityName:''
  47. }
  48. }
  49. },
  50. onLoad(options) {
  51. console.log("options", options);
  52. this.setData({
  53. servantId: options.servantId
  54. })
  55. this.getData()
  56. },
  57. onShow() {
  58. // this.getData()
  59. },
  60. methods: {
  61. getData() {
  62. uni.showLoading({
  63. title: '加载中'
  64. });
  65. let that = this;
  66. util.request(api.getHwAuthInfo, {
  67. servantId: this.servantId
  68. }, 'GET').then(function(res) {
  69. console.log('11', res.data);
  70. if (res.errno === 0) {
  71. that.setData({
  72. workerInfo: res.data
  73. });
  74. uni.hideLoading();
  75. }
  76. });
  77. },
  78. }
  79. }
  80. </script>
  81. <style>
  82. .resume-container {
  83. width: 100vw;
  84. height: 100vh;
  85. background-color: #f6f6f6;
  86. padding: 13rpx 20rpx 0rpx;
  87. }
  88. .server-info {
  89. width: 100%;
  90. height: 293rpx;
  91. background-image: url('https://mall.zhaijieshi.cc/file/wx-huawang/dyg.png');
  92. background-repeat: no-repeat;
  93. background-size: cover;
  94. padding: 96rpx 10rpx 20rpx 150rpx;
  95. }
  96. .server-info .worker {
  97. width: 100%;
  98. height: 100%;
  99. display: flex;
  100. flex-direction: column;
  101. justify-content: space-between;
  102. }
  103. .worker .name {
  104. font-size: 36rpx;
  105. font-weight: 400;
  106. height: 40rpx;
  107. line-height: 40rpx;
  108. }
  109. .worker .info {
  110. display: flex;
  111. font-size: 30rpx;
  112. font-weight: 400;
  113. height: 40rpx;
  114. line-height: 40rpx;
  115. }
  116. .info .age {
  117. width: 110rpx;
  118. text-align: left;
  119. }
  120. .info .worker-years {
  121. text-align: center;
  122. width: 280rpx;
  123. border-left: 4rpx solid #000;
  124. border-right: 4rpx solid #000;
  125. }
  126. .info .address {
  127. flex: 1;
  128. text-align: center;
  129. }
  130. .worker .introduce {
  131. font-size: 26rpx;
  132. font-weight: 400;
  133. }
  134. .zz-info {
  135. width: 100%;
  136. height: 239rpx;
  137. background-image: url('https://mall.zhaijieshi.cc/file/wx-huawang/zz.png');
  138. background-size: cover;
  139. margin: 30rpx auto;
  140. background-repeat: no-repeat;
  141. }
  142. .huawang-info {
  143. width: 100%;
  144. height: 531rpx;
  145. background-image: url('https://mall.zhaijieshi.cc/file/wx-huawang/rz.png');
  146. background-size: cover;
  147. background-repeat: no-repeat;
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. }
  152. .huawang-info .img{
  153. width: 600rpx;
  154. height: 350rpx;
  155. }
  156. .huawang-info .img image{
  157. width: 100%;
  158. height: 100%;
  159. }
  160. </style>