소스 검색

修改关于我们提示

git 5 년 전
부모
커밋
a56fe27983
2개의 변경된 파일15개의 추가작업 그리고 25개의 파일을 삭제
  1. 7 13
      pages/my/aboutadms/aboutadms.js
  2. 8 12
      pages/my/aboutrenlian/aboutrenlian.js

+ 7 - 13
pages/my/aboutadms/aboutadms.js

@@ -2,23 +2,17 @@
     var page = {
         isScroll: false,
         init: function ($page) {
-			//var array = JSON.parse( $param );
 			var html = '';
-			//userinfo = renlian.storage.get('userinfo');
 			renlian.httpget(config.webapi + "/?s=api/get_contact_us", {}, function(res) {
-				//console.log(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));
+					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{
-					renlian.layer.warning("联系我们信息出错", function () { }, '提示', '关闭');
+					html = '您还没有配置联系我们';
+					$page.find('.aboutadms').html(html);
 				}
 			})
         }

+ 8 - 12
pages/my/aboutrenlian/aboutrenlian.js

@@ -2,23 +2,19 @@
     var page = {
         isScroll: false,
         init: function ($page) {
-			//var array = JSON.parse( $param );
 			var html = '';
-			//userinfo = renlian.storage.get('userinfo');
 			renlian.httpget(config.webapi + "/?s=api/get_about_us", {}, function(res) {
 				//console.log(res);
 				if(res.success == true){
-				html += '<div class="lr-list-item value"><span class="lr-article-title">'+res.data.Value+'</span></div>\
-				<div class="lr-list-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+res.data.Descripe+'</div>\
-			</div>\
-				';
-				
-
-
-				
-				$page.find('.aboutrenlian').html(html);
+					html += '<div class="lr-list-item value"><span class="lr-article-title">'+res.data.Value+'</span></div>\
+					         <div class="lr-list-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+res.data.Descripe+'</div>\
+					         </div>\
+					        ';				
+					$page.find('.aboutrenlian').html(html);
 				}else{
-					renlian.layer.warning("关于我们信息出错", function () { }, '提示', '关闭');
+					//renlian.layer.warning("联系我们信息出错", function () { }, '提示', '关闭');
+					 html = '您还没有配置关于我们';
+					$page.find('.aboutrenlian').html(html);
 				}
 			})
         }