从后台获取加密json数据后解密
举例:
xtype:‘list‘,
store:‘eventsListStore‘,
itemTpl: new Ext.XTemplate(‘<tpl for=".">‘,
‘<div class="items clearfix">‘,
‘<div class="event-img"><div style="background:url({Pic}) no-repeat scroll 0px 30%;height:160px; background-size: cover;max-width: 100%;"></div></div>‘,
‘<div class="items-info">‘,
‘<h4>{[this.decode(values.Title)]}</h4>‘,
//‘<p class="items-time">{EventTime.Start} - {EventTime.End}</p>‘,
‘<p class="items-time">报名时间:{EventRegOpen.Open} - {EventRegOpen.Close} </p>‘,
//‘<p class="event-place"><span class="x-button-icon x-shown locate"></span><tpl for="EventAddress"> {[this.decode(values.Address)]} <br></tpl></p>‘,
‘<p class="items-brief">{[this.decode(values.EventIntro)]} </p>‘,
‘<div class="actionbox clearfix">‘,
‘<span class="iconbox"> <i class="icon-time"></i>{[Ext.util.Format.date(values.EventTime.Start, "Y/m/d")]}</span>‘,
‘<div class="pull-right">‘,
‘<span class="iconbox"> <i class="icon-heart"></i>333</span> <span class="iconbox"></span>‘,
‘</div></div></div></div>‘,
‘</tpl>‘,
{
decode: function(name){
return Ext.Object.getKeys(Ext.Object.fromQueryString(name))[0];
}
})
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。