Commit 78fb4261 authored by lvtz's avatar lvtz

fix

parent 04aa6ea7
......@@ -12,6 +12,10 @@ import {
import {
unlockSubjectShow
} from '../../../service/business/themeindex';
import {
copyContent
} from '../../../utilities/index.js';
import constants from '../../../constants/constants';
Page({
data: {
imageRoot: app.globalData.imageRoot,
......@@ -52,6 +56,8 @@ Page({
selectSubject: { id: 0, title: "全部关卡" },
modalSubjectList: false,
modelSubjectListAnimate: false,
website: constants.pcWebAddress,
copytipsShow: false,//复制网址
},
onLoad: function(options) {
......@@ -598,4 +604,15 @@ Page({
url: `/business/pages/morethemeindex/studentact?sid=${this.data.sid}&studentId=${id}&modeid=${this.data.subject_id}`
})
},
// 闯关导出学员 提示框
bindCopytips(){
this.setData({
copytipsShow: !this.data.copytipsShow
})
},
copyEvent(e){
this.bindCopytips();
let copycontent = e.currentTarget.dataset.copycontent;
copyContent(copycontent)
}
});
......@@ -9,7 +9,7 @@
</view>
</view>
</view>
<view class="select-box" bindtap="bindSublectListModal" hidden='{{currentTabsIndex != 0}}'>
<view class="select-box" bindtap="bindSublectListModal" wx:if="{{subject_type==3}}">
<view class="title">{{ selectSubject.title }} <block wx:if="{{selectSubject.id==0}}">({{subjectCount}})</block></view>
<image class="icon-arr {{modalSubjectList? 'active': ''}}" src="{{imageRoot}}2c/shopindex/arrowdown.png?{{imageVersion}}"></image>
</view>
......@@ -44,8 +44,8 @@
<view class="has-nomore" wx:if="{{!studentEmptyPage && !studentHasmore && studentPage>1}}">没有更多了</view>
<list-loading loading="{{studentLoading}}"></list-loading>
<view class='btn-add'>
<button class="text" open-type="share">邀请学生打卡</button>
<!-- <view class="text">导出学生闯关打卡数据</view> -->
<button class="text" open-type="share" wx:if="{{subject_type!=3}}">邀请学生打卡</button>
<view class="text" bindtap="bindCopytips" wx:else>导出学生闯关打卡数据</view>
</view>
</view>
......@@ -85,7 +85,7 @@
<image class="icon-close" src="{{imageRoot}}2b/themeindex/close_icon.png" data-from="modal" bindtap="bindSublectListModal"></image>
</view>
<view class="setting-list">
<view class="setting-item" wx:for="{{lockSubjects}}" wx:key="index" data-from="modal" bindtap="bindSublectListModal" data-item="{{item}}">
<view class="setting-item {{item.id==selectSubject.id? 'active': ''}}" wx:for="{{lockSubjects}}" wx:key="index" data-from="modal" bindtap="bindSublectListModal" data-item="{{item}}">
<view class="left">
<block wx:if="{{item.id}}">
<view class="item-label">第{{index+1}}关:{{item.title}}</view>
......@@ -103,4 +103,17 @@
</view>
</view>
<view class="copy-tips-dailog" wx:if="{{copytipsShow}}">
<view class="mask" bindtap="bindCopytips"></view>
<view class="content">
<view class="title-box">
<view class="title-item">数据已为您准备好</view>
<view class="title-item">登录电脑后台去管理学员数据</view>
</view>
<view class="copy-text">后台网址:{{website}}</view>
<view class="tips">输入账号密码登录 - 在闯关打卡里导出</view>
<view class="foot-btn" bindtap="copyEvent" data-copycontent="{{website}}">复制网址</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -175,4 +175,70 @@
}
.select-box .icon-arr.active{
transform: rotate(180deg);
}
\ No newline at end of file
}
/* 闯关导出学员提示框 */
.copy-tips-dailog{
width: 100%;
height: 100%;
position: fixed;
left: 0;
bottom: 0;
z-index: 1;
}
.copy-tips-dailog .mask{
width: 100%;
height: 100%;
background:rgba(0,0,0,.5);
position: absolute;
left: 0;
top: 0;
}
.copy-tips-dailog .content{
width: 635rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
position: absolute;
left: 58rpx;
top: 423rpx;
}
.copy-tips-dailog .content .title-box{
text-align: center;
padding: 42rpx 0 62rpx 0;
}
.copy-tips-dailog .content .title-box .title-item{
font-size:32rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(11,11,11,1);
line-height: 1;
padding-bottom: 20rpx;
}
.copy-tips-dailog .content .copy-text{
text-align: center;
font-size:30rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(100,100,100,1);
line-height: 1;
padding-bottom: 70rpx;
}
.copy-tips-dailog .content .tips{
font-size:26rpx;
text-align: center;
font-family:PingFang SC;
font-weight:400;
color:rgba(100,100,100,1);
line-height: 1;
padding-bottom: 38rpx;
border-bottom: 1px solid rgba(0,0,0,.1);
}
.copy-tips-dailog .content .foot-btn{
height: 96rpx;
text-align: center;
line-height: 96rpx;
font-size:30rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(89,195,253,1);
}
\ No newline at end of file
......@@ -306,6 +306,9 @@
justify-content: space-between;
padding: 26rpx 0;
}
.modal-setup .setting-list .setting-item.active .left .item-label{
color: #16B0FD;
}
.modal-setup .setting-list .setting-item:not(:last-child) {
border-bottom: 2rpx solid #f1f2f3;
}
......
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