分包配置

lixuan
xk_guohonglei 5 years ago
parent f4e7782a86
commit 8a21904817
  1. 8
      main.js
  2. 171
      manifest.json
  3. 15
      package-lock.json
  4. 3
      package.json
  5. 81
      pages.json
  6. 18
      pages/index/index.vue
  7. 4
      utils/request.js

@ -1,12 +1,12 @@
import Vue from 'vue' import Vue from 'vue'
import App from './App' import App from './App'
import cuCustom from './colorui/components/cu-custom.vue' import cuCustom from './colorui/components/cu-custom.vue'
import serviceHotline from '@/components/service-hotline.vue' import serviceHotline from '@/components/service-hotline.vue'
import encode from '@/utils/encode' import encode from '@/utils/encode'
import global from '@/api/global.js' import global from '@/api/global.js'
Vue.component('cu-custom',cuCustom) Vue.component('cu-custom', cuCustom)
Vue.component('service-hotline',serviceHotline) Vue.component('service-hotline', serviceHotline)
Vue.config.productionTip = false Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
@ -14,6 +14,6 @@ Vue.prototype.utils = encode
Vue.prototype.global = global Vue.prototype.global = global
const app = new Vue({ const app = new Vue({
...App ...App
}) })
app.$mount() app.$mount()

@ -1,86 +1,89 @@
{ {
"name" : "星油云站", "name": "星油云站",
"appid" : "__UNI__EA8D131", "appid": "__UNI__EA8D131",
"description" : "", "description": "",
"versionName" : "1.0.0", "versionName": "1.0.0",
"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,
"delay" : 0 "delay": 0
}, },
/* */ /* */
"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\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
/* ios */ /* ios */
"ios" : {}, "ios": {},
/* SDK */ /* SDK */
"sdkConfigs" : {} "sdkConfigs": {}
} }
}, },
/* */ /* */
"quickapp" : {}, "quickapp": {},
/* */ /* */
"mp-weixin" : { "mp-weixin": {
"appid" : "wxaf56b8bae925ba19", "appid": "wxaf56b8bae925ba19",
"setting" : { "setting": {
"urlCheck" : true, "urlCheck": true,
"es6" : false, "es6": false,
"postcss" : false, "postcss": false,
"minified" : true "minified": true
}, },
"usingComponents" : true, "usingComponents": true,
"permission" : { "permission": {
"scope.userLocation" : { "scope.userLocation": {
"desc" : "需要获取附近位置" "desc": "需要获取附近位置"
} }
}, },
"uniStatistics" : { "optimization": {
"enable" : true "subPackages": true
} },
}, "uniStatistics": {
"mp-alipay" : { "enable": true
"usingComponents" : true }
}, },
"mp-baidu" : { "mp-alipay": {
"usingComponents" : true "usingComponents": true
}, },
"mp-toutiao" : { "mp-baidu": {
"usingComponents" : true "usingComponents": true
} },
"mp-toutiao": {
"usingComponents": true
}
} }

15
package-lock.json generated

@ -12,11 +12,6 @@
"follow-redirects": "1.5.10" "follow-redirects": "1.5.10"
} }
}, },
"bcryptjs": {
"version": "2.4.3",
"resolved": "https://registry.npm.taobao.org/bcryptjs/download/bcryptjs-2.4.3.tgz",
"integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms="
},
"crypto-js": { "crypto-js": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npm.taobao.org/crypto-js/download/crypto-js-4.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcrypto-js%2Fdownload%2Fcrypto-js-4.0.0.tgz", "resolved": "https://registry.npm.taobao.org/crypto-js/download/crypto-js-4.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcrypto-js%2Fdownload%2Fcrypto-js-4.0.0.tgz",
@ -38,11 +33,6 @@
"debug": "=3.1.0" "debug": "=3.1.0"
} }
}, },
"js-base64": {
"version": "2.6.1",
"resolved": "https://registry.npm.taobao.org/js-base64/download/js-base64-2.6.1.tgz?cache=0&sync_timestamp=1592639177349&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-base64%2Fdownload%2Fjs-base64-2.6.1.tgz",
"integrity": "sha1-wyg3QiXS5lVpeR3tc8JY4sWTNMc="
},
"js-cookie": { "js-cookie": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz", "resolved": "https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz",
@ -63,11 +53,6 @@
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz", "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}, },
"react-native-bcrypt": {
"version": "2.4.0",
"resolved": "https://registry.npm.taobao.org/react-native-bcrypt/download/react-native-bcrypt-2.4.0.tgz",
"integrity": "sha1-ld/y28hJwisl8Lk3mre/69IUC/0="
},
"tki-qrcode": { "tki-qrcode": {
"version": "0.1.6", "version": "0.1.6",
"resolved": "https://registry.npm.taobao.org/tki-qrcode/download/tki-qrcode-0.1.6.tgz", "resolved": "https://registry.npm.taobao.org/tki-qrcode/download/tki-qrcode-0.1.6.tgz",

@ -14,13 +14,10 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"axios": "0.19.2", "axios": "0.19.2",
"bcryptjs": "^2.4.3",
"crypto-js": "4.0.0", "crypto-js": "4.0.0",
"js-base64": "2.6.1",
"js-cookie": "2.2.1", "js-cookie": "2.2.1",
"js-md5": "0.7.3", "js-md5": "0.7.3",
"jsencrypt": "^3.0.0-rc.1", "jsencrypt": "^3.0.0-rc.1",
"react-native-bcrypt": "^2.4.0",
"tki-qrcode": "^0.1.6" "tki-qrcode": "^0.1.6"
} }
} }

@ -1,22 +1,25 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/startPage/startPage", "path": "pages/startPage/startPage",
"style": {} "style": {}
},{ },{
"path": "pages/login/login", "path": "pages/index/index",
"style": {
}
}, {
"path": "pages/operation-analysis/operation-analysis",
"style": { "style": {
"navigationBarTitleText": "星油",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},
{
"path": "pages/staff/editStaff/editStaff",
"style": {}
}, { }, {
"path": "pages/operation-analysis/analysis/daily", "path": "pages/station-info/station-info",
"style": {}
}, {
"path": "pages/login/login",
"style": { "style": {
"enablePullDownRefresh": true
} }
}, { }, {
"path": "pages/login/posLogin/posLogin", "path": "pages/login/posLogin/posLogin",
@ -40,26 +43,12 @@
}, { }, {
"path": "pages/stationDetail/stationDetail", "path": "pages/stationDetail/stationDetail",
"style": {} "style": {}
}, {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "星油",
"enablePullDownRefresh": true
}
}, { }, {
"path": "pages/staff/List/List", "path": "pages/staff/List/List",
"style": { "style": {
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{
"path": "pages/staff/editStaff/editStaff",
"style": {}
},
{ {
"path": "pages/qrcode/QrCode_xy", "path": "pages/qrcode/QrCode_xy",
"style": {} "style": {}
@ -69,10 +58,7 @@
"style": {} "style": {}
}, },
{
"path": "pages/station-info/station-info",
"style": {}
},
{ {
"path": "pages/Auth/Auth", "path": "pages/Auth/Auth",
"style": {} "style": {}
@ -81,16 +67,33 @@
"style": {} "style": {}
} }
, {
"path": "pages/operation-analysis/analysis/analysis",
"style": {}
}, {
"path": "pages/operation-analysis/analysis/monthly",
"style": {
"enablePullDownRefresh": true
}
}
], ],
"subPackages": [{
"root": "packageChart",
"pages": [{
"path": "operation-analysis/analysis/analysis",
"style": {}
}, {
"path": "operation-analysis/analysis/monthly",
"style": {
"enablePullDownRefresh": true
}
},
{
"path": "operation-analysis/operation-analysis",
"style": {
"enablePullDownRefresh": true
}
}, {
"path": "operation-analysis/analysis/daily",
"style": {
"enablePullDownRefresh": true
}
}
]
}],
"globalStyle": { "globalStyle": {
"mp-alipay": { "mp-alipay": {
/* */ /* */

@ -13,9 +13,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="bg-main-oil bg-main-color main-money"> <view class="bg-main-oil bg-main-color main-money">
</view> </view>
<view class="bg-white radius margin-left margin-right to-top"> <view class="bg-white radius margin-left margin-right to-top">
<view class=" flex "> <view class=" flex ">
@ -221,7 +219,21 @@
console.log('chengg', res) console.log('chengg', res)
} }
}) })
} },
// 便
// complete: () => {
// uni.setStorageSync('qrCode', 'XM&1309328197641433088')
// uni.navigateTo({
// url: that.scanUrl,
// fail: (err) => {
// console.log(err)
// },
// success: (res) => {
// console.log('chengg', res)
// }
// })
// }
}) })
}, },
// 便 // 便

@ -1,9 +1,9 @@
import axios from 'axios' import axios from 'axios'
import utils from '@/utils/encode' import utils from '@/utils/encode'
const service = axios.create({ const service = axios.create({
baseURL: 'http://192.168.0.104:48080', // 小杰 // baseURL: 'http://192.168.0.104:48080', // 小杰
// baseURL: 'http://192.168.0.112:48080', // 龙龙 // baseURL: 'http://192.168.0.112:48080', // 龙龙
// baseURL: 'https://www.51xingka.net/oilApp', baseURL: 'https://www.51xingka.net/oilApp',
timeout: 5000 timeout: 5000
}) })
service.interceptors.request.use( service.interceptors.request.use(

Loading…
Cancel
Save