@atomicservice/ascf-base 1.0.15 → 1.0.16
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/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +76 -76
- package/dist/index.mjs +76 -76
- package/dist/templates/ascfDemos/page/API/pages/appEvent/appEvent.js +4 -3
- package/dist/templates/ascfDemos/page/API/pages/camera/camera.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/choose-location/choose-location.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/compass/compass.js +2 -2
- package/dist/templates/ascfDemos/page/API/pages/contact/contact.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/deviceMotionListening/deviceMotionListening.js +3 -3
- package/dist/templates/ascfDemos/page/API/pages/download-file/download-file.js +0 -1
- package/dist/templates/ascfDemos/page/API/pages/file/file.js +3 -0
- package/dist/templates/ascfDemos/page/API/pages/get-hxml-info/get-hxml-info.js +6 -6
- package/dist/templates/ascfDemos/page/API/pages/get-system-info/get-system-info.js +10 -10
- package/dist/templates/ascfDemos/page/API/pages/getNetworkType/getNetworkType.js +1 -6
- package/dist/templates/ascfDemos/page/API/pages/gyroscope/gyroscope.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/image/image.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/make-phone-call/make-phone-call.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/scan-code/scan-code.js +1 -1
- package/dist/templates/ascfDemos/page/API/pages/set-tab-bar/set-tab-bar.js +22 -2
- package/dist/templates/ascfDemos/page/API/pages/video/video.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/webSocket/webSocket.js +1 -0
- package/dist/templates/ascfDemos/page/API/pages/wifi/wifi.js +1 -0
- package/dist/templates/ascfDemos/page/component/pages/icon/icon.js +1 -1
- package/dist/templates/ascfDemos/page/component/pages/picker/picker.js +0 -1
- package/dist/templates/ascfDemos/page/component/pages/radio/radio.js +2 -2
- package/dist/templates/ascfDemos/page/component/pages/swiper/swiper.js +2 -1
- package/dist/templates/ascfDemos/page/open/pages/choose-address/choose-address.js +1 -0
- package/dist/templates/ascfDemos/page/open/pages/choose-invoice-title/choose-invoice-title.js +1 -1
- package/dist/templates/ascfDemos/page/open/pages/message/message.js +1 -1
- package/package.json +1 -1
|
@@ -14,9 +14,10 @@ Page({
|
|
|
14
14
|
isappHide: 'false',
|
|
15
15
|
isonPageNotFound: 'false',
|
|
16
16
|
isonError: 'false',
|
|
17
|
-
onAppShowListener:
|
|
18
|
-
onAppHideListener:
|
|
19
|
-
onPageNotFoundListener:
|
|
17
|
+
onAppShowListener: ()=>{},
|
|
18
|
+
onAppHideListener: ()=>{},
|
|
19
|
+
onPageNotFoundListener: ()=>{},
|
|
20
|
+
onErrorListener: ()=>{}
|
|
20
21
|
},
|
|
21
22
|
|
|
22
23
|
openone() {
|
|
@@ -8,7 +8,7 @@ Page({
|
|
|
8
8
|
const that = this
|
|
9
9
|
has.onCompassChange(res => {
|
|
10
10
|
that.setData({
|
|
11
|
-
direction:
|
|
11
|
+
direction: res.direction,
|
|
12
12
|
resData: JSON.stringify(res),
|
|
13
13
|
enabled: true
|
|
14
14
|
})
|
|
@@ -69,7 +69,7 @@ Page({
|
|
|
69
69
|
const that = this
|
|
70
70
|
has.onCompassChange(res => {
|
|
71
71
|
that.setData({
|
|
72
|
-
direction:
|
|
72
|
+
direction: res.direction,
|
|
73
73
|
resData: JSON.stringify(res),
|
|
74
74
|
enabled: true
|
|
75
75
|
})
|
|
@@ -3,19 +3,19 @@ Page({
|
|
|
3
3
|
systemInfo: {},
|
|
4
4
|
brand:'',
|
|
5
5
|
model:'',
|
|
6
|
-
screenWidth:
|
|
7
|
-
screenHeight:
|
|
8
|
-
windowWidth:
|
|
9
|
-
windowHeight:
|
|
10
|
-
statusBarHeight:
|
|
11
|
-
indicatorHeight:
|
|
6
|
+
screenWidth:0,
|
|
7
|
+
screenHeight:0,
|
|
8
|
+
windowWidth:0,
|
|
9
|
+
windowHeight:0,
|
|
10
|
+
statusBarHeight:0,
|
|
11
|
+
indicatorHeight:0,
|
|
12
12
|
language:'',
|
|
13
13
|
SDKVersion:'',
|
|
14
14
|
OSApiVersion:'',
|
|
15
|
-
fontSizeSetting:
|
|
16
|
-
bluetoothEnabled:
|
|
17
|
-
locationEnabled:
|
|
18
|
-
wifiEnabled:
|
|
15
|
+
fontSizeSetting:0,
|
|
16
|
+
bluetoothEnabled:false,
|
|
17
|
+
locationEnabled:false,
|
|
18
|
+
wifiEnabled:false,
|
|
19
19
|
deviceOrientation:'',
|
|
20
20
|
theme:''
|
|
21
21
|
},
|
|
@@ -13,10 +13,30 @@ Component({
|
|
|
13
13
|
let isShowTab = this.data.isShowTab;
|
|
14
14
|
if (isShowTab) {
|
|
15
15
|
isShowTab = false;
|
|
16
|
-
has.hideTabBar(
|
|
16
|
+
has.hideTabBar({
|
|
17
|
+
success: function (res) {
|
|
18
|
+
console.log('hideTabBar 回调成功:' + JSON.stringify(res));
|
|
19
|
+
},
|
|
20
|
+
fail: function (res) {
|
|
21
|
+
console.log('hideTabBar 回调失败:' + JSON.stringify(res));
|
|
22
|
+
},
|
|
23
|
+
complete: function (res) {
|
|
24
|
+
console.log('hideTabBar 回调完成:' + JSON.stringify(res));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
17
27
|
} else {
|
|
18
28
|
isShowTab = true;
|
|
19
|
-
has.showTabBar(
|
|
29
|
+
has.showTabBar({
|
|
30
|
+
success: function (res) {
|
|
31
|
+
console.log('showTabBar 回调成功:' + JSON.stringify(res));
|
|
32
|
+
},
|
|
33
|
+
fail: function (res) {
|
|
34
|
+
console.log('showTabBar 回调失败:' + JSON.stringify(res));
|
|
35
|
+
},
|
|
36
|
+
complete: function (res) {
|
|
37
|
+
console.log('showTabBar 回调完成:' + JSON.stringify(res));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
20
40
|
}
|
|
21
41
|
this.setData({
|
|
22
42
|
isShowTab,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Page({
|
|
2
2
|
data: {
|
|
3
3
|
items: [
|
|
4
|
-
{value: 'A', name: 'A', checked:
|
|
4
|
+
{value: 'A', name: 'A', checked: true},
|
|
5
5
|
{value: 'B', name: 'B'},
|
|
6
6
|
{value: 'C', name: 'C'},
|
|
7
|
-
{value: 'D', name: 'D', isdisabled:
|
|
7
|
+
{value: 'D', name: 'D', isdisabled:true}
|
|
8
8
|
],
|
|
9
9
|
ischecked:true,
|
|
10
10
|
isdisabled:false,
|