<!--pages/AIAide/index.wxml-->
|
|
<wxs module="wxs" src="../../utils/wxs/util.wxs" />
|
|
<view class="card">
|
<view class="card_main">
|
<block wx:if="{{caseData.length>0}}">
|
<view class="caseList_head">
|
<van-icon size="22" name="/img/AIAide_1.png" />为您推荐与申请相似的典型案例({{caseData.length}})
|
</view>
|
<view class="caseList" bindtap="caseClick" data-caseId="{{item.caseId}}" data-caseName="{{item.caseName}}" data-caseType="{{item.caseType}}" data-url="../../pages/AIAideDetail/index" wx:for="{{caseData}}" wx:key="index">
|
<view class="caseList_flex">
|
<text class="ellipsis">{{item.caseName}}</text>
|
<view class="cell-arrow">
|
<van-icon color="#1A6FB8" size="14" name="arrow" />
|
</view>
|
</view>
|
<!-- <view class="caseList_title">相似度:{{'-'}}% | 发生地:广东省 广州市</view> -->
|
</view>
|
</block>
|
<block wx:if="{{AIData.length>0}}">
|
<view class="line"></view>
|
<view class="caseList_head">
|
<van-icon size="22" name="/img/AIAide_2.png" />为您推荐与申请相关的专业法条({{AIData.length}})
|
</view>
|
<view class="caseList" wx:for="{{AIData}}" wx:key="index">
|
<view bindtap="lawClick" data-item="{{item}}" data-index="{{index}}" class="caseList_flex">
|
<text class="ellipsis">《{{item.lawTitle}}》{{item.lawIndex}}</text>
|
<view wx:if="{{item.show}}" class="cell-arrow">
|
<van-icon color="#1A6FB8" size="14" name="arrow-down" />
|
</view>
|
<view wx:else class="cell-arrow">
|
<van-icon color="#1A6FB8" size="14" name="arrow-up" />
|
</view>
|
</view>
|
<view wx:if="{{item.show}}" class="show-line">
|
|
</view>
|
<view wx:if="{{item.show}}" class="show-Law">
|
{{item.lawDesc}}
|
</view>
|
</view>
|
<view class="assess">
|
<van-icon size="18" name="/img/AIAide_4.png" bindtap="showEvaluationPopup" />
|
</view>
|
</block>
|
<view wx:if="{{caseData.length}}" class="flex_end">以上内容均由人工智能模型生成,其生成内容的准确性和完整性无法保证,不代表我们的态度或观点</view>
|
</view>
|
</view>
|
|
<!-- 评价弹窗 -->
|
<van-popup show="{{ showEvaluation }}" round position="center" custom-style="width: 90%; max-height: 85vh; padding: 20px;" bind:close="closeEvaluationPopup">
|
<view class="evaluation-popup">
|
<view class="evaluation-title">评价反馈</view>
|
|
<view class="evaluation-item">
|
<view class="item-title">1、推荐内容与您选到的情况相似程度如何</view>
|
<view class="stars">
|
<van-icon wx:for="{{ 5 }}" wx:key="index" name="{{ evaluation.similarity > index ? 'star' : 'star-o' }}"
|
size="20" color="{{ evaluation.similarity > index ? '#FFCC00' : '#CCCCCC' }}"
|
data-type="similarity" data-value="{{ index + 1 }}" bindtap="setRating" />
|
</view>
|
</view>
|
|
<view class="evaluation-item">
|
<view class="item-title">2、推荐内容给您带来的帮助程度如何</view>
|
<view class="stars">
|
<van-icon wx:for="{{ 5 }}" wx:key="index" name="{{ evaluation.helpfulness > index ? 'star' : 'star-o' }}"
|
size="20" color="{{ evaluation.helpfulness > index ? '#FFCC00' : '#CCCCCC' }}"
|
data-type="helpfulness" data-value="{{ index + 1 }}" bindtap="setRating" />
|
</view>
|
</view>
|
|
<view class="evaluation-item">
|
<view class="item-title">3、您对推荐内容的整体满意度如何</view>
|
<view class="stars">
|
<van-icon wx:for="{{ 5 }}" wx:key="index" name="{{ evaluation.satisfaction > index ? 'star' : 'star-o' }}"
|
size="20" color="{{ evaluation.satisfaction > index ? '#FFCC00' : '#CCCCCC' }}"
|
data-type="satisfaction" data-value="{{ index + 1 }}" bindtap="setRating" />
|
</view>
|
</view>
|
|
<view class="evaluation-item">
|
<view class="item-title">4、推荐案例给您带来的启发程度如何</view>
|
<view class="stars">
|
<van-icon wx:for="{{ 5 }}" wx:key="index" name="{{ evaluation.inspiration > index ? 'star' : 'star-o' }}"
|
size="20" color="{{ evaluation.inspiration > index ? '#FFCC00' : '#CCCCCC' }}"
|
data-type="inspiration" data-value="{{ index + 1 }}" bindtap="setRating" />
|
</view>
|
</view>
|
|
<view class="evaluation-item">
|
<view class="item-title">5、改进意见</view>
|
<view class="comments-area">
|
<textarea placeholder="您认为推荐系统可以怎样改进来帮您获得您希望获得的更多信息" bindinput="setComments" value="{{ evaluation.comments }}"></textarea>
|
</view>
|
</view>
|
|
<button class="submit-btn" bindtap="submitEvaluation">提交评价</button>
|
</view>
|
</van-popup>
|
|
<!-- 关闭按钮 -->
|
<view class="close-btn" wx:if="{{showEvaluation}}" bindtap="closeEvaluationPopup">
|
<image src="/img/close.png" mode="aspectFit" />
|
</view>
|
|
<!-- 感谢评价提示 -->
|
<view class="custom-toast {{showThankToast ? 'show-toast' : ''}}" wx:if="{{showThankToast}}">
|
<view class="toast-content">
|
<icon type="success" size="24" color="#FFFFFF"/>
|
<text>感谢评价</text>
|
</view>
|
</view>
|