Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
1a21ed1f
Commit
1a21ed1f
authored
Sep 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0776dd76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
tb.js
taobao_mini/client/tbcc-sdk/lib/tb.js
+2
-6
No files found.
taobao_mini/client/tbcc-sdk/lib/tb.js
View file @
1a21ed1f
...
@@ -300,10 +300,10 @@ export const getUserAddress = async (opts = {}) => {
...
@@ -300,10 +300,10 @@ export const getUserAddress = async (opts = {}) => {
let
_opts
=
Object
.
assign
({},
defaults
,
opts
);
let
_opts
=
Object
.
assign
({},
defaults
,
opts
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
my
.
authorize
({
my
.
authorize
({
scopes
:
'scope.addressList'
,
scopes
:
'scope.addressList'
,
success
:
()
=>
{
success
:
()
=>
{
const
{
addAddress
,
searchAddress
,
locateAddress
,
joinTag
}
=
_opts
;
const
{
addAddress
,
searchAddress
,
locateAddress
,
joinTag
}
=
_opts
;
if
(
!
my
.
tb
||
!
my
.
tb
.
chooseAddress
)
{
if
(
!
my
.
tb
.
chooseAddress
)
{
reject
({
reject
({
noSupport
:
true
,
noSupport
:
true
,
errorMessage
:
'当前版本不支持选择收货地址,请升级到最新版本'
errorMessage
:
'当前版本不支持选择收货地址,请升级到最新版本'
...
@@ -336,14 +336,10 @@ export const getUserAddress = async (opts = {}) => {
...
@@ -336,14 +336,10 @@ export const getUserAddress = async (opts = {}) => {
reject
(
res
);
reject
(
res
);
}
}
);
);
},
fail
:
err
=>
{
reject
(
err
);
}
}
});
});
});
});
};
};
/**
/**
* 选择图片
* 选择图片
*/
*/
...
...
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