浏览代码

bug修正

li 7 年之前
父节点
当前提交
5260074e15
共有 3 个文件被更改,包括 23 次插入0 次删除
  1. 17 0
      app/index.html
  2. 1 0
      app/js/consultlistNew.js
  3. 5 0
      app/js/inform.js

+ 17 - 0
app/index.html

@ -151,6 +151,23 @@ function lewd(num) {
151 151
		"context": this,
152 152
		"success": function(data) {
153 153
			if(data.success) {
154
				if(data.data ==null) {
155
					if(mui.os.ios) {
156
						plus.runtime.setBadgeNumber(num);
157
						var GeTuiSdk = plus.ios.importClass('GeTuiSdk');
158
						GeTuiSdk.setBadge(num);
159
					}
160
	
161
					if(num) {
162
	
163
						document.getElementById("meLInum").style.display = "block"
164
						document.getElementById("meLInum").innerHTML = num;
165
					} else {
166
						document.getElementById("meLInum").style.display = "none";
167
						document.getElementById("meLInum").innerHTML = 0;
168
					}
169
					return;
170
				}
154 171
				data.data.unRead+=num;
155 172
				if(mui.os.ios) {
156 173
					plus.runtime.setBadgeNumber(data.data.unRead);

+ 1 - 0
app/js/consultlistNew.js

@ -238,6 +238,7 @@ mui.ready(function() {
238 238
					//return;
239 239
					if(data.success) {
240 240
						if(data.data==null) {
241
							document.getElementById("inf").innerHTML="暂无通知";
241 242
							return;
242 243
						}
243 244
						document.getElementById("inf").innerHTML=data.data.lastCnt;

+ 5 - 0
app/js/inform.js

@ -61,7 +61,12 @@ function informList(objec) {
61 61
		traditional: true, //传数组必须加这个
62 62
		success: function(data) {
63 63
			if(data.success) {
64
				console.log(JSON.stringify(data))
64 65
				var $info = data.data;
66
				console.log($info == null)
67
				if(data.data==null) {
68
					return;
69
				}
65 70

66 71
				if($info.length == 0) {
67 72
					if(count) {