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 { withRecordAccess } = require('../../utils/record-access');
|
||||
const { withDataCache } = require('../../utils/page-cache');
|
||||
const { tryLoginRenewal } = require('../../utils/subscribe');
|
||||
const { getLayout } = require('../../utils/layout');
|
||||
@@ -10,7 +11,7 @@ function formatBytes(bytes) {
|
||||
return (bytes / 1024 / 1024 / 1024).toFixed(2) + ' GB';
|
||||
}
|
||||
|
||||
Page(withDataCache({
|
||||
Page(withRecordAccess(withDataCache({
|
||||
onLoginSubscribeTap: function() { return tryLoginRenewal(); },
|
||||
onResize: function () { this.setData(getLayout()); },
|
||||
|
||||
@@ -160,4 +161,4 @@ Page(withDataCache({
|
||||
}
|
||||
},
|
||||
|
||||
}, {loadInfo:['storageInfo']}));
|
||||
}, {loadInfo:['storageInfo']})));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<view capture-bind:tap="onLoginSubscribeTap" class="app-shell app-shell--secondary j-handwritten-page" style="{{layoutStyle}}">
|
||||
<view wx:if="{{!recordAccessBlocked}}" capture-bind:tap="onLoginSubscribeTap" class="app-shell app-shell--secondary j-handwritten-page" style="{{layoutStyle}}">
|
||||
<launch-transition />
|
||||
<!-- pages/storage/storage.wxml -->
|
||||
<app-nav title="存储空间" back="{{true}}" />
|
||||
|
||||
Reference in New Issue
Block a user