名片分享标题与海报分享标题
This commit is contained in:
parent
9b463236ef
commit
992aae5583
@ -29,6 +29,7 @@ Page({
|
|||||||
curItemIndex: -1, //点击分享按钮弹出的
|
curItemIndex: -1, //点击分享按钮弹出的
|
||||||
curTypeName: '全部',
|
curTypeName: '全部',
|
||||||
contentHeight: 550, //内容区域的高度
|
contentHeight: 550, //内容区域的高度
|
||||||
|
shareTitle: '活动'
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,6 +42,16 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
contentHeight: app.globalData.windowHeight
|
contentHeight: app.globalData.windowHeight
|
||||||
})
|
})
|
||||||
|
try {
|
||||||
|
var title = wx.getStorageSync('postertitle')
|
||||||
|
if (title) {
|
||||||
|
_self.setData({
|
||||||
|
shareTitle: title
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//获取类型
|
//获取类型
|
||||||
getOptionsList() {
|
getOptionsList() {
|
||||||
@ -184,7 +195,7 @@ Page({
|
|||||||
} else {
|
} else {
|
||||||
var param = '/pages/index/index?cardTemplateUseId=' + id + '&userId=' + userId;
|
var param = '/pages/index/index?cardTemplateUseId=' + id + '&userId=' + userId;
|
||||||
return {
|
return {
|
||||||
title: '活动',
|
title: _self.data.shareTitle,
|
||||||
path: param,
|
path: param,
|
||||||
imageUrl: img
|
imageUrl: img
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,8 @@ Page({
|
|||||||
posterId: '', //分享过来的海报ID
|
posterId: '', //分享过来的海报ID
|
||||||
posterImg: '', //分享过来的海报图片
|
posterImg: '', //分享过来的海报图片
|
||||||
isShowPoster: false,
|
isShowPoster: false,
|
||||||
defaultBtnIcon: '/images/ic_share_img.png'
|
defaultBtnIcon: '/images/ic_share_img.png',
|
||||||
|
shareTitle: '您好,这是我的电子名片,请查看.'
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
var self = this
|
var self = this
|
||||||
@ -242,6 +243,15 @@ Page({
|
|||||||
addressTxt: it.value
|
addressTxt: it.value
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case 'cardtitle':
|
||||||
|
wx.setStorageSync('cardtitle', it.value)
|
||||||
|
_self.setData({
|
||||||
|
shareTitle: it.value.length > 0 ? it.value : '您好,这是我的电子名片,请查看.'
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 'postertitle':
|
||||||
|
wx.setStorageSync('postertitle', it.value)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@ -427,13 +437,13 @@ Page({
|
|||||||
},
|
},
|
||||||
//显示更多栏目数据
|
//显示更多栏目数据
|
||||||
showMore(e) {
|
showMore(e) {
|
||||||
|
this.setData({
|
||||||
|
isNeedRefresh: false
|
||||||
|
})
|
||||||
var item = e.currentTarget.dataset.item
|
var item = e.currentTarget.dataset.item
|
||||||
if (item.mode == '2') {
|
if (item.mode == '2') {
|
||||||
var userid = e.currentTarget.dataset.userid
|
var userid = e.currentTarget.dataset.userid
|
||||||
var idx = e.currentTarget.dataset.idx
|
var idx = e.currentTarget.dataset.idx
|
||||||
this.setData({
|
|
||||||
isNeedRefresh: false
|
|
||||||
})
|
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: '/packagecard/moments/showlist/showlist?id=' + item.cId + '&userId=' + userid + '&index=' + idx,
|
url: '/packagecard/moments/showlist/showlist?id=' + item.cId + '&userId=' + userid + '&index=' + idx,
|
||||||
})
|
})
|
||||||
@ -958,8 +968,10 @@ Page({
|
|||||||
* 用户点击右上角分享
|
* 用户点击右上角分享
|
||||||
*/
|
*/
|
||||||
onShareAppMessage: function (res) {
|
onShareAppMessage: function (res) {
|
||||||
console.log(res)
|
|
||||||
var self = this
|
var self = this
|
||||||
|
self.setData({
|
||||||
|
isNeedRefresh: false
|
||||||
|
})
|
||||||
wx.showShareMenu({
|
wx.showShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
@ -975,7 +987,7 @@ Page({
|
|||||||
self.shareRecord(postId)
|
self.shareRecord(postId)
|
||||||
var param = '/pages/index/index?cardTemplateDispatchId=' + postId;
|
var param = '/pages/index/index?cardTemplateDispatchId=' + postId;
|
||||||
return {
|
return {
|
||||||
title: '您好,这是我的电子名片,请查看.',
|
title: self.data.shareTitle,
|
||||||
path: param,
|
path: param,
|
||||||
imageUrl: self.data.shareImgUrl
|
imageUrl: self.data.shareImgUrl
|
||||||
}
|
}
|
||||||
@ -995,6 +1007,9 @@ Page({
|
|||||||
},
|
},
|
||||||
//显示详情
|
//显示详情
|
||||||
showDetail(e) {
|
showDetail(e) {
|
||||||
|
this.setData({
|
||||||
|
isNeedRefresh: false
|
||||||
|
})
|
||||||
var type = e.currentTarget.dataset.ctype //需要跳详情
|
var type = e.currentTarget.dataset.ctype //需要跳详情
|
||||||
if (type.indexOf('dda5007c-5fb7-48f2-8537-3cb8ea298242') != -1) {
|
if (type.indexOf('dda5007c-5fb7-48f2-8537-3cb8ea298242') != -1) {
|
||||||
//需要跳详情
|
//需要跳详情
|
||||||
|
@ -16,7 +16,7 @@ var apis = {
|
|||||||
// baseImgUrl: 'http://192.168.0.111:8091/systemcard/route/file/download/true/',
|
// baseImgUrl: 'http://192.168.0.111:8091/systemcard/route/file/download/true/',
|
||||||
|
|
||||||
// url: 'http://192.168.0.103:7008/study/',
|
// url: 'http://192.168.0.103:7008/study/',
|
||||||
// userCenter: 'http://192.168.0.103:7008/study/',
|
// userCenter: 'http://192.168.0.103:7008/study/',
|
||||||
// baseImgUrl: 'http://192.168.0.103:7008/study/route/file/download/true/',
|
// baseImgUrl: 'http://192.168.0.103:7008/study/route/file/download/true/',
|
||||||
|
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ var apis = {
|
|||||||
getMainColumn: `app/cardconfigcolumn/listhome`, //获取首页显示栏目
|
getMainColumn: `app/cardconfigcolumn/listhome`, //获取首页显示栏目
|
||||||
getColumnListByGroupId: `app/cardconfigcolumn/list`, //根据栏目组id获取栏目? configColumnGroupId
|
getColumnListByGroupId: `app/cardconfigcolumn/list`, //根据栏目组id获取栏目? configColumnGroupId
|
||||||
getMainMoment: `app/configcolumndata/list/{configColumnId}`, //获取首页栏目数据 通过栏目ID获取栏目下的数据列表(包含每条数据的字段集合) 传入userId参数则查询指定人的 , 没传入userId参数则查询当前token的
|
getMainMoment: `app/configcolumndata/list/{configColumnId}`, //获取首页栏目数据 通过栏目ID获取栏目下的数据列表(包含每条数据的字段集合) 传入userId参数则查询指定人的 , 没传入userId参数则查询当前token的
|
||||||
getMineColumnList: `app/configcolumnset/list`, //获取我的栏目配置列表
|
getMineColumnList: `app/cardconfigcolumngroup/setlist`, //获取我的栏目配置列表
|
||||||
doSaveColumnDisplay: `app/configcolumnset/savedisplay`, //保存我的栏目隐藏显示
|
doSaveColumnDisplay: `app/configcolumnset/savedisplay`, //保存我的栏目隐藏显示
|
||||||
doSaveColumnName: `app/configcolumnset/savename`, //保存我的栏目名称
|
doSaveColumnName: `app/configcolumnset/savename`, //保存我的栏目名称
|
||||||
doOrderColumn: `app/configcolumnset/saveorder`, //保存栏目排序, post {configColumnId, configColumnOrder}
|
doOrderColumn: `app/configcolumnset/saveorder`, //保存栏目排序, post {configColumnId, configColumnOrder}
|
||||||
|
Loading…
Reference in New Issue
Block a user