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.
89 lines
1.6 KiB
89 lines
1.6 KiB
<template>
|
|
<view class="feed">
|
|
<view class="content">
|
|
<view class="item">
|
|
<view class="fl">姓名</view>
|
|
<view class="fr">{{info.name}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="fl">电话</view>
|
|
<view class="fr">{{info.phone}}</view>
|
|
</view>
|
|
<view class="items">
|
|
<view class="fl">{{info.content}}</view>
|
|
<view class="fr">
|
|
<image v-for="(a,i) in info.imgurls" mode="aspectFill" :key="i" :src="a" @click="perviewimage(i)"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
info: {}
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.info=uni.getStorageSync("pcontent");
|
|
if(this.info.imgurl && this.info){
|
|
this.info.imgurls = this.info.imgurl.split(",")
|
|
}
|
|
},
|
|
methods: {
|
|
perviewimage(index) {
|
|
uni.previewImage({
|
|
urls: this.info.imgurls,
|
|
current: index
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.feed{
|
|
padding: 0 25rpx;
|
|
overflow: hidden;
|
|
.content{
|
|
margin-top: 20rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx;
|
|
padding: 20rpx 0;
|
|
.item{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20rpx 30rpx;
|
|
.fl{
|
|
flex: 1;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
}
|
|
.fr{
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #999999;
|
|
}
|
|
}
|
|
.items{
|
|
padding: 20rpx 30rpx;
|
|
border-top: 1px solid #EAEAEA;
|
|
margin-top: 20rpx;
|
|
.fr{
|
|
width: 110%;
|
|
image{
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 10rpx;
|
|
margin-top: 20rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|