Files
past-go/weapp/pages/storage/storage.wxml
T
Blizzard b854d2873e 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.
2026-11-04 21:27:03 +08:00

54 lines
2.5 KiB
Plaintext

<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}}" />
<scroll-view class="page-bg" scroll-y show-scrollbar="{{false}}" bounces="{{true}}">
<view class="j-body">
<!-- 已用空间 -->
<view class="storage-card">
<view class="storage-card-head">
<view class="storage-title">已用空间</view>
<view class="storage-vip" wx:if="{{isVip}}">👑 {{quotaText}}</view>
</view>
<view class="storage-used">
<text class="storage-num">{{usedText}}</text>
<text class="storage-of" wx:if="{{!isUnlimited}}"> / {{quotaText}}</text>
</view>
<view class="storage-bar" wx:if="{{!isUnlimited}}">
<view class="storage-bar-fill" style="width: {{percent}}%;"></view>
</view>
<view class="storage-hint" wx:if="{{isVip}}">{{vipExpireText}}</view>
<view class="storage-hint over" wx:elif="{{overQuota}}">已超出免费空间,升级后即可继续上传</view>
<view class="storage-hint" wx:else>已使用 {{percent}}% 存储空间</view>
</view>
<!-- 套餐 -->
<view class="section-heading">选择容量套餐</view>
<view class="plan-list">
<view class="plan-card" wx:for="{{plans}}" wx:key="key" bindtap="buyPlan" data-key="{{item.key}}">
<view class="plan-info">
<view class="plan-name">{{item.name}}</view>
<view class="plan-desc">{{item.description}}</view>
</view>
<view class="plan-price">
<text class="plan-amount">¥{{item.priceText}}</text>
<text class="plan-unit">/{{item.unit}}</text>
</view>
</view>
</view>
<view class="storage-hint" wx:if="{{!loading && !plans.length}}">暂无上架套餐</view>
<!-- 说明 -->
<view class="storage-note">
<view class="note-title">📌 说明</view>
<view class="note-item">• 默认提供 {{freeMb}}MB 免费空间</view>
<view class="note-item">• 套餐容量为总可用容量,不与免费额度叠加;情侣共享当前有效的最大容量</view>
<view class="note-item">• 套餐到期后已上传内容仍可查看,超出可用容量将暂停新增上传</view>
</view>
<page-state wx:if="{{error}}" kind="error" title="加载失败" action="重试" bind:action="loadInfo" />
</view>
</scroll-view>
</view>