chenjiabao hai 3 meses
pai
achega
1edd4c4665

+ 7 - 6
entry/src/main/ets/pages/Index.ets

@@ -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

+ 2 - 1
entry/src/main/ets/utils/Request.ets

@@ -13,7 +13,8 @@ import RequestParamsModel from './requestParams';
 import uploadInstance from './UploadUtil';
 
 // jxq: 项目基本请求路径 险峰的
-export  const JGRequestBaseUrl = "http://10.88.11.200:8079/" //险峰
+//export  const JGRequestBaseUrl = "http://10.88.11.200:8079/" //险峰
+export  const JGRequestBaseUrl = "http://192.168.2.100:8079/" //江山
 //export  const JGRequestBaseUrl = "http://192.168.1.4:8079/" // 创客
 
 const DEBUG = true //

+ 2 - 1
entry/src/main/ets/utils/UploadUtil.ets

@@ -43,7 +43,8 @@ interface FileDataModel {
 
 class UploadUtil {
   private baseUrl: string = JGRequestBaseUrl
-  private fileUrl: string = "http://10.88.11.201:9000" //上传完成后可以查看的
+  //private fileUrl: string = "http://10.88.11.201:9000" //上传完成后可以查看的
+  private fileUrl: string = "http://192.168.2.100:9000" //江山
   private uploadPath: string = "/api/v1/base/upload"
   controller: web_webview.WebviewController | null = null
   ports: web_webview.WebMessagePort[] = [];