This commit is contained in:
liuye
2022-06-07 19:08:12 +08:00
4 changed files with 10 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
utils.dict.init({instance: axios}) utils.dict.init({instance: axios})
utils.action.init(axios) utils.action.init(axios)
App.mpType = 'app'; App.mpType = 'app';
process.env.NODE_ENV == 'development' && new VConsole(); // process.env.NODE_ENV == 'development' && new VConsole();
const app = new Vue({ const app = new Vue({
store, store,
...App ...App

View File

@@ -10,7 +10,7 @@
<p>请先选择设备再按住下方按钮开始喊话~</p> <p>请先选择设备再按住下方按钮开始喊话~</p>
</div> </div>
</div> </div>
<div class="bottom" @longtap="onLongtap"> <div class="bottom" @touchstart="onLongtap">
<image src="./img/microphone.png" /> <image src="./img/microphone.png" />
<p>按住说话</p> <p>按住说话</p>
</div> </div>
@@ -78,6 +78,7 @@
methods: { methods: {
onLongtap () { onLongtap () {
this.isImpact = false
this.startTime = new Date().getTime() this.startTime = new Date().getTime()
this.isShow = true this.isShow = true
}, },
@@ -122,6 +123,7 @@
.LiveBroadcast { .LiveBroadcast {
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
user-select: none;
background: #F6F8FC; background: #F6F8FC;
.voice { .voice {
@@ -140,7 +142,7 @@
transition: all ease 0.5s; transition: all ease 0.5s;
&.active { &.active {
z-index: 1; z-index: 1111111111111;
opacity: 1; opacity: 1;
} }
@@ -279,6 +281,7 @@
width: 128px; width: 128px;
height: 128px; height: 128px;
margin-bottom: 16px; margin-bottom: 16px;
pointer-events: none;
} }
p { p {

View File

@@ -86,6 +86,7 @@ export default {
name: item.name name: item.name
} }
}) })
uni.showLoading({mask: true})
this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form, girdMemberManageList, girdMemberList}).then((res) => { this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form, girdMemberManageList, girdMemberList}).then((res) => {
if (res?.code == 0) { if (res?.code == 0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')
@@ -96,7 +97,7 @@ export default {
} }
}).catch((err) => { }).catch((err) => {
this.$u.toast(err) this.$u.toast(err)
}) }).finally(() => uni.hideLoading())
}, },
getArrayLabel(arr, key = 'name', separation = '') { getArrayLabel(arr, key = 'name', separation = '') {

View File

@@ -115,6 +115,7 @@ export default {
if (!this.form.girdName) { if (!this.form.girdName) {
return this.$u.toast('请输入网格名称') return this.$u.toast('请输入网格名称')
} }
uni.showLoading({mask: true})
this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form}).then((res) => { this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, {...this.form}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')
@@ -125,7 +126,7 @@ export default {
} }
}).catch((err) => { }).catch((err) => {
this.$u.toast(err) this.$u.toast(err)
}) }).finally(() => uni.hideLoading())
} }
} }