Commit c5db6b3c by LJM

add

parent 12c92923
......@@ -82,5 +82,6 @@
"package": "com.liexin.wms",
"versionName": "1.0",
"minPlatformVersion": "1.0"
}
},
"fallbackLocale": "zh-Hans"
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<text class="t1">深圳市猎芯科技有限公司</text>
<view class="row verCenter">
<text class="iconfont icon-juxing"></text>
<text class="t2">拾贰</text>
<text class="t2">{{ info.user_info.name }}</text>
</view>
</view>
<view class="row verCenter">
......@@ -58,10 +58,22 @@
import { API } from '@/util/api.js';
export default {
data() {
return {};
return {
info: {}
};
},
onLoad() {},
methods: {}
onShow() {
this.getData();
},
methods: {
getData() {
this.request(API.getStatisticsInfo, 'POST', {}, false).then(res => {
if (res.code === 0) {
this.info = res.data;
}
});
}
}
};
</script>
......
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE = 'http://192.168.1.252';
const API_BASE_ORDER = 'http://order.liexindev.net'; //订单系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE_SUPPLIER = 'http://supplier.liexin.net'; //供应商系统
const API_BASE_CRM = 'http://crmnew.liexindev.net'; //CRM系统
const API_BASE = 'http://api.liexin.com';
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_ORDER = 'https://order.ichunt.net'; //订单系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE_SUPPLIER = 'https://supplier.ichunt.net'; //供应商系统
// const API_BASE_CRM = 'https://crm.ichunt.net'; //CRM系统
// const API_BASE = 'https://api.ichunt.com';
const API = {
/**
* 登录接口
* */
login: API_BASE_USER + '/api/login',
/**
* 小程序审核数量统计
* */
getStatisticsInfo: API_BASE_PUR + '/api/approve/getStatisticsInfo',
}
......
......@@ -3,20 +3,27 @@ import API_BASE from '../util/api.js'
* 请求封装
*/
const request = (url = '', type = 'GET', param = {}, Loading) => {
const token = uni.getStorageSync('token') || '';
const oa_user_id = uni.getStorageSync('oa_user_id') || '';
const oa_skey = uni.getStorageSync('oa_skey') || '';
var params = Object.assign(param, {
pf: 20
});
//是否启动加载
if (Loading) {
uni.showLoading({
mask: true
});
}
const header = {
"Content-Type": "application/json; charset=utf-8",
"Authorization": token
"source": 'pc',
"oa-user-id": oa_user_id,
"oa-skey": oa_skey
};
return new Promise((resolve, reject) => {
uni.request({
method: type,
......
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