master
parent
dbe1f7728d
commit
bfa4e3054d
components/status-nav
pages/index
unpackage
debug
dist/build/app-plus
|
@ -28,6 +28,37 @@
|
||||||
pname: "com.samton", //B款app云打包的包名
|
pname: "com.samton", //B款app云打包的包名
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// backHome() {
|
||||||
|
// //获取宿主上下文
|
||||||
|
// var main = plus.android.runtimeMainActivity();
|
||||||
|
// //通过反射获取Android的Intent对象
|
||||||
|
// var Intent = plus.android.importClass("android.content.Intent");
|
||||||
|
// //通过宿主上下文创建 intent
|
||||||
|
// var intent = new Intent(main.getIntent());
|
||||||
|
// //设置要开启的Activity包类路径 com.HBuilder.integrate.MainActivity换掉你自己的界面
|
||||||
|
// intent.setClassName(main, "com.samton.reception.mvp.ui.activity.ReceptionActivity");
|
||||||
|
// //开启新的任务栈 (跨进程)
|
||||||
|
// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
// //uni向android原生界面传值
|
||||||
|
// intent.putExtra("uni_key","来自uniapp的值");
|
||||||
|
|
||||||
|
// //请求码保证了,开始的新界面和返回的是同一个操作
|
||||||
|
// var CODE_REQUEST=1000
|
||||||
|
// //采用startActivityForResult开启新的界面,当界面关闭时可以处理返回结果, CODE_REQUEST请求码是唯一标识
|
||||||
|
// main.startActivityForResult(intent,CODE_REQUEST);
|
||||||
|
|
||||||
|
// //设置原生界面返回后的回调操作
|
||||||
|
// main.onActivityResult = function(requestCode, resultCode, data) {
|
||||||
|
// if (requestCode == CODE_REQUEST) {
|
||||||
|
// // alert(requestCode); //这个是正确的 1000
|
||||||
|
// // alert(resultCode); //始终都是0
|
||||||
|
// // alert(data); //弹出 undefined
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -9,9 +9,10 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
macStr: '', //设备mac
|
macStr: '', //设备mac
|
||||||
allowMac: ['08:E9:F6:84:C8:6E', '08:00:27:3F:90:0B', '00:DB:19:F0:1A:F6', '00:DB:A8:8A:16:77','08:00:27:BD:B8:40'], //允许设备mac
|
allowMac: ['08:E9:F6:84:C8:6E', '08:00:27:3F:90:0B', '00:DB:19:F0:1A:F6', '00:DB:A8:8A:16:77','08:00:27:BD:B8:40','08:E9:F6:84:A8:AA','B8:13:32:65:A8:1C'], //允许设备mac
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// #ifdef APP
|
// #ifdef APP
|
||||||
// 导入Java类。Networklnterface类表示一个由名称和分配给此接口的IP地址列表组成的网络接口
|
// 导入Java类。Networklnterface类表示一个由名称和分配给此接口的IP地址列表组成的网络接口
|
||||||
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue