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.

203 lines
4.0 KiB

4 years ago
<template>
<view class="boxContent">
<view class="box-header">
3 years ago
</view>
<view class="list" style="padding-top: 20rpx;">
<block>
<u-card :title="lists.created_at" padding="20" margin="20rpx" :border="true">
<view class="" slot="body" @click="todetail(lists.id)">
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">问题类型</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{lists.ask_type_detail.value}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">问题内容</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{lists.ask_content_detail.value}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">反馈科室</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{lists.feedback_department.name}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">位置</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{lists.address}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">描述</view>
</u-col>
<u-col span="12">
<view class="demo-layout bg-purple-light">{{lists.content}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">现场图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in lists.common_inspection_files">
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
3 years ago
</u-col>
</u-row>
</view>
</u-card>
</block>
</view>
4 years ago
</view>
</template>
<script>
export default {
data() {
return {
lists:{}
}
3 years ago
},
4 years ago
3 years ago
onLoad(options) {
if(options.id){
this.loadInfo(options.id)
4 years ago
}
},
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push中的参数为 :src="item.img_url" 中的图片地址
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
4 years ago
loadInfo: function(id) {
var that = this;
this.util.request({
method:"get",
api: '/api/mobile/common-inspection/show',
customLoading: false,
data: {
id:id
3 years ago
},
4 years ago
utilSuccess: function(r) {
3 years ago
4 years ago
that.lists = r
},
utilFail: function(res) {
this.util.alert(res);
}
});
3 years ago
}
4 years ago
}
}
</script>
<style>
.boxContent {
background: #f3f4f6;
min-height: 100vh;
}
.footer {
display: flex;
justify-content: flex-end;
}
.box-header {
position: fixed;
top: 0;
3 years ago
width: 100%;
4 years ago
z-index: 99;
}
.u-row {
margin: 10rpx 0;
font-size: 28rpx;
3 years ago
}
.u-card{
z-index: 1;
4 years ago
}
</style>
3 years ago
<style scoped lang="scss">
.overflowmask{
overflow: hidden;
}
.loadmore{
padding:24rpx!important
4 years ago
}
.search-wrap {
3 years ago
background: #0385e5;
4 years ago
padding: 20rpx;
}
.u-config-wrap {
padding: 30rpx;
}
.bg-purple {
font-weight: bold;
}
.slot-content {
background-color: #FFFFFF;
padding: 24rpx;
.item-box {
margin-bottom: 50rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.item {
border: 1px solid $u-type-primary;
color: $u-type-primary;
padding: 8rpx 40rpx;
border-radius: 100rpx;
margin-top: 30rpx;
}
.active {
color: #FFFFFF;
background-color: $u-type-primary;
}
}
}
3 years ago
</style>