前端首页下拉样式,头部样式,seller端批量上传

This commit is contained in:
mabo
2021-07-13 18:15:32 +08:00
parent 4c0aec2f42
commit 0e277a8e6d
8 changed files with 153 additions and 85 deletions

View File

@@ -18,14 +18,14 @@ export default {
* @description api请求基础路径
*/
api_dev: {
// common: 'https://common-api.pickmall.cn',
// buyer: 'https://buyer-api.pickmall.cn',
// seller: 'https://store-api.pickmall.cn',
// manager: 'https://admin-api.pickmall.cn',
common: 'http://192.168.0.103:8890',
buyer: 'http://192.168.0.103:8888',
seller: 'http://192.168.0.103:8889',
manager: 'http://192.168.0.103:8887'
common: 'https://common-api.pickmall.cn',
buyer: 'https://buyer-api.pickmall.cn',
seller: 'https://store-api.pickmall.cn',
manager: 'https://admin-api.pickmall.cn',
// common: 'http://192.168.0.103:8890',
// buyer: 'http://192.168.0.103:8888',
// seller: 'http://192.168.0.103:8889',
// manager: 'http://192.168.0.103:8887'
},
api_prod: {

View File

@@ -619,25 +619,28 @@ export default {
desc: "图片 " + file.name + " 不能超过2mb"
});
},
// 商品图片上传
handleBeforeUploadGoodsPicture() {
const check = this.baseInfoForm.goodsGalleryFiles.length < 5;
if (!check) {
this.$Notice.warning({
title: "Up to five pictures can be uploaded.",
title: "图片数量不能大于五张",
});
return false
}
return check;
},
handleBeforeUpload() {
handleBeforeUpload(file) {
const check =
this.selectedSku.images !== undefined &&
this.selectedSku.images.length > 5;
if (check) {
this.$Notice.warning({
title: "Up to five pictures can be uploaded.",
title: "图片数量不能大于五张",
});
}
console.log(file);
return !check;
},
/** 查询商品品牌列表 */