Commit 5dafdd0b by 李伟康

commit 提交

1 parent cb17d93c
......@@ -136,9 +136,6 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
import detail from './detail.vue'
import CustomerType from './components/CustomerType.vue';
import { mapMutations } from "vuex";
const m5 = require("@/assets/images/boutique/index/m5.png")
const m7 = require("@/assets/images/boutique/index/m7.png")
const m9 = require("@/assets/images/boutique/index/m9.png")
const defaultConfig = [
{
name: '套餐火爆热卖',
......@@ -348,16 +345,16 @@ export default {
this.recording = false
},
async start (before = true) {
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return false
// }
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
if (result !== 1) {
uni.showToast({
title: "为了记录语音通话,请打开录音权限",
icon: "none",
});
return false
}
if (before) this.clearHistory();
this.$refs.home.startAudio();
this.recording = true
......
......@@ -220,17 +220,17 @@ export default {
async start () {
if (this.recording) return
// uni.showLoading({
// mask: true
// })
// const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
// if (result !== 1) {
// uni.showToast({
// title: '为了记录语音通话,请打开录音权限',
// icon: 'none'
// })
// return
// }
uni.showLoading({
mask: true
})
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
if (result !== 1) {
uni.showToast({
title: '为了记录语音通话,请打开录音权限',
icon: 'none'
})
return
}
this.getSoure()
this.clearHistory()
this.$refs.home.startAudio()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!