Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_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
hello_taobao
Commits
f738c1a5
Commit
f738c1a5
authored
Sep 14, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/wanghongyuan/hello_taobao
parents
2eec2c09
f8b6fb06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
48 deletions
+9
-48
myprize.js
dist/pages/myprize/myprize.js
+4
-1
tb.js
dist/tbcc-sdk/lib/tb.js
+5
-2
pageshou_ye.js
dist/utils/pageshou_ye.js
+0
-45
No files found.
dist/pages/myprize/myprize.js
View file @
f738c1a5
...
@@ -130,7 +130,10 @@ Page({
...
@@ -130,7 +130,10 @@ Page({
flag
=
true
;
flag
=
true
;
const
{
activityId
}
=
app
;
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
const
userAddress
=
await
getUserAddress
({
joinTag
:
" "
})
const
userAddress
=
await
getUserAddress
({
joinTag
:
" "
}).
catch
((
data
)
=>
{
flag
=
false
console
.
log
(
'getUserAddress出错了,错误信息是'
,
data
);
})
// my.hideLoading();
// my.hideLoading();
if
(
!
userAddress
)
return
if
(
!
userAddress
)
return
// commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
// commonToast(' getUserAddress =>'+JSON.stringify( userAddress))
...
...
dist/tbcc-sdk/lib/tb.js
View file @
f738c1a5
...
@@ -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
.
chooseAddress
)
{
if
(
!
my
.
tb
||
!
my
.
tb
.
chooseAddress
)
{
reject
({
reject
({
noSupport
:
true
,
noSupport
:
true
,
errorMessage
:
'当前版本不支持选择收货地址,请升级到最新版本'
errorMessage
:
'当前版本不支持选择收货地址,请升级到最新版本'
...
@@ -336,6 +336,9 @@ export const getUserAddress = async (opts = {}) => {
...
@@ -336,6 +336,9 @@ export const getUserAddress = async (opts = {}) => {
reject
(
res
);
reject
(
res
);
}
}
);
);
},
fail
:
err
=>
{
reject
(
err
);
}
}
});
});
});
});
...
...
dist/utils/pageshou_ye.js
deleted
100644 → 0
View file @
2eec2c09
'use strict'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
API
from
'../../api'
;
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
commonToast
,
getAuthUserInfo
,
navigateToOutside
}
=
tbcc
.
tb
;
Page
({
data
:
{
ruleModalVisible
:
false
},
onLoad
(
props
)
{
this
.
setData
({
resList
:
resList
});
},
gotoVipPage
()
{
API
.
getVipInfo
().
then
(
res
=>
{
if
(
!
res
.
vip
)
navigateToOutside
(
res
.
url
)
else
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
})
},
handleStart
()
{
console
.
log
(
'change'
)
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
},
showRuleModal
()
{
this
.
setData
({
ruleModalVisible
:
true
})
},
ruleModalClose
()
{
this
.
setData
({
ruleModalVisible
:
false
})
}
});
\ No newline at end of file
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