添加店务小程序退出登录

This commit is contained in:
2026-07-16 14:55:48 +08:00
parent 62a7684e79
commit d020d8b933
3 changed files with 54 additions and 4 deletions
+3 -3
View File
@@ -11,9 +11,9 @@
</view>
<view class="section menu-list card">
<view wx:for="{{menus}}" wx:key="title" class="menu-row" data-url="{{item.url}}" data-action="{{item.action}}" bindtap="go">
<text>{{item.title}}</text>
<text class="arrow">›</text>
<view wx:for="{{menus}}" wx:key="title" class="menu-row {{item.danger ? 'danger-row' : ''}}" data-url="{{item.url}}" data-action="{{item.action}}" bindtap="go">
<text>{{item.action === 'logout' && loggingOut ? '退出中...' : item.title}}</text>
<text wx:if="{{item.action !== 'logout'}}" class="arrow">›</text>
</view>
</view>