|
|
|
@ -41,8 +41,11 @@
|
|
|
|
|
<view class="content"> |
|
|
|
|
<u-text line-height="50" :text="item.remark" size="28" color="#020b18"></u-text> |
|
|
|
|
</view> |
|
|
|
|
<view class="" v-if="item.path?.length > 0"> |
|
|
|
|
<u-album multipleSize="170rpx" space="16rpx" :urls="item.path" key-name="url" custom-style="border-radius:8rpx;"></u-album> |
|
|
|
|
<view class="row" v-if="item.path?.length > 0 &&(typeof item.path === 'object')"> |
|
|
|
|
<!-- <u-album multipleSize="170rpx" space="16rpx" :urls="item.path" key-name="url" custom-style="border-radius:8rpx;"></u-album>--> |
|
|
|
|
<view class="col-4" style="padding:8rpx" v-for="row in item.path"> |
|
|
|
|
<u-image @click="showBigImage(row.url)" radius="8rpx" :src="row.url" width="155rpx" height="155rpx" mode="aspectFill"></u-image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -60,8 +63,11 @@
|
|
|
|
|
<!-- 状态:1=未回答,2=已回答--> |
|
|
|
|
<u-text v-if="item.status === 2" line-height="50" size="28" color="#020b18" :text="item.reply"></u-text> |
|
|
|
|
|
|
|
|
|
<view class="" v-if="item.status === 2 && item.reply_path?.length > 0"> |
|
|
|
|
<u-album multipleSize="170rpx" space="16rpx" :urls="item.reply_path" key-name="url" custom-style="border-radius:8rpx;"></u-album> |
|
|
|
|
<view class="row" v-if="item.status === 2 && item.reply_path?.length > 0"> |
|
|
|
|
<view class="col-4" style="padding:8rpx" v-for="row in item.reply_path"> |
|
|
|
|
<u-image @click="showBigImage(row.url)" radius="8rpx" :src="row.url" width="155rpx" height="155rpx" mode="aspectFill"></u-image> |
|
|
|
|
</view> |
|
|
|
|
<!-- <u-album multipleSize="170rpx" space="16rpx" :urls="item.reply_path" key-name="url" custom-style="border-radius:8rpx;"></u-album>--> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -71,7 +77,11 @@
|
|
|
|
|
<u-loadmore :custom-style="{display:'flex'}" :status="status" fontSize="28" |
|
|
|
|
marginBottom="30" marginTop="30" @loadmore="getUserLeave()"/> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<u-overlay :show="imageShow" @click="imageShow = false"> |
|
|
|
|
<view class="" style="display:flex;align-items: center;justify-content:center;width:100%;height:100vh;"> |
|
|
|
|
<u-image mode="widthFix" :src="imageUrl" height="auto" width="100vw"></u-image> |
|
|
|
|
</view> |
|
|
|
|
</u-overlay> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -91,6 +101,8 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
imageUrl:'', |
|
|
|
|
imageShow:false, |
|
|
|
|
userInfo:{}, |
|
|
|
|
listItem:[ |
|
|
|
|
{name:'全部建议',id:''}, |
|
|
|
@ -134,6 +146,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
showBigImage(imgUrl) { |
|
|
|
|
this.imageUrl = imgUrl; |
|
|
|
|
this.imageShow = true; |
|
|
|
|
}, |
|
|
|
|
tabsAdvisorChange(e){ |
|
|
|
|
this.pages.user_type = e.id; |
|
|
|
|
this.getUserLeave(true); |
|
|
|
|