feat: 增加AI审核关闭

master
xjs 2025-05-20 09:25:46 +08:00
parent e3659f9f11
commit 21c125646e
1 changed files with 16 additions and 2 deletions

View File

@ -9,8 +9,8 @@
</virtual-list>
</div>
<div class="h-[16rpx] bg-[#f8f8f8]"></div>
<div class="grid grid-cols-2 gap-[18rpx] items-center pb-safe px-[32rpx] pt-[32rpx]">
<button class="flex items-center justify-center text-[#1580FF] text-[32rpx] font-normal rounded-[8rpx] font-normal border border-[#1580FF] h-[80rpx] bg-[#fff]" @click="handleReport">
<div :class="`grid ${aiFlag?'grid-cols-2':'grid-cols-1'} gap-[18rpx] items-center pb-safe px-[32rpx] pt-[32rpx]`">
<button v-show="aiFlag" class="flex items-center justify-center text-[#1580FF] text-[32rpx] font-normal rounded-[8rpx] font-normal border border-[#1580FF] h-[80rpx] bg-[#fff]" @click="handleReport">
<img src="https://api.static.ycymedu.com/images/btn-bottom.png" class="w-[52rpx] h-[52rpx] mr-[8rpx]" alt="report">
AI解读志愿
</button>
@ -78,6 +78,19 @@
);
};
const aiFlag = ref(true)
const showAi = () =>{
api.get(`https://api.v3.ycymedu.com/api/sysDictData/dicStatus`,{ id: 619330547859525 },(resp:any)=>{
console.log(resp);
if(resp.code === 200){
aiFlag.value = resp.result.status !== 1
}
},(error:any)=>{
console.log(error);
})
}
const handleReport = () => {
uni.navigateTo({ url: `/aiService-sub/index/index?fileId=${vId.value}&locationCode=${locationCode.value}` })
}
@ -99,6 +112,7 @@
locationCode.value = _mapParams.location;
getWishList();
showAi();
});
</script>