|
@@ -7,7 +7,8 @@ import uploadInstance from "../utils/UploadUtil"
|
|
|
const TAG = "openHarmonyBridge" //webview和vue沟通的名称
|
|
|
// const webUrl = "http://192.168.1.4:11000/" //创客前端服务
|
|
|
//const webUrl = "http://192.168.0.49:3005/" //本地跑的项目
|
|
|
-const webUrl = "http://10.88.11.200:11000/" //险峰服务
|
|
|
+//const webUrl = "http://10.88.11.200:11000/" //险峰服务
|
|
|
+const webUrl = "http://192.168.2.100:11000/" //江山服务
|
|
|
|
|
|
class BridgeModel {
|
|
|
constructor() {
|
|
@@ -80,11 +81,11 @@ struct Index {
|
|
|
// 这个webview调用相机不知道为什么只能执行一次,选择文件的回到还行,但是为了统一写法还是用registerJavaScriptProxy,但是有时候注册的方法也只能执行一次,不知道为什么。
|
|
|
// Web({ src: $rawfile('doc_old.html'), controller: this.controller })//测试官方文档 这个是好使的
|
|
|
|
|
|
- Button("跳转到相机页面").onClick(() => {
|
|
|
- router.pushUrl({
|
|
|
- url: "pages/CameraVersion2"
|
|
|
- })
|
|
|
- })
|
|
|
+ // Button("跳转到相机页面").onClick(() => {
|
|
|
+ // router.pushUrl({
|
|
|
+ // url: "pages/CameraVersion2"
|
|
|
+ // })
|
|
|
+ // })
|
|
|
Web({
|
|
|
src: webUrl,
|
|
|
controller: this.controller
|