bug
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
<p class="text">{{isStart ? '松开结束说话' : '按住说话'}}</p>
|
<p class="text">{{isStart ? '松开结束说话' : '按住说话'}}</p>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<p class="cancel" @click="cancel">取消</p>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,6 +61,7 @@ export default {
|
|||||||
success: (e)=> {
|
success: (e)=> {
|
||||||
this.isStart = false
|
this.isStart = false
|
||||||
this.text = this.text + e.translateResult // 语音识别的结果
|
this.text = this.text + e.translateResult // 语音识别的结果
|
||||||
|
this.confirm()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -70,6 +71,7 @@ export default {
|
|||||||
uni.navigateTo({url: `./formEdit?word=${this.text}`})
|
uni.navigateTo({url: `./formEdit?word=${this.text}`})
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
wx.stopRecord()
|
||||||
this.text = ''
|
this.text = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ export default {
|
|||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
uni.showLoading({title: '加载中'})
|
|
||||||
this.word = option.word
|
this.word = option.word
|
||||||
this.$dict.load('sex', 'nation').then(() => {
|
this.$dict.load('sex', 'nation').then(() => {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
@@ -100,6 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo() {
|
getInfo() {
|
||||||
|
uni.showLoading({title: '加载中'})
|
||||||
this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => {
|
this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = {...res.data}
|
this.info = {...res.data}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<span>{{ $dict.getLabel('nation', info.nation) || '请选择'}}</span>
|
<span>{{ $dict.getLabel('nation', info.nation) || '请选择'}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item pad-b">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<span>家庭人口数</span>
|
<span>家庭人口数</span>
|
||||||
<div class="edit" @click="editHouseholdNumber=true">
|
<div class="edit" @click="editHouseholdNumber=true">
|
||||||
@@ -78,6 +78,9 @@
|
|||||||
<div class="confirm" @click="toConfirm">确认使用</div>
|
<div class="confirm" @click="toConfirm">确认使用</div>
|
||||||
<div class="cancel" @click="back">取消输入</div>
|
<div class="cancel" @click="back">取消输入</div>
|
||||||
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -96,14 +99,13 @@ export default {
|
|||||||
deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false},
|
deteParams: {year: true, month: true, day: true, hour: false, minute: false, second: false},
|
||||||
editName: false,
|
editName: false,
|
||||||
editPhone: false,
|
editPhone: false,
|
||||||
editHouseholdNumber: false
|
editHouseholdNumber: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
uni.showLoading({title: '加载中'})
|
|
||||||
this.word = option.word
|
this.word = option.word
|
||||||
this.$dict.load('sex', 'nation').then(() => {
|
this.$dict.load('sex', 'nation').then(() => {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
@@ -114,14 +116,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getInfo() {
|
getInfo() {
|
||||||
|
uni.showLoading({title: '加载中'})
|
||||||
this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => {
|
this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = {...res.data}
|
this.info = {...res.data}
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
}).catch(res => {
|
}).catch(res => {
|
||||||
this.$u.toast(res)
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
this.$u.toast(res)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirmSex(e) {
|
confirmSex(e) {
|
||||||
@@ -187,7 +190,6 @@ uni-page-body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list {
|
.list {
|
||||||
padding-bottom: 272px;
|
|
||||||
.item {
|
.item {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 64px;
|
margin-bottom: 64px;
|
||||||
@@ -238,6 +240,9 @@ uni-page-body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.pad-b {
|
||||||
|
padding-bottom: 272px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.bottom-btn {
|
.bottom-btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
Reference in New Issue
Block a user