修改首页获取商户,发票选商户没反应的问题,,新增退出登录

This commit is contained in:
2024-04-10 09:31:26 +08:00
parent e3390db414
commit 7249c430b8
8 changed files with 30 additions and 20 deletions

View File

@@ -47,7 +47,7 @@ Page({
return;
}
if (type === "tenement") {
this.onChangeTenement(value.id)
this.onChangeTenement(value)
return;
}
},
@@ -76,11 +76,13 @@ Page({
this.init(currentYear, tenement)
},
onChangeTenement(e) {
const { id, name } = e;
const { year } = this.data;
// const currentYear = years[Number(e)]
this.setData({
// year: currentYear,
tenement: e,
tenement: id,
tenementName: name,
type: "",
show: false,
title: ""