|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<view class="controls"> |
|
|
|
<view class="bell" |
|
|
|
@click="bell"> |
|
|
|
@click="$refs.confirmationPopup.open('bottom')"> |
|
|
|
<uv-icon size="35rpx" name="bell"></uv-icon> |
|
|
|
举报 |
|
|
|
</view> |
|
|
@ -34,12 +34,51 @@ |
|
|
|
size="35rpx" name="thumb-down"></uv-icon> |
|
|
|
踩 |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <confirmationPopup |
|
|
|
ref="confirmationPopup" |
|
|
|
title="举报" |
|
|
|
@confirm="bell" |
|
|
|
confirmText="确认举报"> |
|
|
|
<view class="confirmationPopup"> |
|
|
|
<view class="list"> |
|
|
|
<view |
|
|
|
v-for="(item, index) in ju"> |
|
|
|
{{ item.title }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</confirmationPopup> --> |
|
|
|
|
|
|
|
<uv-popup ref="confirmationPopup" |
|
|
|
:round="30" |
|
|
|
:customStyle="{height: '50vh'}"> |
|
|
|
<view class="confirmationPopup"> |
|
|
|
<view class="list"> |
|
|
|
<view |
|
|
|
:key="index" |
|
|
|
@click="bell(item)" |
|
|
|
v-for="(item, index) in ju"> |
|
|
|
{{ item.content }} |
|
|
|
<!-- <view class="content"> |
|
|
|
{{ item.content }} |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uv-popup> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import confirmationPopup from '@/components/toast/confirmationPopup.vue' |
|
|
|
export default { |
|
|
|
name:"contentControls", |
|
|
|
components : { |
|
|
|
confirmationPopup, |
|
|
|
}, |
|
|
|
props : { |
|
|
|
type : { |
|
|
|
default : 0 |
|
|
@ -59,20 +98,41 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
ju : [ |
|
|
|
{ |
|
|
|
title : '虚假信息', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title : '其他原因', |
|
|
|
}, |
|
|
|
], |
|
|
|
act : 0, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.indexGetComplaintReason() |
|
|
|
}, |
|
|
|
methods : { |
|
|
|
indexGetComplaintReason(){ |
|
|
|
this.$api('indexGetComplaintReason', res => { |
|
|
|
if(res.code == 200){ |
|
|
|
this.ju = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 举报 |
|
|
|
bell(){ |
|
|
|
bell(item){ |
|
|
|
this.$api('infoReport', { |
|
|
|
type : this.type, |
|
|
|
id : this.detail.id, |
|
|
|
content : item.content |
|
|
|
}, res => { |
|
|
|
this.$refs.confirmationPopup.close() |
|
|
|
if(res.code == 200){ |
|
|
|
this.$emit('loadData') |
|
|
|
uni.showToast({ |
|
|
|
title: res.message |
|
|
|
title: '举报成功', |
|
|
|
// title: res.message, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
@ -131,5 +191,22 @@ |
|
|
|
.share::after{ |
|
|
|
border: none; |
|
|
|
} |
|
|
|
.confirmationPopup{ |
|
|
|
overflow: auto; |
|
|
|
height: 100%; |
|
|
|
padding: 20rpx; |
|
|
|
padding-bottom: env(safe-area-inset-bottom); |
|
|
|
.list{ |
|
|
|
padding-bottom: env(safe-area-inset-bottom); |
|
|
|
&>view{ |
|
|
|
margin: 20rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
padding: 20rpx; |
|
|
|
border-radius: 10rpx; |
|
|
|
border: 1px solid #000; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |