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