feat: 更新前端多个页面和后端服务
- 前端: 更新AI营养师、计算器、打卡、食物详情等页面 - 前端: 更新食物百科、知识详情、营养知识页面 - 前端: 更新社区首页 - 后端: 更新ToolKieAIServiceImpl服务 - API: 更新models-api.js和user.js
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
<view v-else-if="error" class="error-wrap">
|
||||
<text>{{ error }}</text>
|
||||
</view>
|
||||
<view v-else class="empty-wrap">
|
||||
<text>暂无内容</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -50,8 +53,9 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.id) {
|
||||
this.id = options.id;
|
||||
const rawId = options.id;
|
||||
if (rawId != null && rawId !== '' && String(rawId).trim() !== '' && String(rawId) !== 'undefined') {
|
||||
this.id = String(rawId).trim();
|
||||
} else {
|
||||
this.loading = false;
|
||||
this.error = '缺少文章 ID';
|
||||
@@ -144,7 +148,8 @@ export default {
|
||||
color: #333;
|
||||
}
|
||||
.loading-wrap,
|
||||
.error-wrap {
|
||||
.error-wrap,
|
||||
.empty-wrap {
|
||||
padding: 80rpx 30rpx;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
@@ -153,4 +158,7 @@ export default {
|
||||
.error-wrap {
|
||||
color: #f56c6c;
|
||||
}
|
||||
.empty-wrap {
|
||||
color: #9fa5c0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user