Commit a8380190 authored by 罗超's avatar 罗超

1

parent 4448f3e5
...@@ -83,7 +83,6 @@ export default { ...@@ -83,7 +83,6 @@ export default {
}); });
let methods = { let methods = {
previewImage(i) { previewImage(i) {
console.log(i);
uni.previewImage({ uni.previewImage({
urls: data.preImg, urls: data.preImg,
current: i, current: i,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view <view
v-for="(item, index) in dataList" v-for="(item, index) in dataList"
:key="index" :key="index"
class="list-item flex flex_between_center" class="list-item"
@click="jumpPage(item.FeedBackId)" @click="jumpPage(item.FeedBackId)"
> >
<view class="feedback-info flex flex_start_center"> <view class="feedback-info flex flex_start_center">
...@@ -29,20 +29,27 @@ ...@@ -29,20 +29,27 @@
</view> </view>
<view class="feedback-all"> {{ item.CreatetimeStr }} </view> <view class="feedback-all"> {{ item.CreatetimeStr }} </view>
</view> </view>
<view class="two_line feedback-text"> {{ item.Comment }}</view> <view class="feedback-text"> {{ item.Comment }}</view>
<view class="flex"> <view class="flex flex_wrap">
<view <view
v-for="(item1, index1) in item.PhotoList" v-for="(item1, index1) in item.PhotoList"
:key="index1" :key="index1"
class="feedback-img" class="feedback-img"
v-if="index1 === 0 || index1 === 1 || index1 === 2"
@click="previewImage(item.PhotoList, index1)"
> >
<image <image
:src="item1" :src="item1"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
mode="aspectFill"
v-if="index1 === 0 || index1 === 1 || index1 === 2" v-if="index1 === 0 || index1 === 1 || index1 === 2"
/> />
<view <view
class="layer flex flex_center_center" class="layer"
v-if="item.PhotoList.length > 3 && index1 === 2"
></view>
<view
class="layer2 flex flex_center_center"
v-if="item.PhotoList.length > 3 && index1 === 2" v-if="item.PhotoList.length > 3 && index1 === 2"
>+{{ item.PhotoList.length - 3 }}</view >+{{ item.PhotoList.length - 3 }}</view
> >
...@@ -106,6 +113,19 @@ export default { ...@@ -106,6 +113,19 @@ export default {
data.pageState = "none"; data.pageState = "none";
} }
}, },
previewImage(arr, i) {
uni.previewImage({
urls: arr,
current: i,
longPressActions: {
itemList: ["发送给朋友", "保存图片", "收藏"],
success: function (data) {},
fail: function (err) {
console.log(err.errMsg);
},
},
});
},
}; };
let that = methods; let that = methods;
onMounted(() => { onMounted(() => {
...@@ -133,7 +153,7 @@ export default { ...@@ -133,7 +153,7 @@ export default {
background-color: #fff; background-color: #fff;
} }
.list-item { .list-item {
height: 430rpx; /* height: 430rpx; */
box-sizing: border-box; box-sizing: border-box;
padding: 30rpx 0; padding: 30rpx 0;
} }
...@@ -171,7 +191,10 @@ export default { ...@@ -171,7 +191,10 @@ export default {
height: 210rpx; height: 210rpx;
border-radius: 20rpx; border-radius: 20rpx;
background-color: #eee; background-color: #eee;
overflow: hidden;
margin-right: 30rpx; margin-right: 30rpx;
box-shadow: 0rpx 10rpx 30rpx 0rpx rgba(36, 36, 36, 0.2);
position: relative;
} }
.feedback-img:nth-child(3n) { .feedback-img:nth-child(3n) {
margin-right: 0rpx !important; margin-right: 0rpx !important;
...@@ -179,10 +202,24 @@ export default { ...@@ -179,10 +202,24 @@ export default {
.layer { .layer {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 20rpx;
background-color: #cbd9ed; background-color: #cbd9ed;
position: absolute;
top: 0;
right: 0;
opacity: 0.5;
}
.layer2 {
width: 100%;
height: 100%;
border-radius: 20rpx;
font-size: 36rpx; font-size: 36rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #111111; color: #111111;
position: absolute;
top: 0;
right: 0;
z-index: 5;
} }
</style> </style>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment