功能:完善订单流程和加固

This commit is contained in:
xiaowang
2026-05-23 15:16:40 +08:00
parent 9227ec6175
commit 3e6e1cc4e8
90 changed files with 6859 additions and 368 deletions
@@ -111,31 +111,5 @@ Page({
icon: 'none'
})
})
},
handleDelete(event) {
const shop = event.currentTarget.dataset.shop
wx.showModal({
title: '删除店铺',
content: `确认删除店铺“${shop.shopName}”吗?该操作会联动清理店铺下资源。`,
success: async result => {
if (!result.confirm) {
return
}
try {
await shopApi.deleteShop(shop.id)
wx.showToast({
title: '店铺已删除',
icon: 'none'
})
this.loadShops()
} catch (error) {
wx.showToast({
title: error.message || '店铺删除失败',
icon: 'none'
})
}
}
})
}
})
@@ -32,7 +32,6 @@
<view class="list-actions">
<view class="mini-btn primary" data-shop="{{item}}" bindtap="handleEdit">编辑</view>
<view class="mini-btn" data-shop="{{item}}" bindtap="handleStatus">{{item.status === 0 ? '启用' : '停用'}}</view>
<view class="mini-btn danger" data-shop="{{item}}" bindtap="handleDelete">删除</view>
</view>
</view>
</block>