feat: require couple binding and refine miniapp settings

Gate record features and storage entry points with invitation guidance; enforce record access in the backend. Add homepage greetings, right-swipe profile dismissal, and move the smoking switch to settings. Simplify API base configuration and remove the unused legacy tab bar component.
This commit is contained in:
2026-11-04 21:27:03 +08:00
parent 41bcb793da
commit b854d2873e
67 changed files with 430 additions and 227 deletions
+7 -13
View File
@@ -1,13 +1,7 @@
// 开发工具使用本机服务;真机调试时把 dev.apiBase 改为电脑的局域网 IP。
const environments = {
dev: { apiBase: 'http://127.0.0.1:8080/api' },
trial: { apiBase: 'https://we.sundynix.cn/api' },
release: { apiBase: 'https://we.sundynix.cn/api' }
};
let version = 'release';
try {
const account = wx.getAccountInfoSync();
version = account.miniProgram.envVersion || 'release';
} catch (e) {}
const env = version === 'develop' ? 'dev' : version === 'trial' ? 'trial' : 'release';
module.exports = { env, API_BASE: environments[env].apiBase };
// 上传前将此地址改为正式 API 地址。
//const API_BASE = 'http://192.168.100.3:8080/api';
const API_BASE = 'https://we.sundynix.cn/api';
module.exports = { API_BASE };