Commit ea5bacad authored by qipeng's avatar qipeng

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

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