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 * add by wuxw 2019-12-28
*/ */
// 服务器域名 // 服务器域名
//const baseUrl = 'https://app.demo.winqi.cn/'; const baseUrl = 'https://app.demo.winqi.cn/';
const baseUrl = '/'; //const baseUrl = '/';
const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口 const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口
const loginUrl = baseUrl + 'app/loginProperty'; const loginUrl = baseUrl + 'app/loginProperty';

View File

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

View File

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

View File

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