评论商品接口有问题

This commit is contained in:
bobobobo
2026-01-16 00:12:33 +08:00
parent d2ba0df2b5
commit 5cd2732562
164 changed files with 14318 additions and 197 deletions

View File

@@ -28,9 +28,13 @@
import Icon from '../../common/Icon.vue'
import More from '../../../assets/icon/more.svg'
import backSVG from '../../../assets/icon/back.svg'
import { useUI } from '../../../../utils/use-ui'
import { endUserService } from '../../../../api/my-index'
const { showDialog, showToast } = useUI()
const emits = defineEmits(['openGroupManagement'])
const props = defineProps(['isGroup'])
const props = defineProps(['isGroup', 'serviceID'])
const currentConversation = ref<IConversationModel>()
const typingStatus = ref(false)
@@ -86,8 +90,17 @@
}
}
function back() {
uni.navigateBack()
const back = async () => {
if (props.serviceID) {
const show = await showDialog('提示', '确定要退出当前会话吗?')
if (show) {
await endUserService(props.serviceID)
await showToast('结束服务成功')
uni.navigateBack()
}
} else {
uni.navigateBack()
}
}
</script>
<style lang="scss" scoped></style>