
认证1年300元
(管理:
移动应用、网站应用、公众帐号
小程序、第三方平台、应用类目
的微信登录功能)
电脑本地上新建文件夹:资质文件
2828的logo
128128的logo
微信开放平台网站信息登记表+公章
回调的域名
等1-7天,一般几十分钟
被一个份
微信官方文档 - 资源下载
https://developers.weixin.qq.com/doc/oplatform/Downloads/Design_Resource.html
html:
<div><a href="login"><img src="img/icon48_wx_button.png" alt="微信登录" style="width: 260px;"></a></div>
<a>标签加上login
from .wechat import *from .sheet import *
一个是wechat
一个是表操作文件
#蓝图from flask import BlueprintWechat = Blueprint('Wechat',__name__)#点击登录后Wechat.route("/login", methods=['GET','POST'])def login():return render_template("login.html")
#蓝图from flask import BlueprintSheet = Blueprint('Sheet',__name__)
更新上传init.py、Wechat.py和Sheet.py
<html><head><head lang="cn"><meta charset="utf-8"><title>artchips艺术碎片</title><link rel="shortcut icon" href="/img/artchips.png" /></head><body><div style="text-align: center"><a id="login_container"></a><script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script><script>var obj = new WxLogin({self_redirect:false,id: "login_container",appid: "自己写自己的appid",scope: "snsapi_login",redirect_uri: encodeURIComponent("https://" + window.location.host + "/session"),state: Math.ceil(Math.random()*1000000000),style: "black",href: ""});</script></div></body></html>
修改appid
登录后调用这个html页面,用来扫码