特易招,招聘小程序
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.

128 lines
2.3 KiB

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