12345678910111213141516171819202122232425262728293031 |
- (function () {
- var page = {
- isScroll: true,
- init: function ($page,$param) {
- var array = JSON.parse( $param );
- var html = '';
- userinfo = renlian.storage.get('userinfo');
- renlian.httpget(config.webapi + "/?s=api/get_article_detail&id="+array.ID, {}, function(res) {
- //console.log(res.data.Content);
- if(res.success == true){
- html += '<div class="lr-list-item"><span class="lr-article-title">'+res.data.Title+'</span></div>\
- <div class="lr-list-item"><span class="lr-badge" style="background-color:white">发布时间: '+res.data.AddTime+'</span></div>\
- <div class="lr-card-content">\
- <div class="lr-card-content-inner">\
- '+res.data.Content+'\
- </div>\
- </div>\
- ';
-
-
- $page.find('.detail').html(html);
- }else{
- renlian.layer.warning("详情信息出错", function () { }, '提示', '关闭');
- }
- })
- }
- };
- return page;
- })();
|