Commit 9c4165d4 authored by lvtz's avatar lvtz

fix

parent 7d0f79d8
......@@ -34,13 +34,12 @@
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_clock.png?{{imageVersion}}"></image>
<view class="title">作业打卡</view>
</view>
<!-- <permission-box>
<permission-box>
<view class="opt-btnitem" bindtap="bindRankingList" slot="menubtn">
<view class="opt-btnitem" bindtap="bindRankingList" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_rank.png?{{imageVersion}}"></image>
<view class="title">排行榜</view>
</view>
</permission-box> -->
</permission-box>
</view>
<view class="devided-line"></view>
......
......@@ -211,7 +211,6 @@ Page({
perPage: this.data.perPage,
class_id: this.data.id,
type: Number(this.data.timeType),
consumer_id: visitor && visitor.id
}).then((res) => {
const {
code,
......@@ -316,7 +315,6 @@ Page({
perPage: this.data.perPage,
class_id: this.data.id,
type: Number(this.data.timeType),
consumer_id: visitor && visitor.id
}).then((res) => {
const {
code,
......@@ -423,7 +421,6 @@ Page({
perPage: this.data.perPage,
school_id: this.data.sid,
type: Number(this.data.timeType),
consumer_id: visitor && visitor.id,
class_id: this.data.id
}).then((res) => {
const {
......
......@@ -3,7 +3,7 @@
<view class="container">
<view class="content-topbox">
<view class="tab-box">
<view class="tab-item {{item.rankingType == rankingType?'active':''}}" data-rankingtype="{{item.rankingType}}" wx:for="{{rankingTab}}" bindtap="rankingStatusShift" wx:key="">
<view class="tab-item {{item.rankingType == rankingType?'active':''}}" data-rankingtype="{{item.rankingType}}" wx:for="{{rankingTab}}" bindtap="rankingStatusShift" wx:key="index">
<view class="tab-itemname">{{item.tabname}}</view>
</view>
</view>
......
......@@ -320,6 +320,7 @@ Page({
// consumer_id: visitor && visitor.id,
student_id: app.globalData.currentSchoolStudentId,
subject_id: this.data.tid,
school_id: this.data.sid
}).then((res) => {
const {
code,
......
......@@ -44,6 +44,7 @@ import {
wxGetImageInfo,
wxLogin,
wxOpenLocation,
wxPreviewImage
} from '../../../utilities/wxApi.js';
var app = getApp();
Page({
......@@ -1613,5 +1614,14 @@ Page({
wx.navigateTo({
url: '/'+url
})
}
},
// banner图片预览
prevImg (e) {
const { url } = e.currentTarget.dataset;
const banner = this.data.schoolInfo.banner.src;
wxPreviewImage({
urls: banner,
current: url
})
},
})
\ No newline at end of file
......@@ -23,7 +23,7 @@
</view>
<swiper indicator-dots="{{false}}" autoplay="{{true}}" circular="{{true}}" style="height:420rpx;" bindchange="swiperChange" wx:else>
<swiper-item wx:for="{{schoolInfo.banner.src}}" wx:key="index">
<image src="{{filter.imagify(item)}}" class="slide-image" mode="widthFix"/>
<image src="{{filter.imagify(item)}}" class="slide-image" mode="widthFix" bindtap="prevImg" data-url="{{item}}"/>
</swiper-item>
</swiper>
<view class="banner-numbox {{schoolInfo.notice?'':'setPos'}}" wx:if="{{schoolInfo.banner.type =='img' && schoolInfo.banner.src.length>1}}">
......
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