From 38ab2960c1f2b3e97b4fa2a8a628f100e986a27c Mon Sep 17 00:00:00 2001
From: caoyizhong <1270296080@qq.com>
Date: Thu, 26 May 2022 18:07:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=94=BE=E7=A9=BA=E6=8A=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wjnft/information.js | 18 +-
src/api/wjnft/rotationmap.js | 8 +
src/views/wjnft/brand/index.vue | 7 +-
src/views/wjnft/collection/index.vue | 6 +-
src/views/wjnft/company/index.vue | 45 ++--
src/views/wjnft/information/index.vue | 92 ++++++-
src/views/wjnft/order/index.vue | 1 +
src/views/wjnft/rotation/index.vue | 54 ++--
src/views/wjnft/rotationmap/index.vue | 358 ++++++++++++++++----------
src/views/wjnft/us/index.vue | 19 +-
10 files changed, 403 insertions(+), 205 deletions(-)
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 @@
+
+
diff --git a/src/views/wjnft/company/index.vue b/src/views/wjnft/company/index.vue
index d458aa7..6da610d 100644
--- a/src/views/wjnft/company/index.vue
+++ b/src/views/wjnft/company/index.vue
@@ -224,7 +224,7 @@ export default {
// content: [ { required: true, message: '请输入内容' }],
title: [{required: true, message: '请填写标题', trigger: 'blur'}],
content: [{required: true, message: '请填写内容', trigger: 'blur'}],
- picture: [{required: true, message: '请选择图片', trigger: 'blur'}]
+ picture: [{}]
},
};
},
@@ -308,23 +308,34 @@ export default {
if (valid) {
if (this.form.id != null) {
console.log(this.form);
- this.form.picture = this.global.apiUrl;
- updateCompany(this.form).then(response => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.echo = false;
- this.getList();
- });
+ if(this.global.apiUrl === null){
+ this.$message.warning("请上传图片")
+ }else {
+
+ this.form.picture = this.global.apiUrl;
+ updateCompany(this.form).then(response => {
+ this.$modal.msgSuccess("修改成功");
+ this.open = false;
+ this.echo = false;
+ this.getList();
+ });
+ }
} else {
// console.log(this.global.apiUrl);
- this.form.picture = this.global.apiUrl;
- // console.log(this.form);
- addCompany(this.form).then(response => {
- this.$modal.msgSuccess("新增成功");
- this.open = false;
- this.echo = false;
- this.getList();
- });
+
+ if(this.global.apiUrl === null){
+ this.$message.warning("请上传图片")
+ }else{
+ // console.log(this.form);
+ this.form.picture = this.global.apiUrl;
+ addCompany(this.form).then(response => {
+ this.$modal.msgSuccess("新增成功");
+ this.open = false;
+ this.echo = false;
+ this.getList();
+ });
+ }
+
}
}
});
@@ -332,7 +343,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
- this.$modal.confirm('是否确认删除公司编号为"' + ids + '"的数据项?').then(function() {
+ this.$modal.confirm('是否确认删除标题为"' + row.title + '"的数据项?').then(function() {
return delCompany(ids);
}).then(() => {
this.getList();
diff --git a/src/views/wjnft/information/index.vue b/src/views/wjnft/information/index.vue
index 4de927e..39a0bad 100644
--- a/src/views/wjnft/information/index.vue
+++ b/src/views/wjnft/information/index.vue
@@ -177,7 +177,7 @@
prop="state"
align="center"
label="状态">
-
+
{{ scope.row.state === 0 ? '未出售': '' }}
{{ scope.row.state === 1 ? '已出售': '' }}
@@ -194,24 +194,25 @@
-
-
-
-
-
-
-
-
-
+
+
+ 空投
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -283,12 +297,16 @@