27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
<navigation-bar title="经营" back="{{false}}" color="#f6efe7" background="#081518"></navigation-bar>
|
|
|
|
<view class="page-shell">
|
|
<view class="page-stack">
|
|
<view class="hero-panel">
|
|
<text class="hero-kicker">按权限展示</text>
|
|
<text class="hero-title">{{currentShop ? currentShop.shopName : '平台级入口'}}</text>
|
|
<text class="hero-desc">这里不复刻网页后台的大表格首页,而是把可用模块拆成移动端更好点到的入口卡片。</text>
|
|
</view>
|
|
|
|
<view wx:if="{{!currentShop && userInfo && userInfo.type === 4}}" class="hint-card">当前是平台总览模式。用户、作品、订单、优惠券、标签、美甲师等店铺业务可以查看,编辑操作由服务端关闭。</view>
|
|
|
|
<block wx:for="{{modules}}" wx:key="key">
|
|
<view class="list-card" data-module="{{item}}" bindtap="handleOpenModule">
|
|
<view class="list-head">
|
|
<view>
|
|
<text class="list-title">{{item.title}}</text>
|
|
<text class="list-subtitle">{{item.description}}</text>
|
|
</view>
|
|
<text class="{{item.allowed ? 'badge' : 'soft-badge'}}">{{item.readonly ? '仅查看' : (item.allowed ? '可进入' : '待解锁')}}</text>
|
|
</view>
|
|
<view wx:if="{{!item.allowed}}" class="hint-card">{{item.disabledReason}}</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|