hejianhao
2026-08-28 a3278f95ba536defe88752018725d1e46fdbedfa
fix0806: GX
1个文件已删除
6个文件已修改
358 ■■■■■ 已修改文件
traditionalApp/App.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/config/index.js 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/manifest.json 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/pages/articleDetail/articleDetail.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/pages/good/projectDetail.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/pages/mine/mine.vue 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/utils/app-version.js 279 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
traditionalApp/App.vue
@@ -11,10 +11,6 @@
    import { cacheInviteCode } from '@/utils/invite-cache.js'
    import { initJPushLifecycle } from '@/utils/push.js'
    import {
        checkAppVersionUpdate,
        resumeForceUpdatePrompt
    } from '@/utils/app-version.js'
    import {
        getOpeninstallInstallData,
        initOpeninstall,
        registerOpeninstallWakeUp
@@ -30,7 +26,6 @@
        initOpeninstall()
        registerOpeninstallWakeUp(handleOpeninstallPayload)
        getOpeninstallInstallData(handleOpeninstallPayload)
        checkAppVersionUpdate()
        // #endif
    })
@@ -39,9 +34,6 @@
     */
    onShow(() => {
        handleOpenByScheme()
        // #ifdef APP-PLUS
        resumeForceUpdatePrompt()
        // #endif
    })
    /**
traditionalApp/config/index.js
@@ -2,7 +2,6 @@
//     BASE_URL: 'http://221.182.45.100:48080',
    BASE_URL: 'https://haizhentong.com',
    OPENINSTALL_URL: 'https://m.malink.cn/s/7bIzeu',
    APP_STORE_URL: 'https://apps.apple.com/cn/app/%E6%B5%B7%E8%AF%8A%E5%BA%B7%E9%81%93/id6762694057',
    uploadUrl: "https://haizhentong.com/api/open/file/upload",
    imageUrl: 'http://221.182.45.100:11224/images/'
};
traditionalApp/manifest.json
@@ -3,8 +3,8 @@
    "name" : "海诊康道",
    "appid" : "__UNI__7B5B0CA",
    "description" : "",
    "versionName" : "1.0.23",
    "versionCode" : 122,
    "versionName" : "1.0.0",
    "versionCode" : 100,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
traditionalApp/pages/articleDetail/articleDetail.vue
@@ -21,7 +21,7 @@
        <!-- 内容区域 -->
        <view class="content-area">
            <text class="content-title">{{ detail.title || '健康科普详情' }}</text>
            <text v-if="isVideoType" class="content-title">{{ detail.title || '健康科普详情' }}</text>
            <text v-if="isVideoType && videoSubtitle" class="content-subtitle">{{ videoSubtitle }}</text>
            <rich-text v-if="!isVideoType" :nodes="contentNodes" class="rich-content"></rich-text>
            <view v-if="loading" class="status-text">加载中...</view>
@@ -288,7 +288,6 @@
    }
    .rich-content {
        margin-top: 24rpx;
        width: 100%;
        font-size: 28rpx;
        line-height: 1.8;
traditionalApp/pages/good/projectDetail.vue
@@ -6,7 +6,7 @@
        <!-- 导航栏 -->
        <view class="nav-bar">
            <image class="back-icon" src="/static/image/home/left.png" mode="aspectFit" @tap="goBack"></image>
            <text class="nav-title">{{ detail.title || '详情' }}</text>
            <text class="nav-title">详情</text>
            <view class="nav-right-placeholder"></view>
        </view>
@@ -34,8 +34,6 @@
                <!-- 图文内容 -->
                <view v-if="detail.contentType === 1">
                    <!-- 标题 -->
                    <view class="detail-title">{{ detail.title }}</view>
                    <!-- 内容 -->
                    <view v-if="detail.content" class="html-content">
                        <rich-text :nodes="detail.content"></rich-text>
traditionalApp/pages/mine/mine.vue
@@ -43,14 +43,6 @@
                    </view>
                    <u-icon name="arrow-right" color="#999" size="16"></u-icon>
                </view>
                <view class="list-item" @tap="handleAppUpdateClick">
                    <view class="list-left">
                        <image class="list-icon icon-update" src="/static/image/mine/refish.png" mode="aspectFit"></image>
                        <text class="list-title">更新版本</text>
                        <view v-if="hasAppUpdate" class="update-dot"></view>
                    </view>
                    <u-icon name="arrow-right" color="#999" size="16"></u-icon>
                </view>
            </view>
            <view class="app-version-text">海诊康道 版本{{ appVersionText }}</view>
            <view class="icp-text">ICP备案号:琼ICP备2025059220号-3A</view>
@@ -63,7 +55,6 @@
import { onLoad, onShow } from '@dcloudio/uni-app'
import { getNoticeList } from '../notice/service'
import { getUserCenter } from './service'
import { getRuntimeVersionName, promptAppVersionUpdate, queryAppVersionUpdate } from '@/utils/app-version.js'
import { hasStoredSession } from '@/utils/auth-session.js'
import manifestConfig from '../../manifest.json'
@@ -112,9 +103,7 @@
const statusBarHeight = ref(0)
const unreadNoticeTotal = ref(0)
const manifestVersionName = String(manifestConfig.versionName || '')
const appVersionText = ref(manifestVersionName)
const hasAppUpdate = ref(false)
const appUpdateInfo = ref<any>(null)
const appVersionText = manifestVersionName
const userCenter = ref<UserCenterData>(createDefaultUserCenter())
const userRole = computed<UserRole>(() => {
    return isDoctorLikeUser(userCenter.value) ? 'doctor' : 'personal'
@@ -226,7 +215,6 @@
onLoad(() => {
    const systemInfo = uni.getSystemInfoSync()
    statusBarHeight.value = systemInfo.statusBarHeight || 20
    resolveAppVersion()
    syncCachedUserInfo()
})
@@ -237,21 +225,7 @@
    syncCachedUserInfo()
    loadUserCenter()
    loadUnreadNoticeTotal()
    loadAppUpdateStatus()
})
/**
 * 静默检查版本更新,仅用于控制更新入口红点。
 */
async function loadAppUpdateStatus() {
    try {
        appUpdateInfo.value = await queryAppVersionUpdate()
        hasAppUpdate.value = !!appUpdateInfo.value
    } catch {
        appUpdateInfo.value = null
        hasAppUpdate.value = false
    }
}
/**
 * 拉取当前登录用户的通知未读总数。
@@ -415,19 +389,6 @@
}
/**
 * 有新版本时展示更新弹窗,无更新时保持静默。
 */
async function handleAppUpdateClick() {
    if (!appUpdateInfo.value) {
        await loadAppUpdateStatus()
    }
    if (!appUpdateInfo.value) {
        return
    }
    promptAppVersionUpdate(appUpdateInfo.value)
}
/**
 * 统一跳转个人中心相关页面。
 */
function goPage(target: string | MenuItem) {
@@ -457,17 +418,6 @@
            url: '/pages/login/login',
        })
    }, 200)
}
/**
 * APP 环境读取当前安装包版本,非 APP 环境使用 manifest 版本兜底。
 */
function resolveAppVersion() {
    getRuntimeVersionName(manifestVersionName).then((versionName) => {
        appVersionText.value = versionName || manifestVersionName
    }).catch(() => {
        appVersionText.value = manifestVersionName
    })
}
/**
@@ -755,13 +705,6 @@
                margin-left: 22rpx;
            }
            .update-dot {
                width: 16rpx;
                height: 16rpx;
                margin-left: 12rpx;
                border-radius: 50%;
                background: #E64340;
            }
        }
    }
}
traditionalApp/utils/app-version.js
File was deleted