Commit c5db6b3c by LJM

add

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