Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
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
front-end-dev
techbook
Commits
7e96d9a8
Commit
7e96d9a8
authored
Mar 05, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceshi
parent
2148c54a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
detail.vue
src/views/mobile/activityApply/detail.vue
+26
-6
No files found.
src/views/mobile/activityApply/detail.vue
View file @
7e96d9a8
...
...
@@ -90,7 +90,8 @@
url
:
""
,
disabledFlag
:
0
,
popupVisible
:
false
,
dialogVisible
:
false
dialogVisible
:
false
,
config
:{}
}
},
...
...
@@ -202,9 +203,10 @@
//分享
handleOpreation
(){
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
navigator
.
userAgent
.
toLowerCase
()
,
that
=
this
;
if
(
ua
.
match
(
/MicroMessenger/i
)
==
"micromessenger"
)
{
this
.
shareFunc
();
that
.
shareFunc
();
}
else
{
this
.
dialogVisible
=
false
;
this
.
popupVisible
=
true
;
...
...
@@ -227,9 +229,11 @@
shareFunc
(){
let
params
=
{
appUrl
:
window
.
location
.
href
//document.location.href.split("#")[0]+"/?#"+document.location.href.split("#")[1]
};
}
,
that
=
this
;
api
.
getConfigAxios
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
this
.
detailInfo
.
shareTitle
=
this
.
detailInfo
.
channelTitle
;
this
.
detailInfo
.
url
=
document
.
location
.
href
;
this
.
config
=
res
.
result
;
wx
.
config
({
debug
:
true
,
// 是否开启调试模式
...
...
@@ -304,9 +308,25 @@
}
})
});
wx
.
miniProgram
.
getEnv
(
function
(
res
)
{
if
(
res
.
miniprogram
){
wx
.
miniProgram
.
postMessage
({
data
:
that
.
detailInfo
})
// true代表在小程序里
}
else
{
that
.
dialogVisible
=
true
;
that
.
popupVisible
=
false
;
//false代表在公众号里
}
})
this
.
dialogVisible
=
true
;
this
.
popupVisible
=
false
;
}
else
{
this
.
$toast
(
res
.
msg
);
}
...
...
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