Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c5db6b3c
authored
Apr 13, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
12c92923
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
8 deletions
manifest.json
pages/index/index.vue
util/api.js
util/util.js
manifest.json
View file @
c5db6b3c
...
...
@@ -82,5 +82,6 @@
"package"
:
"com.liexin.wms"
,
"versionName"
:
"1.0"
,
"minPlatformVersion"
:
"1.0"
}
},
"fallbackLocale"
:
"zh-Hans"
}
\ No newline at end of file
pages/index/index.vue
View file @
c5db6b3c
...
...
@@ -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
>
...
...
util/api.js
View file @
c5db6b3c
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'
,
}
...
...
util/util.js
View file @
c5db6b3c
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment