Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayMobile
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayMobile
Commits
a7ec69ac
Commit
a7ec69ac
authored
Aug 27, 2019
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:改成第三方企业应用
parent
d4bcc59f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
13 deletions
+18
-13
app.js
app.js
+4
-2
action.js
pages/action/action.js
+1
-0
alipayRecharge.js
pages/alipayRecharge/alipayRecharge.js
+2
-2
allowanceList.js
pages/allowanceList/allowanceList.js
+2
-2
billDetails.js
pages/billDetails/billDetails.js
+2
-1
index.js
pages/index/index.js
+3
-3
recordList.js
pages/recordList/recordList.js
+4
-3
No files found.
app.js
View file @
a7ec69ac
...
...
@@ -13,11 +13,13 @@ App({
console
.
log
(
msg
)
},
// axios.defaults.baseURL = 'http://192.168.1.193:8400' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.174:8400' // 本地钱
// axios.defaults.baseURL = 'http://192.168.1.174:8400' // 本地钱1
// axios.defaults.baseURL = 'http://192.168.1.106:8400' // 本地钱2
// axios.defaults.baseURL = 'http://139.196.213.18:8400' // beta环境
globalData
:
{
loadingType
:
0
,
// globalUrl: '192.168.1.174:8400'
globalUrl
:
'139.196.213.18:8400'
globalUrl
:
'192.168.1.102:8400'
// globalUrl: '139.196.213.18:8400'
}
});
pages/action/action.js
View file @
a7ec69ac
...
...
@@ -48,6 +48,7 @@ Page({
method
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
// 全局存储用户信息token和用户信息
if
(
res
.
data
.
resultCode
===
'0'
){
const
data
=
res
.
data
.
data
;
...
...
pages/alipayRecharge/alipayRecharge.js
View file @
a7ec69ac
...
...
@@ -12,11 +12,11 @@ Page({
content
:
'加载中...'
});
let
data
=
{
u
serId
:
dd
.
getStorageSync
({
key
:
'userId'
}).
data
,
ddU
serId
:
dd
.
getStorageSync
({
key
:
'userId'
}).
data
,
orderPrice
:
this
.
data
.
inputValue
}
const
_that
=
this
;
$http
.
$http
(
'charge/charge_alipay'
,
data
,
'GET'
).
then
((
res
)
=>
{
$http
.
$http
(
'
isv/
charge/charge_alipay'
,
data
,
'GET'
).
then
((
res
)
=>
{
_that
.
ddPayFn
(
res
)
}).
catch
((
res
)
=>
{
dd
.
hideLoading
();
...
...
pages/allowanceList/allowanceList.js
View file @
a7ec69ac
...
...
@@ -50,9 +50,9 @@ Page({
currentPage
:
this
.
data
.
currentPage
,
pageNumber
:
this
.
data
.
pageNumber
,
available
:
this
.
data
.
available
,
u
serId
:
dd
.
getStorageSync
({
key
:
'userId'
}).
data
ddU
serId
:
dd
.
getStorageSync
({
key
:
'userId'
}).
data
}
$http
.
$http
(
'account/query_subsidyList_by_user_id'
,
data
,
'GET'
).
then
((
res
)
=>
{
$http
.
$http
(
'
isv/
account/query_subsidyList_by_user_id'
,
data
,
'GET'
).
then
((
res
)
=>
{
let
dataList
=
[...
res
.
recordList
];
let
dataListSource
=
_that
.
data
.
dataList
;
if
(
dataList
.
length
>
0
)
{
...
...
pages/billDetails/billDetails.js
View file @
a7ec69ac
...
...
@@ -32,7 +32,8 @@ Page({
pageNumber
:
10
,
trxNo
:
this
.
data
.
trxNo
}
$http
.
$http
(
'consume/list_payment_record'
,
data
,
'GET'
).
then
((
res
)
=>
{
$http
.
$http
(
'isv/consume/list_expense_record'
,
data
,
'GET'
).
then
((
res
)
=>
{
console
.
log
(
res
)
data
=
res
.
recordList
[
0
]
data
.
createDate
=
_that
.
timeToStr
(
data
.
createDate
);
_that
.
setData
({
...
...
pages/index/index.js
View file @
a7ec69ac
...
...
@@ -33,11 +33,11 @@ Page({
// 获取用户详细信息
getUserDetails
(){
const
_that
=
this
;
let
u
serId
=
dd
.
getStorageSync
({
key
:
'userId'
}).
data
;
let
ddU
serId
=
dd
.
getStorageSync
({
key
:
'userId'
}).
data
;
let
data
=
{
userId
:
u
serId
ddUserId
:
ddU
serId
}
$http
.
$http
(
'account/queryAccountDetail'
,
data
,
'GET'
).
then
((
res
)
=>
{
$http
.
$http
(
'
isv/
account/queryAccountDetail'
,
data
,
'GET'
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setData
({
name
:
res
.
name
,
...
...
pages/recordList/recordList.js
View file @
a7ec69ac
...
...
@@ -102,14 +102,15 @@ Page({
let
data
=
{
currentPage
:
this
.
data
.
currentPage
,
pageNumber
:
this
.
data
.
pageNumber
,
u
serIds
:
[
dd
.
getStorageSync
({
key
:
'userId'
}).
data
],
ddU
serIds
:
[
dd
.
getStorageSync
({
key
:
'userId'
}).
data
],
orderStartTime
:
this
.
data
.
orderStartTime
,
orderEndTime
:
this
.
data
.
orderEndTime
,
orderType
:
this
.
data
.
orderType
,
sceneType
:
this
.
data
.
sceneType
,
statusList
:
this
.
data
.
statusList
orderStatus
:
this
.
data
.
statusList
}
$http
.
$http
(
'consume/list_payment_record'
,
data
,
'GET'
).
then
((
res
)
=>
{
$http
.
$http
(
'isv/consume/list_expense_record'
,
data
,
'GET'
).
then
((
res
)
=>
{
console
.
log
(
'record'
+
res
)
let
dataList
=
[...
res
.
recordList
];
let
recordListDataSource
=
_that
.
data
.
recordListData
if
(
dataList
.
length
>
0
)
{
...
...
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