12345678910111213141516171819202122232425 |
- (function () {
- var page = {
- isScroll: false,
- init: function ($page) {
- var html = '';
- renlian.httpget(config.webapi + "/?s=api/get_contact_us", {}, function(res) {
- if(res.success == true){
- html += '<div class="lr-list-item">公司名称:<span>'+res.data.Value+'</span></div>\
- <div class="lr-list-item">'+res.data.Descripe+'</div>\
- </div>\
- ';
- $page.find('.aboutadms').html(clean_nbsp(html));
- }else{
- html = '<div class="about-us">暂无配置</div>';
- $page.find('.aboutadms').html(html);
- }
- })
- }
- };
- function clean_nbsp(str){
- str = str.replace(/ /g,'');
- return str;
- }
- return page;
- })();
|