Commit 9a541c6e by LJM

理货记录

parent 4445cdd2
<script> <script>
import { API } from '@/util/api.js'; import { API } from '@/util/api.js';
export default { export default {
onLaunch: function() { onLaunch: function() {
console.log('App Launch'); console.log('App Launch');
}, },
onShow: function() { onShow: function() {
console.log('App Show'); console.log('App Show');
let wms_version = uni.getStorageSync('wms_version') || ''; let wms_version = uni.getStorageSync('wms_version') || ''; //获取系统版本
this.request(API.getLatestAppInfo, 'POST', {}, false, false).then(res => {
this.request(API.getLatestAppInfo, 'POST', {}, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
if (wms_version == '') { if (wms_version == '') {
uni.setStorageSync('wms_version', res.data.latest_app_info.wms_version); uni.setStorageSync('wms_version', res.data.latest_app_info.wms_version);
...@@ -62,8 +63,7 @@ export default { ...@@ -62,8 +63,7 @@ export default {
//安装apk文件 //安装apk文件
installApk(filePath) { installApk(filePath) {
plus.runtime.install( plus.runtime.install(
filePath, filePath, {},
{},
() => { () => {
console.log('安装成功'); console.log('安装成功');
}, },
...@@ -77,13 +77,14 @@ export default { ...@@ -77,13 +77,14 @@ export default {
); );
} }
} }
}; };
</script> </script>
<style> <style>
@import './assets/css/font.css'; @import './assets/css/font.css';
page {
page {
height: 100%; height: 100%;
background: #f5f5f7; background: #f5f5f7;
} }
</style> </style>
\ No newline at end of file
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 // const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 // const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统 // const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 // const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统 const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { const API = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment