forked from aiplat/uniapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
5,788 additions
and
3,454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
const path = require('path') | ||
module.exports = { | ||
parser: require('postcss-comment'), | ||
plugins: [ | ||
require('postcss-import'), | ||
require('postcss-import')({ | ||
resolve (id) { | ||
if (id.startsWith('~@/')) { | ||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)) | ||
} else if (id.startsWith('@/')) { | ||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)) | ||
} else if (id.startsWith('/') && !id.startsWith('//')) { | ||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)) | ||
} | ||
return id | ||
} | ||
}), | ||
require('autoprefixer')({ | ||
remove: process.env.UNI_PLATFORM !== 'h5' | ||
}), | ||
require('@dcloudio/vue-cli-plugin-uni/packages/postcss') | ||
] | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare module 'crypto-js/hmac-sha256'; | ||
// #ifdef H5 | ||
declare module 'weixin-js-sdk'; | ||
declare var window: Window & typeof globalThis; | ||
declare module 'qrcode'; | ||
// #endif | ||
declare var plus; // h5+ | ||
declare var uni; // uni | ||
declare var getCurrentPages; // uni | ||
declare var require; // nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
import Vue from 'vue'; | ||
import App from './App.vue'; | ||
import App from '@/App.vue'; | ||
import store from '@/vuex/store'; | ||
|
||
import store from './vuex/store'; | ||
import api from './service/api'; | ||
import conf from './service/conf'; | ||
import Cmapp from './plugins/cmapp.class'; | ||
import uniAjax from './plugins/uniAjax'; | ||
import api from '@/service/api'; | ||
import conf from '@/service/conf'; | ||
import cmappClass from '@/plugins/cmapp.class'; | ||
import uniAjax from '@/plugins/uniAjax'; | ||
|
||
Vue.config.productionTip = false; | ||
|
||
// @ts-ignore | ||
const cmapp = new Cmapp(); | ||
|
||
Vue.prototype.$store = store; | ||
Vue.prototype.$api = api; | ||
Vue.prototype.$conf = conf; | ||
Vue.prototype.$cmapp = cmapp; | ||
Vue.prototype.$cmapp = new cmappClass(); | ||
Vue.prototype.$uniAjax = uniAjax; | ||
|
||
new App().$mount(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
import Vue from 'vue'; | ||
import api from './service/api'; | ||
import conf from './service/conf'; | ||
import Cmapp from './plugins/cmapp.class'; | ||
import uniAjax from './plugins/uniAjax'; | ||
|
||
// @ts-ignore | ||
const cmapp = new Cmapp(); | ||
import api from '@/service/api'; | ||
import conf from '@/service/conf'; | ||
import cmappClass from '@/plugins/cmapp.class'; | ||
import uniAjax from '@/plugins/uniAjax'; | ||
|
||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
// @ts-ignore | ||
$api: api, | ||
// @ts-ignore | ||
$conf: conf, | ||
// @ts-ignore | ||
$cmapp: cmapp, | ||
// @ts-ignore | ||
$cmapp: new cmappClass(), | ||
$uniAjax: uniAjax, | ||
} | ||
} |
Oops, something went wrong.