Selaa lähdekoodia

去除顶部logo

谢杰标 2 vuotta sitten
vanhempi
commit
81013263cf
3 muutettua tiedostoa jossa 8 lisäystä ja 4 poistoa
  1. 2 2
      common/config.js
  2. 5 1
      components/nav-bar/nav-logo.vue
  3. 1 1
      pages/index/index.vue

+ 2 - 2
common/config.js

@@ -6,8 +6,8 @@ const test = {
   tenantId: "867735392558919680", //详粤云学堂
   appid: "wxd3c8ae80cf43a305",
 };
-// const index = 0; // 测试环境
-const index = 1; // 祥粤云学堂
+const index = 0; // 测试环境
+// const index = 1; // 祥粤云学堂
 // const index = 2 // 祥粤学堂
 // const index = 3 // 勘设云学堂
 // const index = 4 // 中正云学堂

+ 5 - 1
components/nav-bar/nav-logo.vue

@@ -8,7 +8,7 @@
       title-color="#333333"
       back-icon-color="#ffffff"
     >
-      <view class="slot-wrap">
+      <view class="slot-wrap" v-if="isShowLogo">
         <image
           :src="$method.splitImgHost(config.h5Logo)"
           @load="load"
@@ -28,6 +28,10 @@ export default {
       type: String,
       default: "",
     },
+    isShowLogo: {
+      type: Boolean,
+      default: false,
+    },
   },
   data() {
     return {

+ 1 - 1
pages/index/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view class="index">
-    <nav-logo></nav-logo>
+    <nav-logo :isShowLogo="true"></nav-logo>
     <view class="swiper">
       <swiper
         :indicator-dots="false"