Commit ccb9a0ab authored by 李晓兵's avatar 李晓兵

'代码回滚'

parent 93f9ae9d
......@@ -198,13 +198,19 @@
<span>{{ list.description }}</span>
<div class="img-content">
<!--待上传图片列表-->
<div v-for="(list, index) in upload_list" :key="index">
<div v-for="(list, index) in upload_list" v-if="item.check_id==list.check_id" :key="index" class="card-upload">
<img :src="list.picture" >
<div class="close" @click="delete_pic(item.attachment_id)">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
<!--从服务器上下载的图片-->
<div v-for="item in dowload_list" class="card-upload">
<div v-for="(pic, index) in item" :key="index">
<img :src="item.url" >
<div v-for="item in dowload_list">
<div v-for="(pic, index) in item" v-if="pic.check_id==list.check_id" :key="index" class="card-upload">
<img :src="pic.url" >
<div class="close" @click="delete_pic(pic.attachment_id)">
<img src="@/assets/userBind/deleteIcon.png">
</div>
</div>
</div>
<div class="card-upload" @click="imgUploadShow(list.check_id)">
......@@ -260,7 +266,7 @@
<input
slot="content"
v-model="bank.bank_account_num"
readonly
placeholder="识别银行卡自动填充"
>
</item>
......@@ -270,7 +276,7 @@
</item>
<item>
<div slot="name">银行名称</div>
<input slot="content" v-model="bank.bank_full_name" placeholder="识别银行卡自动填充" >
<input slot="content" v-model="bank.bank_full_name" readonly placeholder="识别银行卡自动填充" >
</item>
<item>
<div slot="name">支行名称</div>
......@@ -458,6 +464,10 @@ export default {
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
res.lists.forEach(item => {
item['url'] = process.env.filePath + 'attachment_id=' + item.attachment_id + '&access_token=' + window.localStorage.access_token
})
vm.dowload_list.push(res.lists)
} else {
hlsPopup.showLongCenter(res.message)
}
......@@ -657,7 +667,6 @@ export default {
},
// 图片保存
save_picture (list) {
alert('上传列表 ' + JSON.stringify(list))
let vm = this
if (list.length) {
// hlsPopup.showLoading('图片上传请稍候')
......@@ -673,7 +682,6 @@ export default {
for (var i = 0; i < list.length; i++) {
let uploadSuccess = function (res) {
if (res.result === 'S') {
alert('返回结果 ' + JSON.stringify(res.response))
alreadyUploadNum++
for (var j = 0; j < list.length; j++) {
if (list[j].filePath === res.response.filePath) {
......@@ -1336,7 +1344,17 @@ export default {
align-items: center;
margin-top: 12px;
margin-left: 12px;
// float: left;
float: left;
.close {
position: relative;
color: #F96F68;
margin-top: -100%;
margin-left: -10%;
img{
width: 14px;
height: 14px;
}
}
img {
width: 88px;
height: 88px;
......
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