linwenxin 3 månader sedan
förälder
incheckning
d3b7eafd1c
3 ändrade filer med 117 tillägg och 0 borttagningar
  1. 6 0
      src/pages.json
  2. 6 0
      src/pages/mine/index.vue
  3. 105 0
      src/pages/signatureConfirmation.vue

+ 6 - 0
src/pages.json

@@ -37,6 +37,12 @@
       }
     },
     {
+      "path": "pages/signatureConfirmation",
+      "style": {
+        "navigationBarTitleText": "师傅签名确认书"
+      }
+    },
+    {
       "path": "pages/bind",
       "style": {
         "navigationBarTitleText": "授权绑定"

+ 6 - 0
src/pages/mine/index.vue

@@ -367,6 +367,12 @@ export default {
           show: this.isWorkerUser
         },
         {
+          name: '师傅签名确认书',
+          icon: 'icon-kehu',
+          link: '/pages/signatureConfirmation',
+          show: this.isWorkerUser
+        },
+        {
           name: '我的保单',
           icon: 'icon-kehu',
           link: '/packageEnter/pages/insurance/myInsurance/index',

+ 105 - 0
src/pages/signatureConfirmation.vue

@@ -0,0 +1,105 @@
+<template>
+  <view class="">
+    <view @tap.stop="toDetailFn(v)" class="list" v-for="(v, i) in dataList" :key="i">
+      <view class="list_content">
+        <view class="font_style">
+          <view class="font_style_left"> 所属公司: </view>
+          <view class="font_style_right">
+            {{ v.belongCompanyName }}
+          </view>
+        </view>
+        <view class="font_style">
+          <view class="font_style_left"> 文件名称: </view>
+          <view class="font_style_right">
+            {{ v.name }}
+          </view>
+        </view>
+        <view class="font_style">
+          <view class="font_style_left"> 签署时间: </view>
+          <view class="font_style_right">
+            {{ v.createTime }}
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+
+<script>
+import { mapState } from 'vuex'
+export default {
+  data() {
+    return {
+      dataList: []
+    }
+  },
+  async onPullDownRefresh() {
+    await this.getData()
+    uni.stopPullDownRefresh()
+  },
+  async onReachBottom() {
+    await this.getData()
+  },
+  computed: {
+    ...mapState(['userInfo', 'isLogin', 'userId'])
+  },
+  mounted() {
+    this.getData()
+  },
+  methods: {
+    //跳转页面
+    toDetailFn(data) {
+      uni.previewImage({
+        urls: [data.url] //预览图片 数组
+      })
+    },
+    //获取数据
+    async getData() {
+      this.$api.post('/worker/sign/confirm', {}).then(res => {
+        this.dataList = res.data
+      })
+    }
+  }
+}
+</script>
+
+<style scoped lang="scss">
+.page {
+  padding: 0 34rpx;
+}
+.list {
+  margin: 0 32rpx;
+  font-size: 28rpx;
+
+  .list_content {
+    background-color: #fff;
+    padding: 20rpx;
+    border-radius: 20rpx;
+    margin-top: 30rpx;
+  }
+}
+
+.font_style {
+  display: flex;
+  color: #101010;
+  line-height: 45rpx;
+
+  .font_style_right {
+    flex: 1;
+  }
+
+  .font_style_left {
+    width: 145rpx;
+  }
+
+  .status {
+    color: #00be8d;
+  }
+}
+
+.font {
+  display: block;
+  color: #909090;
+  padding: 20rpx 0;
+}
+</style>