Commit fefc3ebb authored by lvtz's avatar lvtz

fix wx:key at B

parent e327287a
......@@ -12,14 +12,14 @@
</view>
</view>
<view class="weeks b lr ac">
<view class="week fs28" wx:for="{{calendar.weeksCh}}" wx:key="{{index}}" data-idx="{{index}}">{{item}}</view>
<view class="week fs28" wx:for="{{calendar.weeksCh}}" wx:key="index" data-idx="{{index}}">{{item}}</view>
</view>
<view class="perspective">
<view class="days b lr box-wrap {{calendar.leftSwipe ? 'leftRoate' : ''}} {{calendar.rightSwipe ? 'rightRoate' : ''}}" bindtouchstart="calendarTouchstart" bindtouchmove="calendarTouchmove" bindtouchend="calendarTouchend">
<view wx:if="{{calendar.empytGrids}}" class="grid disable-day-color b ac pc" wx:for="{{calendar.empytGrids}}" wx:key="{{index}}" data-idx="{{index}}">
<view wx:if="{{calendar.empytGrids}}" class="grid disable-day-color b ac pc" wx:for="{{calendar.empytGrids}}" wx:key="index" data-idx="{{index}}">
<view class="day b ac pc">{{item}}</view>
</view>
<view class="grid normal-day-color b ac pc" wx:for="{{calendar.days}}" wx:key="{{index}}" data-disable="{{item.disable}}" data-idx="{{index}}" bindtap="tapDayItem">
<view class="grid normal-day-color b ac pc" wx:for="{{calendar.days}}" wx:key="index" data-disable="{{item.disable}}" data-idx="{{index}}" bindtap="tapDayItem">
<view wx:if="{{!calendar.todoLabelCircle}}" class="dot-day-height b tb ac pc">
<view class="day border-radius {{(item.week === 0 || item.week === 6) ? 'pink-color' : ''}} {{item.choosed ? 'day-choosed-color day-choosed-bg' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:if="{{!item.todoText}}">{{item.day}}</view>
<view wx:if="{{item.showTodoLabel}}" class="{{item.todoText ? 'todo-text' : 'todo-dot'}} {{calendar.todoLabelPos === 'bottom' ? 'todo-text-bottom' : 'todo-text-top'}}" style="background-color: {{calendar.todoLabelColor}};">{{item.todoText}}</view>
......@@ -28,7 +28,7 @@
<view class="day border-radius {{(item.week === 0 || item.week === 6) ? 'pink-color' : ''}} {{item.showTodoLabel ? 'day-circle' : '' }} {{item.choosed ? 'day-choosed-color day-choosed-bg' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc">{{item.day}}</view>
</view>
</view>
<view class="grid disable-day-color b ac pc" wx:for="{{calendar.lastEmptyGrids}}" wx:key="{{index}}" data-idx="{{index}}">
<view class="grid disable-day-color b ac pc" wx:for="{{calendar.lastEmptyGrids}}" wx:key="index" data-idx="{{index}}">
<view class="day b ac pc">{{item}}</view>
</view>
</view>
......
......@@ -24,7 +24,7 @@
<view class="item-box" >
<view class="item-box" >
<view class="item" wx:for="{{weeksArr}}"
wx:key="{{index}}">
wx:key="index">
<view class="week" >{{item.week}}</view>
<view class="day {{item.isSelect?'active':''}}" data-item="{{item}}" bindtap="selectday"
>
......
......@@ -164,7 +164,7 @@
<view class="select-days" selectable="false" space="false" decode="false"
wx:if="{{selectRestDays&&selectRestDays.length>0}}">
<view class="day-item" selectable="false" space="false" decode="false" wx:for="{{selectRestDays}}"
wx:key="{{index}}">
wx:key="index">
{{item.show}},
</view>
</view>
......@@ -176,7 +176,7 @@
</view>
<view class="week-select" >
<view class="week-item {{item.isSlect?'selected-item':''}}" bindtap="selectrestdays" data-item="{{item}}"
wx:for="{{weeks}}" wx:key="{{index}}"
wx:for="{{weeks}}" wx:key="index"
style="{{index==6?'margin:0':'1'}}">
{{item.name}}
</view>
......
......@@ -66,7 +66,7 @@
<view class="weeks-box" >
<view class="item-box" >
<view class="item-box" >
<view class="item" wx:for="{{weeksArr}}" wx:key="{{index}}">
<view class="item" wx:for="{{weeksArr}}" wx:key="index">
<view class="week" >{{item.week}}</view>
<view class="day {{item.isSelect?'active':''}}" data-item = "{{item}}" bindtap="selectday" >{{item.isToday?'今': item.isRise?'休':item.day}}</view>
</view>
......
......@@ -53,7 +53,7 @@
</view>
</view>
<view class="clearfix" >
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
......
......@@ -9,7 +9,7 @@
</view>
<view class="list-box">
<block wx:for="{{classList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" data-opttype="1" bindtap="listenCheckboxChange" wx:key="{{index}}">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" data-opttype="1" bindtap="listenCheckboxChange" wx:key="index">
<view class="title-box">
<view class="title">{{item.title}}</view>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{item.id==selectItem.id}}"></image>
......@@ -28,7 +28,7 @@
</view>
<view class="list-box">
<block wx:for="{{classList2}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" data-opttype="2" bindtap="listenCheckboxChange" wx:key="{{index}}">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" data-opttype="2" bindtap="listenCheckboxChange" wx:key="index">
<view class="title-box">
<view class="title">{{item.course.title}}</view>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{item.id==selectItem.id}}"></image>
......
......@@ -153,7 +153,7 @@
</view>
<view class="circlelist-content" wx:if="{{!emptyPage}}">
<view class="" wx:for="{{mixedthemeList}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="{{listIndex}}">
<view class="circle-item mb24 {{item.subject_type==2?'rili':''}}" wx:for="{{listItem}}" wx:for-item="item" data-theme="{{item}}" wx:key="{{index}}" catchtap="goThemeIndex">
<view class="circle-item mb24 {{item.subject_type==2?'rili':''}}" wx:for="{{listItem}}" wx:for-item="item" data-theme="{{item}}" wx:key="index" catchtap="goThemeIndex">
<block wx:if="{{item.subject_type == 1}}">
<image class="taskbg assignmentbg" src="{{imageRoot}}2b/circleindex/assignment.png?{{imageVersion}}"></image>
<view class="circlename">
......
......@@ -13,7 +13,7 @@
<view class="userlist-box" style="border-top: 1px solid rgba(0,0,0,.05)" wx:if="{{memberTotal>0}}">
<view class="" wx:for="{{memberList}}" wx:for-index="idx" wx:for-item="ListItem" wx:key="idex">
<view class="list-item" wx:for="{{ListItem}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" data-item="{{item}}" bindtap="listenCheckboxChange">
<view class="list-item" wx:for="{{ListItem}}" wx:for-item="item" data-item="{{item}}" wx:key="index" data-item="{{item}}" bindtap="listenCheckboxChange">
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{filter.checkSelect(item, checkedIdArr)}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
......
<view class="container">
<view class="classhour-box">
<view class="classhour-item" wx:for="{{unlockSubjectList}}" wx:key="{{index}}" data-item="{{item}}">
<view class="classhour-item" wx:for="{{unlockSubjectList}}" wx:key="index" data-item="{{item}}">
<view class="item-label">关卡{{item.sort}}</view>
<view class="item-line">
<view class="item-left"></view>
......@@ -35,7 +35,7 @@
</view>
</view>
<view class="classhour-item item-label-dark'" wx:for="{{classhourList}}" wx:key="{{index}}">
<view class="classhour-item item-label-dark'" wx:for="{{classhourList}}" wx:key="index">
<view class="item-label">关卡{{item.sort}}</view>
<view class="unedit-tip">该关卡还未编辑~</view>
<view class="item-edit" data-sort="{{item.sort}}" bindtap="unlockSubjectEditNew" data-indexset="{{index}}">去编辑关卡</view>
......
......@@ -50,7 +50,7 @@
<view class="userlist-box" wx:if="{{!studentEmptyPage}}">
<block wx:for="{{memberList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" bindtap="bindSelectStudent" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" data-bigindex="{{bigindex}}" data-index="{{index}}">
<view class="list-item" bindtap="bindSelectStudent" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" wx:key="index" data-bigindex="{{bigindex}}" data-index="{{index}}">
<image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
<view class="nickname">{{item.name}}</view>
......
......@@ -16,7 +16,7 @@
</view>
</view>
<view class="ranking-box" wx:if="{{rankingType == 1 && clockRankingTotal>0}}">
<view class="ranking-item" wx:for="{{clockRankingList}}" wx:key="{{index}}">
<view class="ranking-item" wx:for="{{clockRankingList}}" wx:key="index">
<view class="item-indexbox">
<image class="item-index icon" wx:if="{{index==0}}" src="{{imageRoot}}2b/common/ranking/num1.png?{{imageVersion}}"></image>
<image class="item-index icon" wx:if="{{index==1}}" src="{{imageRoot}}2b/common/ranking/num2.png?{{imageVersion}}"></image>
......@@ -34,7 +34,7 @@
</view>
</view>
<view class="ranking-box" wx:if="{{rankingType == 2 && likeRankingTotal>0}}">
<view class="ranking-item" wx:for="{{likeRankingList}}" wx:key="{{index}}">
<view class="ranking-item" wx:for="{{likeRankingList}}" wx:key="index">
<view class="item-indexbox">
<image class="item-index icon" wx:if="{{index==0}}" src="{{imageRoot}}2b/common/ranking/num1.png?{{imageVersion}}"></image>
<image class="item-index icon" wx:if="{{index==1}}" src="{{imageRoot}}2b/common/ranking/num2.png?{{imageVersion}}"></image>
......@@ -52,7 +52,7 @@
</view>
</view>
<view class="ranking-box" wx:if="{{rankingType == 3 && pointsRankingTotal>0}}">
<view class="ranking-item" wx:for="{{pointsRankingList}}" wx:key="{{index}}">
<view class="ranking-item" wx:for="{{pointsRankingList}}" wx:key="index">
<view class="item-indexbox">
<image class="item-index icon" wx:if="{{index==0}}" src="{{imageRoot}}2b/common/ranking/num1.png?{{imageVersion}}"></image>
<image class="item-index icon" wx:if="{{index==1}}" src="{{imageRoot}}2b/common/ranking/num2.png?{{imageVersion}}"></image>
......
......@@ -339,7 +339,7 @@
<view class="remind-box" wx:if="{{tabStatus==2}}" bindtap="remindStudent" >提醒查看</view>
<view class="list-box" scroll-y="true" bindscrolltolower="studentScrolltolower">
<block wx:if="{{tabStatus==1}}">
<view class="list-item" wx:for="{{readList}}" wx:key="{{index}}">
<view class="list-item" wx:for="{{readList}}" wx:key="index">
<view class="info">
<image class="" wx:if="{{item.school_student.avatar}}" src="{{filter.imagify(item.school_student.avatar, 'image/resize,w_160/format,jpg')}}"/>
<image class="" wx:else src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}"/>
......@@ -350,7 +350,7 @@
</view>
</block>
<block wx:if="{{tabStatus==2}}">
<view class="list-item" wx:for="{{unReadList}}" wx:key="{{index}}">
<view class="list-item" wx:for="{{unReadList}}" wx:key="index">
<view class="info">
<image class="" wx:if="{{item.school_student.avatar}}" src="{{filter.imagify(item.school_student.avatar, 'image/resize,w_160/format,jpg')}}" />
<image class="" wx:else src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}"/>
......
......@@ -75,7 +75,7 @@
</view>
<view class="line-20" ></view>
<view class="student-list">
<view class="student-item" wx:for="{{callsList}}" wx:key="{{index}}">
<view class="student-item" wx:for="{{callsList}}" wx:key="index">
<view class="info-box">
<image class="avatar" src="{{filter.imagify(item.formal_school_student.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.formal_school_student.avatar}}"></image>
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
......
......@@ -38,7 +38,7 @@
</view>
</view>
<view class="" wx:if="{{!emptyPage}}">
<view class="list-item" wx:for="{{callsList}}" wx:key="{{index}}">
<view class="list-item" wx:for="{{callsList}}" wx:key="index">
<!-- 来自点名详情 编辑 -->
<view class="item-left" wx:if="{{from=='rollcalldetail'}}">
<image class="avatar" src="{{filter.imagify(item.formal_school_student.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.formal_school_student.avatar}}"></image>
......@@ -106,7 +106,7 @@
<view class="leave-examination-list" wx:if="{{showApprovalBox}}">
<view class="title-box">有 {{unApprovalTotal}} 条请假审批需先处理</view>
<view class="leave-student-list">
<view class="list-item" wx:for="{{leavesList}}" wx:key="{{index}}">
<view class="list-item" wx:for="{{leavesList}}" wx:key="index">
<view class="left">
<view class="avatar">
<image class="" src="{{filter.imagify(item.student.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.student.avatar}}"></image>
......
......@@ -9,7 +9,7 @@
<view class="line-20"></view>
<view class="userlist-box" wx:if="{{memberTotal>0}}">
<!-- <block wx:for="{{memberList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex"> -->
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" bindtap="listenCheckboxChange">
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="index" bindtap="listenCheckboxChange">
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{filter.checkSelect(item, checkedIdArr)}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
......
......@@ -114,7 +114,7 @@
<view class="right" bindtap="goclasslist" data-btnname="goclasslist2">更多班级 <image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"/></view>
</view>
<view class="content-box" wx:if="{{!emptyPage}}">
<view class="class-item" wx:for="{{classrecentlyList}}" wx:key="{{index}}" data-item="{{item}}" bindtap="goClassDetail">
<view class="class-item" wx:for="{{classrecentlyList}}" wx:key="index" data-item="{{item}}" bindtap="goClassDetail">
<view class="icon"></view>
<view class="name">{{item.class.title}}</view>
</view>
......
......@@ -31,7 +31,7 @@
<view class="leave-student">
<view class="bule-line-title"><view class="blue-line"></view>请假学员</view>
<view class="leave-student-list" wx:if="{{leavesList.length>0}}">
<view class="item" wx:for="{{leavesList}}" wx:key="{{index}}">
<view class="item" wx:for="{{leavesList}}" wx:key="index">
<view class="nickname-box">
<view class="left">{{item.student.name}}</view>
<view class="right">
......@@ -51,7 +51,7 @@
<view class="sure-student">
<view class="bule-line-title"><view class="blue-line"></view>确认到课学员情况</view>
<view class="sure-student-list" wx:if="{{sureStudents.length>0}}">
<view class="item" wx:for="{{sureStudents}}" wx:key="{{index}}">
<view class="item" wx:for="{{sureStudents}}" wx:key="index">
<view class="nickname-box">
<view class="left">{{item.formal_school_student.name || item.formal_school_student.nickname}}</view>
<view class="right">{{item.confirm_status == 2 ? '已确认' : '未确认'}}</view>
......@@ -64,7 +64,7 @@
<view class="sure-student unsure-student">
<view class="bule-line-title"><view class="blue-line"></view>待确认到课情况</view>
<view class="sure-student-list" wx:if="{{unSureStudents.length>0}}">
<view class="item" wx:for="{{unSureStudents}}" wx:key="{{index}}">
<view class="item" wx:for="{{unSureStudents}}" wx:key="index">
<view class="nickname-box">
<view class="left">{{item.formal_school_student.name || item.formal_school_student.nickname}}</view>
<view class="status {{item.read_status == 2 ? 'readed' : ''}}">{{item.read_status == 2 ? '已读' : '未读'}}</view>
......
......@@ -15,7 +15,7 @@
<!-- <view class="classselectedmodal" hidden="{{!schoolShow}}">
<view class="modalmask" bindtap="selectSchool"></view>
<view class="classbox" style="top:{{statusBarHeight+titleBarHeight}}px">
<view class="classitem" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="{{index}}">
<view class="classitem" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="index">
<view class="classitemname" selectable="false" space="false" decode="false">{{item.title}}</view>
<image class="selecticon" wx:if="{{item.id == selectSchoolData.id}}" src="{{imageRoot}}2b/circleindex/rightblack.png?{{imageVersion}}" ></image>
</view>
......
......@@ -9,7 +9,7 @@
<view class="img-box">
<view class="scroll-view-box">
<scroll-view scroll-x scroll-left="{{scrollLeft}}" class="card-wrapper">
<view class="card-item" bindtap="handleSelectImg" data-index="{{index}}" wx:for="{{imgArr}}" wx:key="{{index}}">
<view class="card-item" bindtap="handleSelectImg" data-index="{{index}}" wx:for="{{imgArr}}" wx:key="index">
<image class="{{AcSubIndex==index?'act-item':''}}" src="{{imgInfoList[index].isDraw ? item : filter.imagify(item, 'image/resize,w_160/format,jpg/quality,q_20')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
</scroll-view>
......@@ -24,7 +24,7 @@
<image class="cur-img" src="{{imgInfoList[AcSubIndex].isDraw ? imgArr[AcSubIndex] : filter.imagify(imgArr[AcSubIndex])}}" style="height:{{imgInfoList[AcSubIndex].imageHeight}}px" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<canvas class="myCanvas {{shortCanvas? 'shortCanvas': ''}}" canvas-id="myCanvas" disable-scroll="true" bindtouchstart="doodleStart" bindtouchend="doodleEnd" bindtouchmove="doodleMove" style="width: {{imgInfoList[AcSubIndex].imageWidth}}px; height:{{imgInfoList[AcSubIndex].imageHeight}}px"></canvas>
<block wx:if="{{textArr.length>0}}">
<view class="text-box" animation="{{animationData}}" bindtouchstart="textMoveStart" bindtouchmove="textMove" bindtouchend="textMoveEnd" wx:for="{{textArr}}" data-index="{{index}}" wx:key="{{index}}" style="left: {{item.data.left}}px; top: {{item.data.top}}px"><view class="close" bindtap="deleteText"><image class="" src="{{imageRoot}}2b/comment/icon_cancal.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>{{item.value}}</view>
<view class="text-box" animation="{{animationData}}" bindtouchstart="textMoveStart" bindtouchmove="textMove" bindtouchend="textMoveEnd" wx:for="{{textArr}}" data-index="{{index}}" wx:key="index" style="left: {{item.data.left}}px; top: {{item.data.top}}px"><view class="close" bindtap="deleteText"><image class="" src="{{imageRoot}}2b/comment/icon_cancal.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>{{item.value}}</view>
</block>
</view>
<view class="input-wrapper" wx:if="{{inputBoxShow}}">
......@@ -33,7 +33,7 @@
</view>
<cover-view class="color-box" wx:if="{{colorboxShow}}">
<cover-view class="content">
<cover-view class="color-item {{ActColorIndex==index?'act-color-item':''}}" bindtap="handleSelectColor" data-index="{{index}}" wx:for="{{colors}}" wx:key="{{index}}" style="background: {{item}}"></cover-view>
<cover-view class="color-item {{ActColorIndex==index?'act-color-item':''}}" bindtap="handleSelectColor" data-index="{{index}}" wx:for="{{colors}}" wx:key="index" style="background: {{item}}"></cover-view>
</cover-view>
</cover-view>
</view>
......
......@@ -2,7 +2,7 @@
<view class="container">
<view class="userlist-box" wx:if="{{!emptyPage}}">
<block wx:for="{{courseList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" bindtap="listenCheckboxChange">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-item="{{item}}" wx:key="index" bindtap="listenCheckboxChange">
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{item.id == checkedItems.id}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<!-- <image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}"></image> -->
......
......@@ -40,7 +40,7 @@
<view class="theme-list" wx:if="{{!emptyPage}}">
<block wx:for="{{mixedthemeList}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="{{listIndex}}">
<view class="circle-item mb24 {{item.subject_type==2?'rili':''}}" wx:for="{{listItem}}" wx:for-item="item" data-theme="{{item}}" wx:key="{{index}}" catchtap="goThemeIndex">
<view class="circle-item mb24 {{item.subject_type==2?'rili':''}}" wx:for="{{listItem}}" wx:for-item="item" data-theme="{{item}}" wx:key="index" catchtap="goThemeIndex">
<block wx:if="{{item.subject_type == 1}}">
<image class="taskbg assignmentbg" src="{{imageRoot}}2b/circleindex/assignment.png?{{imageVersion}}"></image>
<view class="circlename">
......
......@@ -28,7 +28,7 @@
</view>
</view>
<view class="bigtab-box {{curBigTab}}">
<view class="shiftitem {{index==actBigTabsIndex?'active':''}}" data-index="{{index}}" bindtap="bigTabsChange" wx:for="{{bigTabs}}" wx:key="{{index}}">
<view class="shiftitem {{index==actBigTabsIndex?'active':''}}" data-index="{{index}}" bindtap="bigTabsChange" wx:for="{{bigTabs}}" wx:key="index">
<view class="shiftname">{{item.name}}</view>
<view class="shiftline"></view>
</view>
......
......@@ -12,7 +12,7 @@
<view class="form-item">
<view class="form-label"><text>性</text><text>别</text></view>
<view class="form-content">
<view class="radio-item" bindtap="chooseGender" wx:for="{{genderlist}}" wx:key="{{index}}" data-selectgender="{{item.value}}">
<view class="radio-item" bindtap="chooseGender" wx:for="{{genderlist}}" wx:key="index" data-selectgender="{{item.value}}">
<image class="radio-label" src="{{imageRoot}}2b/common/icon_gender_{{item.value}}.png?{{imageVersion}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{item.value==params.gender}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
......@@ -81,7 +81,7 @@
</view>
<scroll-view class="scroll-content" wx:if="{{!studentemptyPage}}" scroll-y lower-threhold="200" bindscrolltolower="scrolltolowerStudent" style="max-height: 800rpx;height: 800rpx;">
<view class="user-list" wx:for="{{memberList}}" wx:for-index="idx" wx:for-item="listItem" wx:key="idx">
<view class="list-item" wx:for="{{listItem}}" wx:key="{{index}}" bindtap="sureSelectStudent" data-item="{{item}}">
<view class="list-item" wx:for="{{listItem}}" wx:key="index" bindtap="sureSelectStudent" data-item="{{item}}">
<image class="item-avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
<image class="item-avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
<view class="item-name">{{item.name}}</view>
......@@ -101,7 +101,7 @@
<view class="modal-content">
<scroll-view class="scroll-content" wx:if="{{!courseemptyPage}}" scroll-y lower-threhold="200" bindscrolltolower="scrolltolowerCourse">
<view class="course-list" wx:for="{{courseList}}" wx:for-index="idx" wx:for-item="listItem" wx:key="idx">
<view class="list-item {{courseSelected && item.id==courseSelected.id? 'active':''}}" wx:for="{{listItem}}" wx:key="{{index}}" bindtap="sureSelectCourse" data-item="{{item}}">{{item.title}}</view>
<view class="list-item {{courseSelected && item.id==courseSelected.id? 'active':''}}" wx:for="{{listItem}}" wx:key="index" bindtap="sureSelectCourse" data-item="{{item}}">{{item.title}}</view>
</view>
<view class="loadmore" wx:if="{{coursehasmore}}">上拉加载更多</view>
<list-loading loading="{{courselistloading}}"></list-loading>
......
......@@ -11,7 +11,7 @@
</view>
<view class="user-list" wx:if="{{!emptyPage}}">
<block wx:for="{{memberList}}" wx:for-index="idx" wx:for-item="listItem" wx:key="idx">
<view class="user-item" wx:for="{{listItem}}" wx:key="{{index}}" bindtap="goGrowth" data-item="{{item}}">
<view class="user-item" wx:for="{{listItem}}" wx:key="index" bindtap="goGrowth" data-item="{{item}}">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......
......@@ -2,7 +2,7 @@
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="exchangebusiness-container clearfix">
<view class="content-item" wx:for="{{schoolList}}" wx:key="{{index}}" >
<view class="content-item" wx:for="{{schoolList}}" wx:key="index" >
<view bindtap='godeskcenter' data-item="{{item}}">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton"></button>
......
......@@ -8,7 +8,7 @@
</view>
<view class="center" style="height: calc(100vh - {{(titleBarHeight+statusBarHeight)*2+460}}rpx);">
<view class="content-tab">
<view class="tab-item" wx:for="{{tabList}}" wx:key="{{index}}" bindtap="selectTab" data-index="{{index}}">
<view class="tab-item" wx:for="{{tabList}}" wx:key="index" bindtap="selectTab" data-index="{{index}}">
<view class="big-wrapper">
<view class="big-inner" >
<view class="mark" wx:if="{{actIndex == index}}"></view>
......
......@@ -7,7 +7,7 @@
<text class="count" >{{memberTotal}}</text>
<text class="" >个学员线索</text>
</view>
<view class="customer-item clearfix" wx:for="{{memberList}}" wx:key="{{index}}">
<view class="customer-item clearfix" wx:for="{{memberList}}" wx:key="index">
<view class="info-box">
<view class="avator-box">
<image class=""src="{{filter.imagify(item.avatar)}}"></image>
......
......@@ -15,7 +15,7 @@
</view>
<view class="sourse" wx:if="{{clueDetail.sourceTypeItem && clueDetail.sourceTypeItem.id!=10}}">{{clueDetail.sourceTypeItem.name}}</view>
<view class="sourse" wx:if="{{clueDetail.customers && clueDetail.customers.length>0}}">
<view class="sourse-item" wx:for="{{clueDetail.customers}}" wx:key="{{index}}">活动:{{item.activity_title}}</view>
<view class="sourse-item" wx:for="{{clueDetail.customers}}" wx:key="index">活动:{{item.activity_title}}</view>
</view>
</view>
......@@ -31,7 +31,7 @@
<view class="recordsList-box">
<view class="title">销售动态</view>
<block wx:if="{{!emptyPage}}">
<view class="item-box" wx:for="{{recordsList}}" wx:key="{{index}}">
<view class="item-box" wx:for="{{recordsList}}" wx:key="index">
<view class="line-box">
<image class="bluedot" src="{{imageRoot}}2b/potentialcustomer/bluedot.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="line" wx:if="{{(index+1) < recordsList.length}}"></view>
......
......@@ -91,7 +91,7 @@
</view>
</view>
<view class="extra-info-box" wx:if="{{selectedCustomer.custom.length > 0}}">
<view class="extra-info-item" wx:for="{{selectedCustomer.custom}}" wx:key="{{index}}">
<view class="extra-info-item" wx:for="{{selectedCustomer.custom}}" wx:key="index">
<view class="question" >
<view class="bluedot" ></view>
<view class="questiontext" >{{item.value}}</view>
......
......@@ -114,7 +114,7 @@
</view>
<view class="ranklistbox">
<view class="" wx:if="{{!totalEmpty}}">
<view class="rankingList-item" wx:for="{{totalList}}" wx:key="{{index}}">
<view class="rankingList-item" wx:for="{{totalList}}" wx:key="index">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......@@ -169,7 +169,7 @@
</view>
</view>
<view class="ranklistbox" wx:if="{{!liketotalEmpty}}">
<view class="rankingList-item" wx:for="{{liketotalList}}" wx:key="{{index}}">
<view class="rankingList-item" wx:for="{{liketotalList}}" wx:key="index">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......@@ -226,7 +226,7 @@
</view>
</view>
<view class="ranklistbox" wx:if="{{!pointsTotalEmpty}}">
<view class="rankingList-item" wx:for="{{pointsTotalList}}" wx:key="{{index}}">
<view class="rankingList-item" wx:for="{{pointsTotalList}}" wx:key="index">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......
......@@ -37,7 +37,7 @@
style="height: 145px"
current="{{swiperIndex}}"
>
<swiper-item wx:for="{{params.banner}}" wx:key="{{index}}">
<swiper-item wx:for="{{params.banner}}" wx:key="index">
<image class="proswiperimg" src="{{filter.imagify(item)}}"></image>
</swiper-item>
</swiper>
......@@ -58,7 +58,7 @@
<image class="del-icon" wx:if="{{params.banner.length!=0}}"bindtap="delBanner" src="{{imageRoot}}2b/common/reddelicon.png?{{imageVersion}}" ></image>
</view>
<view class="swiperpagination">
<view class="dot {{swiperIndex == index ? 'active' : ''}}" wx:for="{{params.banner.length}}" wx:key="{{index}}"></view>
<view class="dot {{swiperIndex == index ? 'active' : ''}}" wx:for="{{params.banner.length}}" wx:key="index"></view>
<!-- <view class="dot" ></view>
<view class="dot active" ></view>
<view class="dot" ></view> -->
......
......@@ -24,7 +24,7 @@
</view>
<view class="userlist-box" wx:if="{{!emptyPage}}">
<view class="" wx:for="{{memberList}}" wx:for-index="idx" wx:for-item="listItem" wx:key="idx">
<view class="list-item" wx:for="{{listItem}}" wx:key="{{index}}" bindtap="godetail" data-item="{{item}}">
<view class="list-item" wx:for="{{listItem}}" wx:key="index" bindtap="godetail" data-item="{{item}}">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......
......@@ -2,7 +2,7 @@
<view class="container">
<view class="userlist-box" wx:if="{{memberTotal>0}}">
<!-- <block wx:for="{{memberList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex"> -->
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" bindtap="listenCheckboxChange">
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="index" bindtap="listenCheckboxChange">
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{filter.checkSelect(item, checkedIdArr)}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
......
......@@ -25,7 +25,7 @@
<view class="userlist-box" wx:if="{{!emptyPage}}">
<block wx:for="{{teacherList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-id="{{item.id}}" wx:key="{{index}}" bindtap="addOrEditTeacher">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-id="{{item.id}}" wx:key="index" bindtap="addOrEditTeacher">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton"></button>
</form>
......
......@@ -2,7 +2,7 @@
<view class="container">
<view class="userlist-box" wx:if="{{!emptyPage}}">
<block wx:for="{{invitationList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-id="{{item.id}}" wx:key="{{index}}" bindtap="addOrEditTeacher">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" data-id="{{item.id}}" wx:key="index" bindtap="addOrEditTeacher">
<image class="avatar" src="{{filter.imagify(item.avatar)}}" wx:if="{{item.avatar}}"></image>
<image class="avatar" src="{{imageRoot}}common/empty/avatar_teacher.png?{{imageVersion}}" wx:else></image>
<view class="item-content">
......
......@@ -2,7 +2,7 @@
<view class="container">
<view class="userlist-box" wx:if="{{memberTotal>0}}">
<!-- <block wx:for="{{memberList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex"> -->
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="{{index}}" bindtap="listenCheckboxChange">
<view class="list-item" wx:for="{{memberList}}" wx:for-item="item" data-item="{{item}}" wx:key="index" bindtap="listenCheckboxChange">
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radioactive2.png?{{imageVersion}}" wx:if="{{filter.checkSelect(item, checkedIdArr)}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" wx:if="{{item.avatar}}"></image>
......
......@@ -47,7 +47,7 @@
</view>
<view class="scroll-box" >
<scroll-view class="subjects-box" scroll-x="{{true}}" style="width: auto;overflow:hidden;" >
<view class="subjectitem {{item.id != 0 ? 'hascontent' : ''}} {{selectedTheme.sort == item.sort ? 'selected' : ''}}" wx:for="{{subjectArr}}" wx:key="{{index}}" data-subject="{{item}}" data-sort="{{item.sort}}" bindtap="themeSelect">{{item.sort}}</view>
<view class="subjectitem {{item.id != 0 ? 'hascontent' : ''}} {{selectedTheme.sort == item.sort ? 'selected' : ''}}" wx:for="{{subjectArr}}" wx:key="index" data-subject="{{item}}" data-sort="{{item.sort}}" bindtap="themeSelect">{{item.sort}}</view>
<view class="subjectitem addsubject" bindtap="addSubject" wx:if="{{subjectArr.length < 199}}">ss</view>
</scroll-view>
</view>
......
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="themeranklistcontainer" wx:if="{{!emptyPage}}">
<view class="rankitem {{index==0 ? 'no1' : (index==1 ? 'no2' : (index==2 ? 'no3' : ''))}}" wx:for="{{rankList}}" wx:key="{{index}}">
<view class="rankitem {{index==0 ? 'no1' : (index==1 ? 'no2' : (index==2 ? 'no3' : ''))}}" wx:for="{{rankList}}" wx:key="index">
<view class="left" >
<view class="indexbox" >
<image class="indeximg" wx:if="{{index==0}}" src="{{imageRoot}}2c/rankinglist/themeno1.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="">=</image>
......
......@@ -8,7 +8,7 @@
</view>
<view class="list-box" wx:if="{{memberTotal>0}}">
<block wx:for="{{unlockMemberList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" wx:key="{{index}}" bindtap="toStudentAct" data-id="{{item.school_student.id}}">
<view class="list-item" wx:for="{{bigitem}}" wx:for-item="item" wx:key="index" bindtap="toStudentAct" data-id="{{item.school_student.id}}">
<view class="left">
<image class="avatar" src="{{filter.imagify(item.school_student.avatar, 'image/resize,w_160/format,jpg')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
</view>
......
......@@ -12,14 +12,14 @@
</view>
</view>
<view class="weeks b lr ac">
<view class="week fs28" wx:for="{{calendar.weeksCh}}" wx:key="{{index}}" data-idx="{{index}}">{{item}}</view>
<view class="week fs28" wx:for="{{calendar.weeksCh}}" wx:key="index" data-idx="{{index}}">{{item}}</view>
</view>
<view class="perspective">
<view class="days b lr box-wrap {{calendar.leftSwipe ? 'leftRoate' : ''}} {{calendar.rightSwipe ? 'rightRoate' : ''}}" bindtouchstart="calendarTouchstart" bindtouchmove="calendarTouchmove" bindtouchend="calendarTouchend">
<view wx:if="{{calendar.empytGrids}}" class="grid disable-day-color b ac pc" wx:for="{{calendar.empytGrids}}" wx:key="{{index}}" data-idx="{{index}}">
<view wx:if="{{calendar.empytGrids}}" class="grid disable-day-color b ac pc" wx:for="{{calendar.empytGrids}}" wx:key="index" data-idx="{{index}}">
<view class="day b ac pc">{{item}}</view>
</view>
<view class="grid normal-day-color b ac pc" wx:for="{{calendar.days}}" wx:key="{{index}}" data-disable="{{item.disable}}" data-todoText="{{item.todoText}}" data-idx="{{index}}" bindtap="tapDayItem">
<view class="grid normal-day-color b ac pc" wx:for="{{calendar.days}}" wx:key="index" data-disable="{{item.disable}}" data-todoText="{{item.todoText}}" data-idx="{{index}}" bindtap="tapDayItem">
<!-- <view wx:if="{{!calendar.todoLabelCircle}}" class="dot-day-height b tb ac pc">
<view class="day border-radius {{(item.week === 0 || item.week === 6) ? 'pink-color' : ''}} {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:if="{{!item.todoText}}">{{item.day}}</view>
<view class="{{item.todoText ? 'todo-text' : 'todo-dot'}} {{calendar.todoLabelPos === 'bottom' ? 'todo-text-bottom' : 'todo-text-top'}}" style="background-color: {{calendar.todoLabelColor}};">{{item.todoText?item.todoText:item.day}}</view>
......@@ -31,7 +31,7 @@
<view class="day border-radius {{item.choosed&&chooseColor ? 'day-choosed-color day-choosed-bg' : ''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:if="{{item.day==today.d&&item.month==today.m&&item.year==today.y}}">今</view>
<view class="day border-radius {{item.todoText.isrest?'rest-color':''}} {{item.choosed&&!chooseColor ? 'day-choosed-color day-choosed-bg-c' : ''}} {{ item.disable ? 'disable-day-color disable-day-bg' : '' }} b ac pc" wx:else>{{item.todoText.isrest?'休':item.day}}</view>
</view>
<view class="grid disable-day-color b ac pc" wx:for="{{calendar.lastEmptyGrids}}" wx:key="{{index}}" data-idx="{{index}}">
<view class="grid disable-day-color b ac pc" wx:for="{{calendar.lastEmptyGrids}}" wx:key="index" data-idx="{{index}}">
<view class="day b ac pc">{{item}}</view>
</view>
</view>
......
<!--business/pages/exchangebusiness/index.wxml-->
<view class="container">
<view class="exchangebusiness-container">
<view class="content-item" wx:for="{{schoolList}}" wx:key="{{index}}" bindtap='gocampusmgt' data-item="{{item}}">
<view class="content-item" wx:for="{{schoolList}}" wx:key="index" bindtap='gocampusmgt' data-item="{{item}}">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
......
......@@ -57,7 +57,7 @@
</view>
</view>
<view class="avatar-box" wx:if="{{visitorList.length>0}}">
<view class="avatar-item"wx:for="{{visitorList}}" wx:key="{{index}}" >
<view class="avatar-item"wx:for="{{visitorList}}" wx:key="index" >
<image class="avatar" src="{{item.source_student.avatar&& filter.imagify(item.source_student.avatar, 'image/resize,w_320/format,jpg/quality,q_50') || 'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/defaultavatar.png'}}"></image>
<view class="nickname">{{item.source_student.nickname}}</view>
</view>
......
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