|
|
|
@ -3,6 +3,8 @@ const util = require('../../../utils/util') |
|
|
|
const tdsdk = require('../../../libs/tdweapp') |
|
|
|
const event = require('../../../utils/event.js') |
|
|
|
const app = getApp() |
|
|
|
const tip = '纸通宝免责声明:1、纸通宝所提供的信息及资料除原创外,部分资讯来源于网络等媒体,转载目的在于传递更多信息,并不代表纸通宝赞同其观点和对其真实性负责。如涉及作品内容、版权和其它问题,敬请原作者谅解,并立即通知纸通宝(投诉邮箱:zhitongbao@qniao.cn),我们将在第一时间删除内容!纸通宝拥有对此声明的最终解释权。2、以上所展示信息或资料,仅供参考!任何单位或个人因以上信息进行交易行为而导致财产损失等,纸通宝对此不承担任何法律责任。' |
|
|
|
const maxLength = 42 |
|
|
|
|
|
|
|
Page({ |
|
|
|
data: { |
|
|
|
@ -28,7 +30,9 @@ Page({ |
|
|
|
pageSize: 15 |
|
|
|
}, |
|
|
|
maskHidden: false, |
|
|
|
visible: false |
|
|
|
visible: false, |
|
|
|
tipshow: '', |
|
|
|
ellipsis: true |
|
|
|
}, |
|
|
|
onLoad: function (options) { |
|
|
|
this.data.keyboardHeight = wx.getStorageSync('keyboardHeight') |
|
|
|
@ -47,7 +51,7 @@ Page({ |
|
|
|
this.data.visible = true |
|
|
|
} |
|
|
|
} |
|
|
|
this.setData({ momentDetail: result.data, visible: this.data.visible }) |
|
|
|
this.setData({ momentDetail: result.data, visible: this.data.visible, tipshow: tip.substring(0, maxLength - 3) + '...' }) |
|
|
|
this.fetchCommentList() |
|
|
|
wx.hideLoading() |
|
|
|
}).catch(err => { |
|
|
|
@ -62,6 +66,12 @@ Page({ |
|
|
|
onImageClick: function(){ |
|
|
|
wx.navigateTo({ url: '/pages/ztbvip/index' }) |
|
|
|
}, |
|
|
|
ellipsisText: function () { |
|
|
|
var ellipsis = !this.data.ellipsis; |
|
|
|
var tipshow = tip; |
|
|
|
tipshow = (tipshow.length > maxLength && ellipsis) ? tipshow.substring(0, maxLength - 3) + '...' : tipshow; |
|
|
|
this.setData({ tipshow: tipshow, ellipsis: ellipsis }) |
|
|
|
}, |
|
|
|
onRefreshList: function () { |
|
|
|
if (this.data.requesting) { |
|
|
|
return |
|
|
|
|