diff --git a/src/api/wjnft/information.js b/src/api/wjnft/information.js index c6c3c79..de85733 100644 --- a/src/api/wjnft/information.js +++ b/src/api/wjnft/information.js @@ -17,7 +17,7 @@ export function getInformation(id) { }) } -// 新增藏品信息 +// 新增藏品信息 export function addInformation(data) { return request({ url: '/wjnft/information', @@ -26,7 +26,7 @@ export function addInformation(data) { }) } -// 修改藏品信息 +// 修改藏品信息 export function updateInformation(data) { return request({ url: '/wjnft/information', @@ -35,10 +35,22 @@ export function updateInformation(data) { }) } -// 删除藏品信息 +// 删除藏品信息 export function delInformation(id) { return request({ url: '/wjnft/information/' + id, method: 'delete' }) } + +// 空投赠送 +export function airInformation(data) { + return request({ + url: '/wjnft/information/donate' , + method: 'post', + data:data + }) +} + + + diff --git a/src/api/wjnft/rotationmap.js b/src/api/wjnft/rotationmap.js index 494d0ea..1fedecb 100644 --- a/src/api/wjnft/rotationmap.js +++ b/src/api/wjnft/rotationmap.js @@ -17,6 +17,14 @@ export function getRotationmap(id) { }) } +//微信访问二维码 +export function getWXRotationmap() { + return request({ + url: '/wjnft/rotationmap/getQrCode' , + method: 'get' + }) +} + // 新增PC图片路径 export function addRotationmap(data) { return request({ diff --git a/src/views/wjnft/brand/index.vue b/src/views/wjnft/brand/index.vue index f248ce9..83b4728 100644 --- a/src/views/wjnft/brand/index.vue +++ b/src/views/wjnft/brand/index.vue @@ -218,6 +218,7 @@ + 需要上传三张图片
上传文件只能是png,jpeg,jpg格式,大小不能超过3M @@ -333,7 +334,7 @@ export default { // content: [ { required: true, message: '请输入内容' }], name: [{required: true, message: '请填写标题', trigger: 'blur'}], content: [{required: true, message: '请填写介绍', trigger: 'blur'}], - picture: [{required: true, message: '请选择图片', trigger: 'blur'}] + picture: [{}] }, }; }, @@ -498,6 +499,8 @@ export default { } else { if(this.pictureUrl.length > 1){ this.form.picture = this.pictureUrl.join(","); + }else if(this.pictureUrl.length < 1){ + this.$message.warning("请上传图片") }else{ this.form.picture = this.pictureUrl[0]; } @@ -514,7 +517,7 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除入驻品牌编号为"' + ids + '"的数据项?').then(function() { + this.$modal.confirm('是否确认删除标题为"' + row.name + '"的数据项?').then(function() { return delBrand(ids); }).then(() => { this.getList(); diff --git a/src/views/wjnft/collection/index.vue b/src/views/wjnft/collection/index.vue index b405ccd..38c5427 100644 --- a/src/views/wjnft/collection/index.vue +++ b/src/views/wjnft/collection/index.vue @@ -194,7 +194,7 @@ - + @@ -217,7 +217,7 @@ - + @@ -281,6 +281,8 @@ + +