Browse Source

no message

linwenxin 5 months ago
parent
commit
85441dbd61

+ 4 - 2
src/packageEnter/pages/insurance/determineInfo/index.vue

@@ -87,8 +87,10 @@ export default {
       })
     })
     this.$api.post('/worker/detail', { id }).then(res => {
-      var { agreements, policyName, text } = res.data
-      this.insureAgreeList = agreements || []
+      var { agreements, policyName, text, policyRanges } = res.data
+      this.$api.post('/worker/agreementList', { policyId: this.id }).then(res2 => {
+        this.insureAgreeList = res2.data.filter(item => item.agreementType === '投保须知')
+      })
     })
   },
   methods: {

+ 4 - 2
src/packageEnter/pages/insurance/insuranceContract/index.vue

@@ -63,12 +63,14 @@ export default {
     })
 
     this.$api.post('/worker/detail', { id }).then(res => {
-      var { agreements, policyName, text } = res.data
+      var { agreements, policyName, text, policyRanges } = res.data
       uni.setNavigationBarTitle({
         title: policyName
       })
       this.content = text
-      this.insureAgreeList = agreements || []
+      this.$api.post('/worker/agreementList', { policyId: this.id }).then(res2 => {
+        this.insureAgreeList = res2.data
+      })
       this.$nextTick(() => {
         this.loading = false
         this.djs.start()