pull/1/head
liudan 1 year ago
parent bb896b971c
commit 4013c5e80c
  1. 2
      pages/home/home.vue
  2. 2
      pages/login/login.vue
  3. 2
      unpackage/dist/build/h5/index.html
  4. 2
      unpackage/dist/build/h5/static/js/index.2dce0e96.js
  5. 1
      unpackage/dist/build/h5/static/js/pages-home-home.0f5b691e.js
  6. 1
      unpackage/dist/build/h5/static/js/pages-home-home.292aff7c.js
  7. 1
      unpackage/dist/build/h5/static/js/pages-login-login.77ea34f2.js
  8. 1
      unpackage/dist/build/h5/static/js/pages-login-login.8fb366c6.js

@ -222,7 +222,7 @@ export default {
let redirect_uri = encodeURIComponent(pageUrl); let redirect_uri = encodeURIComponent(pageUrl);
let authUrl = let authUrl =
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect`; `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=STATE&connect_redirect=1#wechat_redirect`;
if (code) { if (code) {
uni.setStorageSync("code",code) uni.setStorageSync("code",code)
} else { } else {

@ -109,7 +109,7 @@ export default {
}) })
return; return;
} }
loginApi({account:this.form.phone,password:this.form.password}).then(res=>{ loginApi({account:this.form.phone,password:this.form.password,code:uni.getStorageSync("code")}).then(res=>{
if(res.code==1){ if(res.code==1){
setUserInfo(res.data.userinfo) setUserInfo(res.data.userinfo)

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>商城</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>商城</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.fd0c9014.js></script><script src=/static/js/index.03810060.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.fd0c9014.js></script><script src=/static/js/index.2dce0e96.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save