Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duiba-h5-frame
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
江思志
duiba-h5-frame
Commits
22c82e86
Commit
22c82e86
authored
Apr 02, 2019
by
孙高杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拦截修改
parent
b4266955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
26 deletions
+29
-26
home.vue
src/pages/kejiji/webview/content/page/home.vue
+29
-26
No files found.
src/pages/kejiji/webview/content/page/home.vue
View file @
22c82e86
...
@@ -177,7 +177,6 @@ export default {
...
@@ -177,7 +177,6 @@ export default {
console
.
log
(
"getuserInfo"
);
console
.
log
(
"getuserInfo"
);
let
res
=
await
get
(
API
.
userInfo
,
{});
let
res
=
await
get
(
API
.
userInfo
,
{});
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
weixinQrcode
=
res
.
data
.
sellerWxQrCode
;
this
.
sellerId
=
res
.
data
.
sellerId
;
this
.
sellerId
=
res
.
data
.
sellerId
;
}
}
else
{
else
{
...
@@ -317,34 +316,38 @@ export default {
...
@@ -317,34 +316,38 @@ export default {
}
}
},
},
async
shareGame
(
item
){
async
shareGame
(
item
){
if
(
!
this
.
weixinQrcode
)
{
let
res_
=
await
get
(
API
.
userInfo
,
{});
if
(
res_
.
success
)
{
this
.
weixinQrcode
=
res_
.
data
.
sellerWxQrCode
;
this
.
sellerId
=
res_
.
data
.
sellerId
;
}
if
(
!
this
.
weixinQrcode
)
{
this
.
showInterceptModal
=
true
;
this
.
showInterceptModal
=
true
;
}
else
{
return
;
console
.
log
(
item
);
}
this
.
hiding
=
false
;
this
.
hiding
=
false
;
this
.
$emit
(
"close"
);
this
.
$emit
(
"close"
);
if
(
this
.
hiding
){
if
(
this
.
hiding
){
localStorage
.
setItem
(
"guider"
,
1
);
localStorage
.
setItem
(
"guider"
,
1
);
}
let
params
=
{
contentId
:
item
.
id
};
let
res
=
await
get
(
API
.
getScId
,
params
);
if
(
res
.
success
)
{
let
id
=
res
.
data
;
console
.
log
(
item
.
text
);
let
obj
=
JSON
.
parse
(
item
.
text
);
if
(
obj
.
lottery
==
1
){
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/activity/setting/main?scid=
${
id
}
`
});
}
}
let
params
=
{
else
{
contentId
:
item
.
id
let
url
=
`/pages/share/main?scid=
${
id
}
`
;
};
if
(
step
){
let
res
=
await
get
(
API
.
getScId
,
params
);
url
=
url
+
"&shareGuide=true"
;
if
(
res
.
success
)
{
let
id
=
res
.
data
;
console
.
log
(
item
.
text
);
let
obj
=
JSON
.
parse
(
item
.
text
);
if
(
obj
.
lottery
==
1
){
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/activity/setting/main?scid=
${
id
}
`
});
}
else
{
let
url
=
`/pages/share/main?scid=
${
id
}
`
;
if
(
step
){
url
=
url
+
"&shareGuide=true"
;
}
wx
.
miniProgram
.
navigateTo
({
url
:
url
});
}
}
}
wx
.
miniProgram
.
navigateTo
({
url
:
url
});
}
}
}
}
}
},
},
...
...
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