Commit e7fd93bc authored by 小费同学阿's avatar 小费同学阿 💬

uhf功能修复-筛选

parent 068dec34
...@@ -40,7 +40,9 @@ export const clearPower = (params) => { ...@@ -40,7 +40,9 @@ export const clearPower = (params) => {
}) })
}) })
} }
// 增加声音 // 设置声音
// 分5档, 0-5
// 传过去的对象里面volumeValue设置系统音量值
export const addVolume = (params) => { export const addVolume = (params) => {
return new Promise(resolve => { return new Promise(resolve => {
DS_BRIDGE.call('addVolume', params, res => { DS_BRIDGE.call('addVolume', params, res => {
......
...@@ -116,6 +116,8 @@ export default { ...@@ -116,6 +116,8 @@ export default {
{ required: true, message: '功率值不能为空!', trigger: 'blur' } { required: true, message: '功率值不能为空!', trigger: 'blur' }
] ]
}, },
// 设置特定音量
volumeSValue: 0,
resultInfo: [], resultInfo: [],
pageInfo: { pageInfo: {
pageNum: 1, pageNum: 1,
...@@ -309,6 +311,8 @@ export default { ...@@ -309,6 +311,8 @@ export default {
console.log('调用前', getToken()) console.log('调用前', getToken())
const params = { const params = {
flag: 'addVolume', flag: 'addVolume',
// 设置的系统音量值,传0,1,2,3,4五个档位
volumeValue: this.volumeSValue,
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.addVolume(params).then(res => { this.$WebView.addVolume(params).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment