瀏覽代碼

修改门头照

付晓文。 3 月之前
父節點
當前提交
0181242b9f
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  1. 2 1
      pages/store/headPhoto.vue

+ 2 - 1
pages/store/headPhoto.vue

@@ -15,7 +15,7 @@
 						</view>
 					</view>
 					<view class="grid col-4 grid-square flex-sub booder-top">
-						<view class="bg-img" v-for="(item, index) in form.photo" :key="index" @tap="ViewImage"
+						<view class="bg-img" v-for="(item, index) in form.headPhoto.split(',')" :key="index" @tap="ViewImage"
 							:data-url="form.headPhoto[index]">
 							<image :src="item" mode="aspectFill"></image>
 							<view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
@@ -77,6 +77,7 @@
 		async onLoad(data) {
 			if (data.params) {
 				let obj = JSON.parse(decodeURIComponent(data.params));
+				console.log('111111',obj)
 				// this.video = obj.video ? obj.video : ''
 				obj.photo = obj.photo ? obj.headPhoto.split(',').filter(id => id !== '') : []
 				this.form = obj