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
2a853778
Commit
2a853778
authored
Mar 27, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cc29dbbe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
23 deletions
+21
-23
index.js
business/pages/calendarthemeindex/index.js
+20
-18
index.wxml
business/pages/calendarthemeindex/index.wxml
+1
-0
index.wxml
business/pages/themeindex/index.wxml
+0
-1
index.wxss
business/pages/themeindex/index.wxss
+0
-4
No files found.
business/pages/calendarthemeindex/index.js
View file @
2a853778
...
...
@@ -119,7 +119,8 @@ Page({
show
:
false
,
status
:
false
,
pushStatus
:
2
//1待发布 2已发布 3已结束
}
},
needRefresh
:
false
},
onLoad
:
function
(
options
)
{
const
{
tid
,
sid
}
=
options
;
...
...
@@ -132,9 +133,8 @@ Page({
},
onReady
:
function
()
{},
onShow
:
function
()
{
if
(
this
.
data
.
showRefresh
&&
this
.
data
.
needRefresh
)
{
if
(
this
.
data
.
needRefresh
)
{
this
.
initPage
();
this
.
data
.
showRefresh
=
false
;
this
.
data
.
needRefresh
=
false
;
}
},
...
...
@@ -174,8 +174,9 @@ Page({
}
else
if
(
from
==
"button"
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
{
title
:
this
.
data
.
params
.
title
,
path
:
`/src/pages/calendarthemeindex/index?tid=
${
this
.
data
.
tid
}
`
title
:
`邀请您参加
${
this
.
data
.
params
.
title
}
打卡`
,
imageUrl
:
imagify
(
this
.
data
.
params
.
land_content
.
cover
),
path
:
`/src/pages/calendarthemeindex/landpage?tid=
${
this
.
data
.
tid
}
`
};
posterLog
({
poster_type
:
2
,
...
...
@@ -198,6 +199,7 @@ Page({
return
{
title
:
shareObj
.
title
,
path
:
shareObj
.
path
,
imageUrl
:
shareObj
.
imageUrl
,
success
:
res
=>
{
if
(
res
.
errMsg
==
"shareAppMessage:ok"
)
{
this
.
data
.
shareObj
=
this
.
data
.
initShareObj
;
...
...
@@ -270,7 +272,8 @@ Page({
themeDetail
({
id
:
this
.
data
.
tid
,
school_id
:
this
.
data
.
sid
,
calendar_date
:
nowDay
calendar_date
:
nowDay
,
extra
:
'land_content'
})
.
then
(
res
=>
{
const
{
code
,
data
}
=
res
;
...
...
@@ -305,10 +308,12 @@ Page({
hadClockTotal
:
Number
(
data
.
record_count
||
0
),
initShareObj
:
{
title
:
`邀请您参加
${
data
.
title
}
打卡`
,
imageUrl
:
imagify
(
data
.
land_content
.
cover
),
path
:
`/src/pages/calendarthemeindex/index?tid=
${
this
.
data
.
tid
}
&id=
${
data
.
class_id
}
`
},
shareObj
:
{
title
:
`邀请您参加
${
data
.
title
}
打卡`
,
imageUrl
:
imagify
(
data
.
land_content
.
cover
),
path
:
`/src/pages/calendarthemeindex/index?tid=
${
this
.
data
.
tid
}
&id=
${
data
.
class_id
}
`
}
});
...
...
@@ -324,8 +329,11 @@ Page({
noCommentTotal
:
Number
(
data
.
not_review_count
||
0
),
"remindTips.pushStatus"
:
data
.
subject_status
});
// TODO班级信息 好像不需要
// if(this.data.id){
// this.getCircleDetail();
// }
this
.
getCircleDetail
();
const
startD
=
data
.
calendar_set
.
start_time
.
split
(
" "
)[
0
];
const
endD
=
data
.
calendar_set
.
end_time
.
split
(
" "
)[
0
];
if
(
this
.
numberDate
(
startD
)
==
this
.
numberDate
(
endD
))
{
...
...
@@ -381,7 +389,6 @@ Page({
.
catch
(
err
=>
{});
},
onPageScroll
:
function
(
e
)
{
// Do something when page scroll
let
that
=
this
;
let
scrollTop
=
e
.
scrollTop
;
let
backTopValue
=
scrollTop
>
800
?
true
:
false
;
...
...
@@ -397,7 +404,6 @@ Page({
school_id
:
this
.
data
.
sid
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getSchoolDetail
(
res
.
data
.
school_id
);
if
(
res
.
data
.
deleted_at
)
{
wx
.
showModal
({
title
:
"提示"
,
...
...
@@ -416,6 +422,7 @@ Page({
this
.
setData
({
circleInfo
:
res
.
data
});
this
.
getSchoolDetail
(
res
.
data
.
school_id
);
}
});
},
...
...
@@ -1311,15 +1318,10 @@ Page({
page
:
1
,
hasmore
:
true
});
this
.
setData
(
{
weeksArr
:
_weeksArr
},
()
=>
{
this
.
clockListGet
(
this
.
data
.
oneSmallSort
,
"init"
);
this
.
getNumberData
();
}
);
this
.
setData
({
weeksArr
:
_weeksArr
})
this
.
clockListGet
(
this
.
data
.
oneSmallSort
,
"init"
);
},
// 选择查看日期
selectday
(
e
)
{
...
...
business/pages/calendarthemeindex/index.wxml
View file @
2a853778
...
...
@@ -121,6 +121,7 @@
data-index="{{index}}"
bind:showcommenteditor="showcommenteditor"
bind:goCommentEditor="goCommentEditor"
bind:goClickShare="goClickShare"
>
</clock-item>
</view>
...
...
business/pages/themeindex/index.wxml
View file @
2a853778
...
...
@@ -63,7 +63,6 @@
</view>
</view>
</view> -->
<view class="greybox"></view>
<view class="shift-box">
<view class="small-sort-item" data-onesmallsort="1" bindtap="onesmallsortselect">
<view class="inner-box {{oneSmallSort == 1 ? 'active' : ''}} ">全部 {{circleAllTotal}}</view>
...
...
business/pages/themeindex/index.wxss
View file @
2a853778
...
...
@@ -71,10 +71,6 @@
margin-right: 5rpx;
vertical-align: middle;
}
.greybox {
height: 24rpx;
background-color: #f2f2f2;
}
.shift-box {
display: flex;
...
...
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