Wx.config ({debug:false, appId: '
', timestamp:
, Noncestr: '
', Signature: '
', jsapilist: [' Checkjsapi ', ' addcard ', ' Chooseca Rd ', ' opencard ', ' hidemenuitems ', ' Showmenuitems ', ' CloseWindow ']}); Wx.ready (function () {var json =
; SetTimeout (function () {Wx.closewindow (); window.location.href = URL; }, 5000); var url = '
'; Wx.addcard ({cardList:json.card_list, success:function (res) { Alert (' Collect success, enter > I > Card pack view '); Wx.closewindow (); window.location.href = URL; }, Cancel:function (res) {Wx.closewindow (); window.location.href = URL; }, Fail:function (res) {Wx.closewindow (); window.location.href = URL; } }); });
Config is ok
Either direct wx.closeWindow
or jump to the close page will appearcloseWindow:error
It's normal on Android, and there's a problem with iOS.
Reply content:
Wx.config ({debug:false, appId: '
', timestamp:
, Noncestr: '
', Signature: '
', jsapilist: [' Checkjsapi ', ' addcard ', ' Chooseca Rd ', ' opencard ', ' hidemenuitems ', ' Showmenuitems ', ' CloseWindow ']}); Wx.ready (function () {var json =
; SetTimeout (function () {Wx.closewindow (); window.location.href = URL; }, 5000); var url = '
'; Wx.addcard ({cardList:json.card_list, success:function (res) { Alert (' Collect success, enter > I > Card pack view '); Wx.closewindow (); window.location.href = URL; }, Cancel:function (res) {Wx.closewindow (); window.location.href = URL; }, Fail:function (res) {Wx.closewindow (); window.location.href = URL; } }); });
Config is ok
Either direct wx.closeWindow
or jump to the close page will appearcloseWindow:error
It's normal on Android, and there's a problem with iOS.