|
@@ -4,7 +4,7 @@
|
|
|
<view class="list">
|
|
|
<view class="img" :class="selImg==index?'active':''" v-for="(item,index) in image_list" :key="index"
|
|
|
@click="selPhoto(item,index)">
|
|
|
- <image :src="item" mode="widthFix"></image>
|
|
|
+ <image :src="item" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -50,7 +50,7 @@
|
|
|
<block v-for="(item,index) in myinfo.article_list" :key="index">
|
|
|
<view class="item">
|
|
|
<view class="avator">
|
|
|
- <image class="icon" :src="item.avator" mode="widthFix">
|
|
|
+ <image class="icon" :src="item.avator" mode="aspectFill">
|
|
|
</image>
|
|
|
</view>
|
|
|
<view class="tit">
|
|
@@ -80,7 +80,8 @@
|
|
|
{{item.content}}
|
|
|
</view>
|
|
|
<view class="photo_list">
|
|
|
- <view class="img" v-for="(item2,index2) in toArr(item.images)" :key="index2" @click="previewOpen(item.images,index2)" v-if="item2 != ''">
|
|
|
+ <view class="img" v-for="(item2,index2) in toArr(item.images)" :key="index2"
|
|
|
+ @click="previewOpen(item.images,index2)" v-if="item2 != ''">
|
|
|
<image class="icon" :src="item2" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -182,7 +183,7 @@
|
|
|
},
|
|
|
onLoad(parms) {
|
|
|
let self = this;
|
|
|
- this.userID = parms.uid || 1;
|
|
|
+ this.userID = parms.uid || 1069;
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.$emit('check_update');
|
|
@@ -219,7 +220,7 @@
|
|
|
let arr = imgs.split("|");
|
|
|
return arr;
|
|
|
},
|
|
|
- previewOpen(imgs1,index) {
|
|
|
+ previewOpen(imgs1, index) {
|
|
|
this.imgs = imgs1.split("|");
|
|
|
this.$refs.previewImage.open(index || 1); // 传入当前选中的图片地址或序号
|
|
|
return; //如需测试和uni原生预览差别可注释这两行
|