提交 d07eaf16 编写于 作者: 杜庆泉's avatar 杜庆泉

wifi 新增自动化环境配置

上级 1a3a7272
......@@ -5,6 +5,27 @@
"style": {
"navigationBarTitleText": "uni-app"
}
},
{
"path": "pages/autotest/uni-getbatteryinfo/uni-getbatteryinfo",
"style": {
"navigationBarTitleText": "uni-getbatteryinfo",
"enablePullDownRefresh": false
}
},
{
"path": "pages/autotest/uni-memorywarning/uni-memorywarning",
"style": {
"navigationBarTitleText": "uni-memorywarning",
"enablePullDownRefresh": false
}
},
{
"path": "pages/autotest/uni-usercapturescreen/uni-usercapturescreen",
"style": {
"navigationBarTitleText": "uni-usercapturescreen",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
......
......@@ -130,7 +130,7 @@ interface Uni {
* @uniPlatform {
* "app": {
* "android": {
* "osVer": "4.4.4",
* "osVer": "<=10.0",
* "uniVer": "3.7.0",
* "unixVer": "3.9.0"
* },
......
export function startWifi() {
return new Promise((resolve, reject) => {
uni.startWifi({
success: () => {
console.log('startWifi success');
resolve()
},
fail: () => {
console.log('startWifi fail');
reject()
}
})
})
}
export function stopWifi() {
return new Promise((resolve, reject) => {
uni.stopWifi({
success: () => {
console.log('stopWifi success');
resolve()
},
fail: () => {
console.log('stopWifi success');
fail()
}
})
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册