Commit ea5bacad authored by qipeng's avatar qipeng

二次下载图片 清空上次下载的数据数组

parent 48e19a0c
......@@ -174,8 +174,25 @@ export default {
this.obtainProvince()//获取省市区
this.inquireMerchant()//查询所有商户
this.getPhotos()//照片列表
this.mearchLoadList()
},
methods: {
mearchLoadList(){//调用参数
var merchantIds = []
merchantIds.push(this.merchantId)
this.$request('scenic/merchantExtendProject/loadList',{
merchantIds:merchantIds
}).then((res)=>{
if(res.code=='00'){
this.option = res.data
}else{
this.$refs.uToast.show({
title: res.message,
type: 'error',
})
}
})
},
obtainProvince(){//获取省列表
this.$request('scenic/search/loadAreaByCity',{
areaLevel:1,
......
......@@ -18,7 +18,7 @@
</view>
<!--主体循环-->
<template v-for="(item,index) in previewData">
<view class="album-subjectBox" v-for="(item,index) in previewData">
<view class="suject-lable" :key="index">
<image src="../static/album/icon01.png"></image>
<view>{{item.merchantName}}</view>
......@@ -29,7 +29,7 @@
<u-checkbox v-model="item2.checkType" v-if="checkTypeFun==true" @click.stop.native="()=>{}" @change="stopPhoto(index,index2)" shape="circle" class="list-uCheck"></u-checkbox>
</view>
</view>
</template>
</view>
<!--脚部-->
<view class="album-bottom">
......@@ -212,6 +212,7 @@ export default {
}
},
upLoad(){//下单
this.imgList = []
this.previewData.forEach((item,index)=>{
item.list.forEach((item2,index2)=>{
if(item2.checkType==true){
......@@ -312,7 +313,7 @@ export default {
height: 100%;
background-color: #F7F7F7;
padding-bottom: 98rpx;
padding-top: 144rpx;
padding-top: 96rpx;
overflow: auto;
}
......@@ -356,7 +357,12 @@ export default {
.album-address::-webkit-scrollbar {
display: none;
}
.album-subjectBox{
display: flex;
flex-direction: column;
flex: 1;
overflow: auto;
}
.suject-lable{
display: flex;
height: 44rpx;
......@@ -378,10 +384,7 @@ export default {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
flex: 1;
padding: 0 24rpx 0 24rpx;
overflow: auto;
.subject-List {
width: 344rpx;
height: 344rpx;
......
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