caimei-code.js 783 B

12345678910111213141516171819202122232425
  1. /**
  2. *Created by ZHJY on 2020/7/14.
  3. */
  4. var payContainer = new Vue({
  5. el:"#payContainer",
  6. data: {
  7. orderInfo:{}
  8. },
  9. methods: {
  10. authRedirect:function () {
  11. var orderInfo = CAIMEI.getUrlParam('orderInfo');
  12. var wechatPayUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize';
  13. var appId = 'wx91c4152b60ca91a3';
  14. var redirect_uri = 'https://www-b.caimei365.com/pay/wechatpay.html';
  15. var url = wechatPayUrl + '?appid=' + appId + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base&state='+ orderInfo +'#wechat_redirect';
  16. window.location.href = url;
  17. }
  18. },
  19. created:function () {
  20. this.authRedirect()
  21. },
  22. mounted: function () {
  23. }
  24. });