linwenxin 5 ヶ月 前
コミット
234b72217a

+ 27 - 25
src/packageEnter/pages/insurance/insuranceContract/index.vue

@@ -1,29 +1,31 @@
 <template>
-  <zj-page-container>
-    <zj-fiex-column>
-      <view class="page-content" v-if="!loading">
-        <view class="rich-text-content" v-show="content">
-          <rich-text :nodes="content"></rich-text>
-        </view>
-        <view class="please-read">
-          <view class="please-read-title"> 请阅读: </view>
-          <view
-            class="please-read-contract"
-            v-for="(item, index) in insureAgreeList"
-            :key="index"
-            @click="goDetailsAgreement(item)"
-          >
-            《{{ item.agreementName }}》
+  <view style="height: 100vh">
+    <zj-page-container>
+      <zj-fiex-column>
+        <view class="page-content" v-if="!loading">
+          <view class="rich-text-content" v-show="content">
+            <rich-text :nodes="content"></rich-text>
+          </view>
+          <view class="please-read">
+            <view class="please-read-title"> 请阅读: </view>
+            <view
+              class="please-read-contract"
+              v-for="(item, index) in insureAgreeList"
+              :key="index"
+              @click="goDetailsAgreement(item)"
+            >
+              《{{ item.agreementName }}》
+            </view>
           </view>
         </view>
-      </view>
-      <view slot="after" class="bottom-reservation">
-        <u-button :disabled="ins > 0 ? true : false" type="primary" @click="gopay"
-          >了解并继续{{ ins > 0 ? `(${ins}s)` : '' }}
-        </u-button>
-      </view>
-    </zj-fiex-column>
-  </zj-page-container>
+        <view slot="after" class="bottom-reservation">
+          <u-button :disabled="ins > 0 ? true : false" type="primary" @click="gopay"
+            >了解并继续{{ ins > 0 ? `(${ins}s)` : '' }}
+          </u-button>
+        </view>
+      </zj-fiex-column>
+    </zj-page-container>
+  </view>
 </template>
 <script>
 import ZjFiexColumn from '@/components/zj-container/zj-fiex-column.vue'
@@ -66,7 +68,7 @@ export default {
         title: policyName
       })
       this.content = text
-      this.insureAgreeList = agreements
+      this.insureAgreeList = agreements || []
       this.$nextTick(() => {
         this.loading = false
         this.djs.start()
@@ -78,7 +80,7 @@ export default {
     goDetailsAgreement(item) {
       if (item.id) {
         uni.navigateTo({
-          url: `/packageEnter/pages/insurance/detailsAgreement/index?id=${item.id}`
+          url: `/packageEnter/pages/insurance/detailsAgreement/index?id=${item.id}&websitId=${this.websitId}`
         })
       }
     },

+ 33 - 33
src/packageEnter/pages/insurance/insuranceContract/style.scss

@@ -1,39 +1,39 @@
 .page-content {
-		box-sizing: border-box;
-		padding: 30rpx;
+  box-sizing: border-box;
+  padding: 30rpx;
 
-		.rich-text-content {
-			margin-bottom: 26rpx;
-		}
+  .rich-text-content {
+    margin-bottom: 26rpx;
+  }
 
-		.please-read {
-			.please-read-title {
-				font-size: 28rpx;
-				font-family: Source Han Sans CN-Regular, Source Han Sans CN;
-				font-weight: 400;
-				color: #0B2853;
-				line-height: 52rpx;
-			}
+  .please-read {
+    .please-read-title {
+      font-size: 28rpx;
+      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
+      font-weight: 400;
+      color: #0b2853;
+      line-height: 52rpx;
+    }
 
-			.please-read-contract {
-				font-size: 28rpx;
-				font-family: Source Han Sans CN-Regular, Source Han Sans CN;
-				font-weight: 400;
-				color: #3D8FFD;
-				line-height: 52rpx;
-			}
-		}
-	}
+    .please-read-contract {
+      font-size: 28rpx;
+      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
+      font-weight: 400;
+      color: #3d8ffd;
+      line-height: 52rpx;
+    }
+  }
+}
 
-	.bottom-reservation {
-		height: 120rpx;
-		box-sizing: border-box;
-		padding: 20rpx 30rpx;
+.bottom-reservation {
+  height: 120rpx;
+  box-sizing: border-box;
+  padding: 20rpx 30rpx;
 
-		::v-deep button {
-			font-size: 32rpx;
-			font-family: Source Han Sans CN-Regular, Source Han Sans CN;
-			font-weight: 400;
-			color: #FFFFFF;
-		}
-	}
+  ::v-deep button {
+    font-size: 32rpx;
+    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
+    font-weight: 400;
+    color: #ffffff;
+  }
+}

+ 1 - 1
src/packageEnter/pages/insurance/myInsuranceBuy/index.vue

@@ -33,7 +33,7 @@ export default {
   methods: {
     gopage(item) {
       this.$navToPage({
-        url: `/packageEnter/pages/insurance/policyParticulars/index?id=${item.id}&websitId=${this.websitId}`
+        url: `/packageEnter/pages/insurance/insuranceContract/index?id=${item.id}&websitId=${this.websitId}`
       })
     }
   }