修改进度
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
<view class="cell">
|
<view class="cell">
|
||||||
<view>{{$t('customer.followtime')}} </view>
|
<view>{{$t('customer.followtime')}} </view>
|
||||||
<view class="right" @click="show = true">
|
<view class="right" @click="show = true">
|
||||||
<input :placeholder="$t('customer.followtime')" v-model="form.firstFollowtime" />
|
<input :placeholder="$t('customer.followtime')" v-model="form.firstFollowtime" disabled />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
@@ -327,10 +327,10 @@
|
|||||||
var options = {};
|
var options = {};
|
||||||
var that = this;
|
var that = this;
|
||||||
options.engine = 'baidu';
|
options.engine = 'baidu';
|
||||||
that.form.bf_desc = "";
|
that.form.audio_text = "";
|
||||||
plus.speech.startRecognize(options, function (s) {
|
plus.speech.startRecognize(options, function (s) {
|
||||||
console.log(s);
|
console.log(s);
|
||||||
that.form.bf_desc += s;
|
that.form.audio_text += s;
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
console.log("语音识别失败:" + e.message);
|
console.log("语音识别失败:" + e.message);
|
||||||
});
|
});
|
||||||
@@ -345,13 +345,13 @@
|
|||||||
// TODO ios 在没有请求过权限之前无法得知是否有相关权限,这种状态下需要直接调用语音,会弹出正在识别的toast
|
// TODO ios 在没有请求过权限之前无法得知是否有相关权限,这种状态下需要直接调用语音,会弹出正在识别的toast
|
||||||
var options = {};
|
var options = {};
|
||||||
var that = this;
|
var that = this;
|
||||||
that.form.mom_desc = "";
|
that.form.remark = "";
|
||||||
options.engine = 'iFly';
|
options.engine = 'iFly';
|
||||||
options.punctuation = false; // 是否需要标点符号
|
options.punctuation = false; // 是否需要标点符号
|
||||||
options.timeout = 10 * 1000; //语音录入持续时长
|
options.timeout = 10 * 1000; //语音录入持续时长
|
||||||
plus.speech.startRecognize(options, function(s) {
|
plus.speech.startRecognize(options, function(s) {
|
||||||
console.log(s);
|
console.log(s);
|
||||||
that.form.mom_desc += s;
|
that.form.remark += s;
|
||||||
// 关闭语音
|
// 关闭语音
|
||||||
plus.speech.stopRecognize();
|
plus.speech.stopRecognize();
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user