detail.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view>
  3. <view class="main">
  4. <view class="ms">
  5. <view class="icon gs">&#xe646;</view>
  6. <view class="con">
  7. <view class="mti">{{ item.name }}</view>
  8. <view class="address omit">{{ item.address }}</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="bos">
  13. <view class="item b">法定代表人:</view>
  14. <view class="item">{{ item.legalPerson }}</view>
  15. <view class="item b">联系电话:</view>
  16. <view class="item">{{ item.phone }}</view>
  17. <view class="item b">电子邮箱:</view>
  18. <view class="item">{{ item.email }}</view>
  19. <view class="item b">注册资金:</view>
  20. <view class="item">{{ item.capital }}万人民币</view>
  21. <view class="item b">公司地址:</view>
  22. <view class="item">{{item.address}}</view>
  23. <view class="item b">公司介绍</view>
  24. <view class="item">{{ item.contents }}</view>
  25. <button class="btn" @click="go()">招聘职位</button>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. item: {},
  34. param: { pageNum: 1, pageSize: 100, orderBy: 'id' }
  35. };
  36. },
  37. onLoad(e) {
  38. this.http.request({
  39. url: '/app/enterprise/detail/' + e.id,
  40. success: (res) => {
  41. this.item = res.data.data;
  42. }
  43. });
  44. },
  45. methods: {
  46. go(url) {
  47. uni.navigateTo({
  48. url: '/pages/job/enterprise/list?name=' + this.item.name + '&id=' + this.item.id
  49. });
  50. }
  51. }
  52. };
  53. </script>
  54. <style lang="scss">
  55. .ms {
  56. overflow: hidden;
  57. .gs {
  58. float: left;
  59. width: 50px;
  60. height: 50px;
  61. border-radius: 50%;
  62. background-color: white;
  63. text-align: center;
  64. font-size: 30px;
  65. line-height: 47px;
  66. }
  67. .con {
  68. float: left;
  69. padding-left: 10px;
  70. width: 70%;
  71. .mti {
  72. font-weight: bold;
  73. padding-bottom: 5px;
  74. }
  75. .address {
  76. font-size: 13px;
  77. }
  78. }
  79. }
  80. .bos {
  81. background-color: white;
  82. padding: 20px;
  83. border-radius: 25px;
  84. .mtitle {
  85. font-weight: bold;
  86. margin-bottom: 10px;
  87. }
  88. .item {
  89. font-size: 14px;
  90. padding-top: 7px;
  91. }
  92. .b {
  93. font-weight: bold;
  94. }
  95. .btn {
  96. width: 60%;
  97. }
  98. }
  99. </style>