| .scratch/server-testenv/README.md | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| rencaika/config/api.uts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| rencaika/docs/pages/59-首页.md | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| rencaika/pages.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| rencaika/pages/index/index.uvue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.scratch/server-testenv/README.md
@@ -20,6 +20,14 @@ | `/data/mysql` | MySQL datadir(从 `/var/lib/mysql` 迁入,AppArmor 走 `local/usr.sbin.mysqld` 覆盖) | | `/var/lib/mysql` | 迁移前的原始副本,**回滚用**,确认稳定后可删 | ## 首页顶部图更新(2026-10-10 16:16) - 按用户提供的图片替换线上 `/data/talent-card/uploads/home/home-top.png`,保留小程序现有圆角和布局。 - 新图 222141 字节,SHA256:`496e4cd33b81ebe89b6d382c3b87f9dfd0964e225c00e2e489137707e1269aa9`。 - 旧图备份:`/data/talent-card/backups/home-images/home-top-20261010-161619.png`。 - 使用后台图片上传接口传输,退出此次上传会话;服务器校验后原子替换。公网原地址返回 200,下载文件 SHA256 与附件一致。没有重启后端。 - 本地开发环境的旧图保留;本次仅更新线上资源。客户端若缓存旧图,需要重新加载或清除图片缓存。 ## 环境变量(`/etc/talent-card/env`,10 个键) **改配置只改这个文件**,不要在单元里写 `Environment=` —— systemd 里 `EnvironmentFile` 会覆盖同名 rencaika/config/api.uts
@@ -4,8 +4,8 @@ import { developmentApiBaseUrl } from './development-server.uts' // 2026-09-29:体验版指向攀枝花测试环境。本机联调改回 'development';生产上线改 'production'。 // 2026-10-09:本地联调电影票,临时切 'development'(开发者工具走 127.0.0.1:8080,见 config/development-server.uts)。测完改回 'staging'。 export const apiEnvironment: ApiEnvironment = 'development' // 2026-10-10:切回政务云已部署环境,接口和上传图片统一使用 stagingBaseUrl。 export const apiEnvironment: ApiEnvironment = 'staging' // Separate from demo-data controls; only development builds request a test session. export const developmentLoginBypassEnabled: boolean = false rencaika/docs/pages/59-首页.md
@@ -14,7 +14,7 @@ | --- | --- | --- | | 顶部导航 | 按微信胶囊动态适配;标题是文本「攀枝花市东区人才服务平台」,用行楷(优先服务器字体 `FoodCalligraphyFull`,加载失败或缺字回退系统字体);下滑超过阈值后橙色实体背景渐显,标题位置保持固定。 | 后台无需下发导航资源。 | | 东区主图 | 主图取服务器 `/uploads/home/home-top.png`(`homeImage()` 拼当前接口域名),上半部压橙色透明渐变、底部圆角,提供“向东看”入口。 | 后台返回宣传视频或内容链接及封面。 | | 城市介绍 | 展示东区简介、潜力城、兴业城、黄金城、宜居城入口,配图取服务器 `/uploads/home/city-*.jpg\|png`;换图只换服务器文件,不用发版。 | 后台配置专题类型、标题、图片和详情内容。 | | 城市介绍 | 东区简介进入独立分包图文页,展示潜力城、产业城、黄金城、宜居城四张宣传图,支持点击放大;“幸福东区”仍跳后台配置的小程序或网页。首页卡片配图取服务器 `/uploads/home/city-*.jpg\|png`。 | 简介内容见 `东区简介.md`,随小程序发布;首页卡片换图只换服务器文件。 | | 人才资讯 | 配置服务地址后调用 `GET /api/app/home` 获取置顶及普通资讯摘要,按稳定 ID 进入富文本资讯详情;查看更多进入资讯列表。 | 后台发布管理、封面图和附件待补充。 | | 底部导航 | 首页、人才权益、人才卡、人才政策、个人中心为平级页面,使用 `reLaunch` 切换。 | 登录态失效时统一进入登录页。 | rencaika/pages.json
@@ -492,6 +492,21 @@ } } ], "subPackages": [ { "root": "city-intro", "pages": [ { "path": "pages/intro/intro", "style": { "navigationStyle": "default", "navigationBarTitleText": "东区简介", "backgroundColor": "#FFFFFF" } } ] } ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "东区人才卡", rencaika/pages/index/index.uvue
@@ -12,7 +12,7 @@ <view class="city-panel"> <view class="city-panel-content"> <view class="city-heading"><text>才聚东区,共富未来</text><view class="city-label" @tap="openIntro"><text>幸福东区</text><image src="/static/home-assets/arrow-right.svg"></image></view></view> <view class="city-heading"><text>才聚东区,共富未来</text><view class="city-label" @tap="openHappyDongqu"><text>幸福东区</text><image src="/static/home-assets/arrow-right.svg"></image></view></view> <view class="city-grid"> <view class="city-card city-intro" @tap="openIntro"><image class="city-bg" :src="homeImage('city-intro.jpg')" mode="aspectFill"></image><text class="intro-name">东区简介</text><view class="intro-button"><text>查看更多</text><image src="/static/home-assets/arrow-right.svg"></image></view></view> <view class="city-side"><view class="city-card city-potential"><image class="city-bg" :src="homeImage('city-potential.jpg')" mode="aspectFill"></image><view class="city-card-caption"></view><text>潜力城</text></view><view class="city-card city-golden"><image class="city-bg" :src="homeImage('city-golden.jpg')" mode="aspectFill"></image><view class="city-card-caption"></view><text>黄金城</text></view></view> @@ -137,7 +137,8 @@ } uni.navigateTo({ url: '/pages/home-video/home-video?url=' + encodeURIComponent(resolveApiUrl(homeVideoUrl.value)) }) } const openIntro = () => { const openIntro = () => uni.navigateTo({ url: '/city-intro/pages/intro/intro' }) const openHappyDongqu = () => { if (miniProgramAppId.value != '') { uni.navigateToMiniProgram({ appId: miniProgramAppId.value,