mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
暂存
This commit is contained in:
parent
e8d2f27640
commit
f93d9d6c5c
@ -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';
|
||||
|
||||
6
main.js
6
main.js
@ -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()
|
||||
|
||||
@ -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协议的代理
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
9
store/index.js
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user