征信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhengxinApplets/pages/user/feedDetails.vue

125 lines
2.4 KiB

3 months ago
<template>
<view class="site">
<view class="site-bd">
<view class="item" >
<view class="a">反馈类型</view>
3 months ago
<view class="b">{{feedInfo.type}}</view>
3 months ago
</view>
<view class="item">
<view class="a">问题分类</view>
3 months ago
<view class="b">{{feedInfo.type_item}}</view>
</view>
<view class="item">
<view class="a">内容</view>
<view class="b">{{feedInfo.content}}</view>
3 months ago
</view>
<view class="item">
<view class="a">姓名</view>
3 months ago
<view class="b">{{feedInfo.email}}</view>
3 months ago
</view>
<view class="item">
<view class="a">电话</view>
3 months ago
<view class="b">{{feedInfo.phone}}</view>
3 months ago
</view>
<view class="items">
3 months ago
<view class="a">图片列表</view>
3 months ago
<view class="b">
3 months ago
<image v-for="(item,index) in feedInfo.image" @click="previewImage(index)" :key="index" :src="item"></image>
3 months ago
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
3 months ago
baseUrl: "",
feedInfo: {}
3 months ago
};
},
3 months ago
mounted() {
const that = this;
that.baseUrl = that.$baseUrl;
that.feedInfo = uni.getStorageSync("feedInfo")
if(that.feedInfo.image){
that.feedInfo.images = that.feedInfo.image.split(",");
let arr = []
that.feedInfo.images.map(a=>{
arr.push(that.baseUrl+a)
})
that.feedInfo.image = arr
}
},
3 months ago
methods: {
3 months ago
previewImage(index) {
uni.previewImage({
current: index,
urls: this.feedInfo.image
})
}
3 months ago
}
}
</script>
<style lang="scss" scoped>
.site{
padding: 0 25rpx 25rpx;
overflow: hidden;
&-bd{
width: 100%;
margin: 0 auto;
position: relative;
background: #FFFFFF;
box-shadow: 0px 3rpx 10rpx 0px rgba(9,44,39,0.05);
border-radius: 20rpx;
padding: 10rpx 30rpx 0;
box-sizing: border-box;
margin-top: 20rpx;
.item{
padding: 20rpx 0;
display: flex;
3 months ago
align-items: flex-start;
3 months ago
justify-content: space-between;
overflow: hidden;
.a{
flex: 1;
font-weight: 500;
font-size: 30rpx;
color: #333333;
}
.b{
text-align: right;
color: #999;
3 months ago
font-size: 28rpx;
max-width: 500rpx;
3 months ago
}
}
.items{
padding: 50rpx 0;
border-top: 1px solid #ddd;
3 months ago
overflow: hidden;
3 months ago
.a{
font-size: 30rpx;
color: #212121;
}
.b{
margin-top: 20rpx;
3 months ago
width: 110%;
overflow: hidden;
3 months ago
image{
3 months ago
width: 200rpx;
height: 200rpx;
3 months ago
border-radius: 10rpx;
3 months ago
float: left;
margin-top: 20rpx;
margin-right: 20rpx;
3 months ago
}
}
}
}
}
</style>