|
|
@@ -102,7 +102,7 @@
|
|
|
<!-- 推荐卡片 -->
|
|
|
<view class="rec-list" v-if="msg.recommendations && msg.recommendations.length > 0">
|
|
|
<view class="rec-card" v-for="(rec, ri) in msg.recommendations" :key="ri" @click="gotoRec(rec)">
|
|
|
- <image class="rec-cover" v-if="rec.coverImage" :src="rec.coverImage" mode="aspectFill" />
|
|
|
+ <image class="rec-cover" v-if="rec.coverImage" :src="getImageUrl(rec.coverImage)" mode="aspectFill" />
|
|
|
<view class="rec-info">
|
|
|
<text class="rec-type-tag">{{ rec.type === 'product' ? '商品' : rec.type === 'activity' ? '活动' : '文章' }}</text>
|
|
|
<text class="rec-name">{{ rec.name }}</text>
|
|
|
@@ -156,6 +156,7 @@
|
|
|
import { aiSendMessage, aiGetConversations, aiGetMessages, aiDeleteConversation, aiSendNutritionMessage, aiSendHealthCoachMessage, aiSendHealthButlerMessage } from '../../utils/api.js'
|
|
|
import BaseEmpty from '../../components/BaseEmpty.vue'
|
|
|
import AITaskCard from '../../components/AITaskCard.vue'
|
|
|
+import config from '@/config.js'
|
|
|
|
|
|
export default {
|
|
|
components: { BaseEmpty, AITaskCard },
|
|
|
@@ -419,6 +420,9 @@ export default {
|
|
|
return d.getHours().toString().padStart(2, '0') + ':' + d.getMinutes().toString().padStart(2, '0')
|
|
|
}
|
|
|
return (d.getMonth() + 1) + '/' + d.getDate()
|
|
|
+ },
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ return config.API_BASE_URL + path
|
|
|
}
|
|
|
}
|
|
|
}
|