修改开户缓存问题和修改编辑商户信息后商户信息不变化的问题

This commit is contained in:
qiaomu 2025-03-12 08:47:59 +08:00
parent 1b69035ed2
commit 32b7dbc38c
2 changed files with 8 additions and 3 deletions

View File

@ -51,6 +51,9 @@ Component({
}, },
async getTenementInfo() { async getTenementInfo() {
const { tenement, park } = this.data; const { tenement, park } = this.data;
if (!tenement || !park) {
return;
}
const { code, message, tenement: data } = await getTenementBackInfo(park, tenement) const { code, message, tenement: data } = await getTenementBackInfo(park, tenement)
if (code !== OK) { if (code !== OK) {
alertInfo(message) alertInfo(message)
@ -118,11 +121,12 @@ Component({
this.setData({ this.setData({
kaihuVisible: false, kaihuVisible: false,
defaultValue: {}, defaultValue: {},
title: "编辑" title: "编辑",
editType: "",
}) })
}, },
onKaihuConfirm() { async onKaihuConfirm() {
// this.getTenementInfo(); this.getTenementInfo();
this.onKaihuClose(); this.onKaihuClose();
}, },
unbind(e) { unbind(e) {

View File

@ -105,6 +105,7 @@
bindcancel="onCancel" bindcancel="onCancel"
/> />
<kaihu <kaihu
wx:if="{{kaihuVisible}}"
park="{{park}}" park="{{park}}"
visible="{{kaihuVisible}}" visible="{{kaihuVisible}}"
defaultValue="{{defaultValue}}" defaultValue="{{defaultValue}}"