Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ijianbo
winxin-app-watch-life.net
提交
7ce9a11a
W
winxin-app-watch-life.net
项目概览
ijianbo
/
winxin-app-watch-life.net
通知
60
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
winxin-app-watch-life.net
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7ce9a11a
编写于
4月 27, 2024
作者:
X
xjb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、完善登录提示。
2、文章详情图标栏加入“点赞”图标
上级
9c221f58
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
13 deletion
+37
-13
images/iconfont/iconfont.wxss
images/iconfont/iconfont.wxss
+10
-5
pages/detail/detail.wxml
pages/detail/detail.wxml
+3
-0
utils/auth.js
utils/auth.js
+24
-8
未找到文件。
images/iconfont/iconfont.wxss
浏览文件 @
7ce9a11a
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
font-family:
"iconfont";
/* Project id 2687084 */
src: url('//at.alicdn.com/t/
font_2687084_fepa8ax75vh.woff2?t=1650168284423
') format('woff2'),
url('//at.alicdn.com/t/
font_2687084_fepa8ax75vh.woff?t=1650168284423
') format('woff'),
url('//at.alicdn.com/t/
font_2687084_fepa8ax75vh.ttf?t=1650168284423
') format('truetype');
font-family:
'iconfont';
/* Project id 2687084 */
src: url('//at.alicdn.com/t/
c/font_2687084_pvel6asm7cl.woff2?t=1714182858766
') format('woff2'),
url('//at.alicdn.com/t/
c/font_2687084_pvel6asm7cl.woff?t=1714182858766
') format('woff'),
url('//at.alicdn.com/t/
c/font_2687084_pvel6asm7cl.ttf?t=1714182858766
') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
...
...
@@ -40,3 +40,8 @@
.icon-play:before {
content: "\e666";
}
.icon-dianzan:before {
content: "\e601";
}
pages/detail/detail.wxml
浏览文件 @
7ce9a11a
...
...
@@ -195,6 +195,9 @@
<view class=" comment ui-BG-2 ui-TC-2" bindtap="showCustomizeModal" data-key='drawer'>
<text class="cicon-popover-o ">说点什么吧...</text>
</view>
<view class="icon" catchtap="clickLike">
<text class="iconfont icon-dianzan" style="font-size: 19px;"></text>
</view>
<view class="icon" catchtap="praise">
<text class="iconfont icon-money" style="font-size: 19px;"></text>
</view>
...
...
utils/auth.js
浏览文件 @
7ce9a11a
...
...
@@ -90,14 +90,14 @@ Auth.agreeGetUser = function(e, wxLoginInfo, authFlag) {
lang
:
'
zh_CN
'
,
desc
:
'
登录后信息展示
'
,
success
:
(
res
)
=>
{
let
wxUserInfo
=
res
.
userInfo
||
{}
wx
.
showLoading
({
title
:
"
正在登录...
"
,
mask
:
true
})
let
wxUserInfo
=
res
.
userInfo
||
{}
Auth
.
getUserInfo
(
wxUserInfo
,
js_code
).
then
(
resdata
=>
{
resolve
(
resdata
);
wx
.
hideLoading
();
//wx.hideLoading();
// setTimeout(function () {
// wx.hideLoading()
// }, 1000)
});
},
fail
:
(
err
)
=>
{
...
...
@@ -123,10 +123,21 @@ Auth.getUserInfo = function(wxUserInfo, js_code) {
args
.
nickname
=
wxUserInfo
.
nickName
;
var
url
=
Api
.
getOpenidUrl
();
var
postOpenidRequest
=
wxRequest
.
postRequest
(
url
,
args
);
wx
.
hideLoading
();
//wx.hideLoading();
wx
.
showLoading
({
title
:
"
正在登录...
"
,
mask
:
true
})
postOpenidRequest
.
then
(
response
=>
{
if
(
response
.
data
.
status
==
'
200
'
)
{
console
.
log
(
"
授权登录获取成功
"
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
'
登录成功...
'
,
icon
:
'
success
'
,
duration
:
2000
})
UserInfoData
.
openid
=
response
.
data
.
openid
;
var
userLevel
=
{};
if
(
response
.
data
.
userLevel
)
{
...
...
@@ -149,7 +160,12 @@ Auth.getUserInfo = function(wxUserInfo, js_code) {
return
;
}
else
{
UserInfoData
.
errcode
=
"
error
"
wx
.
showToast
({
title
:
'
登录失败...
'
,
icon
:
'
error
'
,
duration
:
2000
})
UserInfoData
.
errcode
=
"
error
"
resolve
(
UserInfoData
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录