Commit ff0b91a8 by wangyalan-git

修改图片上传/新增佣金

parent 85c23e48
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
let res = [] let res = []
if (this.value) { if (this.value) {
let imageArray = this.value.split(',') let imageArray = this.value.split(',')
console.log('imageArray',imageArray)
for (let i = 0; i < imageArray.length; i++) { for (let i = 0; i < imageArray.length; i++) {
res.push({url: this.resourcesUrl + imageArray[i], response: imageArray[i]}) res.push({url: this.resourcesUrl + imageArray[i], response: imageArray[i]})
} }
...@@ -53,8 +54,13 @@ ...@@ -53,8 +54,13 @@
methods: { methods: {
// 图片上传 // 图片上传
handleUploadSuccess (response, file, fileList) { handleUploadSuccess (response, file, fileList) {
console.log('fileList',fileList)
if(fileList.length){
fileList[fileList.length-1].response= fileList[fileList.length-1].response.result.filePath
// fileList[fileList.length-1].url= fileList[fileList.length-1].response.result.url
}
let pics = fileList.map(file => { let pics = fileList.map(file => {
return file.response.result.filePath return file.response
}).join(',') }).join(',')
this.$emit('input', pics) this.$emit('input', pics)
}, },
......
<template> <template>
<div class=""> <div class="login">
<div class="login-box"> <div class="login-box">
<div class="top"> <div class="top">
<div class="logo"><img src="~@/assets/img/login-logo.jpg" <div class="logo"><img src="~@/assets/img/login-logo.png"
alt=""></div> alt=""></div>
</div> </div>
<div class="mid"> <div class="mid">
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</el-form> </el-form>
</div> </div>
<div class="bottom">Copyright © 2019 广州亚米科技有限公司</div> <div class="bottom">Copyright © 2020 六方网络</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -130,7 +130,9 @@ export default { ...@@ -130,7 +130,9 @@ export default {
text-align: center; text-align: center;
} }
.login .login-box .top .logo { .login .login-box .top .logo {
width: 122px;
font-size: 0; font-size: 0;
margin: 0 auto;
} }
.login .login-box .top .company { .login .login-box .top .company {
font-size: 16px; font-size: 16px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment