fix: 健康管理系统,自测问题修复及功能优化完善。

This commit is contained in:
tianyongbao
2024-12-20 15:48:05 +08:00
parent 775ab0b222
commit 0f75162f6b
24 changed files with 3200 additions and 171 deletions

View File

@@ -14,7 +14,7 @@
<view class="list-item">
<view class="item-header">
<u--text lines="2" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
:text="dictStr(item.type,typeList) +':在'+item.place+'活动'+item.exerciseTime" size="30rpx" color="#333333" :bold="true"></u--text>
:text="dictStr(item.type,typeList) +'- 在 '+item.place+' 活动 '+item.exerciseTimeStr" size="30rpx" color="#333333" :bold="true"></u--text>
</view>
<view class="item-row">
<text class="row-label">活动名称</text>
@@ -38,11 +38,11 @@
</view> -->
<view class="item-row">
<text class="row-label">活动量</text>
<text class="row-value">{{ item.activityVolume }}</text>
<text class="row-value">{{dictStr(item.activityVolume,activityVolumeList) }}</text>
</view>
<view class="item-row">
<text class="row-label">总费用</text>
<text class="row-value">{{ item.totalCost }}</text>
<text class="row-label">总费用</text>
<text class="row-value">{{ item.totalCost+' 元' }}</text>
</view>
<view class="item-row">
<text class="row-label">费用明细</text>
@@ -89,6 +89,8 @@ const listData = ref([])
const isShow = ref(false)
const status = ref('loadmore')
const typeList = ref([])
const activityVolumeList = ref([])
const flag= ref(true)
const data = reactive({
@@ -141,6 +143,10 @@ function getList() {
// 类型
getDicts('activity_type').then(res => {
typeList.value = res.data
})
// 类型
getDicts('activity_exercise').then(res => {
activityVolumeList.value = res.data
})
status.value = 'loading'
listActivity({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {