From f7558d3abc5a8f42a3b517effbf60f69c760c479 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 25 Dec 2023 14:53:27 +0800 Subject: [PATCH] bug --- src/project/biaopin/AppAiInput/AppAiInput.vue | 4 +++- src/project/biaopin/AppAiInput/formConfirm.vue | 2 +- src/project/biaopin/AppAiInput/formEdit.vue | 15 ++++++++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/project/biaopin/AppAiInput/AppAiInput.vue b/src/project/biaopin/AppAiInput/AppAiInput.vue index eea6a080..60650280 100644 --- a/src/project/biaopin/AppAiInput/AppAiInput.vue +++ b/src/project/biaopin/AppAiInput/AppAiInput.vue @@ -20,7 +20,7 @@

{{isStart ? '松开结束说话' : '按住说话'}}

取消

-

确定

+
@@ -61,6 +61,7 @@ export default { success: (e)=> { this.isStart = false this.text = this.text + e.translateResult // 语音识别的结果 + this.confirm() } }); } @@ -70,6 +71,7 @@ export default { uni.navigateTo({url: `./formEdit?word=${this.text}`}) }, cancel() { + wx.stopRecord() this.text = '' } }, diff --git a/src/project/biaopin/AppAiInput/formConfirm.vue b/src/project/biaopin/AppAiInput/formConfirm.vue index 1c1022c0..f2c5d485 100644 --- a/src/project/biaopin/AppAiInput/formConfirm.vue +++ b/src/project/biaopin/AppAiInput/formConfirm.vue @@ -89,7 +89,6 @@ export default { ...mapState(['user']), }, onLoad(option) { - uni.showLoading({title: '加载中'}) this.word = option.word this.$dict.load('sex', 'nation').then(() => { this.getInfo() @@ -100,6 +99,7 @@ export default { }, methods: { getInfo() { + uni.showLoading({title: '加载中'}) this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => { if (res.code === 0) { this.info = {...res.data} diff --git a/src/project/biaopin/AppAiInput/formEdit.vue b/src/project/biaopin/AppAiInput/formEdit.vue index c1147edd..9fe9805a 100644 --- a/src/project/biaopin/AppAiInput/formEdit.vue +++ b/src/project/biaopin/AppAiInput/formEdit.vue @@ -61,7 +61,7 @@ {{ $dict.getLabel('nation', info.nation) || '请选择'}} -
+
家庭人口数
@@ -78,6 +78,9 @@
确认使用
取消输入
+ 请选择 + +
@@ -96,14 +99,13 @@ export default { deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false}, editName: false, editPhone: false, - editHouseholdNumber: false + editHouseholdNumber: false, } }, computed: { ...mapState(['user']), }, onLoad(option) { - uni.showLoading({title: '加载中'}) this.word = option.word this.$dict.load('sex', 'nation').then(() => { this.getInfo() @@ -114,14 +116,15 @@ export default { }, methods: { getInfo() { + uni.showLoading({title: '加载中'}) this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => { if (res.code === 0) { this.info = {...res.data} uni.hideLoading() } }).catch(res => { - this.$u.toast(res) uni.hideLoading() + this.$u.toast(res) }) }, confirmSex(e) { @@ -187,7 +190,6 @@ uni-page-body { } } .list { - padding-bottom: 272px; .item { text-align: center; margin-bottom: 64px; @@ -238,6 +240,9 @@ uni-page-body { } } } + .pad-b { + padding-bottom: 272px; + } } .bottom-btn { position: fixed;