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
f578ab8f
Commit
f578ab8f
authored
May 16, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddd
parent
48906056
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
76 additions
and
10 deletions
+76
-10
index.js
components/activitybar/index.js
+2
-0
banner.png
images/activityindex/banner.png
+0
-0
分享海报.png
images/activityindex/分享海报.png
+0
-0
弹窗.png
images/activityindex/弹窗.png
+0
-0
index.js
src/pages/clockdetail/index.js
+18
-1
index.wxml
src/pages/clockdetail/index.wxml
+4
-1
index.wxss
src/pages/clockdetail/index.wxss
+13
-1
index.js
src/pages/growthrecord/index.js
+19
-0
index.wxml
src/pages/growthrecord/index.wxml
+3
-3
index.wxss
src/pages/growthrecord/index.wxss
+1
-0
index.js
src/pages/schoolindex/index.js
+15
-3
index.wxml
src/pages/schoolindex/index.wxml
+1
-1
No files found.
components/activitybar/index.js
View file @
f578ab8f
...
...
@@ -80,10 +80,12 @@ Component({
this
.
setData
({
isClock
:
false
,
})
this
.
triggerEvent
(
'activityIsClock'
,
false
)
}
else
{
this
.
setData
({
isClock
:
true
,
})
this
.
triggerEvent
(
'activityIsClock'
,
true
)
}
}
}).
catch
((
err
)
=>
{
...
...
images/activityindex/banner.png
0 → 100644
View file @
f578ab8f
83.4 KB
images/activityindex/分享海报.png
0 → 100644
View file @
f578ab8f
136 KB
images/activityindex/弹窗.png
0 → 100644
View file @
f578ab8f
122 KB
src/pages/clockdetail/index.js
View file @
f578ab8f
...
...
@@ -67,7 +67,8 @@ Page({
activityTid
:
constants
.
activity
.
tid
,
isReceived
:
true
,
//是否领奖
atvDailogShow
:
false
,
sessionCode
:
''
sessionCode
:
''
,
activityIsClock
:
false
},
/**
...
...
@@ -819,5 +820,21 @@ Page({
}
}).
catch
((
err
)
=>
{
})
},
goActivity
(){
if
(
this
.
data
.
activityIsClock
){
wx
.
navigateTo
({
url
:
`/src/pages/themeindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
else
{
wx
.
navigateTo
({
url
:
`/src/pages/activityindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
},
activityIsClock
(
e
){
this
.
setData
({
activityIsClock
:
e
.
detail
})
}
})
\ No newline at end of file
src/pages/clockdetail/index.wxml
View file @
f578ab8f
...
...
@@ -81,7 +81,7 @@
</video>
</view>
<view class="" hover-class="none" hover-stop-propagation="false" wx:if="{{clock.school_id==activitySid&&!isReceived&&activityTid!=tid}}">
<activity-bar></activity-bar>
<activity-bar
bind:activityIsClock="activityIsClock"
></activity-bar>
</view>
<view class="dailog-box" hover-class="none" hover-stop-propagation="false" wx:if="{{atvDailogShow&&tid==activityTid}}">
<view class="content animation" hover-class="none" hover-stop-propagation="false">
...
...
@@ -90,4 +90,7 @@
<image class="adimg" src="{{imageRoot}}activityindex/getph.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
</view>
<view class="ad-img-box" hover-class="none" hover-stop-propagation="false" wx:if="{{sid==activitySid}}" bindtap="goActivity" wx:if="{{!isReceived}}">
<image class="" src="{{imageRoot}}2c/common/bi.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" ></image>
</view>
</view>
\ No newline at end of file
src/pages/clockdetail/index.wxss
View file @
f578ab8f
...
...
@@ -116,4 +116,16 @@ to {background: scale(1,1);}
left: 0;
bottom: 10rpx;
opacity: 0;
}
\ No newline at end of file
}
.ad-img-box{
width:100%;
height:150rpx;
position: fixed;
left: 0;
bottom: 0;
z-index: 300;
}
.ad-img-box image{
width:100%;
height:150rpx;
}
\ No newline at end of file
src/pages/growthrecord/index.js
View file @
f578ab8f
...
...
@@ -178,6 +178,9 @@ Page({
commenteditor
:
false
,
// 评论input框
commentclock
:
''
,
//回复的clock
activitySid
:
constants
.
activity
.
sid
,
activityTid
:
constants
.
activity
.
tid
,
activityId
:
constants
.
activity
.
id
,
activityIsClock
:
false
},
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
this
.
innerAudioContext
=
wx
.
createInnerAudioContext
();
// 当前页面唯一的一个音频容器
...
...
@@ -1139,4 +1142,20 @@ Page({
clockList
:
_clockList
})
},
goActivity
(){
if
(
this
.
data
.
activityIsClock
){
wx
.
navigateTo
({
url
:
`/src/pages/themeindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
else
{
wx
.
navigateTo
({
url
:
`/src/pages/activityindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
},
activityIsClock
(
e
){
this
.
setData
({
activityIsClock
:
e
.
detail
})
}
})
\ No newline at end of file
src/pages/growthrecord/index.wxml
View file @
f578ab8f
...
...
@@ -385,9 +385,9 @@
<comment-editor wx:if="{{commenteditor}}" prams="{{commentclock}}" bind:hidecommenteditor="hidecommenteditor" type="2c"></comment-editor>
</view>
<view class="" hover-class="none" hover-stop-propagation="false" wx:if="{{sid==activitySid}}">
<activity-bar></activity-bar>
<activity-bar
bind:activityIsClock="activityIsClock"
></activity-bar>
</view>
<view class="ad-img-box" hover-class="none" hover-stop-propagation="false" wx:if="{{sid==activitySid}}">
<image class="" src="{{imageRoot}}2c/common/bi.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix"
bindtap="remarkChange"
lazy-load="false" binderror="" bindload="" ></image>
<view class="ad-img-box" hover-class="none" hover-stop-propagation="false" wx:if="{{sid==activitySid}}"
bindtap="goActivity"
>
<image class="" src="{{imageRoot}}2c/common/bi.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" ></image>
</view>
</view>
\ No newline at end of file
src/pages/growthrecord/index.wxss
View file @
f578ab8f
...
...
@@ -670,6 +670,7 @@ transition: all 0.2s;
position: fixed;
left: 0;
bottom: 0;
z-index: 300;
}
.ad-img-box image{
width:100%;
...
...
src/pages/schoolindex/index.js
View file @
f578ab8f
...
...
@@ -41,6 +41,7 @@ Page({
activitySid
:
constants
.
activity
.
sid
,
activityTid
:
constants
.
activity
.
tid
,
activityId
:
constants
.
activity
.
id
,
activityIsClock
:
false
},
/**
...
...
@@ -243,8 +244,19 @@ Page({
})
},
goActivity
(){
wx
.
navigateTo
({
url
:
`/src/pages/activityindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
if
(
this
.
data
.
activityIsClock
){
wx
.
navigateTo
({
url
:
`/src/pages/themeindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
else
{
wx
.
navigateTo
({
url
:
`/src/pages/activityindex/index?id=
${
this
.
data
.
activityId
}
&tid=
${
this
.
data
.
activityTid
}
`
});
}
},
activityIsClock
(
e
){
this
.
setData
({
activityIsClock
:
e
.
detail
})
}
})
\ No newline at end of file
src/pages/schoolindex/index.wxml
View file @
f578ab8f
...
...
@@ -83,5 +83,5 @@
>
</btabbar>
<view class="" hover-class="none" hover-stop-propagation="false" wx:if="{{sid==activitySid}}">
<activity-bar></activity-bar>
<activity-bar
bind:activityIsClock="activityIsClock"
></activity-bar>
</view>
\ No newline at end of file
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