Ver código fonte

Merge branch 'master' of xwh/kmall-pt-general into master

张创标 4 anos atrás
pai
commit
aa896f6751

+ 3 - 1
kmall-admin/src/main/webapp/WEB-INF/page/shop/category.html

@@ -192,7 +192,9 @@
                                 max-size="100"
                                 :on-success="handleSuccessWapBannerUrl" :on-format-error="handleFormatError"
                                 :show-upload-list="false"
-                                :on-exceeded-size="handleMaxSize">
+                                :on-exceeded-size="handleMaxSize"
+
+                        >
                             <i-button icon="ios-cloud-upload-outline">上传图片</i-button>
                         </Upload>
                     </Form-item>

+ 24 - 0
kmall-admin/src/main/webapp/js/shop/brand.js

@@ -298,15 +298,39 @@ var vm = new Vue({
             vm.handleReset('formValidate');
         },
         handleSuccessListPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.brand.listPicUrl = file.response.url;
         },
         handleSuccessPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.brand.picUrl = file.response.url;
         },
         handleSuccessAppListPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.brand.appListPicUrl = file.response.url;
         },
         handleSuccessNewPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.brand.newPicUrl = file.response.url;
         },
         handleFormatError: function (file) {

+ 12 - 0
kmall-admin/src/main/webapp/js/shop/category.js

@@ -336,6 +336,12 @@ var vm = new Vue({
             eyeImage(url);
         },
         handleSuccessIconUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.category.iconUrl = file.response.url;
         },
         eyeImageIconUrl: function () {
@@ -350,6 +356,12 @@ var vm = new Vue({
             eyeImage(url);
         },
         handleSuccessWapBannerUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.category.wapBannerUrl = file.response.url;
         },
         eyeImageWapBannerUrl: function () {

+ 18 - 0
kmall-admin/src/main/webapp/js/shop/goods.js

@@ -658,9 +658,21 @@ var vm = new Vue({
             handleResetForm(this, name);
         },
         handleSuccessPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.goods.primaryPicUrl = file.response.url;
         },
         handleSuccessListPicUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.goods.listPicUrl = file.response.url;
         },
         eyeImagePicUrl: function () {
@@ -691,6 +703,12 @@ var vm = new Vue({
             });
         },
         handleSuccessListVideoUrl: function (res, file) {
+            if (res.code=="500" && res.msg=="没有权限,请联系管理员授权"){
+                this.$Notice.warning({
+                    title: res.msg,
+                    desc: "无上传文件的权限,请联系管理员授权"
+                });
+            }
             vm.goods.videoUrl = file.response.url;
         },
         goodsExport: function () {