Browse Source

动态文案

谢杰标 2 years ago
parent
commit
4778f74500
3 changed files with 12 additions and 6 deletions
  1. 1 0
      common/config.js
  2. 1 1
      pages.json
  3. 10 5
      pages/index/index.vue

+ 1 - 0
common/config.js

@@ -10,6 +10,7 @@ const test = {
     version: '1.0.2',
     TOP_LOGO: '/static/logo2.png',
     SCAN_LOGO: '/static/me/logo.png',
+    tenantName: '祥粤云学堂',
 }
 const index = 0 // 测试环境
 // const index = 1 // 祥粤云学堂

+ 1 - 1
pages.json

@@ -3,7 +3,7 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "祥粤云学堂",
+				"navigationBarTitleText": "云学堂",
 				"onReachBottomDistance": 50,
 				"app-plus": {
 					"titleNView": false //禁用原生导航栏  

+ 10 - 5
pages/index/index.vue

@@ -314,8 +314,8 @@
           <u-empty text="暂无推荐题库" mode="list" margin-top="100"></u-empty>
         </template>
       </view>
-      <view class="bom-tip">{{tenantInfo.tips1}}</view>
-      <view class="bom-tip">{{tenantInfo.tips2}}</view>
+      <view class="bom-tip">{{ tenantInfo.tips1 }}</view>
+      <view class="bom-tip">{{ tenantInfo.tips2 }}</view>
     </view>
     <!-- #ifdef MP-WEIXIN -->
     <view :style="{ opacity: opacitys }" class="officials">
@@ -416,6 +416,11 @@ export default {
     };
   },
   async onLoad(option) {
+    // #ifdef H5
+    uni.setNavigationBarTitle({
+      title: config.tenantName,
+    });
+    // #endif
     this.isLogin = this.$method.isLogin();
     this.dictObj;
     this.getAdvertising();
@@ -1462,8 +1467,8 @@ page {
         }
       }
     }
-    .bom-tip{
-      color: #A7B0B8;
+    .bom-tip {
+      color: #a7b0b8;
       text-align: center;
       padding: 0 30rpx;
       font-size: 26rpx;
@@ -1783,4 +1788,4 @@ page {
     color: #7b8284;
   }
 }
-</style>
+</style>