signatureConfirmation.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="">
  3. <view @tap.stop="toDetailFn(v)" class="list" v-for="(v, i) in dataList" :key="i">
  4. <view class="list_content">
  5. <view class="font_style">
  6. <view class="font_style_left"> 所属公司: </view>
  7. <view class="font_style_right">
  8. {{ v.belongCompanyName }}
  9. </view>
  10. </view>
  11. <view class="font_style">
  12. <view class="font_style_left"> 文件名称: </view>
  13. <view class="font_style_right">
  14. {{ v.name }}
  15. </view>
  16. </view>
  17. <view class="font_style">
  18. <view class="font_style_left"> 签署时间: </view>
  19. <view class="font_style_right">
  20. {{ v.createTime }}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import { mapState } from 'vuex'
  29. export default {
  30. data() {
  31. return {
  32. dataList: []
  33. }
  34. },
  35. async onPullDownRefresh() {
  36. await this.getData()
  37. uni.stopPullDownRefresh()
  38. },
  39. async onReachBottom() {
  40. await this.getData()
  41. },
  42. computed: {
  43. ...mapState(['userInfo', 'isLogin', 'userId'])
  44. },
  45. mounted() {
  46. this.getData()
  47. },
  48. methods: {
  49. //跳转页面
  50. toDetailFn(data) {
  51. uni.previewImage({
  52. urls: [data.url] //预览图片 数组
  53. })
  54. },
  55. //获取数据
  56. async getData() {
  57. this.$api.post('/worker/sign/confirm', {}).then(res => {
  58. this.dataList = res.data
  59. })
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped lang="scss">
  65. .page {
  66. padding: 0 34rpx;
  67. }
  68. .list {
  69. margin: 0 32rpx;
  70. font-size: 28rpx;
  71. .list_content {
  72. background-color: #fff;
  73. padding: 20rpx;
  74. border-radius: 20rpx;
  75. margin-top: 30rpx;
  76. }
  77. }
  78. .font_style {
  79. display: flex;
  80. color: #101010;
  81. line-height: 45rpx;
  82. .font_style_right {
  83. flex: 1;
  84. }
  85. .font_style_left {
  86. width: 145rpx;
  87. }
  88. .status {
  89. color: #00be8d;
  90. }
  91. }
  92. .font {
  93. display: block;
  94. color: #909090;
  95. padding: 20rpx 0;
  96. }
  97. </style>