diff --git a/TUICallKit-Vue3/main.js b/TUICallKit-Vue3/main.js index 5fd1d831..f1d13fa0 100644 --- a/TUICallKit-Vue3/main.js +++ b/TUICallKit-Vue3/main.js @@ -1,5 +1,5 @@ import App from './App' -var baseUrl ='https://admin.zhenyangtang.com.cn/'; +var baseUrl ='https://css.zhenyangtang.com.cn/'; // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' diff --git a/TUICallKit-Vue3/manifest.json b/TUICallKit-Vue3/manifest.json index 642f8e7d..672b3365 100644 --- a/TUICallKit-Vue3/manifest.json +++ b/TUICallKit-Vue3/manifest.json @@ -58,8 +58,13 @@ "subPackages" : true }, "usingComponents" : true, - /* 节拍器后台播放需要,iOS 必需 */ - "requiredBackgroundModes" : ["audio"] + + "plugins" : { + "WechatSI" : { + "version" : "0.3.5", + "provider" : "wx069ba97219f66d99" + } + } }, "mp-alipay" : { "usingComponents" : true diff --git a/TUICallKit-Vue3/pages.json b/TUICallKit-Vue3/pages.json index 3be3355e..11f9cdae 100644 --- a/TUICallKit-Vue3/pages.json +++ b/TUICallKit-Vue3/pages.json @@ -126,6 +126,21 @@ } } ] + }, + { + "root": "tongji", + "pages": [ + { + "path": "pages/index", + "style": { + "navigationBarTitleText": "日常记录", + "navigationBarBackgroundColor": "#0ea5a4", + "navigationBarTextStyle": "white", + "backgroundColor": "#f1f5f9", + "enablePullDownRefresh": true + } + } + ] } ], "tabBar": { diff --git a/TUICallKit-Vue3/pages/Card/Card.vue b/TUICallKit-Vue3/pages/Card/Card.vue index 0b800434..8393e98c 100644 --- a/TUICallKit-Vue3/pages/Card/Card.vue +++ b/TUICallKit-Vue3/pages/Card/Card.vue @@ -53,6 +53,18 @@ {{ card.create_time || '-' }} + + + + + 📈 + 日常记录 + + + 📝 + 查看 / 编辑 + + @@ -138,6 +150,16 @@ const viewCardDetail = (card) => { }) } +// 查看日常记录(血糖血压 / 饮食 / 运动 / 跟踪备注 + 波浪图) +const viewDailyRecord = (card) => { + const url = `/tongji/pages/index?diagnosis_id=${card.id}` + + `&patient_id=${card.patient_id || ''}` + + `&patient_name=${encodeURIComponent(card.patient_name || '')}` + + `&age=${card.age || ''}` + + `&gender=${card.gender || ''}` + uni.navigateTo({ url }) +} + // 新建就诊卡(patient_id 创建后自动生成,仅需登录) const createCard = () => { const token = uni.getStorageSync('token') @@ -310,6 +332,54 @@ const formatDate = (timestamp) => { border-top: 4rpx solid #e8eaed; } +.card-actions { + display: flex; + gap: 20rpx; + margin-top: 28rpx; + padding-top: 28rpx; + border-top: 4rpx solid #e8eaed; +} + +.card-action-btn { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + gap: 12rpx; + padding: 24rpx 12rpx; + background: #f6faff; + border-radius: 20rpx; + border: 2rpx solid #d6e6fb; + min-height: 80rpx; + transition: all 0.2s; + + &:active { + transform: scale(0.98); + opacity: 0.85; + } + + &.primary { + background: linear-gradient(135deg, #1890ff, #0ea5a4); + border-color: transparent; + + .card-action-icon, + .card-action-text { + color: #ffffff; + } + } +} + +.card-action-icon { + font-size: 36rpx; + color: #1890ff; +} + +.card-action-text { + font-size: 30rpx; + color: #1890ff; + font-weight: 500; +} + .time-info { display: flex; align-items: center; diff --git a/TUICallKit-Vue3/tongji/pages/index.vue b/TUICallKit-Vue3/tongji/pages/index.vue new file mode 100644 index 00000000..a4627447 --- /dev/null +++ b/TUICallKit-Vue3/tongji/pages/index.vue @@ -0,0 +1,4220 @@ +