|
@@ -15,19 +15,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="grid col-4 grid-square flex-sub booder-top">
|
|
<view class="grid col-4 grid-square flex-sub booder-top">
|
|
|
- <view class="bg-img" v-for="(item, index) in form.headPhoto.split(',')" :key="index" @tap="ViewImage"
|
|
|
|
|
|
|
+ <view class="bg-img" v-for="(item, index) in form.photo" :key="index" @tap="ViewImage"
|
|
|
:data-url="form.headPhoto[index]">
|
|
:data-url="form.headPhoto[index]">
|
|
|
<image :src="item" mode="aspectFill"></image>
|
|
<image :src="item" mode="aspectFill"></image>
|
|
|
<view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
|
|
<view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
|
|
|
<text class='cuIcon-close'></text>
|
|
<text class='cuIcon-close'></text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="grid col-4 grid-square flex-sub booder-top" >
|
|
|
|
|
- <view class="solids" @tap="ChooseImage" >
|
|
|
|
|
- <text class='cuIcon-cameraadd'></text>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="solids" @tap="ChooseImage" >
|
|
|
|
|
+ <text class='cuIcon-cameraadd'></text>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -109,7 +106,6 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
DelImg(e) {
|
|
DelImg(e) {
|
|
|
-
|
|
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
content: '确定要删除?',
|
|
content: '确定要删除?',
|
|
@@ -117,10 +113,10 @@
|
|
|
confirmText: '确定',
|
|
confirmText: '确定',
|
|
|
success: res => {
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
- console.log(this.form)
|
|
|
|
|
|
|
+ console.log('删除前的图片', this.form.headPhoto)
|
|
|
// this.photoList.splice(e.currentTarget.dataset.index, 1)
|
|
// this.photoList.splice(e.currentTarget.dataset.index, 1)
|
|
|
this.form.photo.splice(e.currentTarget.dataset.index, 1)
|
|
this.form.photo.splice(e.currentTarget.dataset.index, 1)
|
|
|
-
|
|
|
|
|
|
|
+ console.log('删除后的图片', this.form.photo)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -150,7 +146,7 @@
|
|
|
this.form.headPhoto+(configService.apiUrl + '/' + data.message)
|
|
this.form.headPhoto+(configService.apiUrl + '/' + data.message)
|
|
|
temp.push(configService.apiUrl + '/' + data.message)
|
|
temp.push(configService.apiUrl + '/' + data.message)
|
|
|
this.form.headPhoto = temp.join(',')
|
|
this.form.headPhoto = temp.join(',')
|
|
|
- console.log(this.form.headPhoto)
|
|
|
|
|
|
|
+ console.log('上传后的图片', this.form.headPhoto)
|
|
|
} else {
|
|
} else {
|
|
|
console.log('22222')
|
|
console.log('22222')
|
|
|
// this.photoList =res.tempFilePaths
|
|
// this.photoList =res.tempFilePaths
|