完善微信登录

This commit is contained in:
yi-ge 2020-07-23 09:33:15 +08:00
parent 912d48bf71
commit ea90eac506

View File

@ -51,7 +51,7 @@
span.reply(@click="check(i.comment_ID, 2)" v-else-if="visitorInfo.manage") 设为垃圾评论 span.reply(@click="check(i.comment_ID, 2)" v-else-if="visitorInfo.manage") 设为垃圾评论
p(v-if="!comments.length", style="color: #cecece; text-align: center; margin-top: 40px") 暂无内容 p(v-if="!comments.length", style="color: #cecece; text-align: center; margin-top: 40px") 暂无内容
.comment-default-commit .comment-default-commit
.login(v-if="!visitorToken") .login(v-show="!visitorToken")
.item(v-for="(item, index) in loginPlatform", :key="index") .item(v-for="(item, index) in loginPlatform", :key="index")
transition(name="qrcode") transition(name="qrcode")
img(v-show="!commentLoading && useWeixinLogin && currentLoginType === item.type", class="qrcode", :src="weixinLoginQrcode") img(v-show="!commentLoading && useWeixinLogin && currentLoginType === item.type", class="qrcode", :src="weixinLoginQrcode")
@ -67,17 +67,10 @@
.comment-btn(@click="commentCommit('editor')") 发布 .comment-btn(@click="commentCommit('editor')") 发布
.comment-reply-commit(id="comment-reply-commit", v-show="replyID") .comment-reply-commit(id="comment-reply-commit", v-show="replyID")
.login(v-show="!visitorToken") .login(v-show="!visitorToken")
img(v-show="!useWeixinLogin" class="login-img", src="https://cdn.wyr.me/imgs/GitHub-Login.png", @click="login('github')", style="margin-left: -140px;") .item(v-for="(item, index) in loginPlatform", :key="index")
img(v-show="!useWeixinLogin", class="login-img", src="https://cdn.wyr.me/imgs/Weixin-Login.png", @click="login('weixin')") transition(name="qrcode")
img(v-show="!useWeixinLogin", class="login-img", src="https://cdn.wyr.me/imgs/QQ-Login.png", @click="login('qq')") img(v-show="!commentLoading && useWeixinLogin && currentLoginType === item.type", class="qrcode", :src="weixinLoginQrcode")
.comment-loading(v-show="commentLoading") img(class="logo", :class="{active: currentLoginType === item.type && useWeixinLogin && !commentLoading, loading: commentLoading && currentLoginType === item.type}", :src="item.logo", @click.stop="login(item.type)")
.allSpinner
.spinner
.bounce1
.bounce2
.bounce3
img(v-show="!commentLoading && useWeixinLogin", class="weixin-qrcode", :src="weixinLoginQrcode")
p(v-show="!commentLoading && useWeixinLogin") 请使用微信扫码登录
#editor-reply #editor-reply
.comment-toolbar .comment-toolbar
.comment-no-userinfo(v-if="!visitorToken") 尚未登陆 .comment-no-userinfo(v-if="!visitorToken") 尚未登陆