Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
1e42909d
Commit
1e42909d
authored
Jul 08, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4468cbdf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
8 deletions
+85
-8
index.wxs
filter/index.wxs
+17
-2
index.wxml
src/pages/calendarthemeindex/index.wxml
+1
-1
index.wxml
src/pages/morethemeindex/index.wxml
+1
-2
index.wxml
src/pages/themeindex/index.wxml
+1
-2
index.js
ucenter/index.js
+65
-1
No files found.
filter/index.wxs
View file @
1e42909d
...
...
@@ -11,6 +11,19 @@ function formatDate (date) {
var minute = mi < 10 ? '0' + mi : mi;
return y + '-' + month + '-' + day + ' ' + hour + ':' + minute;
}
function formatDateRemoveYear (date) {
var time = getDate(date * 1000);
var y = time.getFullYear();
var m = time.getMonth() + 1;
var month = m < 10 ? '0' + m : m;
var d = time.getDate();
var day = d < 10 ? '0' + d : d;
var h = time.getHours();
var hour = h < 10 ? '0' + h : h;
var mi = time.getMinutes();
var minute = mi < 10 ? '0' + mi : mi;
return month + '-' + day + ' ' + hour + ':' + minute;
}
function formatDateToSecond (date) {
var time = getDate(date * 1000);
var y = time.getFullYear();
...
...
@@ -38,7 +51,8 @@ function timeCompare (date) {
} else if (timestampCompare < oneDayTimestamp) { // 一小时到24小时之间
text = Math.round(timestampCompare / 1000 / 60 / 60) + '小时前';
} else { // 一天以外
text = formatDate(date);
// text = formatDate(date);
text = formatDateRemoveYear(date)
}
return text
}
...
...
@@ -211,5 +225,6 @@ module.exports = {
inputMaxlengthResolve: inputMaxlengthResolve,
formatDateToSecond: formatDateToSecond,
calculateRate: calculateRate,
gifvideoPoster:gifvideoPoster
gifvideoPoster:gifvideoPoster,
formatDateRemoveYear:formatDateRemoveYear
}
\ No newline at end of file
src/pages/calendarthemeindex/index.wxml
View file @
1e42909d
...
...
@@ -92,7 +92,7 @@
</button>
</form>
<view class="big-title" hover-class="none" hover-stop-propagation="false">{{themeSelect.title}}</view>
<
view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}</view
>
<
!-- <view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}</view> --
>
</view>
<view class="" hover-class="none" hover-stop-propagation="false"
wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}">
...
...
src/pages/morethemeindex/index.wxml
View file @
1e42909d
...
...
@@ -143,8 +143,7 @@
</form>
<view class="big-title" hover-class="none" hover-stop-propagation="false">{{themeSelect.title}}
</view>
<view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}
</view>
<!-- <view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}</view> -->
</view>
<view class="" hover-class="none" hover-stop-propagation="false"
wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}">
...
...
src/pages/themeindex/index.wxml
View file @
1e42909d
...
...
@@ -75,8 +75,7 @@
</button>
</form>
<view class="big-title" hover-class="none" hover-stop-propagation="false">{{themeSelect.title}}</view>
<view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}
</view>
<!-- <view class="big-time" hover-class="none" hover-stop-propagation="false">{{themeSelect.created_at}}</view> -->
</view>
<view class="" hover-class="none" hover-stop-propagation="false"
wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}">
...
...
ucenter/index.js
View file @
1e42909d
...
...
@@ -210,6 +210,7 @@ Page({
consumer_id
:
visitor
&&
visitor
.
id
||
0
}).
then
((
res
)
=>
{
const
{
data
,
code
}
=
res
;
console
.
log
(
'用户信息'
,
res
)
if
(
code
==
30005
)
{
this
.
setData
({
noUserinfo
:
true
...
...
@@ -217,7 +218,6 @@ Page({
}
if
(
code
==
200
)
{
if
(
data
)
{
console
.
log
(
data
)
this
.
setData
({
userInfo
:
data
,
noUserinfo
:
false
,
...
...
@@ -412,11 +412,27 @@ Page({
})
},
goMytask
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/mytask/index?sid=
${
this
.
data
.
sid
}
`
,
})
},
goFeedback
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/feedback/index?sid=
${
this
.
data
.
sid
}
`
,
})
...
...
@@ -427,11 +443,27 @@ Page({
})
},
goScoreMall
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/mall/index?sid=
${
this
.
data
.
sid
}
`
,
})
},
goMyScoreIndex
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/myscoreindex/index?sid=
${
this
.
data
.
sid
}
`
,
})
...
...
@@ -442,6 +474,14 @@ Page({
})
},
goMyAchievement
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
wx
.
navigateTo
({
url
:
`/src/pages/myachievement/index?sid=
${
this
.
data
.
sid
}
&custormeId=
${
visitor
&&
visitor
.
id
||
0
}
`
,
...
...
@@ -449,18 +489,42 @@ Page({
},
// 积分排行榜
toPointsRankList
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/rankingList/index?sid=
${
this
.
data
.
sid
}
&tag=2`
})
},
// 消息
toMyNews
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
wx
.
navigateTo
({
url
:
`/src/pages/mynews/index?sid=
${
this
.
data
.
sid
}
`
})
},
// 成长记录
goGrowthRecord
()
{
if
(
this
.
data
.
noUserinfo
){
wx
.
showToast
({
title
:
'您还未加入该校区'
,
duration
:
2000
,
icon
:
'none'
})
return
}
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
const
userInfo
=
this
.
data
.
userInfo
wx
.
navigateTo
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment