Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
c8cec2df
Commit
c8cec2df
authored
Oct 21, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户取消授权地址列表后无法继续填写地址bug修复
parent
524f2bed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
app.js
c_client/client/app.js
+3
-3
index.js
c_client/client/pages/index/index.js
+3
-1
myprize.js
c_client/client/pages/myprize/myprize.js
+4
-1
No files found.
c_client/client/app.js
View file @
c8cec2df
...
...
@@ -6,8 +6,8 @@ cloud.init({
});
App
({
requestType
:
'
yapi
'
,
// cloud: 云函数, yapi: yapi 接口, ams: ams接口,
cloudName
:
'
CommonToC
'
,
// 主云函数项目名
requestType
:
'
cloud
'
,
// cloud: 云函数, yapi: yapi 接口, ams: ams接口,
cloudName
:
'
proyaAnswer2c
'
,
// 主云函数项目名
cloud
,
tbcc
,
onLaunch
(
options
)
{
...
...
@@ -22,6 +22,6 @@ App({
*/
handleQuery
(
query
)
{
const
{
activityId
}
=
query
;
this
.
activityId
=
activityId
||
'
testId
'
;
this
.
activityId
=
activityId
||
'
5f7069c7086e6573ceebd22f
'
;
}
});
c_client/client/pages/index/index.js
View file @
c8cec2df
...
...
@@ -80,7 +80,9 @@ Page({
*/
async
login
()
{
const
{
nickName
,
avatar
}
=
app
;
const
{
success
}
=
await
API
.
login
({
userNick
:
nickName
,
avatar
}).
catch
(
res
=>
{
const
{
success
}
=
await
API
.
login
({
userNick
:
nickName
,
avatar
,
isFollow
:
true
,
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
...
...
c_client/client/pages/myprize/myprize.js
View file @
c8cec2df
...
...
@@ -125,10 +125,13 @@ Page({
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
const
userAddress
=
await
getUserAddress
().
catch
(
err
=>
{
flag
=
false
;
commonToast
(
err
&&
err
.
errorMessage
);
});
my
.
hideLoading
();
if
(
!
userAddress
)
return
if
(
!
userAddress
)
{
flag
=
false
;
}
const
{
name
,
telNumber
,
provinceName
,
cityName
,
cityCode
,
countyName
,
detailInfo
,
streetName
}
=
userAddress
||
{};
const
params
=
{
activityId
,
...
...
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