Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
0ca43638
Commit
0ca43638
authored
Mar 27, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'编辑模块完结'
parent
afe69855
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
742 additions
and
24 deletions
+742
-24
index.js
business/pages/themeeditor/index.js
+442
-20
index.wxml
business/pages/themeeditor/index.wxml
+28
-0
index.wxss
business/pages/themeeditor/index.wxss
+266
-0
setting.js
business/pages/themeeditor/setting.js
+2
-2
setting.wxml
business/pages/themeeditor/setting.wxml
+2
-0
themeeditor.js
service/business/themeeditor.js
+2
-2
No files found.
business/pages/themeeditor/index.js
View file @
0ca43638
This diff is collapsed.
Click to expand it.
business/pages/themeeditor/index.wxml
View file @
0ca43638
...
...
@@ -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">
...
...
business/pages/themeeditor/index.wxss
View file @
0ca43638
...
...
@@ -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
business/pages/themeeditor/setting.js
View file @
0ca43638
...
...
@@ -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
({
...
...
business/pages/themeeditor/setting.wxml
View file @
0ca43638
...
...
@@ -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}}">
...
...
service/business/themeeditor.js
View file @
0ca43638
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment