Commit 0a7ff044 authored by wangxuelai's avatar wangxuelai

'sss'

parent 26795a36
......@@ -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}`
......
......@@ -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
......@@ -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}}">
......
......@@ -3,7 +3,7 @@
.theme-editor-container {
min-height: 100vh;
background-color: rgba(247, 247, 249, 1);
padding-bottom: 52rpx;
padding-bottom: 150rpx;
}
.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
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