This commit is contained in:
2025-03-19 09:41:42 +08:00
parent fa9d44d907
commit bf3b31327b
82 changed files with 36115 additions and 40475 deletions

29
main.js
View File

@@ -1,34 +1,7 @@
import Vue from 'vue'
import App from './App'
import qs from 'qs'
Vue.prototype.$baseFontSize = function () {
if (uni.getStorageSync("fontSize") != 3.5 && uni.getStorageSync("fontSize") != 4) {
uni.setStorageSync("fontSize", 3.5) //改变字体大小
}
console.log('这是一个全局方法')
return uni.getStorageSync("fontSize")
}
Vue.prototype.$getbaseFontSizeInfo = function () {
console.log('这是一个全局方法')
var fontSize = uni.getStorageSync("fontSize")
var fontSizeInfo = ''
if (!uni.getStorageSync("fontSize")) {
}
//改变字体大小
switch (fontSize) {
case 2.5:
fontSizeInfo = '最小'
break;
case 3.5:
fontSizeInfo = '标准'
break;
case 4:
fontSizeInfo = '最大'
break;
}
return fontSizeInfo
}
// main.js
// 全局添加uWeb
// #ifdef H5
@@ -123,7 +96,7 @@ import {
} from '@/config/login';
Vue.prototype.judgeLogin = judgeLogin;
Vue.prototype.isShowHtml = store.state.loadingShow;
Vue.prototype.vuex_fontsize = uni.getStorageSync('fontSize');
// Vue.prototype.vuex_fontsize = uni.getStorageSync('fontSize');
Vue.config.productionTip = false;
// #ifdef H5
//微信SDK