Ver Fonte

页面优化

zhengjinyi há 6 meses atrás
pai
commit
a02f90c764
27 ficheiros alterados com 160 adições e 112 exclusões
  1. 4 2
      src/main/resources/static/js/supplier-center/article/article-edit.js
  2. 4 2
      src/main/resources/static/js/supplier-center/article/article-list.js
  3. 4 2
      src/main/resources/static/js/supplier-center/encyclopedia/edit.js
  4. 4 2
      src/main/resources/static/js/supplier-center/encyclopedia/list.js
  5. 57 56
      src/main/resources/static/js/supplier-center/operation/form.js
  6. 4 3
      src/main/resources/static/js/supplier-center/operation/list.js
  7. 5 2
      src/main/resources/static/js/supplier-center/order/order-create.js
  8. 4 2
      src/main/resources/static/js/supplier-center/order/orderlist.js
  9. 4 3
      src/main/resources/static/js/supplier-center/order/settlement.js
  10. 4 2
      src/main/resources/static/js/supplier-center/setting/information.js
  11. 4 2
      src/main/resources/static/js/supplier-center/setting/password.js
  12. 4 2
      src/main/resources/static/js/supplier-center/setting/phone.js
  13. 4 3
      src/main/resources/static/js/supplier-center/shop/brand.js
  14. 4 2
      src/main/resources/static/js/supplier-center/shop/category-edit.js
  15. 4 3
      src/main/resources/static/js/supplier-center/shop/coupon-write.js
  16. 4 2
      src/main/resources/static/js/supplier-center/shop/decoration.js
  17. 5 2
      src/main/resources/static/js/supplier-center/shop/disguise.js
  18. 4 2
      src/main/resources/static/js/supplier-center/shop/freight.js
  19. 4 2
      src/main/resources/static/js/supplier-center/shop/goods.js
  20. 1 1
      src/main/resources/static/js/supplier-center/shop/mixins/getInfoMixins.js
  21. 4 2
      src/main/resources/static/js/supplier-center/shop/release.js
  22. 4 3
      src/main/resources/static/js/user-center/order/detail.js
  23. 4 2
      src/main/resources/static/js/user-center/order/list.js
  24. 4 2
      src/main/resources/static/js/user-center/setting/information.js
  25. 4 2
      src/main/resources/static/js/user-center/setting/password.js
  26. 4 2
      src/main/resources/static/js/user-center/setting/phone.js
  27. 4 2
      src/main/resources/static/js/user-center/setting/upgrade.js

+ 4 - 2
src/main/resources/static/js/supplier-center/article/article-edit.js

@@ -119,10 +119,12 @@ var articleEdit = new Vue({
         this.init();
     },
     mounted: function mounted() {
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
         this.initAutoInput('.seo-auto-input', 'keyword')
         this.isLoading = false
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     },
     beforeDestroy: function beforeDestroy() {
         localStorage.removeItem('articleId');

+ 4 - 2
src/main/resources/static/js/supplier-center/article/article-list.js

@@ -261,7 +261,9 @@ var articleList = new Vue({
          window.name = this.name;
          // this.bindWindowHiddenOrVis();
          this.isLoading = false
-         $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-         $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/supplier-center/encyclopedia/edit.js

@@ -280,8 +280,10 @@ const edit = new Vue({
         }
     },
     mounted(){
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(3).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(3).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
         this.initAutoInput('.seo-auto-input', 'seoKeyword')
     },
     watch: {

+ 4 - 2
src/main/resources/static/js/supplier-center/encyclopedia/list.js

@@ -46,8 +46,10 @@ const list = new Vue({
     mounted() {
         window.name = this.windowName
         this.isLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(3).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(3).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     },
     methods: {
         // 页码跳转

+ 57 - 56
src/main/resources/static/js/supplier-center/operation/form.js

@@ -1,56 +1,57 @@
-;
-var operationPage = new Vue({
-    el: "#operationPage",
-    mixins: [cmSysVitaMixins],
-    data: {
-        loginLoading: false,
-        userId: 0,
-        addForm: {
-            mobile: '',
-            linkName: '',
-            userId: '',
-            shopId: '',
-            configFlag: 2
-        },
-        rule: {
-            name: '^[a-zA-Z\\u4e00-\\u9fa5]{2,}$',
-            phone: '^\\d{6,12}$'
-        }
-    },
-    computed: {
-
-    },
-    methods: {
-        addConfirmFn:function(data){//添加运营人员
-            var _self = this;
-            var pass = verifyForm();
-            if (_self.loginLoading) { return false; }
-            if (!pass) {return false;}
-            _self.loginLoading = true;
-            UserApi.AddOperationUse(_self.addForm,function (response) {
-                if(response.code == 0 ){ //删除成功
-                    CAIMEI.dialog('添加成功',true,function () {
-                        window.location.href='/supplier/operation/list.html';
-                        _self.loginLoading = false;
-                    });
-                }else{
-                    CAIMEI.Alert(response.msg,'确定',false);
-                    _self.loginLoading = false;
-                }
-            })
-        },
-        blurHandle: function(event) { // 失去焦点校验
-            var el = event.currentTarget;
-            verifyHandle(el);
-        }
-    },
-    mounted: function () {
-        if(globalUserData){
-            this.addForm.userId = globalUserData.userId;
-            this.addForm.shopId = globalUserData.shopId;
-        }
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
-
-    }
-});
+;
+var operationPage = new Vue({
+    el: "#operationPage",
+    mixins: [cmSysVitaMixins],
+    data: {
+        loginLoading: false,
+        userId: 0,
+        addForm: {
+            mobile: '',
+            linkName: '',
+            userId: '',
+            shopId: '',
+            configFlag: 2
+        },
+        rule: {
+            name: '^[a-zA-Z\\u4e00-\\u9fa5]{2,}$',
+            phone: '^\\d{6,12}$'
+        }
+    },
+    computed: {
+
+    },
+    methods: {
+        addConfirmFn:function(data){//添加运营人员
+            var _self = this;
+            var pass = verifyForm();
+            if (_self.loginLoading) { return false; }
+            if (!pass) {return false;}
+            _self.loginLoading = true;
+            UserApi.AddOperationUse(_self.addForm,function (response) {
+                if(response.code == 0 ){ //删除成功
+                    CAIMEI.dialog('添加成功',true,function () {
+                        window.location.href='/supplier/operation/list.html';
+                        _self.loginLoading = false;
+                    });
+                }else{
+                    CAIMEI.Alert(response.msg,'确定',false);
+                    _self.loginLoading = false;
+                }
+            })
+        },
+        blurHandle: function(event) { // 失去焦点校验
+            var el = event.currentTarget;
+            verifyHandle(el);
+        }
+    },
+    mounted: function () {
+        if(globalUserData){
+            this.addForm.userId = globalUserData.userId;
+            this.addForm.shopId = globalUserData.shopId;
+        }
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
+    }
+});

+ 4 - 3
src/main/resources/static/js/supplier-center/operation/list.js

@@ -177,8 +177,9 @@ var operationPage = new Vue({
         }
         this.isLoading = false;
         console.log(this.listQuery.orderState)
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(4).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
-
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(4).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 });

+ 5 - 2
src/main/resources/static/js/supplier-center/order/order-create.js

@@ -1,5 +1,3 @@
-$('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-$('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(2).addClass("on");
 const seeDetail = new Vue({
     el: '#seeDetail',
     mixins: [cmSysVitaMixins],
@@ -446,6 +444,11 @@ const seeDetail = new Vue({
             this.shopId = this.prosParams.shopId = globalUserData.shopId;
             this.isLoading = false
         }
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(2).addClass("on");
+        },200)
+
         if (isPC) {
             $(window).scroll(function (event) {
                 var supportPageOffset = window.pageXOffset !== undefined; // 判断是否支持pageXOffset

+ 4 - 2
src/main/resources/static/js/supplier-center/order/orderlist.js

@@ -284,7 +284,9 @@ var orderList = new Vue({
         }
         this.getList();
         this.loginLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 })

+ 4 - 3
src/main/resources/static/js/supplier-center/order/settlement.js

@@ -112,8 +112,9 @@ var settlement = new Vue({
         }
         this.getList();
         this.isLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
-
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 })

+ 4 - 2
src/main/resources/static/js/supplier-center/setting/information.js

@@ -466,7 +466,9 @@
             }
         });
         this.isLoading=false;
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(4).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(4).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
  })

+ 4 - 2
src/main/resources/static/js/supplier-center/setting/password.js

@@ -221,7 +221,9 @@ var passwordPage = new Vue({
     },
     mounted: function () {
         this.isLoading =false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(5).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(5).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/supplier-center/setting/phone.js

@@ -130,7 +130,9 @@ var phonePage = new Vue({
             this.form.userId = globalUserData.userId;
             this.isLoading =false
         }
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(5).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(5).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 });

+ 4 - 3
src/main/resources/static/js/supplier-center/shop/brand.js

@@ -189,8 +189,9 @@ var Brandgoods =new Vue({
                 }
             });
         }
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(4).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(4).addClass("on");
+        },200)
     }
-
 })

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/category-edit.js

@@ -117,7 +117,9 @@ var decoration = new Vue({
             this.echoShopCategory({ id:this.disguiseForm.id})
         }
         this.loginLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 })

+ 4 - 3
src/main/resources/static/js/supplier-center/shop/coupon-write.js

@@ -110,8 +110,9 @@ var settlement = new Vue({
             this.layout ='total, prev, pager, next';
         }
         this.getList();
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(6).addClass("on");
-
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(6).addClass("on");
+        },200)
     }
 })

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/decoration.js

@@ -118,7 +118,9 @@ var decoration = new Vue({
         }
         this.fetchDressUpList();
         this.isLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 })

+ 5 - 2
src/main/resources/static/js/supplier-center/shop/disguise.js

@@ -30,7 +30,10 @@ var decoration = new Vue({
         }
         this.getCategoryList();
         this.loginLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+
+        },200)
     }
 })

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/freight.js

@@ -147,8 +147,10 @@ var myGoods = new Vue({
             this.layout ='total, prev, pager, next';
         }
         this.isLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(5).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(5).addClass("on");
+        },200)
     }
 });
 

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/goods.js

@@ -261,8 +261,10 @@ var myGoods = new Vue({
             this.layout ='total, prev, pager, next';
         }
         this.loginLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(3).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(3).addClass("on");
+        },200)
     }
 });
 

+ 1 - 1
src/main/resources/static/js/supplier-center/shop/mixins/getInfoMixins.js

@@ -270,7 +270,7 @@ var getInfoMixins = function () {
                 this.releaseParams.shopId = globalUserData.shopId;
                 this.releaseParams.userId = globalUserData.userId;
                 this.releaseType = CAIMEI.getUrlParam('type');
-                if(  this.releaseType == 'edit'){
+                if(  this.releaseType === 'edit'){
                     this.productId = Number(CAIMEI.getUrlParam('productId'));
                     this.GetEditReleaseProductInfo(this.productId);
                 }

+ 4 - 2
src/main/resources/static/js/supplier-center/shop/release.js

@@ -1,8 +1,6 @@
 /**
  * Created by ZHJY on 2020/9/17.
  */
-$('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-$('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(2).addClass("on");
 var releaseContainer = new Vue({
     el:"#releaseContainer",
     mixins: [getInfoMixins,checkeMixins,freightMixins,releaseMixins,cmSysVitaMixins],
@@ -629,5 +627,9 @@ var releaseContainer = new Vue({
     mounted: function () {
         this.NODE_ENV_BASE_URL = $('#coreServer').val();
         this.loginLoading = false
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(2).addClass("on");
+        },200)
     }
 });

+ 4 - 3
src/main/resources/static/js/user-center/order/detail.js

@@ -359,8 +359,9 @@ const orderPage = new Vue({
             var scrollHeight = supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;
             _self.isFiexd = scrollHeight < 100;
         });
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
-
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/user-center/order/list.js

@@ -333,8 +333,10 @@ var orderPage = new Vue({
             this.getList();
             this.loginLoading = false
         }
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(0).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
         // var startDate = getDateStr(new Date(), -365), endDate = getDateStr(new Date(),0);
         // $('#orderDate').dateRangePicker({
         //     language: 'cn',

+ 4 - 2
src/main/resources/static/js/user-center/setting/information.js

@@ -475,7 +475,9 @@ var informationPage = new Vue({
             this.infoInformationData()
         }
         this.GetProvinceFn();
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/user-center/setting/password.js

@@ -221,7 +221,9 @@ var passwordPage = new Vue({
     },
     mounted: function () {
         this.isLoading = false
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/user-center/setting/phone.js

@@ -132,7 +132,9 @@ var phonePage = new Vue({
             this.form.userId = globalUserData.userId;
             this.isLoading = false
         }
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(2).addClass("on").find('.con').show().find('a').eq(1).addClass("on");
+        },200)
     }
 });

+ 4 - 2
src/main/resources/static/js/user-center/setting/upgrade.js

@@ -472,7 +472,9 @@ var upgradePage = new Vue({
                 CAIMEI.Alert(response.msg, '确定', false);
             }
         });
-        $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
-        $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        setTimeout(()=>{
+            $('.navLayout').find('.navList').removeClass("on").find('.con').hide().find('a').removeClass("on");
+            $('.navLayout').find('.navList').eq(1).addClass("on").find('.con').show().find('a').eq(0).addClass("on");
+        },200)
     }
 });