Commit 0ca43638 authored by wangxuelai's avatar wangxuelai

'编辑模块完结'

parent afe69855
This diff is collapsed.
......@@ -261,6 +261,34 @@
</view>
</view>
</view>
<view class="new-setting-box">
<view class="title-wrapper">
<view class="title-box">
<text class="title">报名信息收集</text>
<text class="tips">(收集姓名、手机号)</text>
</view>
<view class="switch-box">
<w-switch slot="content" value="{{lockparams.sign_up_status}}" color="#16B0FD" size="small"
bind:onChange="signupswitch" />
</view>
</view>
<view class="content" wx:if="{{lockparams.sign_up_status==1}}">
<view class="tips">收集学员姓名和电话等信息</view>
<view class="check-box" wx:if="{{radioList.length>0}}">
<input class="check-name" type="text" maxlength="{{30}}" value="{{radioname}}" bindinput="checknameIpt" placeholder="请输入单选项问题"/>
<view class="del-btn" bindtap="delallCheck">删除</view>
</view>
<view class="check-item-box" wx:if="{{radioList.length>0}}">
<view class="item" wx:for="{{radioList}}" wx:key="index">
<view class="index-name">{{item.text}}</view>
<input class="item-ipt" type="text" maxlength="{{30}}" placeholder="输入内容" value="{{item.name}}" bindinput="itemnameIpt" data-index="{{index}}"/>
<image class="del-icon" bindtap="delCheckitme" data-index="{{index}}" src="{{imageRoot}}2b/common/reddelicon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
<view class="add-item-btn" bindtap="addCheckItem" wx:if="{{radioList.length<=4}}">添加选项</view>
</view>
<view class="addRadio" wx:if="{{radioList.length==0}}" bindtap="addRadio">添加自定义单选项</view>
</view>
</view>
<view class="section-wrap" bindtap="goyinxiaoPage">
<view class="section-item">
<view class="form-item">
......
......@@ -644,4 +644,270 @@ page{
.locksubjectitem .editbtn {
color: #16B0FD;
font-size: 26rpx;
}
.new-setting-box{
margin-top: 25rpx;
background:rgba(255,255,255,1);
padding: 34rpx 24rpx;
margin-bottom: 24rpx;
}
.new-setting-box .title-wrapper{
display: flex;
align-items: center;
justify-content: space-between;
}
.new-setting-box .title-box .title{
font-size:30rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
line-height:1;
padding-right: 20rpx;
}
.new-setting-box .title-box .tips{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(173,173,173,1);
line-height:1;
}
.new-setting-box .content{
padding: 0rpx 0 32rpx 0;
}
.new-setting-box .content .tips{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(173,173,173,1);
line-height:1;
margin-top: 20rpx;
}
.new-setting-box .content .check-box{
display: flex;
justify-content:space-between;
align-items: center;
margin-top: 55rpx;
}
.new-setting-box .content .check-box .check-name{
width:507rpx;
padding: 0rpx 30rpx;
height:72rpx;
background:rgba(240,240,244,1);
border-radius:10rpx;
}
.check-box .del-btn{
width:94rpx;
height:70rpx;
background:rgba(255,39,39,.1);
border-radius:10rpx;
display: flex;
align-items: center;
justify-content: center;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(255,39,39,1);
}
.new-setting-box .content .check-item-box{
}
.check-item-box .item{
margin-top: 21rpx;
width:507rpx;
height:70rpx;
background:rgba(240,240,244,1);
border-radius:35rpx;
padding: 20rpx 30rpx;
position: relative;
display: flex;
align-items: center;
}
.check-item-box .item .index-name{
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(32,32,32,1);
margin-right: 36rpx;
min-width: 100rpx;
}
.check-item-box .item .del-icon{
width:43rpx;
height:43rpx;
position: absolute;
top: 0;
right: -43rpx;
}
.check-item-box .add-item-btn{
width:255rpx;
height:68rpx;
background:rgba(255,255,255,1);
border:2rpx solid rgba(101,184,244,1);
border-radius:34rpx;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(101,184,244,1);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 46rpx;
}
.page-setting{
margin-top: 25rpx;
background:rgba(255,255,255,1);
padding: 0 24rpx;
}
.page-setting .title-box{
font-size:30rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
line-height:1;
padding: 36rpx 0 34rpx 0;
}
.page-setting .title-box .tips{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(173,173,173,1);
margin-left: 10rxp;
}
.page-setting .big-img-box{
width:100%;
height:395rpx;
border-radius:10rpx;
background: rgba(0, 0, 0, 0.3);
position: relative;
}
.page-setting .big-img-box image{
width: 100%;
height: 100%;
border-radius:10rpx;
}
.page-setting .change-btn{
width:141rpx;
height:55rpx;
background:rgba(0,0,0,.4);
border-radius:28rpx;
font-size:24rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(255,255,255,1);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 20rpx;
top: 21rpx;
}
.page-setting .big-img-box .img-tips{
width:100%;
height:52rpx;
background:rgba(0,0,0,.4);
border-radius:0px 0px 10rpx 10rpx;
font-size:24rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(255,255,255,1);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 0;
bottom: 0;
}
.participation-rules-setting{
background:rgba(255,255,255,1);
padding: 45rpx 24rpx 30rpx 24rpx;
}
.introduce-setting{
padding: 0 24rpx 56rpx 24rpx;
background:rgba(255,255,255,1);
}
.introduce-setting .title-box{
padding: 46rpx 0 35rpx 0;
font-size:30rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
}
.introduce-setting .introduce-box {
width:100%;
background:rgba(255,255,255,1);
border:2px dashed rgba(208,208,208,1);
border-radius:10rpx;
padding: 36rpx 24rpx 30rpx 24rpx;
position: relative;
margin-bottom: 60rpx;
}
.introduce-setting .introduce-box .close-box{
position: absolute;
top: -25rpx;
right: -25rpx;
}
.introduce-setting .introduce-box .close-box image{
width: 50rpx;
height: 50rpx;
}
.introduce-title {
}
.introduce-title input{
width:390rpx;
height:83rpx;
background:rgba(244,244,244,1);
border-radius:10rpx;
padding: 0 28rpx;
margin: 0 auto;
font-weight: bold;
}
.introduce-title .tips{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(157,157,157,1);
line-height: 1;
padding: 18rpx 0 22rpx 0;
text-align: center;
}
.introduce-setting .introduce-box .content-inputbox{
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(136,136,136,1);
text-align: center;
padding: 72rpx 0 83rpx 0;
}
.introduce-setting .add-btn{
width:427rpx;
height:65rpx;
background:rgba(255,255,255,1);
border:2rpx solid rgba(101,184,244,1);
border-radius:33rpx;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(101,184,244,1);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 56rpx;
}
.addRadio{
padding: 0 30rpx;
height:68rpx;
background:rgba(255,255,255,1);
border:2rpx solid rgba(101,184,244,1);
border-radius:34rpx;
font-size:28rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(101,184,244,1);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 46rpx;
}
\ No newline at end of file
......@@ -198,7 +198,7 @@ Page({
unlock_limit: Number(value)
})
},
maxClockCountInput() {
maxClockCountInput(e) {
const {
value
} = e.detail;
......@@ -370,7 +370,7 @@ Page({
"lockparams.push_status": push_status,
"lockparams.supplement_num": supplement_num,
"lockparams.max_clock_count": max_clock_count,
"lockparams.unlock_limit": supplement_num,
"lockparams.unlock_limit": unlock_limit,
});
}
wx.navigateBack({
......
......@@ -184,6 +184,7 @@
<input type="number" placeholder-class="placeholderclass" class="iteminput" maxlength="5" value="{{unlock_limit}}" bindinput="unlockLimitChange" placeholder=""></input>关
</view>
</view>
<view class="usedesc" data-type="4">学生一天时间内,可以闯几关</view>
</view>
<view class="form-itembox borderbottom1px" data-type="1">
<view class="form-item ">
......@@ -194,6 +195,7 @@
<input type="number" placeholder-class="placeholderclass" class="iteminput" maxlength="5" value="{{max_clock_count}}" bindinput="maxClockCountInput" placeholder=""></input>次
</view>
</view>
<view class="usedesc" data-type="4">学生同一关卡,可以重复打卡几次</view>
</view>
</view>
<view class="modal-dialog" wx:if="{{psdshow}}">
......
......@@ -17,10 +17,10 @@ function themeEditor (data) {
errorresolve: 1,
})
}
function unlockSubjectEditor ({tid, data}) {
function unlockSubjectEditor ({tid, data, school_id}) {
let url = tid == 0 ? apis.business.themeEditor.unlockSubjectCreate : apis.business.themeEditor.unlockSubjectUpdate;
let saveData = {};
saveData = tid != 0 ? Object.assign({id: tid}, data) : data
saveData = tid != 0 ? Object.assign({id: tid}, data, {school_id}) : Object.assign(data, {school_id})
return wxRequest({
role: '2b',
url,
......
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