特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <!-- 电子合同 -->
  3. <view>
  4. <navbar title="电子合同"
  5. leftClick
  6. @leftClick="$utils.navigateBack"/>
  7. <view class="">
  8. <uv-tabs :list="tabs"
  9. lineColor="#3796F8"
  10. lineHeight="8rpx"
  11. lineWidth="50rpx"
  12. :scrollable="false"
  13. @click="clickTabs"></uv-tabs>
  14. </view>
  15. <view class="content">
  16. <view class="projectContent"
  17. v-for="(item, index) in list"
  18. :key="index">
  19. <img src="../static/contract/contract.png" alt="" />
  20. <view class="itemList">
  21. <view class="projectName">
  22. xxxx电子合同
  23. </view>
  24. <view class="buyer">
  25. 甲方湖南瀚海科技有限公司
  26. </view>
  27. <view class="seller">
  28. 乙方四川特能博世科技有限公司
  29. </view>
  30. </view>
  31. <view class="run">
  32. <uv-icon
  33. name="arrow-right"
  34. color="#2979ff"
  35. size="50rpx"></uv-icon>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import mixinList from '@/mixins/list.js'
  43. import { mapState } from 'vuex'
  44. export default {
  45. mixins : [mixinList],
  46. data() {
  47. return {
  48. tabs: [
  49. {
  50. name: '全部合同'
  51. },
  52. {
  53. name: '待我签署'
  54. },
  55. {
  56. name: '他人签署'
  57. },
  58. {
  59. name: '签约完成'
  60. },
  61. ],
  62. type : 0,
  63. mixinsListApi : 'bossQueryContractList',
  64. }
  65. },
  66. computed : {
  67. ...mapState([
  68. 'role',
  69. ]),
  70. },
  71. onLoad() {
  72. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryContractList'
  73. },
  74. methods: {
  75. clickTabs({index}) {
  76. this.type = index
  77. },
  78. }
  79. }
  80. </script>
  81. <style scoped lang="scss">
  82. .content {
  83. width: 100%;
  84. height: 100%;
  85. .projectContent {
  86. background-color: #fff;
  87. display: flex;
  88. margin: 30rpx;
  89. img {
  90. width: 160rpx;
  91. height: 140rpx;
  92. margin: 20rpx;
  93. }
  94. .itemList {
  95. margin: 28rpx 10rpx;
  96. .projectName {
  97. font-size: 32rpx;
  98. }
  99. .buyer {
  100. font-size: 24rpx;
  101. }
  102. .seller {
  103. font-size: 24rpx;
  104. }
  105. }
  106. .run{
  107. margin: auto;
  108. margin-right: 30rpx;
  109. height: 80rpx;
  110. width: 80rpx;
  111. border-radius: 50%;
  112. border: 1px solid $uni-color;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. }
  117. }
  118. }
  119. </style>