Quellcode durchsuchen

bugfix:处理用户协议无法返回问题

leo vor 1 Jahr
Ursprung
Commit
aea560c4c8

+ 1 - 1
pages/claimCloudPhone/agreement.vue

@@ -1,5 +1,5 @@
 <template>
-  <layout :bgImgName="null" :bgHeight="null" :bgColor="null" @goBack="goBack">
+  <layout :bgImgName="null" :bgHeight="null" :bgColor="null" @goBack="goBack" forceShowNavBar>
     <div v-html="html"></div>
   </layout>
 </template>

+ 6 - 1
pages/claimCloudPhone/components/layout.vue

@@ -37,6 +37,11 @@ export default {
       type: String,
       default: '#F3F4F6',
     },
+    // 是否强制像是头部
+    forceShowNavBar: {
+      type: Boolean,
+      default: false
+    }
   },
   data() {
     return {};
@@ -63,7 +68,7 @@ export default {
       // 如果是h5 就显示头部
       let bool = false;
       bool = isApp ? (isAndroid ? !isAndroid : isIos) : (isWx ? !isWx : !isWx) ;
-      return bool && this.isNavBar;
+      return bool && this.isNavBar || this.forceShowNavBar;
     },
   },
   methods: {