Ver Fonte

no message

linwenxin há 5 meses atrás
pai
commit
6cee48328b
1 ficheiros alterados com 45 adições e 0 exclusões
  1. 45 0
      src/pages/index/index.vue

+ 45 - 0
src/pages/index/index.vue

@@ -354,6 +354,30 @@
       </view>
       <view class="btn" @tap="toWxLink()">前往关注</view>
     </view>
+
+    <!-- 电子协议过期提示弹窗 -->
+    <protocolDialog :isShow="isShowProtocolDialog" @close="isShowProtocolDialog = false" @handle="handleProtocol">
+    </protocolDialog>
+
+    <!-- 保险过期提示弹窗 -->
+    <insuranceDialog
+      ref="insuranceDialog"
+      :type="insuranceStatus"
+      :isShow="isShowInsuranceDialog"
+      @close="isShowInsuranceDialog = false"
+      @handle="handleInsurance"
+    >
+    </insuranceDialog>
+
+    <!-- 证件复审提示弹窗 -->
+    <certificateDialog
+      ref="certificateDialog"
+      :type="certificateStatus"
+      :isShow="isShowCertificateDialog"
+      @close="isShowCertificateDialog = false"
+      @handle="handleCertificate"
+    >
+    </certificateDialog>
   </view>
 </template>
 
@@ -362,6 +386,13 @@ import { getNoticeNum, getOrderNum, selectionChange, mini_env } from '@/common/u
 export default {
   data() {
     return {
+      isShowProtocolDialog: false, // 是否显示电子协议过期提示弹窗
+      isShowInsuranceDialog: false, // 是否显示保险过期提示弹窗
+      isShowCertificateDialog: false, // 是否显示证件复审提示弹窗
+      enterStatus: 0, // 入驻状态,1=确认服务范围 2=确认服务类目 3=上传证件 31=资质审核中 32=资质审核失败 4=电子签约 5=在线考试 6=购买保险 61=保险未生效 100=成功
+      insuranceStatus: 0, // 保险过期状态,0=不需要提醒 1=保险购买提示 2=保险过期提示 3=保险快到期提示
+      certificateStatus: 0, // 证件提醒通知 0=不需要提醒 1=证件快过期提示 2=复审快过期提示
+
       isLoading: true,
       refresherTriggered: false, // 下拉刷新状态
       userInfo: {},
@@ -660,6 +691,20 @@ export default {
   },
 
   methods: {
+    // 处理电子协议过期提示弹窗
+    handleProtocol() {
+      this.isShowProtocolDialog = false
+    },
+
+    // 处理保险过期提示弹窗
+    handleInsurance() {
+      this.isShowInsuranceDialog = false
+    },
+
+    // 处理证件复审提示窗口
+    handleCertificate() {
+      this.isShowCertificateDialog = false
+    },
     // 测试支付
     quzhifu() {
       mini_env(bool => {