Эх сурвалжийг харах

+ 交通强国小程序变更

chen.cheng 9 сар өмнө
parent
commit
df59c70f74

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

@@ -24,11 +24,15 @@
         </u-grid-item>
       </u-grid>
     </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%',
-               }">
+                 padding: '0 40rpx 20rpx 40rpx',
+                 marginTop: '20rpx',
+               }"
+    >
       <view class="u-page-title">
         <view class="title-content">主题研讨交流</view>
       </view>

+ 3 - 0
util/request/responseInterceptors.js

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