|
|
@@ -132,53 +132,8 @@
|
|
|
<text class="nutrition-arrow">›</text>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 菌群检测产品链接 -->
|
|
|
- <view class="nutrition-links">
|
|
|
- <text class="links-label">🔥 相关产品</text>
|
|
|
- <view class="links-row">
|
|
|
- <view class="link-item" @click="goToShopProduct('gut_flora')">
|
|
|
- <text class="link-icon">🧪</text>
|
|
|
- <view class="link-texts">
|
|
|
- <text class="link-name">肠道菌群检测</text>
|
|
|
- <text class="link-desc">了解孩子的肠道健康状况</text>
|
|
|
- </view>
|
|
|
- <text class="link-arrow">›</text>
|
|
|
- </view>
|
|
|
- <view class="link-item" @click="goToShopProduct('probiotic')">
|
|
|
- <text class="link-icon">🦠</text>
|
|
|
- <view class="link-texts">
|
|
|
- <text class="link-name">益生菌补充</text>
|
|
|
- <text class="link-desc">平衡肠道菌群,增强免疫力</text>
|
|
|
- </view>
|
|
|
- <text class="link-arrow">›</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 相关文章链接 -->
|
|
|
- <view class="nutrition-links">
|
|
|
- <text class="links-label">📖 相关文章</text>
|
|
|
- <view class="links-row">
|
|
|
- <view class="link-item" @click="goToArticle('gut_health')">
|
|
|
- <text class="link-icon">📝</text>
|
|
|
- <view class="link-texts">
|
|
|
- <text class="link-name">肠道菌群与儿童健康</text>
|
|
|
- <text class="link-desc">肠道菌群如何影响孩子的免疫力</text>
|
|
|
- </view>
|
|
|
- <text class="link-arrow">›</text>
|
|
|
- </view>
|
|
|
- <view class="link-item" @click="goToArticle('nutrition_guide')">
|
|
|
- <text class="link-icon">📝</text>
|
|
|
- <view class="link-texts">
|
|
|
- <text class="link-name">儿童精准营养指南</text>
|
|
|
- <text class="link-desc">科学搭配饮食,促进健康成长</text>
|
|
|
- </view>
|
|
|
- <text class="link-arrow">›</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
<!-- 维度任务 -->
|
|
|
<DimensionTasks
|
|
|
v-if="isLoggedIn"
|
|
|
@@ -307,7 +262,7 @@ export default {
|
|
|
return {
|
|
|
isLoggedIn: false,
|
|
|
role: null,
|
|
|
- showTabTransition: false,
|
|
|
+ showTabTransition: true,
|
|
|
activeChildId: null,
|
|
|
activeChildName: '',
|
|
|
userName: '',
|
|
|
@@ -643,20 +598,6 @@ export default {
|
|
|
var id = this.activeChildId || uni.getStorageSync('currentChildId') || ''
|
|
|
uni.navigateTo({ url: '/pages/health/report-upload?childId=' + id + '&from=body' })
|
|
|
},
|
|
|
- goToShopProduct: function(type) {
|
|
|
- if (type === 'gut_flora') {
|
|
|
- uni.navigateTo({ url: '/pages/discover/index?type=product&domain=body&keyword=' + encodeURIComponent('肠道菌群检测') })
|
|
|
- } else if (type === 'probiotic') {
|
|
|
- uni.navigateTo({ url: '/pages/discover/index?type=product&domain=body&keyword=' + encodeURIComponent('益生菌') })
|
|
|
- }
|
|
|
- },
|
|
|
- goToArticle: function(topic) {
|
|
|
- if (topic === 'gut_health') {
|
|
|
- uni.navigateTo({ url: '/pages/mind/articles?tag=' + encodeURIComponent('肠道健康') })
|
|
|
- } else if (topic === 'nutrition_guide') {
|
|
|
- uni.navigateTo({ url: '/pages/mind/articles?tag=' + encodeURIComponent('精准营养') })
|
|
|
- }
|
|
|
- },
|
|
|
formatDate: function(dateStr) {
|
|
|
if (!dateStr) return '--'
|
|
|
try {
|