diff --git a/src/project/biaopin/AppAiInput/AppAiInput.vue b/src/project/biaopin/AppAiInput/AppAiInput.vue index 60650280..937f962c 100644 --- a/src/project/biaopin/AppAiInput/AppAiInput.vue +++ b/src/project/biaopin/AppAiInput/AppAiInput.vue @@ -13,15 +13,16 @@
+

语音录制中...

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

-
+ -
+

确定

+
--> @@ -41,6 +42,7 @@ export default { ...mapState(['user']), }, onLoad() { + this.text = '' this.injectJWeixin(['startRecord','stopRecord', 'translateVoice']) }, onShow() { @@ -159,6 +161,13 @@ uni-page-body { color: #222; margin-bottom: 64px; } + .loading { + font-family: PingFangSC-Regular; + font-size: 28px; + color: #666; + margin-bottom: 32px; + text-align: center; + } .btn { text-align: center; font-family: PingFangSC-Regular; diff --git a/src/project/biaopin/AppAiInput/formConfirm.vue b/src/project/biaopin/AppAiInput/formConfirm.vue index f2c5d485..ceaa4410 100644 --- a/src/project/biaopin/AppAiInput/formConfirm.vue +++ b/src/project/biaopin/AppAiInput/formConfirm.vue @@ -60,9 +60,9 @@
-
保存内容
+
提交
-
取消
+
返回录制
请选择 @@ -89,9 +89,9 @@ export default { ...mapState(['user']), }, onLoad(option) { - this.word = option.word + this.info = JSON.parse(option.info) this.$dict.load('sex', 'nation').then(() => { - this.getInfo() + // this.getInfo() }) }, onShow() { @@ -99,7 +99,7 @@ export default { }, methods: { getInfo() { - uni.showLoading({title: '加载中'}) + uni.showLoading({title: '读取中'}) this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => { if (res.code === 0) { this.info = {...res.data} @@ -120,25 +120,28 @@ export default { this.info.birthday = `${e.year}-${e.month}-${e.day}` }, confirm(successText) { - if(this.info.name == null || !this.info.name) { - return this.$u.toast('请输入户主姓名') - } - if(this.info.sex == null) { - return this.$u.toast('请选择性别') - } - if(this.info.phone == null || !this.info.phone) { - return this.$u.toast('请输入联系电话') - } - if(this.info.birthday == null) { - return this.$u.toast('请选择出生日期') - } - if(this.info.nation == null) { - return this.$u.toast('请选择民族') - } - if(this.info.householdNumber == null || !this.info.householdNumber) { - return this.$u.toast('请输入家庭人口数') - } + // if(this.info.name == null || !this.info.name) { + // return this.$u.toast('请输入户主姓名') + // } + // if(this.info.sex == null) { + // return this.$u.toast('请选择性别') + // } + // if(this.info.phone == null || !this.info.phone) { + // return this.$u.toast('请输入联系电话') + // } + // if(this.info.birthday == null) { + // return this.$u.toast('请选择出生日期') + // } + // if(this.info.nation == null) { + // return this.$u.toast('请选择民族') + // } + // if(this.info.householdNumber == null || !this.info.householdNumber) { + // return this.$u.toast('请输入家庭人口数') + // } this.$u.toast(successText) + }, + back() { + uni.navigateBack({delta: 2}) } }, } @@ -227,5 +230,8 @@ uni-page-body { border: 1px solid #CCC; } } + ::v-deep .u-input__right-icon { + display: none; + } } diff --git a/src/project/biaopin/AppAiInput/formEdit.vue b/src/project/biaopin/AppAiInput/formEdit.vue index 9fe9805a..3900464c 100644 --- a/src/project/biaopin/AppAiInput/formEdit.vue +++ b/src/project/biaopin/AppAiInput/formEdit.vue @@ -116,7 +116,7 @@ export default { }, methods: { getInfo() { - uni.showLoading({title: '加载中'}) + uni.showLoading({title: '读取中'}) this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => { if (res.code === 0) { this.info = {...res.data} @@ -137,25 +137,26 @@ export default { this.info.birthday = `${e.year}-${e.month}-${e.day}` }, toConfirm() { - if(this.info.name == null || !this.info.name) { - return this.$u.toast('请输入户主姓名') - } - if(this.info.sex == null) { - return this.$u.toast('请选择性别') - } - if(this.info.phone == null || !this.info.phone) { - return this.$u.toast('请输入联系电话') - } - if(this.info.birthday == null) { - return this.$u.toast('请选择出生日期') - } - if(this.info.nation == null) { - return this.$u.toast('请选择民族') - } - if(this.info.householdNumber == null || !this.info.householdNumber) { - return this.$u.toast('请输入家庭人口数') - } - uni.navigateTo({url: `./formConfirm?word=${this.word}`}) + // if(this.info.name == null || !this.info.name) { + // return this.$u.toast('请输入户主姓名') + // } + // if(this.info.sex == null) { + // return this.$u.toast('请选择性别') + // } + // if(this.info.phone == null || !this.info.phone) { + // return this.$u.toast('请输入联系电话') + // } + // if(this.info.birthday == null) { + // return this.$u.toast('请选择出生日期') + // } + // if(this.info.nation == null) { + // return this.$u.toast('请选择民族') + // } + // if(this.info.householdNumber == null || !this.info.householdNumber) { + // return this.$u.toast('请输入家庭人口数') + // } + var info = JSON.stringify(this.info) + uni.navigateTo({url: `./formConfirm?info=${info}`}) }, back() { uni.navigateBack()