Browse Source

提交

git-svn-id: svn://svn7.apicloud.com/A6007457911931/%E5%9C%88%E5%A4%9A%E5%A4%9A@665 0e1a2743-8d03-4e5a-a60c-7e26af42b145
1149931599@qq.com 4 years ago
parent
commit
56737b7160
2 changed files with 8 additions and 4 deletions
  1. 4 2
      html/hotel/frame0.html
  2. 4 2
      html/hotel/history.html

+ 4 - 2
html/hotel/frame0.html

@@ -355,8 +355,10 @@ function jpushInit() {
        _minid='';$(".msg-list").empty();getRouteData();
     })*/
     api.addEventListener({ name: 'noticeclicked' }, function(ret, err) { //ios noticeclicked
-        var _value = ret.value.replace(/\\/g, "");
-        var obj = eval('(' + _value + ')');
+       var data=JSON.stringify(ret.value);
+       var obj=JSON.parse(data)
+		// var _value = ret.value.replace(/\\/g, "");
+  //       var obj = eval('(' + _value + ')');
         if (obj.jump == "neworder") {
             api.openWin({
                 name: 'frame1',

+ 4 - 2
html/hotel/history.html

@@ -347,8 +347,10 @@ function jpushInit() {
        _minid='';$(".msg-list").empty();getRouteData();
     })*/
     api.addEventListener({ name: 'noticeclicked' }, function(ret, err) { //ios noticeclicked
-        var _value = ret.value.replace(/\\/g, "");
-        var obj = eval('(' + _value + ')');
+        var data=JSON.stringify(ret.value);
+        var obj=JSON.parse(data)
+		// var _value = ret.value.replace(/\\/g, "");
+  //       var obj = eval('(' + _value + ')');
         if (obj.jump == "neworder") {
             api.openWin({
                 name: 'frame1',