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

127 lines
2.3 KiB

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