Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
Sign in / Register
Toggle navigation
S
site-uniapp
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
王柯
site-uniapp
Commits
7ab36055
提交
7ab36055
authored
1月 16, 2023
作者:
wk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新闻时间格式
父级
68f9dc25
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
54 行增加
和
4 行删除
+54
-4
common/dateUtils.js
+5
-0
components/uni-tabbar/uni-tabbar.vue
+1
-1
pages/index/newDetail/newDetail.vue
+1
-1
pages/index/siteNewList/siteNewList.vue
+1
-1
pages/mine/myScore/myScore.vue
+1
-1
pages/user/login/login.vue
+45
-0
没有找到文件。
common/dateUtils.js
View file @
7ab36055
...
...
@@ -45,6 +45,11 @@ const $date = {
return
date
.
getFullYear
()
+
"-"
+
StringUtils
.
add0
(
date
.
getMonth
()
+
1
)
+
"-"
+
StringUtils
.
add0
(
date
.
getDate
())
+
" "
+
StringUtils
.
add0
(
date
.
getHours
())
+
":"
+
StringUtils
.
add0
(
date
.
getMinutes
())
+
":"
+
StringUtils
.
add0
(
date
.
getSeconds
())
},
stampToDay
(
time
)
{
var
date
=
new
Date
(
time
)
return
date
.
getFullYear
()
+
"-"
+
StringUtils
.
add0
(
date
.
getMonth
()
+
1
)
+
"-"
+
StringUtils
.
add0
(
date
.
getDate
())
}
}
...
...
components/uni-tabbar/uni-tabbar.vue
View file @
7ab36055
...
...
@@ -172,7 +172,7 @@
}
.tabbar-container
.item-active
{
color
:
#
0B5794
;
color
:
#
3B73FE
;
}
.tabbar-container
.center-item
{
...
...
pages/index/newDetail/newDetail.vue
View file @
7ab36055
...
...
@@ -59,7 +59,7 @@
return
richtext
;
},
timeChange
(
time
)
{
return
this
.
$date
.
stampToDa
te
(
time
)
return
this
.
$date
.
stampToDa
y
(
time
)
},
toLinkDetail
(
item
)
{
uni
.
navigateTo
({
...
...
pages/index/siteNewList/siteNewList.vue
View file @
7ab36055
...
...
@@ -58,7 +58,7 @@
},
methods
:
{
timeChange
(
time
)
{
return
this
.
$date
.
stampToDa
te
(
time
)
return
this
.
$date
.
stampToDa
y
(
time
)
},
httpToHttps
(
url
)
{
return
this
.
$imageUtils
.
httpToHttps
(
url
)
...
...
pages/mine/myScore/myScore.vue
View file @
7ab36055
...
...
@@ -296,7 +296,7 @@
.shop-list-content
{
display
:
flex
;
flex-direction
:
column
;
margin
:
235
px
30
rpx
30
rpx
30
rpx
;
margin
:
132
px
30
rpx
30
rpx
30
rpx
;
background-color
:
#FFFFFF
;
padding
:
30
rpx
;
border-radius
:
30
rpx
;
...
...
pages/user/login/login.vue
View file @
7ab36055
...
...
@@ -98,6 +98,35 @@
}
})
},
directLogin
:
function
()
{
Api
.
bindLogin
({
data
:
{
unique_token
:
this
.
unique_token
}
}).
then
((
result
)
=>
{
console
.
log
(
"登录用户信息:"
,
result
);
if
(
result
.
code
==
0
)
{
uni
.
setStorageSync
(
"short_token"
,
result
.
data
.
short_token
)
uni
.
setStorageSync
(
"token"
,
result
.
data
.
access_token
)
uni
.
setStorageSync
(
"user_info"
,
result
.
data
)
uni
.
setStorageSync
(
"company_id"
,
result
.
data
.
comp_id
)
uni
.
showToast
({
title
:
"授权登录成功"
,
icon
:
'none'
})
uni
.
switchTab
({
url
:
"/pages/index/index"
})
}
else
{
uni
.
showToast
({
title
:
result
.
msg
,
icon
:
'none'
})
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
getJsCode
()
{
let
_this
=
this
;
// 1.wx获取登录用户code
...
...
@@ -124,6 +153,22 @@
},
});
}
checkBind
:
function
()
{
Api
.
checkBind
({
data
:
{
unique_token
:
this
.
unique_token
}
}).
then
((
res
)
=>
{
let
code
=
res
.
code
if
(
code
==
0
)
{
//已绑定直接登录
this
.
directLogin
()
}
else
{
//其他
this
.
wxPhoneLogin
()
}
},
(
err
)
=>
{
this
.
$toast
.
showToast
(
err
.
msg
)
})
},
}
}
...
...
Write
Preview
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
Please
register
or
sign in
to comment