Explorar el Código

feat: 推出重设mode,样式

ljc hace 1 mes
padre
commit
5274893458
Se han modificado 3 ficheros con 4 adiciones y 2 borrados
  1. 1 1
      pages/ib/settingPammManager.vue
  2. 1 1
      pages/login/index.vue
  3. 2 0
      utils/request.js

+ 1 - 1
pages/ib/settingPammManager.vue

@@ -79,7 +79,7 @@
       </view>
 
       <view class="submit-bar">
-        <button type="primary" class="submit-btn" @click="applySubmit">{{ t('Btn.Confirm') }}</button>
+        <button type="primary" class="submit-btn btn btn-dark waves-effect waves-light" @click="applySubmit">{{ t('Btn.Confirm') }}</button>
       </view>
     </view>
 

+ 1 - 1
pages/login/index.vue

@@ -34,7 +34,7 @@
                     <text v-t="'newSignin.item13_4'"></text> -->
                   </view>
                 </view>
-                <image src="/static/images/trust-pilot.png" class="img-fluid mt--10" mode="widthFix"></image>
+<!--                <image src="/static/images/trust-pilot.png" class="img-fluid mt&#45;&#45;10" mode="widthFix"></image>-->
               </view>
             </view>
           </uni-col>

+ 2 - 0
utils/request.js

@@ -12,6 +12,7 @@ const LOGIN_PAGE_PATH = "/pages/login/index";
 import useGlobalStore from "@/stores/use-global-store";
 import useUserStore from "@/stores/use-user-store";
 
+const globalStore = useGlobalStore()
 export const getCurrentPageUrl = () => {
   const pages = getCurrentPages(); // UniApp获取当前页面栈
   const currentPage = pages[pages.length - 1];
@@ -104,6 +105,7 @@ const responseInterceptor = (response, options = {}) => {
             success: () => {
               uni.setStorageSync('logoutToSystem',1)
               ls.set('mode', 'customer');
+              globalStore.setMode('customer');
               isRedirectingToLogin = false;
             },
             fail: () => {