Procházet zdrojové kódy

授权到期提醒

miaofuhao %!s(int64=7) %!d(string=před) roky
rodič
revize
43060046c0

+ 1 - 0
CallCenterWeb.UI/index.html

932
                     <li>坐席状态: </li>
932
                     <li>坐席状态: </li>
933
                     <li class="quan zxzt lx br"></li>
933
                     <li class="quan zxzt lx br"></li>
934
                     <li><span class="hwzt" style="color:red;"></span></li>
934
                     <li><span class="hwzt" style="color:red;"></span></li>
935
+                	<li><span class="expire" style="color:red;"></span></li>
935
                 </ul>
936
                 </ul>
936
             </div>
937
             </div>
937
         </div>
938
         </div>

+ 6 - 0
CallCenterWeb.UI/js/index.js

36
 				$(".phoneBZ").show();
36
 				$(".phoneBZ").show();
37
 				$(".zts").show();
37
 				$(".zts").show();
38
 			}
38
 			}
39
+			var expireDay = result.data.days;
40
+            var expireDate = result.data.date.split(' ')[0];
41
+            if (expireDay * 1 > 0) {
42
+                var expire = '软件到期时间:' + expireDate + ',剩余' + expireDay + '天,请及时联系软件厂家!'
43
+                $(".expire").html(expire);
44
+            }
39
 		}
45
 		}
40
 	})
46
 	})
41
 
47
 

+ 13 - 1
CallCenterWeb.UI/login.html

137
 									$.cookie("extno", Fj, {
137
 									$.cookie("extno", Fj, {
138
 										expires: 7
138
 										expires: 7
139
 									});
139
 									});
140
-									window.location.href = "index.html";
140
+									var expireDate = data.data.date.split(' ')[0];
141
+                                    var expireDay = data.data.days;
142
+                                    var expireText = '<span style="color:#f00;">软件到期时间:' + expireDate + ',还剩' + expireDay +'天,请联系软件厂家</span>'
143
+                                    if (expireDay * 1 > 0) {
144
+                                        layer.confirm(expireText, {
145
+                                            btn: ['确定'] //按钮
146
+                                        }, function () {
147
+                                            window.location.href = "index.html";
148
+                                        })
149
+                                    }
150
+                                    else {
151
+                                        window.location.href = "index.html";
152
+                                    }
141
 								} else {
153
 								} else {
142
 									//alert("登录失败");
154
 									//alert("登录失败");
143
 									$("#user").val('');
155
 									$("#user").val('');