Commit ff0b91a8 by wangyalan-git

修改图片上传/新增佣金

parent 85c23e48
......@@ -42,6 +42,7 @@
let res = []
if (this.value) {
let imageArray = this.value.split(',')
console.log('imageArray',imageArray)
for (let i = 0; i < imageArray.length; i++) {
res.push({url: this.resourcesUrl + imageArray[i], response: imageArray[i]})
}
......@@ -53,8 +54,13 @@
methods: {
// 图片上传
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 => {
return file.response.result.filePath
return file.response
}).join(',')
this.$emit('input', pics)
},
......
<template>
<div class="">
<div class="login">
<div class="login-box">
<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>
</div>
<div class="mid">
......@@ -45,7 +45,7 @@
</el-form>
</div>
<div class="bottom">Copyright © 2019 广州亚米科技有限公司</div>
<div class="bottom">Copyright © 2020 六方网络</div>
</div>
</div>
</template>
......@@ -130,7 +130,9 @@ export default {
text-align: center;
}
.login .login-box .top .logo {
width: 122px;
font-size: 0;
margin: 0 auto;
}
.login .login-box .top .company {
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