@zhangxuejing123./sip-phone-sdk 0.0.2 → 0.0.3

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": "@zhangxuejing123./sip-phone-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/public/index.html CHANGED
@@ -19,7 +19,6 @@
19
19
  height: { min: 640, max: 640 }
20
20
  },
21
21
  videoCodec: 'h264',
22
- isAPP:false,
23
22
  }
24
23
  </script>
25
24
  </head>
package/src/App.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <v-app style="background-color: rgba(5,29,63)" :class="isAPP ? 'my-APP' : ''">
2
+ <v-app style="background-color: rgba(5,29,63)" >
3
3
 
4
4
  <!-- <button @click="onMakeCall">拨号</button> -->
5
5
  <v-main>
@@ -34,7 +34,6 @@ export default {
34
34
  },
35
35
 
36
36
  data: () => ({
37
- isAPP:false,
38
37
  debug: false,
39
38
  password: '',
40
39
  calledNum: '',
@@ -77,8 +76,6 @@ export default {
77
76
  },
78
77
 
79
78
  mounted () {
80
- this.isAPP = window.config.isAPP;
81
- console.log("isAPP22",this.isAPP)
82
79
  let {
83
80
  calledNum = '0000021000021001',
84
81
  //calledNum = '000001100002011001',
@@ -1,7 +1,7 @@
1
1
  <!-- 主模板:视频通话界面 -->
2
- <template>
2
+ <template >
3
3
  <!-- 主容器:使用flex垂直布局,内容居中对齐 -->
4
- <div class="d-flex flex-column align-center justify-space-between sip-call-main">
4
+ <div :class="isAPP ? 'my-APP' : ''" class="d-flex flex-column align-center justify-space-between sip-call-main">
5
5
  <!-- 位置信息显示区域 -->
6
6
  <div class="location-wrapper" v-if="showLocation">
7
7
  <!-- 显示经纬度和海拔信息 -->
@@ -240,6 +240,7 @@ export default {
240
240
 
241
241
  data: function () {
242
242
  return {
243
+ isAPP:false,
243
244
  prompt: `${this.$t('serverConnecting')}...`,
244
245
  callPrompt: this.$t('pleaseBePatient'),
245
246
 
@@ -915,10 +916,23 @@ export default {
915
916
 
916
917
  stopSendPosition () {
917
918
  clearTimeout(this.sendPositionHandler)
918
- }
919
+ },
920
+ isAPPIF(){
921
+ if (/android/i.test(navigator.userAgent)) {
922
+ this.isAPP = true;
923
+ console.log("当前为Android App");
924
+ } else if (/iphone|ipad|ipod/i.test(navigator.userAgent)) {
925
+ console.log("当前为iOS App");
926
+ this.isAPP = true;
927
+ } else {
928
+ this.isAPP = false;
929
+ console.log("当前为H5页面");
930
+ }
931
+ },
919
932
  },
920
933
 
921
934
  async mounted() {
935
+ // this.isAPPIF()
922
936
  console.info('MobilePhone mounted')
923
937
  await this.checkBrowser().catch(e => {
924
938
  this.showSnackbar = true
@@ -1097,6 +1111,7 @@ export default {
1097
1111
  opacity: .6 !important;
1098
1112
  position: absolute !important;
1099
1113
  left: calc(50% + 160px) !important;
1114
+ color: #FFFFFF;
1100
1115
  }
1101
1116
  .transparent-btn::before {
1102
1117
  background-color: transparent !important;
@@ -1292,16 +1307,17 @@ export default {
1292
1307
  }
1293
1308
 
1294
1309
  .transparent-btn {
1295
- background: transparent !important;
1296
- box-shadow: none !important;
1297
- min-width: 0 !important;
1298
- width: auto !important;
1299
- height: auto !important;
1300
- padding: 0 !important;
1301
- margin: 0 !important;
1302
- opacity: .6 !important;
1303
- position: absolute !important;
1304
- left: calc(50% + 80px) !important;
1310
+ background: transparent !important;
1311
+ box-shadow: none !important;
1312
+ min-width: 0 !important;
1313
+ width: auto !important;
1314
+ height: auto !important;
1315
+ padding: 0 !important;
1316
+ margin: 0 !important;
1317
+ opacity: .6 !important;
1318
+ position: absolute !important;
1319
+ left: calc(50% + 160px) !important;
1320
+ color: #FFFFFF;
1305
1321
  }
1306
1322
  .transparent-btn::before {
1307
1323
  background-color: transparent !important;
@@ -4666,7 +4666,8 @@ html.overflow-y-hidden {
4666
4666
  }
4667
4667
 
4668
4668
  .v-application .mb-10 {
4669
- margin-bottom: 40px !important;
4669
+ margin-bottom: 160px !important;
4670
+ z-index: 1000 !important;
4670
4671
  }
4671
4672
 
4672
4673
  .v-application .mb-11 {