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 | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/h5/main.js b/h5/main.js
new file mode 100644
index 0000000..13eca89
--- /dev/null
+++ b/h5/main.js
@@ -0,0 +1,45 @@
+import App from './App'
+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
+App.mpType = 'app'
+Vue.use(uView);
+
+// 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);
+}
+//鍙互婊戝姩
+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