This commit is contained in:
wuxw 2020-03-01 17:00:16 +08:00
parent e8d2f27640
commit f93d9d6c5c
5 changed files with 132 additions and 93 deletions

View File

@ -4,8 +4,8 @@
* add by wuxw 2019-12-28
*/
// 服务器域名
//const baseUrl = 'https://app.demo.winqi.cn/';
const baseUrl = '/';
const baseUrl = 'https://app.demo.winqi.cn/';
//const baseUrl = '/';
const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口
const loginUrl = baseUrl + 'app/loginProperty';

View File

@ -1,6 +1,8 @@
import Vue from 'vue'
import App from './App'
import Java110Context from './context/Java110Context.js'
//引入vuex
import store from './store'
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)
@ -10,10 +12,12 @@ Vue.prototype.java110Context = Java110Context;
Vue.prototype.java110Constant = Java110Context.constant;
Vue.prototype.java110Factory = Java110Context.factory;
Vue.prototype.java110Util = Java110Context.util;
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
...App
...App,
store
})
app.$mount()

View File

@ -6,11 +6,13 @@
"versionCode" : "100",
"transformPx" : false,
/* 5+App */
"app-plus" : {
"app-plus" :
{
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"splashscreen" :
{
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
@ -19,10 +21,13 @@
/* */
"modules" : {},
/* */
"distribute" : {
"distribute" :
{
/* android */
"android" : {
"permissions" : [
"android" :
{
"permissions" :
[
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
@ -50,38 +55,54 @@
/* ios */
"ios" : {},
/* SDK */
"sdkConfigs" : {}
"sdkConfigs" :
{
"ad" : null
}
}
},
/* */
"quickapp" : {},
/* */
"mp-weixin" : {
"mp-weixin" :
{
"appid" : "",
"setting" : {
"setting" :
{
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"mp-alipay" :
{
"usingComponents" : true
},
"mp-baidu" : {
"mp-baidu" :
{
"usingComponents" : true
},
"mp-toutiao" : {
"mp-toutiao" :
{
"usingComponents" : true
},
/* h5 */
"h5" : {
"devServer" : {
"h5" :
{
"devServer" :
{
"port" : 8000, //
"disableHostCheck" : true,
"proxy" : {
"/app" : {
"proxy" :
{
"/app" :
{
"target" : "https://app.demo.winqi.cn", //
"changeOrigin" : true, //
"secure" : true // https
}
}
}

View File

@ -47,8 +47,13 @@
this.logoUrl = this.java110Constant.url.baseUrl + 'logo.png';
},
onBackPress(options) {
if (options.from === 'navigateBack') {
return false;
}
plus.runtime.quit();
return true;
},
methods: {

9
store/index.js Normal file
View File

@ -0,0 +1,9 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {},
mutations: {},
actions: {}
})
export default store