Compare commits

7 Commits

5 changed files with 1035 additions and 863 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"codingcopilot.enableCompletionLanguage": {}
}

View File

File diff suppressed because it is too large Load Diff

142
main.js
View File

@@ -1,67 +1,77 @@
// #ifdef H5 // #ifdef H5
import './common/js/pc' import './common/js/pc'
// #endif // #endif
import Vue from 'vue' import Vue from 'vue'
import App from './App' import App from './App'
import store from './store' import store from './store'
import Util from './common/js/util.js' import Util from './common/js/util.js'
import Http from './common/js/http.js' import Http from './common/js/http.js'
import Lang from './common/js/lang.js' import Lang from './common/js/lang.js'
import Config from './common/js/config.js' import Config from './common/js/config.js'
import EventBus from './common/js/event-bus.js' import EventBus from './common/js/event-bus.js'
import DomEventBridge from './common/js/dom-event-bridge.js' import DomEventBridge from './common/js/dom-event-bridge.js'
import globalConfig from './common/js/golbalConfig.js'; import globalConfig from './common/js/golbalConfig.js';
import { import {
uniStorage uniStorage
} from './common/js/storage.js' } from './common/js/storage.js'
Vue.prototype.$store = store //挂在vue Vue.prototype.$store = store //挂在vue
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$util = Util; Vue.prototype.$util = Util;
Vue.prototype.$api = Http; Vue.prototype.$api = Http;
Vue.prototype.$langConfig = Lang; //语言包对象 Vue.prototype.$langConfig = Lang; //语言包对象
Vue.prototype.$lang = Lang.lang; //解析语言包 Vue.prototype.$lang = Lang.lang; //解析语言包
Vue.prototype.$config = Config; Vue.prototype.$config = Config;
// #ifdef H5
// #ifdef H5 EventBus.setDomBridge(DomEventBridge)
EventBus.setDomBridge(DomEventBridge) // #endif
// #endif Vue.prototype.$eventBus = EventBus;
Vue.prototype.$eventBus = EventBus;
Vue.mixin(globalConfig);
Vue.mixin(globalConfig);
App.mpType = 'app';
App.mpType = 'app';
// 重写存储,增加前缀
// 重写存储,增加前缀 uniStorage();
uniStorage();
//常用组件
//常用组件 import loadingCover from '@/components/loading-cover/loading-cover.vue';
import loadingCover from '@/components/loading-cover/loading-cover.vue'; Vue.component('loading-cover', loadingCover);
Vue.component('loading-cover', loadingCover);
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
import nsEmpty from '@/components/ns-empty/ns-empty.vue'; Vue.component('ns-empty', nsEmpty);
Vue.component('ns-empty', nsEmpty);
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue"; Vue.component("mescroll-uni", MescrollUni); //上拉加载,下拉刷新组件
Vue.component("mescroll-uni", MescrollUni); //上拉加载,下拉刷新组件
import MescrollBody from "@/components/mescroll/mescroll-body.vue"
import MescrollBody from "@/components/mescroll/mescroll-body.vue" Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-body', MescrollBody);
import NsLogin from "@/components/ns-login/ns-login.vue"
import NsLogin from "@/components/ns-login/ns-login.vue" Vue.component('ns-login', NsLogin);
Vue.component('ns-login', NsLogin);
import PrivacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
import PrivacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue'; Vue.component('privacy-popup', PrivacyPopup)
Vue.component('privacy-popup', PrivacyPopup)
// ========== 新增注册diy系列组件 ==========
const app = new Vue({ import DiyBottomNav from '@/components/diy-components/diy-bottom-nav.vue'
...App, import DiyGroup from '@/components/diy-components/diy-group.vue'
store import DiyCategory from '@/components/diy-components/diy-category.vue'
}) import DiyIcon from '@/components/diy-components/diy-icon.vue' // 补充diy-icon
Vue.component('diy-bottom-nav', DiyBottomNav) // 修正拼写错误
Vue.component('diy-group', DiyGroup)
Vue.component('diy-category', DiyCategory)
Vue.component('diy-icon', DiyIcon) // 注册diy-icon
// ========== 新增结束 ==========
const app = new Vue({
...App,
store
})
app.$mount() app.$mount()

View File

@@ -1,75 +1,78 @@
{ {
"description": "项目配置文件", "description": "项目配置文件",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
}, "include": []
"setting": { },
"urlCheck": true, "setting": {
"es6": true, "urlCheck": true,
"enhance": false, "es6": true,
"postcss": true, "enhance": false,
"preloadBackgroundData": false, "postcss": true,
"minified": true, "preloadBackgroundData": false,
"newFeature": false, "minified": true,
"coverView": true, "newFeature": false,
"nodeModules": false, "coverView": true,
"autoAudits": false, "nodeModules": false,
"showShadowRootInWxmlPanel": true, "autoAudits": false,
"scopeDataCheck": false, "showShadowRootInWxmlPanel": true,
"uglifyFileName": false, "scopeDataCheck": false,
"checkInvalidKey": true, "uglifyFileName": false,
"checkSiteMap": true, "checkInvalidKey": true,
"uploadWithSourceMap": true, "checkSiteMap": true,
"compileHotReLoad": false, "uploadWithSourceMap": true,
"useMultiFrameRuntime": true, "compileHotReLoad": false,
"useApiHook": true, "useMultiFrameRuntime": true,
"useApiHostProcess": true, "useApiHook": true,
"babelSetting": { "useApiHostProcess": true,
"ignore": [], "babelSetting": {
"disablePlugins": [], "ignore": [],
"outputPath": "" "disablePlugins": [],
}, "outputPath": ""
"enableEngineNative": false, },
"bundle": false, "enableEngineNative": false,
"useIsolateContext": true, "bundle": false,
"useCompilerModule": true, "useIsolateContext": true,
"userConfirmedUseCompilerModuleSwitch": false, "useCompilerModule": true,
"userConfirmedBundleSwitch": false, "userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false, "userConfirmedBundleSwitch": false,
"packNpmRelationList": [], "packNpmManually": false,
"minifyWXSS": true "packNpmRelationList": [],
}, "minifyWXSS": true,
"compileType": "miniprogram", "compileWorklet": false,
"libVersion": "2.16.1", "minifyWXML": true,
"appid": "wx29215aa1bd97bbd6", "localPlugins": false,
"projectname": "niushop_b2c_v4_uniapp", "disableUseStrict": false,
"debugOptions": { "useCompilerPlugins": false,
"hidedInDevtools": [] "condition": false,
}, "swc": false,
"scripts": {}, "disableSWC": true
"staticServerOptions": { },
"baseURL": "", "compileType": "miniprogram",
"servePath": "" "libVersion": "3.12.0",
}, "appid": "wx29215aa1bd97bbd6",
"isGameTourist": false, "projectname": "niushop_b2c_v4_uniapp",
"condition": { "isGameTourist": false,
"search": { "condition": {
"list": [] "search": {
}, "list": []
"conversation": { },
"list": [] "conversation": {
}, "list": []
"game": { },
"list": [] "game": {
}, "list": []
"plugin": { },
"list": [] "plugin": {
}, "list": []
"gamePlugin": { },
"list": [] "gamePlugin": {
}, "list": []
"miniprogram": { },
"list": [] "miniprogram": {
} "list": []
} }
},
"simulatorPluginLibVersion": {},
"editorSetting": {}
} }