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:
@@ -1,3 +1,4 @@
|
||||
const { requireRecordAccess } = require('../utils/record-access');
|
||||
const { tryLoginRenewal } = require('../utils/subscribe');
|
||||
const { tabForPage, paths } = require('../utils/navigation');
|
||||
Component({
|
||||
@@ -15,6 +16,7 @@ Component({
|
||||
tryLoginRenewal();
|
||||
var tab = e.currentTarget.dataset.tab;
|
||||
if (!paths[tab]) return;
|
||||
if (tab === 'records' && !requireRecordAccess()) return;
|
||||
var pages = getCurrentPages();
|
||||
// 当前主页面重复点击不重新加载。
|
||||
if (pages.length && pages[pages.length - 1].route === paths[tab]) return;
|
||||
|
||||
Reference in New Issue
Block a user