Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
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
58813088
authored
Oct 11, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
好友助力
parent
07ecad60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
pages/person/helpfriend/index.js
project.config.json
pages/person/helpfriend/index.js
View file @
58813088
...
...
@@ -20,6 +20,12 @@ Page({
onLoad
:
function
(
options
)
{
let
exchange_id
=
options
.
exchange_id
;
wx
.
setStorage
({
key
:
"exchange_id"
,
data
:
exchange_id
});
this
.
setData
({
exchange_id
:
exchange_id
});
...
...
@@ -76,8 +82,11 @@ Page({
* 助力
*/
assistance
:
function
()
{
let
exchange_id
=
wx
.
getStorageSync
(
'exchange_id'
);
http
.
getData
(
apis
.
assistsAdd
,
'GET'
,
{
exchange_id
:
this
.
data
.
exchange_id
exchange_id
:
exchange_id
},
(
res
)
=>
{
if
(
res
.
errcode
===
0
)
{
this
.
getData
();
...
...
@@ -93,10 +102,12 @@ Page({
/**
* 获取数据
*/
getData
:
function
(
type
)
{
getData
:
function
()
{
let
exchange_id
=
wx
.
getStorageSync
(
'exchange_id'
);
http
.
getData
(
apis
.
assistsList
,
'GET'
,
{
exchange_id
:
this
.
data
.
exchange_id
exchange_id
:
exchange_id
},
(
res
)
=>
{
if
(
res
.
errcode
===
0
)
{
this
.
setData
({
...
...
@@ -105,7 +116,7 @@ Page({
}
else
if
(
res
.
errcode
===
-
1
)
{
wx
.
setStorage
({
key
:
"help_exchange_id"
,
data
:
this
.
data
.
exchange_id
data
:
exchange_id
});
}
},
true
,
false
,
true
);
...
...
project.config.json
View file @
58813088
...
...
@@ -340,6 +340,13 @@
"pathName"
:
"pages/person/withdrawalsuccess/index"
,
"query"
:
"money=10"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/person/helpfriend/index"
,
"pathName"
:
"pages/person/helpfriend/index"
,
"query"
:
"exchange_id=34"
,
"scene"
:
null
}
]
}
...
...
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