人人商城

iswxapp.html 508B

12345678910111213141516
  1. {template 'common/header'}
  2. <script>
  3. var currenturl = encodeURIComponent("{$_W['siteurl']}");
  4. if(window.__wxjs_environment === 'miniprogram') {
  5. wx.ready(function(){
  6. wx.miniProgram.navigateTo({
  7. url: "/wxapp_web/pages/view/index?url="+currenturl+"&userinfo=1"
  8. })
  9. })
  10. } else {
  11. window.location.href = "{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=wxapp&a=home&do=oauth&url="+currenturl;
  12. }
  13. </script>
  14. {template 'common/footer'}