Commit f7eaa079 by chenwq

众筹分享-时间

1 parent 3b59f0da
...@@ -28,6 +28,9 @@ export default { ...@@ -28,6 +28,9 @@ export default {
}) })
}) })
}, },
iosTimeFormat (time) {
return time.replace(/\-/g, '/')
},
showShareModel(i = {}) { showShareModel(i = {}) {
let { let {
tabIndex, tabIndex,
...@@ -114,7 +117,7 @@ export default { ...@@ -114,7 +117,7 @@ export default {
if (agentId) link = `${link}&agentId=${agentId}` if (agentId) link = `${link}&agentId=${agentId}`
h5Params = { h5Params = {
imgUrl: i.posterImg || i.activityImg, imgUrl: i.posterImg || i.activityImg,
desc: `限时大型众筹,活动时间${new Date(i.startTime).format('yyyy/M/d')}-${new Date(i.endTime).format('yyyy/M/d')}`, desc: `限时大型众筹,活动时间${new Date(this.iosTimeFormat(i.startTime)).format('yyyy/M/d')}-${new Date(this.iosTimeFormat(i.endTime)).format('yyyy/M/d')}`,
title: i.forwardTitle || i.activityName, title: i.forwardTitle || i.activityName,
link link
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!