Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
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
谭新宇
h5_activity
Commits
62a09f5a
Commit
62a09f5a
authored
Jul 11, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整'
parent
2f1dd221
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
share.js
showPhotos/js/page/share.js
+8
-9
user.js
showPhotos/js/page/user.js
+7
-7
No files found.
showPhotos/js/page/share.js
View file @
62a09f5a
var
_r
=
rules
;
var
settings
=
_r
.
settings
;
var
_settings
=
rules
.
settings
;
wx
.
config
({
debug
:
false
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
...
...
@@ -15,22 +14,22 @@ wx.config({
wx
.
ready
(
function
(){
var
shareData
=
{
title
:
settings
.
szText
.
shareTitile
,
imgUrl
:
settings
.
szText
.
shareIcon
,
desc
:
settings
.
szText
.
shareSubtitle
,
title
:
_
settings
.
szText
.
shareTitile
,
imgUrl
:
_
settings
.
szText
.
shareIcon
,
desc
:
_
settings
.
szText
.
shareSubtitle
,
link
:
""
}
// 已报名
if
(
user
.
status
)
{
shareData
.
title
=
settings
.
szText
.
pullTitile
;
shareData
.
desc
=
settings
.
szText
.
pullSubtitle
.
replace
(
"{{姓名}}"
,
user
.
name
);
shareData
.
title
=
_
settings
.
szText
.
pullTitile
;
shareData
.
desc
=
_
settings
.
szText
.
pullSubtitle
.
replace
(
"{{姓名}}"
,
user
.
name
);
shareData
.
link
=
"/ACTIVITY/view/"
+
activityCode
+
"/3?UserId="
+
user
.
id
;
}
else
{
// 分享首页
shareData
.
title
=
settings
.
szText
.
shareTitile
;
shareData
.
desc
=
settings
.
szText
.
shareSubtitle
;
shareData
.
title
=
_
settings
.
szText
.
shareTitile
;
shareData
.
desc
=
_
settings
.
szText
.
shareSubtitle
;
shareData
.
link
=
"/ACTIVITY/view/"
+
activityCode
+
"/1"
;
}
...
...
showPhotos/js/page/user.js
View file @
62a09f5a
...
...
@@ -15,22 +15,22 @@ $(function(){
function
wxpermission
(
userId
,
userName
)
{
wx
.
ready
(
function
(){
var
shareData
=
{
title
:
settings
.
szText
.
shareTitile
,
imgUrl
:
settings
.
szText
.
shareIcon
,
desc
:
settings
.
szText
.
shareSubtitle
,
title
:
rules
.
settings
.
szText
.
shareTitile
,
imgUrl
:
rules
.
settings
.
szText
.
shareIcon
,
desc
:
rules
.
settings
.
szText
.
shareSubtitle
,
link
:
""
}
// 已报名
if
(
user
.
status
)
{
shareData
.
title
=
settings
.
szText
.
pullTitile
;
shareData
.
desc
=
settings
.
szText
.
pullSubtitle
.
replace
(
"{{姓名}}"
,
userName
);
shareData
.
title
=
rules
.
settings
.
szText
.
pullTitile
;
shareData
.
desc
=
rules
.
settings
.
szText
.
pullSubtitle
.
replace
(
"{{姓名}}"
,
userName
);
shareData
.
link
=
"/ACTIVITY/view/"
+
activityCode
+
"/3?UserId="
+
userId
;
}
else
{
// 分享首页
shareData
.
title
=
settings
.
szText
.
shareTitile
;
shareData
.
desc
=
settings
.
szText
.
shareSubtitle
;
shareData
.
title
=
rules
.
settings
.
szText
.
shareTitile
;
shareData
.
desc
=
rules
.
settings
.
szText
.
shareSubtitle
;
shareData
.
link
=
"/ACTIVITY/view/"
+
activityCode
+
"/1"
;
}
...
...
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