|
@@ -26,7 +26,7 @@
|
|
|
<view class="imgBox" v-if="item.keyType==3">
|
|
|
<view class="imgLine" v-for="(img,imgindex) in item.imgArr">
|
|
|
<image :class="{img4:(imgindex+1)%4==0}" :src="img" mode="" class="itemImg"></image>
|
|
|
- <image src="../../static/img/icon_delpic@2x.png" mode="" class="delImg"></image>
|
|
|
+ <image src="../../static/img/icon_delpic@2x.png" mode="" class="delImg" @click="delimg(item,imgindex)"></image>
|
|
|
</view>
|
|
|
<view class="imgLine" @click="uploadImg(item)">
|
|
|
<image src="../../static/img/icon_addpic@2x.png" mode="" class="itemImg"></image>
|
|
@@ -131,6 +131,11 @@
|
|
|
console.log(this.categoryList);
|
|
|
this.categoryList.splice(1,0)
|
|
|
},
|
|
|
+ delimg(item,imgindex){
|
|
|
+ item.imgArr.splice(imgindex,1);
|
|
|
+ //console.log(item)
|
|
|
+ this.categoryList.splice(1,0)
|
|
|
+ },
|
|
|
pickerClick(item){
|
|
|
this.pickerItem=item
|
|
|
},
|