Files
crmeb-mp/config/version.js
Karlcarlo a8cd4ff1a1 feat(版本): 小程序升到 0.3.14,「我的」页展示版本号
- manifest.json:versionName 0.3.14 / versionCode 314(原 0.3.8/38 与线上 0.3.13 脱节)
- config/version.js:展示兜底值,与 manifest 同步 bump
- pages/user/index.vue:底部版权区显示「版本号 vX」;体验版/正式版读
  wx.getAccountInfoSync().miniProgram.version(即上传时填的版本),开发版读不到回退常量
2026-11-14 19:16:31 +08:00

19 lines
1002 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// +----------------------------------------------------------------------
// | 版本号(界面展示兜底值)
// +----------------------------------------------------------------------
// | 用途:「我的」页底部展示当前版本,方便真机/体验版核对是不是新包。
// |
// | 取值优先级:
// | ① 体验版/正式版 → 读微信真实版本(wx.getAccountInfoSync().miniProgram.version,
// | 即上传时填的版本号,线上现为 0.3.13);
// | ② 开发版/读不到(开发期为空串)→ 用这里的 VERSION 兜底。
// |
// | ⚠️ VERSION 必须与 manifest.json 的 versionName 同步:每次发版 bump 时**两处一起改**。
// | manifest 决定包版本,但微信上传时填的版本号是独立的,所以线上以 ① 为准,
// | 不要把这里当成「已发布版本」的唯一来源。
// +----------------------------------------------------------------------
module.exports = {
VERSION: '0.3.14'
};