bug
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<p class="text">{{isStart ? '松开结束说话' : '按住说话'}}</p>
|
||||
<div class="btn">
|
||||
<p class="cancel" @click="cancel">取消</p>
|
||||
<p class="confirm" @click="confirm" v-if="text">确定</p>
|
||||
<!-- <p class="confirm" @click="confirm" v-if="text">确定</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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 = ''
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<span>{{ $dict.getLabel('nation', info.nation) || '请选择'}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item pad-b">
|
||||
<div class="label">
|
||||
<span>家庭人口数</span>
|
||||
<div class="edit" @click="editHouseholdNumber=true">
|
||||
@@ -78,6 +78,9 @@
|
||||
<div class="confirm" @click="toConfirm">确认使用</div>
|
||||
<div class="cancel" @click="back">取消输入</div>
|
||||
</div>
|
||||
<u-picker mode="time" v-model="showDate" :params="deteParams" start-year="1930" @confirm="dateConfirm">请选择</u-picker>
|
||||
<u-select v-model="showSex" :list="$dict.getDict('sex')" label-name="dictName" value-name="dictValue" @confirm="confirmSex"/>
|
||||
<u-select v-model="showNation" :list="$dict.getDict('nation')" label-name="dictName" value-name="dictValue" @confirm="confirmNation"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user