浏览代码

+ 交通强国小程序变更

chen.cheng 9 月之前
父节点
当前提交
df59c70f74
共有 2 个文件被更改,包括 11 次插入4 次删除
  1. 8 4
      pages/tabbar/index/index.vue
  2. 3 0
      util/request/responseInterceptors.js

+ 8 - 4
pages/tabbar/index/index.vue

@@ -24,11 +24,15 @@
         </u-grid-item>
         </u-grid-item>
       </u-grid>
       </u-grid>
     </view>
     </view>
-    <view class="u-page"
-          :style="{
-                 background: `url(${getImageUrl(ICON_CFG.theme_bg)}) no-repeat `,
+    <view
+        class="u-page"
+        :style="{
+                 background: `url(${getImageUrl(ICON_CFG.theme_bg)}) no-repeat 100% 100%`,
                  backgroundSize: '100%',
                  backgroundSize: '100%',
-               }">
+                 padding: '0 40rpx 20rpx 40rpx',
+                 marginTop: '20rpx',
+               }"
+    >
       <view class="u-page-title">
       <view class="u-page-title">
         <view class="title-content">主题研讨交流</view>
         <view class="title-content">主题研讨交流</view>
       </view>
       </view>

+ 3 - 0
util/request/responseInterceptors.js

@@ -15,6 +15,9 @@ module.exports = (vm) => {
                 if (data.code === 401) {
                 if (data.code === 401) {
                     uni.$u.toast('请先登录');
                     uni.$u.toast('请先登录');
                 }
                 }
+                if (data.code === 500) {
+                    uni.$u.toast(data.msg);
+                }
             }
             }
             // 如果需要catch返回,则进行reject
             // 如果需要catch返回,则进行reject
             if (custom?.catch) {
             if (custom?.catch) {