Browse Source

菜单修改

wangxiaoming 7 years ago
parent
commit
d1c1f66cab

+ 1 - 1
iamberry-wechat-web/src/main/webapp/WEB-INF/views/admin/wx/menu/wxtree.jsp

@@ -139,7 +139,7 @@ $(document).ready(function(){
 						<div id="lnk" style="display: none; line-height: 50px">
 							页面URL:
 							<input id="url" type="text" style="width: 400px; border-radius: 5px; height: 30px;">
-							<span class="maroon">*</span><span class="help-inline">(必须以http://开头)</span>
+							<span class="maroon">*</span><span class="help-inline">(必须以http://或者https://开头)</span>
 						</div>
 						
 						<p>

+ 5 - 3
iamberry-wechat-web/src/main/webapp/common/js/admin/public/wxtree.js

@@ -464,9 +464,11 @@
 						return false;
 					}
 				}
-				if (url != null && url != "" && url.indexOf('http://') < 0) {
-					alert('链接必须以http://开头!');
-					return false;
+				if (url != null && url != "" ) {
+					if(url.indexOf('http://') < 0 && url.indexOf('https://') < 0){
+                        alert('链接必须以http://开头!');
+                        return false;
+					}
 				}
 				if (url.indexOf("\"") > -1 || url.indexOf("\“") > -1
 						|| url.indexOf("\”") > -1) {