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
0a7ff044
Commit
0a7ff044
authored
Apr 02, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'sss'
parent
26795a36
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
3 deletions
+105
-3
selectcourse.js
business/pages/coursemgt/selectcourse.js
+8
-0
subjecteditor.js
business/pages/themeeditor/subjecteditor.js
+48
-1
subjecteditor.wxml
business/pages/themeeditor/subjecteditor.wxml
+8
-1
subjecteditor.wxss
business/pages/themeeditor/subjecteditor.wxss
+41
-1
No files found.
business/pages/coursemgt/selectcourse.js
View file @
0a7ff044
...
...
@@ -189,6 +189,14 @@ Page({
//新建 编辑课程
addOrEditCourse
(
e
)
{
const
curPages
=
getCurrentPages
();
if
(
curPages
.
length
==
10
)
{
wx
.
showModal
({
title
:
'请前往【工作台-教务-课程】中新建课程'
,
showCancel
:
false
})
return
;
}
const
{
id
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
url
:
`/business/pages/coursemgt/edit?sid=
${
this
.
data
.
sid
}
&id=
${
id
}
`
...
...
business/pages/themeeditor/subjecteditor.js
View file @
0a7ff044
...
...
@@ -15,7 +15,9 @@ import {
getDateInfo
,
deepCopy
}
from
'../../../utilities/index.js'
;
import
{
deletesubjects
,
}
from
"../../../service/business/common.js"
;
var
app
=
getApp
();
Page
({
// mixins: [deepCopy(require('../../../mixins/myMins/audioCallback'))],
...
...
@@ -777,4 +779,49 @@ Page({
})
},
// 视频播放相关代码
// if (this.data.from == 'edit') {
// prevPage.setData({
// [`lockSubjects[${this.data.sort-1}]`]: {...paramsData, id: data.id},
// [`lockSubjectLists[${this.data.index}]`]: {...paramsData, id: data.id},
// });
// } else if (this.data.from == 'index') {
// prevPage.setData({
// [`lockSubjects[${this.data.sort-1}]`]: {...paramsData, id: data.id, clock_people: 0, review_clock_record_count: 0},
// });
// } else if (this.data.from == 'detail') {
// prevPage.setData({
// needRefresh: true,
// });
// }
del
()
{
const
that
=
this
;
if
(
this
.
data
.
id
==
0
)
{
}
else
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'删除作业将清除数据'
,
success
(
res
)
{
console
.
log
(
res
);
if
(
res
.
confirm
)
{
deletesubjects
({
id
:
that
.
data
.
id
,
school_id
:
that
.
data
.
sid
})
.
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
wx
.
showToast
({
title
:
"删除成功"
,
icon
:
"success"
,
duration
:
2000
});
wx
.
navigateBack
();
}
})
.
catch
(()
=>
{});
}
}
})
}
}
})
\ No newline at end of file
business/pages/themeeditor/subjecteditor.wxml
View file @
0a7ff044
...
...
@@ -95,12 +95,19 @@
</view>
</view>
</view>
<form report-submit="true" bindsubmit="saveTheme">
<button class="submitbtn" form-type="submit">发布关卡内容</button>
</form>
<sound-recording sid="{{sid}}" show="{{audioStatus.show}}" bind:addVoice="addVoice" bind:pushVoice="pushVoice">
</sound-recording>
<!-- <cover-view class="btnbox">
<cover-view class="btn" bindtap="setting" wx:if="{{id != 0}}">删除</cover-view>
<cover-view class="btn share {{id != 0 ? 'withdelbtn' : ''}}">保存</cover-view>
</cover-view>
<view class="btnbox">
<view class="btn" bindtap="del" wx:if="{{id != 0}}">删除</view>
<view class="btn share {{id != 0 ? '' : 'withdelbtn'}}" bindtap="saveTheme">保存</view>
</view> -->
</view>
</view>
<view class="videodialog" wx:if="{{videostatus.videoShow}}">
...
...
business/pages/themeeditor/subjecteditor.wxss
View file @
0a7ff044
...
...
@@ -3,7 +3,7 @@
.theme-editor-container {
min-height: 100vh;
background-color: rgba(247, 247, 249, 1);
padding-bottom:
52
rpx;
padding-bottom:
150
rpx;
}
.common-editor-box {
padding: 38rpx 25rpx;
...
...
@@ -299,4 +299,44 @@
}
.box-item .slide-ded3:last-of-type{
margin-bottom: 0
}
.btnbox {
position: fixed;
width: 100%;
left: 0;
bottom: 0;
z-index: 2;
display: flex;
box-shadow: 0px -2rpx 4rpx 0px rgba(214,205,189,0.5);
}
.btnbox .btn {
height: 98rpx;
/* flex: 1; */
/* display: flex;
align-items: center;
justify-content: center; */
line-height: 98rpx;
text-align: center;
width: 50%;
display: inline-block;
background-color: #fff;
font-size: 30rpx;
letter-spacing: 2rpx;
color: #666666;
position: relative;
}
.sharebtn {
position: absolute;
opacity: 0;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.btnbox .btn.share {
background-color: #16B0FD;
color: #FFFFFF;
}
.btnbox .btn.share.withdelbtn {
width: 100%;
}
\ No newline at end of file
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