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
b5bc759d
Commit
b5bc759d
authored
Apr 23, 2020
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
baf06530
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
21 deletions
+24
-21
index.js
src/pages/morethemeindex/index.js
+2
-1
index.wxml
src/pages/morethemeindex/index.wxml
+17
-15
index.js
src/pages/sharemoretheme/index.js
+3
-3
index.wxml
src/pages/sharemoretheme/index.wxml
+2
-2
No files found.
src/pages/morethemeindex/index.js
View file @
b5bc759d
...
...
@@ -2267,7 +2267,8 @@ Page({
},
getModesDetail
(
refresh
)
{
unlockmodesdetail
({
id
:
this
.
data
.
tid
id
:
this
.
data
.
tid
,
extra
:
'land_content'
}).
then
((
res
)
=>
{
const
{
code
,
...
...
src/pages/morethemeindex/index.wxml
View file @
b5bc759d
...
...
@@ -3,13 +3,15 @@
<view class="theme-index-container clearfix">
<view class="container-top-box">
<view class="mask"></view>
<image class="img-mask" src="{{moreTheme.banner ? filter.imagify(moreTheme.banner) : 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png'}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<image class="img-mask" wx:if="{{moreTheme.land_content.cover}}" src="{{filter.imagify(moreTheme.land_content.cover)}}"/>
<image class="img-mask" wx:else src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFit|aspectFill|widthFix"/>
<view class="back-btn" wx:if="{{hasBack}}" style="top:{{statusBarHeight+10}}px" bindtap="goBack">
<image class="" src="{{imageRoot}}2c/morethemeindex/small-left.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" src="{{imageRoot}}2c/morethemeindex/small-left.png" />
</view>
<view class="info-box">
<view class="banner-box" bindtap="goSharemoretheme">
<image class="" src="{{moreTheme.banner ? filter.imagify(moreTheme.banner) : 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png'}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<image class="" wx:if="{{moreTheme.land_content.cover}}" src="{{filter.imagify(moreTheme.land_content.cover)}}" />
<image class="" wx:else src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" />
</view>
<view class="title-box">
<view class="title" bindtap="goSharemoretheme">{{moreTheme.title}}</view>
...
...
@@ -20,19 +22,19 @@
</view>
<view class="share-btn" bindtap="goInviteFriend">
<view class="img-box">
<image class="" src="{{imageRoot}}2c/clockitem/sharewx.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" src="{{imageRoot}}2c/clockitem/sharewx.png" />
</view>
<view class="text">分享</view>
</view>
</view>
</view>
<view class="select-box">
<view class="pre-btn" bindtap="preCard"> <image class="left" src="{{imageRoot}}2c/morethemeindex/normal-right.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>上一关 </view>
<view class="pre-btn" bindtap="preCard"> <image class="left" src="{{imageRoot}}2c/morethemeindex/normal-right.png" />上一关 </view>
<view class="subject-title" bindtap="showSelectClass">
<view class="title">{{themeSelect.title}}</view>
<image class="" src="{{imageRoot}}2c/morethemeindex/normal-right.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" src="{{imageRoot}}2c/morethemeindex/normal-right.png" />
</view>
<view class="next-btn" bindtap="nextCard">下一关 <image class="" src="{{imageRoot}}2c/morethemeindex/normal-right.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/></view>
<view class="next-btn" bindtap="nextCard">下一关 <image class="" src="{{imageRoot}}2c/morethemeindex/normal-right.png" /></view>
</view>
<view class="theme-detail-box " >
...
...
@@ -80,7 +82,7 @@
style="{{moreTheme.isClockTime&&moreTheme.max_clock_count-themeSelect.my_clock_count>0?'animation: pulse 2s .15s linear infinite;':'opacity:0.3'}}"
bindtap="{{themeSelect.force_status==1&&!isReaded?'readtheme':'goClock'}}">
{{ moreTheme.isClockTime&&moreTheme.max_clock_count-themeSelect.my_clock_count>0 ? (themeSelect.force_status==1&&!isReaded?'阅读':'立即打卡') : '已打卡'}}
<image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png" />
</view>
</view>
<view class="operat-box" wx:if="{{themeSelect.my_clock_count<=0 && moreTheme.unlock_rule_type==2 && !commenteditor}}">
...
...
@@ -92,11 +94,11 @@
有效打卡时段:{{moreTheme.clock_start_time}}:00-{{moreTheme.clock_end_time}}:00
</view>
</view> -->
<view class="big-btn deblocking-btn {{animationStatus?'animation-myshake':''}} {{animationStatus==2?'animation-myhide':''}}" bindtap="postUnclock" style="{{moreTheme.unlock_limit - moreTheme.my_today_unlock_count <= 0?'opacity:0.3':'animation: pulse 2s .15s linear infinite;'}}" wx:if="{{themeSelect.my_unlock_count<=0}}"><image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>解锁</view>
<view class="big-btn deblocking-btn {{animationStatus?'animation-myshake':''}} {{animationStatus==2?'animation-myhide':''}}" bindtap="postUnclock" style="{{moreTheme.unlock_limit - moreTheme.my_today_unlock_count <= 0?'opacity:0.3':'animation: pulse 2s .15s linear infinite;'}}" wx:if="{{themeSelect.my_unlock_count<=0}}"><image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png" />解锁</view>
<view class="big-btn"
style="{{moreTheme.isClockTime?'animation: pulse 2s .15s linear infinite;':'opacity:0.3'}}"
bindtap="{{themeSelect.force_status==1&&!isReaded?'readtheme':'goClock'}}" wx:else>
<image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="lightbtnbg" src="{{imageRoot}}2c/common/lightbtnbg.png" />
{{themeSelect.force_status==1&&!isReaded?'阅读':'立即打卡'}}
</view>
</view>
...
...
@@ -265,7 +267,7 @@
<view class="content" >
<view class="content-top" >
<image class="" src="{{imageRoot}}morethemeindex/go-next.png?{{imageVersion}}"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
></image>
></image>
</view>
<view class="content-center" >
<view class="title" >闯关成功</view>
...
...
@@ -286,7 +288,7 @@
<view class="content" >
<view class="content-top" >
<image class="" src="{{imageRoot}}morethemeindex/yesgo.png?{{imageVersion}}"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
></image>
></image>
</view>
<view class="content-center" >
<view class="title" >恭喜你通关成功!</view>
...
...
@@ -318,8 +320,8 @@
<view class="join-btn" bindtap="hidePasswordDailog">立即加入</view>
<view class="img-tips">没有密码?点击下方图片去加入学校无需密码的打卡课程</view>
<view class="ad-banner-box" bindtap="goWebsiteindex">
<image class="" wx:if="{{moreTheme.ad_banner && moreTheme.ad_banner !='null'}}" src="{{filter.imagify(moreTheme.ad_banner)}}"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" wx:else src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/morethemeindex/adbanner.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" wx:if="{{moreTheme.ad_banner && moreTheme.ad_banner !='null'}}" src="{{filter.imagify(moreTheme.ad_banner)}}" />
<image class="" wx:else src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/morethemeindex/adbanner.png" />
</view>
</view>
...
...
@@ -335,7 +337,7 @@
</view>
<view class="status-box">
<view class="status-icon did-icon" wx:if="{{item && item.my_clock_count > 0}}">
<image class="" src="{{imageRoot}}2b/loginregistermgt/smallyes.png?{{imageVersion}}"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""
/>
<image class="" src="{{imageRoot}}2b/loginregistermgt/smallyes.png?{{imageVersion}}" />
</view>
<view class="status-icon" wx:else style="{{(item.my_unlock_count == 0 || !item) ? 'background:rgba(199,199,199,1);' :''}}">
<view class="inner"></view>
...
...
src/pages/sharemoretheme/index.js
View file @
b5bc759d
...
...
@@ -402,12 +402,12 @@ Page({
},
previewbanner
()
{
const
that
=
this
;
if
(
!
that
.
data
.
moreTheme
.
banner
)
{
if
(
!
that
.
data
.
moreTheme
.
land_content
)
{
return
;
}
wxPreviewImage
({
urls
:
[
that
.
data
.
moreTheme
.
bann
er
],
current
:
that
.
data
.
moreTheme
.
bann
er
urls
:
[
that
.
data
.
moreTheme
.
land_content
.
cov
er
],
current
:
that
.
data
.
moreTheme
.
land_content
.
cov
er
});
},
// 视频播放相关代码
...
...
src/pages/sharemoretheme/index.wxml
View file @
b5bc759d
...
...
@@ -8,8 +8,8 @@
</btn-drag>
<view class="sharemoretheme-box">
<view class="top-img-box">
<
!-- <image mode="aspectFill" src="https://cdn.img.shangjiadao.cn/source/images/dakav4/morethemeindex/unlockindex.png" class="img-box" alt="Image" /> --
>
<image
mode="aspectFill" src="{{filter.imagify(moreTheme.banner || 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png')}}
" bindtap="previewbanner" class="img-box" alt="Image" />
<
image wx:if="{{moreTheme.land_content}}" mode="aspectFill" src="{{filter.imagify(moreTheme.land_content.cover)}}" bindtap="previewbanner" class="img-box" alt="Image" /
>
<image
wx:else mode="aspectFill" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png
" bindtap="previewbanner" class="img-box" alt="Image" />
</view>
<view class="title-box">{{moreTheme.title}}</view>
<view class="coursecountbox">
...
...
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