Commit b5bc759d authored by lvtz's avatar lvtz

fix

parent baf06530
......@@ -2267,7 +2267,8 @@ Page({
},
getModesDetail(refresh) {
unlockmodesdetail({
id: this.data.tid
id: this.data.tid,
extra: 'land_content'
}).then((res) => {
const {
code,
......
......@@ -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>
......
......@@ -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.banner],
current: that.data.moreTheme.banner
urls: [that.data.moreTheme.land_content.cover],
current: that.data.moreTheme.land_content.cover
});
},
// 视频播放相关代码
......
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment