system-phone 3.0.49-1 → 3.0.49-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.0.49-1",
3
+ "version": "3.0.49-2",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -35,8 +35,8 @@
35
35
  </dropdown>
36
36
  </div>
37
37
  <div class="app-header-guanbishengyin" style="line-height: 25px" @click='mute()'>
38
- <img v-if="f_voiceSwitch" src="../assets/jingyin3.png" style="height: 20px; width: 20px;"/>
39
- <img v-if="!f_voiceSwitch" src="../assets/yinliang.png" style="height: 20px; width: 20px;"/>
38
+ <img v-if="!f_voiceSwitch" src="../assets/jingyin3.png" style="height: 20px; width: 20px;"/>
39
+ <img v-if="f_voiceSwitch" src="../assets/yinliang.png" style="height: 20px; width: 20px;"/>
40
40
  </div>
41
41
  </div>
42
42
  </template>
@@ -72,6 +72,10 @@
72
72
  default: true
73
73
  }
74
74
  },
75
+ ready(){
76
+ //首次进入默认开启播放
77
+ HostApp.setPreference('f_voiceSwitch','true')
78
+ },
75
79
  methods: {
76
80
  // 新增工单
77
81
  newadd(){
@@ -93,10 +97,10 @@
93
97
  HostApp.mute()
94
98
  switch (HostApp.getPreference('f_voiceSwitch').data){
95
99
  case 'true' : HostApp.setPreference('f_voiceSwitch','false')
96
- this.f_voiceSwitch= true
100
+ this.f_voiceSwitch= false
97
101
  break
98
102
  case 'false' : HostApp.setPreference('f_voiceSwitch','true')
99
- this.f_voiceSwitch= false
103
+ this.f_voiceSwitch= true
100
104
  break
101
105
  default : HostApp.setPreference('f_voiceSwitch','true')
102
106
  }