Commit deb4e1ec by LinChengbiao

增加了分享功能

parent e66cb47f
import wepy from 'wepy'
export default class share extends wepy.mixin {
onLoad () {
// console.log('mixin - bind2Way')
this.share()
}
methods = {}
share () {
wepy.showShareMenu({
withShareTicket: true
})
}
}
......@@ -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: '',
......
......@@ -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: {},
......
......@@ -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: {
......
......@@ -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: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment