小助理

This commit is contained in:
liuye
2024-08-23 08:35:46 +08:00
parent 5db2205403
commit 9071d7e36b
2 changed files with 7 additions and 4 deletions

View File

@@ -28,11 +28,12 @@
<u-icon name="play-right-fill" color="#CCE2FF" size="20" v-if="item.userType != 1" class="u-icon-right"></u-icon> <u-icon name="play-right-fill" color="#CCE2FF" size="20" v-if="item.userType != 1" class="u-icon-right"></u-icon>
<u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon> <u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon>
<div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)"> <div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)">
<span>8</span> <!-- <span>8</span> -->
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay"> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay">
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else>
</div> </div>
<p v-if="!item.sdkFileUrl">{{item.content || ''}}</p> <div v-if="item.content2Html" v-html="item.content2Html"></div>
<p v-if="!item.sdkFileUrl && !item.content2Html">{{item.content || ''}}</p>
</div> </div>
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType != 1"> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType != 1">
</div> </div>
@@ -226,6 +227,7 @@ export default {
if(!this.token) { if(!this.token) {
return this.$u.toast("请先进行登录") return this.$u.toast("请先进行登录")
} }
if(this.content === '') return
// this.$loading() // this.$loading()
this.showLoad = true this.showLoad = true
this.$instance.post("/app/appaicopilotinfo/add", { this.$instance.post("/app/appaicopilotinfo/add", {

View File

@@ -17,11 +17,12 @@
<u-icon name="play-right-fill" color="#CCE2FF" size="20" v-if="item.userType != 1" class="u-icon-right"></u-icon> <u-icon name="play-right-fill" color="#CCE2FF" size="20" v-if="item.userType != 1" class="u-icon-right"></u-icon>
<u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon> <u-icon name="play-left-fill" color="#F3F5F7" size="20" v-if="item.userType == 1" class="u-icon-left"></u-icon>
<div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)"> <div class="voice-div" v-if="item.sdkFileUrl" @click="play(item.sdkFileUrl, index)">
<span>8</span> <!-- <span>8</span> -->
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay"> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-d.gif" alt="" v-if="item.isPlay">
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/play-j.png" alt="" v-else>
</div> </div>
<p v-if="!item.sdkFileUrl">{{item.content || ''}}</p> <div v-if="item.content2Html" v-html="item.content2Html"></div>
<p v-if="!item.sdkFileUrl && !item.content2Html">{{item.content || ''}}</p>
</div> </div>
<img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType != 1"> <img src="https://cdn.cunwuyun.cn/wechat/baiduAI/user-img.png" alt="" class="user-img" v-if="item.userType != 1">
</div> </div>