|
|
@@ -13,7 +13,7 @@
|
|
|
<!-- <span class="label">图片:</span> -->
|
|
|
<view class="flex-box">
|
|
|
<view v-if="item.attach_list.length == 0">-</view>
|
|
|
- <image :src="globalUrl + item1" v-for="(item1,index) in item.attach_list" :key="index" mode="aspectFit" @click="showlarge(item1)"/>
|
|
|
+ <image :src="globalUrl + item1" v-for="(item1,index) in item.attach_list" :key="index" mode="aspectFit" @click="showlarge(item.attach_list,index)"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -57,10 +57,15 @@ export default {
|
|
|
this.getRecordList();
|
|
|
},
|
|
|
methods: {
|
|
|
- showlarge(src){
|
|
|
- src = this.globalUrl + src
|
|
|
+ showlarge(list,index){
|
|
|
+ //src = this.globalUrl + src
|
|
|
+ let photoList = list.map((item)=>{
|
|
|
+ return getApp().globalData.shareUrl + item
|
|
|
+ })
|
|
|
+ console.log(photoList)
|
|
|
uni.previewImage({
|
|
|
- urls: [src],
|
|
|
+ current:index,
|
|
|
+ urls: photoList,
|
|
|
longPressActions: {
|
|
|
itemList: ["发送给朋友", "保存图片"],
|
|
|
success: function (data) {},
|