Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
brandEventLibraryMiniProgram
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
LinChengbiao
brandEventLibraryMiniProgram
Commits
deb4e1ec
Commit
deb4e1ec
authored
Oct 19, 2018
by
LinChengbiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了分享功能
parent
e66cb47f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
1 deletions
+27
-1
.wepycache
+0
-0
src/mixins/share.js
+16
-0
src/pages/eventDetail.wpy
+3
-0
src/pages/home.wpy
+3
-0
src/pages/login.wpy
+2
-1
src/pages/searchList.wpy
+3
-0
No files found.
.wepycache
View file @
deb4e1ec
This diff is collapsed.
Click to expand it.
src/mixins/share.js
0 → 100644
View file @
deb4e1ec
import
wepy
from
'wepy'
export
default
class
share
extends
wepy
.
mixin
{
onLoad
()
{
// console.log('mixin - bind2Way')
this
.
share
()
}
methods
=
{}
share
()
{
wepy
.
showShareMenu
({
withShareTicket
:
true
})
}
}
src/pages/eventDetail.wpy
View file @
deb4e1ec
...
...
@@ -47,6 +47,7 @@ import mediaViews from '@/components/eventDetail/mediaViews' // 媒体观点
import leader from '@/components/eventDetail/leader' // 意见领袖观点
import similarEvents from '@/components/eventDetail/similarEvents' // 同类事件对比
import { axiosFormat } from '@/request/request.js'
import share from '@/mixins/share.js'
export default class eventDetail extends wepy.page {
config = {
...
...
@@ -66,6 +67,8 @@ export default class eventDetail extends wepy.page {
similarEvents
}
mixins = [ share ]
data = {
isEnd: true,
eventId: '',
...
...
src/pages/home.wpy
View file @
deb4e1ec
...
...
@@ -41,6 +41,7 @@ import monthlyEvent from '@/components/home/monthlyEvent' // 月度事件
import propagationCycle from '@/components/home/propagationCycle' // 传播周期
import classificationEvent from '@/components/home/classificationEvent' // 分类事件
import { axiosFormat } from '@/request/request.js'
import share from '@/mixins/share.js'
export default class home extends wepy.page {
components = {
...
...
@@ -54,6 +55,8 @@ export default class home extends wepy.page {
classificationEvent
}
mixins = [ share ]
data = {
searchWord: '',
hotTopData: {},
...
...
src/pages/login.wpy
View file @
deb4e1ec
...
...
@@ -34,6 +34,7 @@
<script>
import wepy from 'wepy'
import bind2Way from '@/mixins/bind2Way.js'
import share from '@/mixins/share.js'
import alert from '@/components/common/alert'
import { axiosFormat } from '@/request/request.js'
...
...
@@ -42,7 +43,7 @@ export default class login extends wepy.page {
alert
}
mixins = [ bind2Way ]
mixins = [ bind2Way
, share
]
data = {
sendData: {
...
...
src/pages/searchList.wpy
View file @
deb4e1ec
...
...
@@ -73,6 +73,7 @@ import homeHeader from '@/components/common/homeHeader' // header头
import searchInput from '@/components/common/searchInput' // 搜索框
import eventCard from '@/components/searchList/eventCard' // 事件卡片
import { axiosFormat } from '@/request/request.js'
import share from '@/mixins/share.js'
export default class searchList extends wepy.page {
components = {
...
...
@@ -82,6 +83,8 @@ export default class searchList extends wepy.page {
eventCard
}
mixins = [ share ]
data = {
loading: true,
searchWord: '',
...
...
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