@@ -118,15 +118,16 @@ import navBar from "@/components/common/nav_bar.vue";
border-radius: 15Px;
overflow: hidden;
.block_tt{
- font-size: 16Px;
+ font-size: 20Px;
display: flex;
align-items: center;
- padding: 0 3vw;
+ padding: 1.6vh 3vw;
line-height: 1;
+ font-weight: bold;
i{
display: block;
- width: 3Px;
- height: 14Px;
+ width: 4Px;
+ height: 16Px;
background: #0CBEA6;
margin-right: 5PX;
border-radius: 5PX;
diff --git a/src/views/user/supply/supplyAdd.vue b/src/views/user/supply/supplyAdd.vue
index bde98ef5..2d5ecb97 100644
--- a/src/views/user/supply/supplyAdd.vue
+++ b/src/views/user/supply/supplyAdd.vue
@@ -3,7 +3,7 @@
-
上传相关附件
+
上传相关附件
-
+
+
*请上传jpg/png文件,文件大小不超过5MB
发布
@@ -47,6 +48,7 @@ import { getMember , userDemand , updateDemand , selectDemand , base64Attach , s
import { getInfo } from "@/api/login/index";
import {Dialog} from "vant";
import navBar from "@/components/common/nav_bar.vue";
+import {base64Upload} from "@/api/register";
export default {
name: "supplyAdd",
components: { navBar },
@@ -92,18 +94,24 @@ export default {
methods: {
afterRead(file) {
// 此时可以自行将文件上传至服务器
-
- for ( var i = 0 ; i < this.fileList.length ; i++){
- if(this.fileList[i].url == undefined&&this.fileList!='') {
- this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true};
- }
+ let params1 = {
+ file:file.content
}
+ base64Upload(params1).then((r1) => {
+ this.upLoadList.push(r1.fileName);
+ })
+
+ // for ( var i = 0 ; i < this.fileList.length ; i++){
+ // if(this.fileList[i].url == undefined&&this.fileList!='') {
+ // this.fileList[i] = {url:this.fileList[i].content, id: '', isImage: true};
+ // }
+ // }
},
deleteFile(elIndex){
// deleteUserImg(elIndex.id).then(response => {});
- if(elIndex.id != ''){
- deleteUserImg(elIndex.id).then(response => {});
- }
+ // if(elIndex.id != ''){
+ // deleteUserImg(elIndex.id).then(response => {});
+ // }
return (file, name) => {
let fileIndex = name.index
this.fileList[elIndex].splice(fileIndex, 1)
@@ -145,31 +153,40 @@ export default {
},
submitInteraction(){
this.form.logintime = this.getNowFormatDate();
+ this.form.fileUrl = this.upLoadList.join(',');
if(this.$route.query.type == 'update'){
this.file.tableId = this.$route.query.id ;
updateDemand(this.form).then(response => {
- this.$toast.loading({
- message: "上传中...",
- forbidClick: true,
- duration: 0,
- });
- for (var i = 0 ; i < this.fileList.length ; i++){
- if(this.fileList[i].url.indexOf('http://') == -1&&this.fileList!=''){
- this.file.files.push(this.fileList[i].url);
- }
- }
- base64Attach(this.file).then(response => {
- if (response.code == 200){
- Dialog.confirm({
- title: '系统提示',
- message: '修改成功',
- confirmButtonText: '确定',
- showCancelButton:false
- }).then(() => {
- self.location=document.referrer;
- })
- }
- });
+ // this.$toast.loading({
+ // message: "上传中...",
+ // forbidClick: true,
+ // duration: 0,
+ // });
+ // for (var i = 0 ; i < this.fileList.length ; i++){
+ // if(this.fileList[i].url.indexOf('http://') == -1&&this.fileList!=''){
+ // this.file.files.push(this.fileList[i].url);
+ // }
+ // }
+ Dialog.confirm({
+ title: '系统提示',
+ message: '修改成功',
+ confirmButtonText: '确定',
+ showCancelButton:false
+ }).then(() => {
+ self.location=document.referrer;
+ })
+ // base64Attach(this.file).then(response => {
+ // if (response.code == 200){
+ // Dialog.confirm({
+ // title: '系统提示',
+ // message: '修改成功',
+ // confirmButtonText: '确定',
+ // showCancelButton:false
+ // }).then(() => {
+ // self.location=document.referrer;
+ // })
+ // }
+ // });
});
}else{
userDemand(this.form).then(response => {
@@ -179,21 +196,29 @@ export default {
forbidClick: true,
duration: 0,
});
- for(var i = 0 ; i < this.fileList.length ; i++){
- this.file.files.push(this.fileList[i].url);
- }
-
- base64Attach(this.file).then(response => {
- if (response.code == 200){
- Dialog.confirm({
- title: '系统提示',
- message: '发布成功',
- confirmButtonText: '确定',
- showCancelButton:false
- }).then(() => {
- })
- }
- });
+ // for(var i = 0 ; i < this.fileList.length ; i++){
+ // this.file.files.push(this.fileList[i].url);
+ // }
+ Dialog.confirm({
+ title: '系统提示',
+ message: '发布成功',
+ confirmButtonText: '确定',
+ showCancelButton:false
+ }).then(() => {
+ self.location=document.referrer;
+ })
+ // base64Attach(this.file).then(response => {
+ // if (response.code == 200){
+ // Dialog.confirm({
+ // title: '系统提示',
+ // message: '发布成功',
+ // confirmButtonText: '确定',
+ // showCancelButton:false
+ // }).then(() => {
+ // self.location=document.referrer;
+ // })
+ // }
+ // });
});
}
},
@@ -215,15 +240,16 @@ export default {
border-radius: 15Px;
overflow: hidden;
.block_tt{
- font-size: 16Px;
+ font-size: 20Px;
display: flex;
align-items: center;
- padding: 0 3vw;
+ padding: 1.6vh 3vw;
line-height: 1;
+ font-weight: bold;
i{
display: block;
- width: 3Px;
- height: 14Px;
+ width: 4Px;
+ height: 16Px;
background: #0CBEA6;
margin-right: 5PX;
border-radius: 5PX;
diff --git a/static/images/icon/news_icon_clock.png b/static/images/icon/news_icon_clock.png
new file mode 100644
index 00000000..3c560dee
Binary files /dev/null and b/static/images/icon/news_icon_clock.png differ
diff --git a/static/images/transaction_new/notic/notic_icon_04.png b/static/images/transaction_new/notic/notic_icon_04.png
index 026ee9ba..c0e1b5e4 100644
Binary files a/static/images/transaction_new/notic/notic_icon_04.png and b/static/images/transaction_new/notic/notic_icon_04.png differ
diff --git a/static/images/transaction_new/notic/notic_icon_06.png b/static/images/transaction_new/notic/notic_icon_06.png
new file mode 100644
index 00000000..62f32f17
Binary files /dev/null and b/static/images/transaction_new/notic/notic_icon_06.png differ