From 153404ffa0a9c6d23d2c2732b46fa6929e86294f Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 18 六月 2025 13:56:18 +0800
Subject: [PATCH] 111

---
 h5/main.js |   65 ++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 28 deletions(-)

diff --git a/h5/main.js b/h5/main.js
index 3250c70..13eca89 100644
--- a/h5/main.js
+++ b/h5/main.js
@@ -1,36 +1,45 @@
 import App from './App'
-import store from './store/index.js'
-import uView from "uview-ui"
-// #ifndef VUE3
 import Vue from 'vue'
+import uView from "uview-ui";
+import store from './store/index.js'
 import './uni.promisify.adaptor'
+import Vconsole from 'vconsole'
+import * as ww from '@wecom/jssdk'
 
 Vue.config.productionTip = false
-Vue.use(uView)
-Vue.prototype.$store = store
-Vue.prototype.showToast = (str) => {
-	setTimeout(() => {
-		uni.showToast({
-		  title: str,
-		  icon: 'none',
-		  duration: 2000
-		})
-	})
-}
-Vue.prototype.$eventBus = new Vue()
 App.mpType = 'app'
-const app = new Vue({
-  ...App
-})
-app.$mount()
-// #endif
+Vue.use(uView);
 
-// #ifdef VUE3
-import { createSSRApp } from 'vue'
-export function createApp() {
-  const app = createSSRApp(App)
-  return {
-    app
-  }
+// Vue.prototype.$baseUrl = 'https://dmtest.ahapp.net/lianhelihua_interface'
+Vue.prototype.$baseUrl = 'http://192.168.0.134:10040'
+Vue.prototype.$store = store;
+Vue.prototype.$ww = ww;
+Vue.prototype.$vConsole= new Vconsole()
+//绂佹婊戝姩
+Vue.prototype.stopScroll = function () {
+	var box = function(e) { passive: false };
+	document.body.style.overflow = 'hidden';
+	document.addEventListener("touchmove", box, false);
 }
-// #endif
\ No newline at end of file
+//鍙互婊戝姩
+Vue.prototype.canScroll = function () {
+	var box = function(e) { passive: false };
+	document.body.style.overflow= '';
+	document.removeEventListener("touchmove", box, false);
+}
+
+
+const app = new Vue({
+	store,
+	...App
+})
+
+// http鎺ュ彛API鎶界
+import httpApi from '@/utils/http.api.js'
+Vue.use(httpApi, app)
+
+// 璇锋眰鎷︽埅鍣�
+import interceptor from '@/utils/http.interceptor.js'
+Vue.use(interceptor, app)
+
+app.$mount()
\ No newline at end of file

--
Gitblit v1.9.3