提交 1588de2b authored 作者: huaxinzhu's avatar huaxinzhu

品牌图片上传接口修改

上级 b67e9990
......@@ -34,10 +34,18 @@ export function upBrand(data) {
});
}
// 上传图片
// 上传图片 old
// export function upLoadImg (data) {
// return request({
// url: '/system/goods/uploadImg',
// method: 'post',
// data: data
// });
// }
// new
export function upLoadImg (data) {
return request({
url: '/system/goods/uploadImg',
url: '/system/goodsNew/uploadImage',
method: 'post',
data: data
});
......
......@@ -16,7 +16,7 @@
<el-input v-model="formInline.goods_id" size="mini" placeholder="填写商品编号"></el-input>
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="formInline.goods_name" size="mini" placeholder="填写商品编号"></el-input>
<el-input v-model="formInline.goods_name" size="mini" placeholder="填写商品名称"></el-input>
</el-form-item>
<el-form-item label="商品状态" v-show="radiomodel==3">
<el-select v-model="formInline.status" placeholder="请选择" size="mini" style='width:100px;'>
......
......@@ -496,7 +496,7 @@
upLoadImg(data).then((res) => {
if (res && res.code === 1) {
this.brandImgFileList.push({'url': res.data.image_url});
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
this.$refs.brandForm.clearValidate('brand_logo');
//this.$refs.logoImg.clearValidate();
}
......@@ -543,7 +543,7 @@
upLoadImg(data).then((res) => {
if (res && res.code === 1) {
this.certImgFileList.push({'url': res.data.image_url});
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
this.$refs.brandForm.clearValidate('brand_register_cert');
//this.$refs.logoImg.clearValidate();
}
......@@ -575,7 +575,7 @@
if(res && res.code === 1){
this.factoryImgFileList.push({'url':res.data.image_url});
this.$refs.brandForm.clearValidate('brand_auth');
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
}
});
});
......@@ -620,7 +620,7 @@
upLoadImg(data).then((res) => {
if(res && res.code === 1){
this.shopImgFileList.push({'url':res.data.image_url});
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
this.$refs.brandForm.clearValidate('brand_business_auth');
}
});
......
......@@ -747,7 +747,7 @@
upLoadImg(data).then((res) => {
if(res && res.code == 1){
this.logoImgFileList.push({'url':res.data.image_url});
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
this.$refs.storeForm.clearValidate('shop_logo');
}
});
......@@ -762,7 +762,7 @@
upLoadImg(data).then((res) => {
if(res && res.code == 1){
this.businessImgFileList.push({'url':res.data.image_url});
this.$message('上传成功');
this.$message({message: '上传成功', type: 'success'});
this.$refs.storeForm.clearValidate('business_auth');
}
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论