diff --git a/pages/information/information.vue b/pages/information/information.vue index fce124b..fcf9991 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -58,7 +58,8 @@ - {{isForm ? '提交' : '完成'}} + 提交 + 完成 @@ -128,6 +129,7 @@ }, show: false, isForm: true, + submitButton:true, isTimeShow: false, buildingShow: false, isinTimeShow: false, @@ -171,15 +173,12 @@ duration: 2000, }) } - if (this.isForm) { + if (this.isForm && this.submitButton) { + this.submitButton = false let res = await getSubmit(this.callerInfo) - res === '' ? this.isForm = false : this.isForm = true - } else { - wx.switchTab({ - url: `/pages/index/index`, - }); - this.isForm = true - } + this.isForm = false + this.submitButton = true + } if (uni.getStorageSync("userInfo")) { const userInfo = JSON.parse(uni.getStorageSync("userInfo")); @@ -190,6 +189,13 @@ } } }, + // 点击完成 + switchTabClick() { + wx.switchTab({ + url: `/pages/index/index`, + }); + this.isForm = true + }, //确定选择结束时间 async confirmTime(e) { this.callerInfo.outTime = await this.shijianc(e.value)