diff --git a/pages/shop/photoAlbum/photoManage.vue b/pages/shop/photoAlbum/photoManage.vue index 13c7d3c..09ca84e 100644 --- a/pages/shop/photoAlbum/photoManage.vue +++ b/pages/shop/photoAlbum/photoManage.vue @@ -5,7 +5,7 @@ - 我的资料 + {{ titleList[type].title2 }} 展示位置及拍摄技巧 @@ -112,6 +112,16 @@ } ], }, + titleList: { + 1: { + title: "商家图片", + title2: "商家相册" + }, + 2: { + title: "视频作品", + title2: "商家视频" + }, + }, imgVideoList: { }, @@ -179,25 +189,28 @@ // }); }, goAdd(id, item) { - if (this.type == 1) { - if (this.imgVideoList[id] && this.imgVideoList[id].length >= 21) { - uni.showToast({ - title: '最多上传20张图片', - icon: 'none', - duration: 2000 - }); - return - } - } else if (this.type == 2) { - if (this.imgVideoList[id] && this.imgVideoList[id].length >= 10) { - uni.showToast({ - title: '最多上个10张视频', - icon: 'none', - duration: 2000 - }); - return + if (!item) { + if (this.type == 1) { + if (this.imgVideoList[id] && this.imgVideoList[id].length >= 20) { + uni.showToast({ + title: '最多上传20张图片', + icon: 'none', + duration: 2000 + }); + return + } + } else if (this.type == 2) { + if (this.imgVideoList[id] && this.imgVideoList[id].length >= 10) { + uni.showToast({ + title: '最多上个10张视频', + icon: 'none', + duration: 2000 + }); + return + } } } + // 1. 原有逻辑:分类id为空,拦截提示 if (!id) { uni.showToast({ diff --git a/pages/shop/photoAlbum/videoList.vue b/pages/shop/photoAlbum/videoList.vue index 9d2699c..abd5501 100644 --- a/pages/shop/photoAlbum/videoList.vue +++ b/pages/shop/photoAlbum/videoList.vue @@ -171,25 +171,28 @@ }, goAdd(id, item) { if (this.isManage) return; // 管理模式下禁止跳转 - if (this.type == 1) { - if (this.imgVideoList.length >= 20) { - uni.showToast({ - title: '最多上传20张图片', - icon: 'none', - duration: 2000 - }); - return - } - } else if (this.type == 2) { - if (this.imgVideoList.length >= 10) { - uni.showToast({ - title: '最多上10个视频', - icon: 'none', - duration: 2000 - }); - return + if(!item){ + if (this.type == 1) { + if (this.imgVideoList.length >= 20) { + uni.showToast({ + title: '最多上传20张图片', + icon: 'none', + duration: 2000 + }); + return + } + } else if (this.type == 2) { + if (this.imgVideoList.length >= 10) { + uni.showToast({ + title: '最多上10个视频', + icon: 'none', + duration: 2000 + }); + return + } } } + if (!id) { uni.showToast({ title: '参数异常,无法上传', diff --git a/pages/shop/staff/addStaff.vue b/pages/shop/staff/addStaff.vue index a313eb1..9eb0dd6 100644 --- a/pages/shop/staff/addStaff.vue +++ b/pages/shop/staff/addStaff.vue @@ -12,7 +12,7 @@ - + + + 邀请员工 - + diff --git a/pages/shop/staff/serviceList.vue b/pages/shop/staff/serviceList.vue index eb114d6..8636f8f 100644 --- a/pages/shop/staff/serviceList.vue +++ b/pages/shop/staff/serviceList.vue @@ -142,6 +142,7 @@ background-color: #fff; margin: 20rpx 20rpx 26rpx 20rpx; border-radius: 10rpx; + padding-bottom: 150rpx; .service-item { padding-top: 20rpx; diff --git a/utils/request.js b/utils/request.js index ff89727..151428f 100644 --- a/utils/request.js +++ b/utils/request.js @@ -134,12 +134,12 @@ const request = async (options, isUpdate) => { if (process.env.NODE_ENV === 'development') { - baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。 + //baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。 baseURL = 'http://60.247.146.5:93'; // 发布到生产环境时,此处代码会被摇树移除掉。 //baseURL = 'http://60.247.146.5:96'; // 发布到生产环境时,此处代码会被摇树移除掉。 //baseURL = 'https://app.mrrweb.com.cn'; } else { - baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。 + //baseURL = url; // 发布到生产环境时,此处代码会被摇树移除掉。 baseURL = 'http://60.247.146.5:93'; // 发布到生产环境时,此处代码会被摇树移除掉。 //baseURL = 'http://60.247.146.5:96'; // 发布到生产环境时,此处代码会被摇树移除掉。 //baseURL = 'https://app.mrrweb.com.cn';