Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-limited-sell-miniapp
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
肖亚东
6 years ago
Commit
2de6a3b4a1233dc732968d595a022c7cb6955270
1 parent
4868aa99
场景值获取错误修改:onShow中执行获取
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
app/app.js
app/pages/product/detail/detail.js
app/app.js
View file @
2de6a3b
...
...
@@ -63,13 +63,14 @@ App({
yas
=
new
Yas
(
this
);
yas
.
report
(
'YB_LAUNCH_APP'
);
let
scene
=
options
?
options
.
scene
:
''
;
this
.
globalData
.
currentScene
=
scene
;
},
onShow
:
function
(
options
)
{
udid
.
get
();
// 生成 UDID
verify
.
gen
();
// 此处返回是是 Promise,需要调用接口的业务,最好在 then 里边执行
let
scene
=
options
?
options
.
scene
:
''
;
this
.
globalData
.
currentScene
=
scene
;
// wx.getLocation({}); // 获取位置信息
wx
.
checkSession
().
then
(()
=>
{
// 微信登录未过期
this
.
getWechatThirdSession
();
...
...
app/pages/product/detail/detail.js
View file @
2de6a3b
...
...
@@ -140,9 +140,7 @@ Page(Object.assign({
let
limitProductCode
=
query
.
limitProductCode
?
query
.
limitProductCode
:
''
;
let
originUid
=
parseInt
(
query
.
originUid
?
query
.
originUid
:
'0'
,
10
);
let
originUnionID
=
query
.
originUnionID
?
query
.
originUnionID
:
''
;
let
currentScene
=
app
.
globalData
.
currentScene
;
let
isGoApp
=
(
currentScene
==
1036
||
currentScene
==
1069
||
currentScene
==
1011
)
?
true
:
false
;
let
uid
=
app
.
getUid
();
let
scene
=
''
;
...
...
@@ -150,6 +148,8 @@ Page(Object.assign({
scene
=
query
.
scene
;
}
let
currentScene
=
app
.
globalData
.
currentScene
;
let
isGoApp
=
(
currentScene
==
1036
||
currentScene
==
1069
)
?
true
:
false
;
let
appParameter
=
`
http
:
//m.yohobuy.com?openby:yohobuy={\"action\":\"go.limitpurchase\",\"params\":{\"lp\":\"${limitProductCode}\"}}`;
this
.
setData
({
...
...
Please
register
or
login
to post a comment