add: 我的课程\线上培训班。培训管理\线上培训班。 空页面显示

main
hcj 4 months ago
parent 22784c38c7
commit 51fae596c6
  1. 10
      pages.json
  2. 105
      pages/index/onlineTestCourse/onlineCourseInfo.vue
  3. 13
      pages/index/onlineTestCourse/verciInput.vue
  4. BIN
      pages/index/testtraining/arr.png
  5. BIN
      pages/index/testtraining/noCourse.png
  6. BIN
      pages/index/testtraining/noEvaluate.png
  7. BIN
      pages/index/testtraining/noUsePerson.png
  8. BIN
      pages/index/testtraining/noregister.png
  9. BIN
      pages/index/testtraining/olCourse.png
  10. 252
      pages/index/testtraining/onLineCourse.vue
  11. 198
      pages/index/testtraining/testtraining.vue
  12. 17
      pages/personal/courseSign/courseSign.vue
  13. 158
      pages/personal/myCourse/myCourse.vue
  14. 18
      pages/personal/personal.vue
  15. 241
      pages/personal/setup/accountoverview.vue
  16. 5
      pages/personal/setup/myreview.vue
  17. 140
      pages/personal/setup/peixunban.vue
  18. 19
      pages/personal/setup/usepeople.vue
  19. 4
      utils/http.js

@ -99,6 +99,13 @@
"navigationBarBackgroundColor": "#284CD1" "navigationBarBackgroundColor": "#284CD1"
} }
}, },
{
"path": "pages/index/testtraining/onLineCourse",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#284CD1"
}
},
{ {
"path": "pages/index/testtraining/teacherSign", "path": "pages/index/testtraining/teacherSign",
"style": { "style": {
@ -386,7 +393,8 @@
"style" : "style" :
{ {
"navigationBarTitleText" : "", "navigationBarTitleText" : "",
"navigationBarBackgroundColor": "#284CD1" "navigationBarBackgroundColor": "#284CD1",
"onReachBottomDistance": 50
} }
}, },
{ {

@ -0,0 +1,105 @@
<template>
<view class="courseInfo">
<view>xxxxx</view>
<view @click="startLearn">开始学习</view>
<view @click="openInputCode">输入口令</view>
<view @click="pay">付费学习</view>
<u-modal v-model="show">
<view class="slot-content">
<view v-if="toggleFlag === 'tolearn'">
<label>www.baidu.com</label>
</view>
<view v-else class="input-list">
<!-- input输入框 -->
<input class="input-item" v-if="focus" adjust-position="false" auto-blur="true"
@blur="inputCodeBlur" @input="inputCode" :focus="focus" v-model="code" @focus="inputFocus"
type="number" oneTimeCode maxlength="6" />
<!-- 验证码输入框 -->
<view class="code-list" @click="focusClick">
<view class="code-item" v-for="(item, index) in 6" :key="index"
:style="(index == code.length && focus ? 'border-color:#3c9cff;' : '')">{{ code[index] || ''
}}
</view>
</view>
</view>
</view>
</u-modal>
</view>
</template>
<script>
export default {
data() {
return {
toggleFlag:'',
show: false,
focus: false,
code: ''
}
},
methods: {
startLearn() {
this.show = true
this.toggleFlag = 'tolearn'
},
focusClick() {
this.focus = true
},
pay() {
console.log('pay for this');
},
openInputCode() {
this.show = true
},
inputCode(e) {
let value = e.detail.value
this.code = value
},
inputFocus(e) {
console.log(e);
},
inputCodeBlur(e) {
let value = e.detail.value
this.focus = false
}
}
}
</script>
<style lang="scss">
.courseInfo {
.slot-content {
font-size: 28rpx;
color: $u-content-color;
padding-left: 30rpx;
}
.input-list {
display: flex;
align-items: center;
.input-item {
width: 0rpx;
}
.code-list {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
.code-item {
width: 80rpx;
height: 80rpx;
text-align: center;
line-height: 80rpx;
border: 1rpx solid #eee;
border-radius: 10rpx;
}
}
}
}
</style>

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
}
</script>
<style>
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,252 @@
<template>
<view class="onLineCourseWrap">
<view class="onLineTitle">
<img src="./olCourse.png" alt="">
<view>{{ '如何使用性能测试工具' }}</view>
</view>
<view class="onLineTime">时间: {{ '今日:20:00' }}</view>
<view class="onLineTeacher">讲师:{{ '独孤求败' }}</view>
<view class="onLine">职称:{{ '气宗大师' }}</view>
<view class="onLineContent">授课内容: {{ '教导令狐冲' }}</view>
<view class="onLineMask" v-show="maskShow">
<img src="./arr.png" alt="">
<view class="learnBtnWrap">
<view class="learnBtn" @click="startLearn('pay')">付费学习</view>
<view class="learnBtn" @click="startLearn('code')">输入口令学习</view>
</view>
</view>
<view v-show="!maskShow" class="startLeranBtn">开始学习</view>
<u-modal v-model="show" title="请输入口令" :show-confirm-button="false">
<view class="slot-content">
<view v-if="toggleFlag === 'tolearn'">
<label>www.baidu.com</label>
</view>
<view v-else class="input-list">
<!-- input输入框 -->
<input class="input-item" v-if="focus" adjust-position="false" auto-blur="true"
@blur="inputCodeBlur" @input="inputCode" :focus="focus" v-model="code" @focus="inputFocus"
type="number" oneTimeCode maxlength="6" />
<!-- 验证码输入框 -->
<view class="code-list" @click="focusClick">
<view class="code-item" v-for="(item, index) in 4" :key="index"
:style="(index == code.length && focus ? 'border-color:#3c9cff;' : '')">{{ code[index] || ''
}}
</view>
</view>
</view>
<view class="codeBtnCoup">
<view class="codeBtn canle" @click="show = false">取消</view>
<view class="codeBtn sure" @click="show = false">确定</view>
</view>
</view>
</u-modal>
</view>
</template>
<script>
export default {
data() {
return {
maskShow: true,
toggleFlag: '',
show: false,
focus: false,
code: ''
}
},
methods: {
startLearn() {
this.maskShow = !this.maskShow
},
startLearn(val) {
if (val == 'code') {
this.show = true
}
// this.toggleFlag = 'tolearn'
},
focusClick() {
this.focus = true
},
pay() {
console.log('pay for this');
},
openInputCode() {
this.show = true
},
inputCode(e) {
let value = e.detail.value
this.code = value
},
inputFocus(e) {
console.log(e);
},
inputCodeBlur(e) {
let value = e.detail.value
this.focus = false
}
}
}
</script>
<style lang="scss" scoped>
.onLineCourseWrap {
margin: 25rpx;
height: calc(100% - 50rpx);
background: #FFFFFF;
border-radius: 10rpx;
padding: 24rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 24rpx;
color: #404040;
.onLineTitle {
font-weight: bold;
font-size: 28rpx;
color: #000000;
line-height: 46rpx;
margin: 30rpx 0;
display: flex;
align-items: center;
img{
width: 38rpx;
height: 38rpx;
margin-right: 20rpx;
}
}
.onLineTime {
margin: 15rpx 0;
}
.onLineTeacher {
margin: 15rpx 0;
}
.onLine {
margin: 15rpx 0;
}
.onLineContent {
margin: 15rpx 0;
}
.onLineMask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #1B81F9;
background: linear-gradient(180deg, #ffffff07, #1B81F9);
img {
width: 46rpx;
height: 111rpx;
margin: 619rpx 0 0 50%;
}
.learnBtnWrap {
width: 279rpx;
margin-top: 200rpx;
margin-left: 50%;
transform: translate(-50%);
.learnBtn {
margin-bottom: 50rpx;
height: 67rpx;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
box-shadow: 0rpx 1rpx 20rpx 1rpx rgba(13, 92, 187, 0.53);
border-radius: 33rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #FFFFFF;
line-height: 65rpx;
text-align: center;
}
}
}
.startLeranBtn {
position: fixed;
bottom: 69rpx;
width: 646rpx;
height: 70rpx;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
box-shadow: 0rpx 1rpx 20rpx 1rpx rgba(13, 92, 187, 0.4);
border-radius: 35rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #FFFFFF;
line-height: 65rpx;
text-align: center;
}
.slot-content {
font-size: 28rpx;
color: $u-content-color;
padding-left: 30rpx;
}
.input-list {
padding-top: 20rpx;
display: flex;
align-items: center;
.input-item {
width: 0rpx;
}
.code-list {
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
.code-item {
width: 80rpx;
height: 80rpx;
text-align: center;
line-height: 80rpx;
border: 1rpx solid #eee;
border-radius: 10rpx;
background: #EAEEF3;
}
}
}
.codeBtnCoup {
padding: 20rpx;
display: flex;
justify-content: space-between;
margin-top: 40rpx;
.codeBtn {
width: 250rpx;
line-height: 70rpx;
border-radius: 35rpx;
text-align: center;
font-size: 28rpx;
color: #FFFFFF;
}
.sure{
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
}
.canle{
color: #666666;
border: 1px solid #E0E0E0;
}
}
// & >>>.u-model__title {
// font-weight: bold;
// }
}
</style>

@ -5,6 +5,19 @@
<!-- <image src="http://image.bjkeyware.com/static/index/renliwb/newtrainbanner08.png" mode="" class="logobg"> --> <!-- <image src="http://image.bjkeyware.com/static/index/renliwb/newtrainbanner08.png" mode="" class="logobg"> -->
<!-- </image> --> <!-- </image> -->
<!-- 模块1 --> <!-- 模块1 -->
<view class="onlineTrain">
<view class="onLineTitle">
<view class="onLineClassName">软测课堂</view>
<view class="onLineCourseTime">时间{{ '今日 20:00' }}</view>
</view>
<view class="onLineCourse">如何使用性能测试工具</view>
<view class="onLineTeacher">讲师: 风清扬老师</view>
<view class="onLineBtnWrap">
<view class="onLineBtn toLearn" @click="toLearn">去学习</view>
<view class="onLineBtn toPay" @click="toLearn">付费学习: {{ '9.9' }}</view>
</view>
</view>
<view class="titlePeo"> <view class="titlePeo">
<view class="titletopt"> <view class="titletopt">
<image src="../../../static/crowd/rihhj.png" alt="" /> <image src="../../../static/crowd/rihhj.png" alt="" />
@ -42,8 +55,7 @@
针对企业用人需求进行课程培训 针对企业用人需求进行课程培训
</view> </view>
</view> </view>
<view <view style='line-height: 20px;border-left: 1px solid #F5F7FA;border-right: 1px solid #F5F7FA;'>
style='line-height: 20px;border-left: 1px solid #F5F7FA;border-right: 1px solid #F5F7FA;'>
<view class="headert"> <view class="headert">
<view class="table_heade">序号</view> <view class="table_heade">序号</view>
<view style="width:600rpx;text-align:center">课程名称</view> <view style="width:600rpx;text-align:center">课程名称</view>
@ -421,7 +433,7 @@
</view> </view>
</u-form-item> </u-form-item>
<view v-if='calltext' class="tiptext" style="color:#E9941AFF"> <view v-if='calltext' class="tiptext" style="color:#E9941AFF">
<!-- {{calltext}} --> {{ calltext }}
</view> </view>
<view v-if='timetext' class="tiptext" style="color:#000000"> <view v-if='timetext' class="tiptext" style="color:#000000">
{{ timetext }} {{ timetext }}
@ -453,6 +465,16 @@
<u-input v-model="form.studentName" placeholder="请输入您的姓名"></u-input> <u-input v-model="form.studentName" placeholder="请输入您的姓名"></u-input>
</view> </view>
</u-form-item> </u-form-item>
<u-form-item prop="sex">
<view class="rowitem sexSelect">
<view class="rowitemxing">
*
</view>
<u-input v-model="form.sex" type="select" placeholder="请选择您的性别"
@click="sexShow = true" />
<u-select v-model="sexShow" :list="sexList" @confirm="fornCallBack"></u-select>
</view>
</u-form-item>
<u-form-item prop="studentCode"> <u-form-item prop="studentCode">
<view class="rowitem"> <view class="rowitem">
<view class="rowitemxing"> <view class="rowitemxing">
@ -513,12 +535,23 @@
<u-input v-model="jjform.studentName" placeholder="请输入您的姓名"></u-input> <u-input v-model="jjform.studentName" placeholder="请输入您的姓名"></u-input>
</view> </view>
</u-form-item> </u-form-item>
<u-form-item prop="sex">
<view class="rowitem sexSelect">
<view class="rowitemxing">
*
</view>
<u-input v-model="jjform.sex" type="select" placeholder="请选择您的性别"
@click="sexShow = true" />
<u-select v-model="sexShow" :list="sexList" @confirm="testtrainCallback"></u-select>
</view>
</u-form-item>
<u-form-item prop="mobile"> <u-form-item prop="mobile">
<view class="rowitem"> <view class="rowitem">
<view class="rowitemxing"> <view class="rowitemxing">
* *
</view> </view>
<u-input v-model="jjform.mobile" :disabled="inpDisabled" placeholder="请输入您的手机号"></u-input> <u-input v-model="jjform.mobile" :disabled="inpDisabled"
placeholder="请输入您的手机号"></u-input>
</view> </view>
</u-form-item> </u-form-item>
<u-form-item prop="code" v-if="!accessToken"> <u-form-item prop="code" v-if="!accessToken">
@ -529,8 +562,8 @@
<u-input v-model="jjform.code" placeholder="请输入验证码"></u-input> <u-input v-model="jjform.code" placeholder="请输入验证码"></u-input>
<u-verification-code seconds="60" ref="uCode" <u-verification-code seconds="60" ref="uCode"
@change="codeChange"></u-verification-code> @change="codeChange"></u-verification-code>
<u-button type="primary" size="mini" :disabled="codeBtn" <u-button type="primary" size="mini" :disabled="codeBtn" @click="getCode">{{ tips
@click="getCode">{{tips}}</u-button> }}</u-button>
</view> </view>
</u-form-item> </u-form-item>
</u-form> </u-form>
@ -554,6 +587,10 @@
</template> </template>
<script> <script>
const sexMap = {
'男': '0',
'女': '1'
}
export default { export default {
data() { data() {
// //
@ -566,7 +603,6 @@ export default {
if (schooldata.trainStartTime && schooldata.trainEndTime) { if (schooldata.trainStartTime && schooldata.trainEndTime) {
console.log(schooldata) console.log(schooldata)
this.timetext = this.timetext =
schooldata.trainClassName +
' ' + ' ' +
'课程周期:' + '课程周期:' +
schooldata.trainStartTime.slice(0, 10) + schooldata.trainStartTime.slice(0, 10) +
@ -593,8 +629,19 @@ export default {
flag: true, flag: true,
accessToken: null, accessToken: null,
codeBtn: false, codeBtn: false,
sexShow: false,
calltext: '', calltext: '',
timetext: '', timetext: '',
sexList: [
{
value: '0',
label: '男'
},
{
value: '1',
label: '女'
}
],
isShowDia: false, isShowDia: false,
isShowDown: false, isShowDown: false,
tokenshow: false, tokenshow: false,
@ -861,6 +908,13 @@ export default {
trigger: ['blur'], trigger: ['blur'],
}, },
], ],
sex: [
{
required: true,
message: '请选择您的性别',
trigger: ['blur,change'],
},
],
counsellor: [ counsellor: [
{ {
required: true, required: true,
@ -896,6 +950,13 @@ export default {
trigger: ['blur'], trigger: ['blur'],
}, },
], ],
sex: [
{
required: true,
message: '请选择您的性别',
trigger: ['blur,change'],
},
],
mobile: [ mobile: [
{ {
required: true, required: true,
@ -955,6 +1016,7 @@ export default {
studentName: '', studentName: '',
mobile: '', mobile: '',
uuid: '', uuid: '',
sex: '',
code: '', code: '',
}, },
// //
@ -1031,6 +1093,7 @@ export default {
// //
this.getClassList() this.getClassList()
this.getOnlineCourse()
this.getTeacherList() this.getTeacherList()
this.getSwiperImages() this.getSwiperImages()
uni.onKeyboardHeightChange(this.onKeyboardHeightChange) uni.onKeyboardHeightChange(this.onKeyboardHeightChange)
@ -1059,6 +1122,19 @@ export default {
} }
}, },
methods: { methods: {
//
toLearn() {
uni.navigateTo({
url: '/pages/index/testtraining/onLineCourse'
})
},
testtrainCallback(e) {
this.jjform.sex = e[0].label
},
fornCallBack(e) {
this.form.sex = e[0].label
},
getSwiperImages() { getSwiperImages() {
this.http.quickGet(`/train/banners?type=app`).then((res) => { this.http.quickGet(`/train/banners?type=app`).then((res) => {
this.swipelist = res.data.data.map((item) => { this.swipelist = res.data.data.map((item) => {
@ -1135,6 +1211,21 @@ export default {
}) })
.exec() .exec()
}, },
getOnlineCourse() {
let accessToken = uni.getStorageSync('accessToken')
if (accessToken) {
const wxUserInfo = uni.getStorageSync('wxUserInfo')
const userId = wxUserInfo.userId
this.http.quickGet(`/course/online/course?${userId}`).then((res) => {
console.log(res);
})
} else {
this.http.quickGet(`/course/online/course`, false).then((res) => {
console.log(res);
})
}
},
// //
getClassList() { getClassList() {
this.http.quickGet(`/train/portal`, false).then((res) => { this.http.quickGet(`/train/portal`, false).then((res) => {
@ -1219,7 +1310,9 @@ export default {
this.isShowDia = false this.isShowDia = false
this.$refs.uForm.resetFields() this.$refs.uForm.resetFields()
this.form = {} this.form = {}
this.calltext = '培训班代号由校企合作老师统一发送,请联系培训老师' // this.calltext = ''
this.calltext = ''
this.timetext = ''
}, },
codeChange(text) { codeChange(text) {
this.tips = text this.tips = text
@ -1306,6 +1399,7 @@ export default {
trainClassId: this.classInfo.classId, trainClassId: this.classInfo.classId,
classType: this.classInfo.classType, classType: this.classInfo.classType,
userId: wxUserInfo.userId, userId: wxUserInfo.userId,
sex: sexMap[this.jjform.sex]
} }
this.http.quickPost(`/train/training/offApply`, data, false).then((res) => { this.http.quickPost(`/train/training/offApply`, data, false).then((res) => {
if (res.data.data.code == 200) { if (res.data.data.code == 200) {
@ -1374,6 +1468,7 @@ export default {
majorName: this.form.majorName, majorName: this.form.majorName,
studentName: this.form.studentName, studentName: this.form.studentName,
studentCode: this.form.studentCode, studentCode: this.form.studentCode,
sex: sexMap[this.form.sex],
trainClassId, trainClassId,
counsellor: this.form.counsellor, counsellor: this.form.counsellor,
counsellorTel: this.form.counsellorTel, counsellorTel: this.form.counsellorTel,
@ -1476,6 +1571,10 @@ export default {
font-size: 22rpx; font-size: 22rpx;
} }
.sexSelect .u-input__right-icon {
margin-right: 10px;
}
.contentboxCon>>>.u-form-item { .contentboxCon>>>.u-form-item {
padding: 17rpx 0 !important; padding: 17rpx 0 !important;
} }
@ -1499,7 +1598,6 @@ export default {
width: 489rpx; width: 489rpx;
height: 60rpx; height: 60rpx;
background: #2084f9; background: #2084f9;
box-shadow: 0rpx 1rpx 20rpx 1rpx rgba(13, 92, 187, 0.3);
border-radius: 6rpx; border-radius: 6rpx;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
@ -1734,6 +1832,88 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.onlineTrain {
margin: 30rpx 0rpx;
height: 270rpx;
background: #FFFFFF;
border-radius: 10rpx;
}
.onLineTitle {
display: flex;
font-family: PingFang SC;
font-weight: 500;
height: 88rpx;
line-height: 54rpx;
justify-content: space-between;
}
.onLineClassName {
height: 54rpx;
width: 183rpx;
text-align: center;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border-radius: 9rpx 0rpx 46rpx 0rpx;
font-size: 24rpx;
color: #FFFFFF;
}
.onLineCourse {
font-size: 28rpx;
line-height: 46rpx;
font-family: PingFang SC;
font-weight: bold;
color: #1A1A1A;
margin-left: 24rpx;
}
.onLineCourseTime {
margin-left: 24rpx;
margin-right: 30rpx;
width: 174rpx;
line-height: 88rpx;
font-size: 22rpx;
color: #808080;
}
.onLineTeacher {
margin-top: 10rpx;
margin-left: 24rpx;
font-size: 24rpx;
font-weight: 500;
color: #666666;
line-height: 46rpx;
}
.onLineBtnWrap {
display: flex;
justify-content: flex-end;
}
.onLineBtn {
width: 209rpx;
height: 50rpx;
border-radius: 25rpx;
width: 209rpx;
width: 167rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 24rpx;
color: #FFFFFF;
line-height: 49rpx;
text-align: center;
}
.toLearn {
background: linear-gradient(90deg, #FB8C16, #FEC36E);
}
.toPay {
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border: 1px solid #AAD1FE;
}
.logobg { .logobg {
width: 100%; width: 100%;
height: 32vw; height: 32vw;

@ -98,25 +98,31 @@ export default {
.scanSuc { .scanSuc {
font-family: PingFang SC; font-family: PingFang SC;
padding-top: 80rpx;
.className { .className {
font-weight: bold; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
color: #000000; color: #000000;
line-height: 46rpx; line-height: 35rpx;
margin: 30rpx; margin: 30rpx;
} }
.courseName { .courseName {
font-weight: 500; font-weight: 500;
font-size: 30rpx; font-size: 30rpx;
color: #4d4d4d; color: #4d4d4d;
line-height: 46rpx; // line-height: 46rpx;
margin-left: 30rpx; margin-left: 30rpx;
} }
.signBtn { .signBtn {
margin: 0 auto; margin: 0 auto;
margin-top: 300rpx; margin-top: 350rpx;
background-color: #4899f7; // background-color: #4899f7;
background: linear-gradient(90deg, #5ea6fa, #1b7cf2);
color: #fff; color: #fff;
box-shadow: 0rpx 0rpx 20rpx 4rpx rgba(0, 0, 0, 0.219);
border-radius: 50%; border-radius: 50%;
width: 250rpx; width: 250rpx;
height: 250rpx; height: 250rpx;
@ -126,6 +132,7 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
img { img {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
@ -133,6 +140,7 @@ export default {
} }
} }
} }
.scanFail { .scanFail {
margin: 0 auto; margin: 0 auto;
margin-top: 500rpx; margin-top: 500rpx;
@ -140,6 +148,7 @@ export default {
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-size: 30rpx; font-size: 30rpx;
img { img {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;

@ -1,5 +1,19 @@
<template> <template>
<view class="courseWrapper"> <view class="courseWrapper">
<view v-if="courseList.length">
<view class="onlineTrain">
<view class="onLineTitle">
<view class="onLineClassName">软测课堂</view>
<view class="onLineCourseTime">时间{{ '今日 20:00' }}</view>
</view>
<view class="onLineCourse">如何使用性能测试工具</view>
<view class="onLineTeacher">讲师: 风清扬老师</view>
<view class="onLineBtnWrap">
<view class="onLineBtn toLearn" @click="toLearn">去学习</view>
<view class="onLineBtn toPay" @click="toLearn">付费学习: {{ '9.9' }}</view>
</view>
</view>
</view>
<view v-if="courseList.length"> <view v-if="courseList.length">
<view class="courseItem" v-for="course in courseList" :key="course.courseId"> <view class="courseItem" v-for="course in courseList" :key="course.courseId">
<view class="courseName">{{ course.courseName }}</view> <view class="courseName">{{ course.courseName }}</view>
@ -10,7 +24,10 @@
}}</view> }}</view>
</view> </view>
</view> </view>
<view class="mycourseWrapper" v-else> 暂未配置课程 </view> <view class="mycourseWrapper" v-else>
<img src="../../index/testtraining/noCourse.png" alt="">
<view>暂未配置课程</view>
</view>
</view> </view>
</template> </template>
@ -19,23 +36,48 @@ export default {
data() { data() {
return { return {
courseList: [], courseList: [],
total: 10,
classId: '',
queryParams: {
pageSize: 10,
pageNum: 1,
},
} }
}, },
onLoad(options) { onLoad(options) {
console.log('进入course')
const classId = options.id const classId = options.id
const className = options.name const className = options.name
console.log(options) // console.log(options)
this.classId = classId
uni.setNavigationBarTitle({ title: className }) uni.setNavigationBarTitle({ title: className })
this.getCourseList(classId) this.getCourseList()
}, },
methods: { methods: {
async getCourseList(classId) { toLearn() {
this.http.quickGet(`/course/myCourse/class/${classId}`, true).then((res) => { uni.navigateTo({
console.log(res) url: '/pages/index/testtraining/onLineCourse'
})
},
pagionChange(e) {
console.log(e);
this.queryParams.pageNum = e.current
this.getCourseList()
},
async getCourseList() {
const params = this.queryParams
this.http.get(`/course/myCourse/class/${this.classId}`, params, true).then((res) => {
this.total = res.data.total
this.courseList = res.data.rows this.courseList = res.data.rows
}) })
}, },
async onReachBottom() {
if (this.total <= this.queryParams.pageSize) {
return
}
this.queryParams.pageSize += 10
this.getCourseList()
console.log("onReachBottom");
},
courseDialog() { courseDialog() {
const url = 'https://www.bjkeyware.com' const url = 'https://www.bjkeyware.com'
uni.showModal({ uni.showModal({
@ -67,13 +109,20 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.courseWrapper {
}
.mycourseWrapper { .mycourseWrapper {
font-size: 23px;
font-weight: bold;
color: #9D9D9D;
text-align: center; text-align: center;
line-height: 300rpx; margin-top: 100px;
img {
width: 338rpx;
height: 254rpx;
}
} }
.courseItem { .courseItem {
position: relative; position: relative;
margin: 25rpx; margin: 25rpx;
@ -88,6 +137,7 @@ export default {
font-size: 24rpx; font-size: 24rpx;
line-height: 50rpx; line-height: 50rpx;
} }
.courseName { .courseName {
/* width: 369rpx; */ /* width: 369rpx; */
/* height: 29rpx; */ /* height: 29rpx; */
@ -95,12 +145,15 @@ export default {
font-size: 30rpx; font-size: 30rpx;
color: #000000; color: #000000;
} }
.courseTime { .courseTime {
color: #4d4d4d; color: #4d4d4d;
} }
.courseSource { .courseSource {
color: #2853e4; color: #2853e4;
} }
.signInfo { .signInfo {
width: 110rpx; width: 110rpx;
/* height: 40rpx; */ /* height: 40rpx; */
@ -112,4 +165,87 @@ export default {
top: 85rpx; top: 85rpx;
right: 25rpx; right: 25rpx;
} }
.onlineTrain {
margin: 30rpx 30rpx;
height: 270rpx;
background: #FFFFFF;
border-radius: 10rpx;
}
.onLineTitle {
display: flex;
font-family: PingFang SC;
font-weight: 500;
height: 88rpx;
line-height: 54rpx;
justify-content: space-between;
}
.onLineClassName {
height: 54rpx;
width: 183rpx;
text-align: center;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border-radius: 9rpx 0rpx 46rpx 0rpx;
font-size: 24rpx;
color: #FFFFFF;
}
.onLineCourse {
font-size: 28rpx;
line-height: 46rpx;
font-family: PingFang SC;
font-weight: bold;
color: #1A1A1A;
margin-left: 24rpx;
}
.onLineCourseTime {
margin-left: 24rpx;
margin-right: 30rpx;
width: 174rpx;
line-height: 88rpx;
font-size: 22rpx;
color: #808080;
}
.onLineTeacher {
margin-top: 10rpx;
margin-left: 24rpx;
font-size: 24rpx;
font-weight: 500;
color: #666666;
line-height: 46rpx;
}
.onLineBtnWrap {
padding: 0 30rpx;
display: flex;
justify-content: flex-end;
}
.onLineBtn {
width: 209rpx;
height: 50rpx;
border-radius: 25rpx;
width: 209rpx;
width: 167rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 24rpx;
color: #FFFFFF;
line-height: 49rpx;
text-align: center;
}
.toLearn {
background: linear-gradient(90deg, #FB8C16, #FEC36E);
}
.toPay {
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border: 1px solid #AAD1FE;
}
</style> </style>

@ -114,13 +114,14 @@
我的众包 我的众包
</view> </view>
</view> </view>
<view class="cycontentit" @click="servier('myreview')"> <view class="cycontentit" @click="servier('peixunban')" v-if="signuplistLength != 0">
<image src="http://image.bjkeyware.com/static/index/renliwb/newmy3.png" class="cycontentitimg" <image src="http://image.bjkeyware.com/static/index/renliwb/newmy6.png" class="cycontentitimg"
mode=""></image> mode=""></image>
<view class="cycontentittext"> <view class="cycontentittext">
我的评价 我的培训班
</view> </view>
</view> </view>
<view class="cycontentit" @click="servier('message')"> <view class="cycontentit" @click="servier('message')">
<image src="http://image.bjkeyware.com/static/index/renliwb/newmy4.png" class="cycontentitimg" <image src="http://image.bjkeyware.com/static/index/renliwb/newmy4.png" class="cycontentitimg"
mode=""></image> mode=""></image>
@ -146,11 +147,18 @@
我的订单 我的订单
</view> </view>
</view> </view>
<view class="cycontentit" @click="servier('peixunban')" v-if="signuplistLength != 0"> <!-- <view class="cycontentit" @click="servier('peixunban')" v-if="signuplistLength != 0">
<image src="http://image.bjkeyware.com/static/index/renliwb/newmy6.png" class="cycontentitimg" <image src="http://image.bjkeyware.com/static/index/renliwb/newmy6.png" class="cycontentitimg"
mode=""></image> mode=""></image>
<view class="cycontentittext"> <view class="cycontentittext">
报名管理 我的培训班
</view>
</view> -->
<view class="cycontentit" @click="servier('myreview')">
<image src="http://image.bjkeyware.com/static/index/renliwb/newmy3.png" class="cycontentitimg"
mode=""></image>
<view class="cycontentittext">
我的评价
</view> </view>
</view> </view>
<view v-if="applyInfo.companyApplyId && applyInfo.companyStatus == 1" <view v-if="applyInfo.companyApplyId && applyInfo.companyStatus == 1"

@ -1,20 +1,31 @@
<template> <template>
<view> <view>
<view class="accounmt"> <view class="accounmt">
<view v-show="isadd"> <view v-show="isadd && !motify">
<p class="selectadd" style="margin-bottom: 20px;">选择添加类型</p> <p class="selectadd" style="margin-bottom: 20px;">选择添加类型</p>
<u-input style="width:100%;" v-model="accountform.paytype" type="select" @click="psytypeshow = true" placeholder='选择添加类型' /> <u-input style="width:100%;" v-model="accountform.paytype" type="select" @click="psytypeshow = true"
<u-select v-model="psytypeshow" :list="payList" @confirm="paychange" mode="mutil-column-auto" ></u-select> placeholder='选择添加类型' />
<u-select v-model="psytypeshow" :list="payList" @confirm="paychange"
mode="mutil-column-auto"></u-select>
<div style="border: 1px dashed #EBEBEB;margin: 20px 0;"></div> <div style="border: 1px dashed #EBEBEB;margin: 20px 0;"></div>
<div v-if="accountform.paytype=='支付宝'" style="display: flex;align-items: center;margin-bottom:10px;"> <div v-if="accountform.paytype == '支付宝'"
style="display: flex;align-items: center;margin-bottom:10px;justify-content: space-between;">
<view style="display: flex;align-items: center;">
<img style="width:19px;height:19px;margin-right:5px;" src="/static/crowd/PAYB.png" alt=""> <img style="width:19px;height:19px;margin-right:5px;" src="/static/crowd/PAYB.png" alt="">
<p class="selectadd">支付宝账号</p> <p class="selectadd">支付宝账号</p>
</view>
<view @click="accountReset('支付宝')" style="color: #2587FA;">重置账号</view>
</div> </div>
<div v-if="accountform.paytype=='银行卡'" style="display: flex;align-items: center;margin-bottom:10px;"> <div v-if="accountform.paytype == '银行卡'"
style="display: flex;align-items: center;margin-bottom:10px;justify-content: space-between;">
<view style="display: flex;align-items: center;">
<img style="width:18px;height:15px;margin-right:5px;" src="/static/crowd/bankcad.png" alt=""> <img style="width:18px;height:15px;margin-right:5px;" src="/static/crowd/bankcad.png" alt="">
<p class="selectadd">银行卡账号</p> <p class="selectadd">银行卡账号</p>
</view>
<view @click="accountReset('银行卡')" style="color: #2587FA;">重置账号</view>
</div> </div>
<u-form :model="accountform" ref="accountform" label-position='left' label-width='140' border-bottom='false'> <u-form :model="accountform" ref="accountform" label-position='left' label-width='140'
border-bottom='false'>
<view v-if="accountform.paytype == '支付宝' && !accountdata.alipay"> <view v-if="accountform.paytype == '支付宝' && !accountdata.alipay">
<u-form-item label="姓 名:" prop="name" border-bottom='false' required='true'> <u-form-item label="姓 名:" prop="name" border-bottom='false' required='true'>
<u-input style="" v-model="accountform.name"></u-input> <u-input style="" v-model="accountform.name"></u-input>
@ -23,14 +34,18 @@
<u-input v-model="accountform.alipay"></u-input> <u-input v-model="accountform.alipay"></u-input>
</u-form-item> </u-form-item>
<view class="tishi"> <view class="tishi">
<image style="width: 21rpx;height: 21rpx;margin-right: 10rpx;" src="../../../static/crowd/zhuyi.png" mode=""></image> <image style="width: 21rpx;height: 21rpx;margin-right: 10rpx;"
src="../../../static/crowd/zhuyi.png" mode=""></image>
账号添加后暂不支持更改请仔细检查后再提交确定 账号添加后暂不支持更改请仔细检查后再提交确定
</view> </view>
<view class="addbtn"> <view class="addbtn">
<view class="addbtnff" v-if="accountform.paytype=='支付宝' && !accountdata.alipay" @click="acsumbit('determine')" <view class="addbtnff" v-if="accountform.paytype == '支付宝' && !accountdata.alipay"
@click="acsumbit('determine')"
style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>确定</view> style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>确定</view>
<view v-if="accountform.paytype=='支付宝' && !accountdata.alipay" class="addbtnff" @click="acsumbit('cancel')" style="border: 1px solid #E0E0E0;background: #FFFFFF;color: #666666;">取消</view> <view v-if="accountform.paytype == '支付宝' && !accountdata.alipay" class="addbtnff"
@click="acsumbit('cancel')"
style="border: 1px solid #E0E0E0;background: #FFFFFF;color: #666666;">取消</view>
</view> </view>
</view> </view>
@ -45,13 +60,17 @@
<u-input v-model="accountform.bankAccount"></u-input> <u-input v-model="accountform.bankAccount"></u-input>
</u-form-item> </u-form-item>
<view class="tishi"> <view class="tishi">
<image style="width: 21rpx;height: 21rpx;margin-right: 10rpx;" src="../../../static/crowd/zhuyi.png" mode=""></image> <image style="width: 21rpx;height: 21rpx;margin-right: 10rpx;"
src="../../../static/crowd/zhuyi.png" mode=""></image>
账号添加后暂不支持更改请仔细检查后再提交确定 账号添加后暂不支持更改请仔细检查后再提交确定
</view> </view>
<view class="addbtn"> <view class="addbtn">
<view class="addbtnff" v-if="accountform.paytype=='银行卡' && !accountdata.bankAccount" @click="acsumbit('determine')" <view class="addbtnff" v-if="accountform.paytype == '银行卡' && !accountdata.bankAccount"
@click="acsumbit('determine')"
style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>确定</view> style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>确定</view>
<view v-if="accountform.paytype=='银行卡' && !accountdata.bankAccount" class="addbtnff" @click="acsumbit('cancel')" style="border: 1px solid #E0E0E0;background: #FFFFFF;color: #666666;">取消</view> <view v-if="accountform.paytype == '银行卡' && !accountdata.bankAccount" class="addbtnff"
@click="acsumbit('cancel')"
style="border: 1px solid #E0E0E0;background: #FFFFFF;color: #666666;">取消</view>
</view> </view>
</view> </view>
</u-form> </u-form>
@ -82,18 +101,22 @@
</view> </view>
</view> </view>
</view> </view>
<view v-show="!isadd"> <view v-show="!isadd && !motify">
<view v-if="accountdata.alipay && accountdata.bankAccount" @click="accountdatadia('查看账户')" style="display:flex;align-items:center;font-size:15px;cursor: pointer;"> <view v-if="accountdata.alipay && accountdata.bankAccount" @click="accountdatadia('查看账户')"
style="display:flex;align-items:center;font-size:15px;cursor: pointer;">
<!-- <img style="width:20px;height:20px" src="/static/crowd/add.png" alt=""> --> <!-- <img style="width:20px;height:20px" src="/static/crowd/add.png" alt=""> -->
<p style="color:#2286FA;margin: 0 5px;">查看账户</p> <p style="color:#2286FA;margin: 0 5px;">查看账户</p>
</view> </view>
<view v-else @click="accountdatadia('添加账户')" style="display:flex;align-items:center;font-size:15px;cursor: pointer;"> <view v-else @click="accountdatadia('添加账户')"
style="display:flex;align-items:center;font-size:15px;cursor: pointer;">
<img style="width:20px;height:20px" src="/static/crowd/add.png" alt=""> <img style="width:20px;height:20px" src="/static/crowd/add.png" alt="">
<p style="color:#2286FA;margin: 0 5px;">添加账户</p> <p style="color:#2286FA;margin: 0 5px;">添加账户</p>
<p v-if="!accountdata.alipay && !accountdata.bankAccount" style="color:#666666FF;font-size:13px;">(还未添加账户,无法提现)</p> <p v-if="!accountdata.alipay && !accountdata.bankAccount" style="color:#666666FF;font-size:13px;">
(还未添加账户,无法提现)</p>
</view> </view>
<div class="test_content"> <div class="test_content">
<div style="padding:20px;background: #F2F4F7FF;border-radius: 6px 6px 0px 0px;border: 1px solid #E6E8EB;"> <div
style="padding:20px;background: #F2F4F7FF;border-radius: 6px 6px 0px 0px;border: 1px solid #E6E8EB;">
<p style="font-size:26px;color:#1A1A1AFF;font-weight: bold;">账户余额</p> <p style="font-size:26px;color:#1A1A1AFF;font-weight: bold;">账户余额</p>
<p style="margin: 20px 0 0 0;"> <p style="margin: 20px 0 0 0;">
<span style="font-size:30px;color:#F65B24FF;">{{ accountdata.balance }}</span> <span style="font-size:30px;color:#F65B24FF;">{{ accountdata.balance }}</span>
@ -106,8 +129,10 @@
<!-- <u-divider use-solt='false'></u-divider> --> <!-- <u-divider use-solt='false'></u-divider> -->
<!-- <div class="linex"></div> --> <!-- <div class="linex"></div> -->
<div style="margin-top:35px;display: flex;"> <div style="margin-top:35px;display: flex;">
<button class="applbtn" @click="chongzhi" style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>充值</button> <button class="applbtn" @click="chongzhi"
<button class="applbtn" @click="openwitd" style='border: 1px solid #2468F6;color: #2468F6; background: #FFFFFF;'>提现</button> style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>充值</button>
<button class="applbtn" @click="openwitd"
style='border: 1px solid #2468F6;color: #2468F6; background: #FFFFFF;'>提现</button>
<!-- <button @click="openwitd" class="addbtnff" style='border: 1px solid #2468F6;'>提现</button> --> <!-- <button @click="openwitd" class="addbtnff" style='border: 1px solid #2468F6;'>提现</button> -->
<!-- <view style="width:150px;height:50px;font-size: 18px;margin-right:20px;">充值</view> <!-- <view style="width:150px;height:50px;font-size: 18px;margin-right:20px;">充值</view>
<view style="width:150px;height:50px;font-size: 18px;margin-left:20px;">提现</view> --> <view style="width:150px;height:50px;font-size: 18px;margin-left:20px;">提现</view> -->
@ -115,6 +140,59 @@
</div> </div>
</view> </view>
<view v-show="motify">
<u-form :model="accountform" ref="accountform" label-position='left' label-width='140'
border-bottom='false'>
<view v-if="accountform.paytype == '支付宝' && accountdata.alipay">
<u-form-item labelWidth="0" prop="name" border-bottom='false' required='true'>
<u-input v-model="accountform.name" placeholder="请输入姓名"></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="alipay" border-bottom='false' required='true'>
<u-input v-model="accountform.alipay" placeholder="请输入支付宝账号"></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="mobile" border-bottom='false' required='true'>
<u-input v-model="accountform.mobile" placeholder="请输入手机号" disabled></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="code" border-bottom='false' required='true'>
<div style="display: flex;">
<u-input v-model="accountform.code" placeholder="请输入验证码" style="width: 70%;"></u-input>
<view :class="verifyCodeText.disabled ? 'btnDisable getVerifyCode' : 'getVerifyCode'"
@click="getVerifyCode">{{ verifyCodeText.text }}</view>
</div>
</u-form-item>
<view class="resetSubmit">
<view class="resetBtn" @click="acsumbit('determine')"
style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>提交</view>
</view>
</view>
<view v-if="accountform.paytype == '银行卡' && accountdata.bankAccount">
<u-form-item labelWidth="0" prop="name" border-bottom='false' required='true'>
<u-input v-model="accountform.name" placeholder="请输入姓名"></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="bankDeposit" border-bottom='false' required='true'>
<u-input v-model="accountform.bankDeposit" placeholder="请输入开户行"></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="bankAccount" border-bottom='false' required='true'>
<u-input v-model="accountform.bankAccount" placeholder="请输入银行卡号"></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="mobile" border-bottom='false' required='true'>
<u-input v-model="accountform.mobile" placeholder="请输入手机号" disabled></u-input>
</u-form-item>
<u-form-item labelWidth="0" prop="code" border-bottom='false' required='true'>
<div style="display: flex;">
<u-input v-model="accountform.code" placeholder="请输入验证码" style="width: 70%;"></u-input>
<view :class="verifyCodeText.disabled ? 'btnDisable getVerifyCode' : 'getVerifyCode'"
@click="getVerifyCode">{{ verifyCodeText.text }}
</view>
</div>
</u-form-item>
<view class="resetSubmit">
<view class="resetBtn" @click="acsumbit('determine')"
style='background: linear-gradient(90deg, #5EA6FD, #1A81F9);'>提交</view>
</view>
</view>
</u-form>
</view>
</view> </view>
<u-toast ref="uToast"></u-toast> <u-toast ref="uToast"></u-toast>
<!-- 充值弹层 --> <!-- 充值弹层 -->
@ -142,6 +220,12 @@
accountdata: {}, accountdata: {},
wxUserInfo: null, wxUserInfo: null,
isadd: false, isadd: false,
verifyCodeText: {
text: '获取验证码',
timer: '',
disabled: false
},
motify: false,
psytypeshow: false, psytypeshow: false,
payList: [{ value: '1', label: '支付宝' }, { value: '2', label: '银行卡' },], payList: [{ value: '1', label: '支付宝' }, { value: '2', label: '银行卡' },],
accountform: { paytype: '支付宝', name: '', alipay: '', bankDeposit: '', bankAccount: '' }, accountform: { paytype: '支付宝', name: '', alipay: '', bankDeposit: '', bankAccount: '' },
@ -156,6 +240,9 @@
trigger: "blur", trigger: "blur",
}, },
], ],
code: [
{ required: true, message: "请输入验证码", trigger: "blur" },
],
bankDeposit: [ bankDeposit: [
{ required: true, message: "开户行不能为空", trigger: "blur" }, { required: true, message: "开户行不能为空", trigger: "blur" },
{ {
@ -243,6 +330,62 @@
title: val title: val
}); });
}, },
accountReset(val) {
uni.setNavigationBarTitle({
title: '充值账户'
});
this.motify = true
this.accountform = { paytype: '', name: '', alipay: '', bankDeposit: '', bankAccount: '' }
this.accountform.paytype = val
console.log(this.wxUserInfo);
this.accountform.mobile = this.wxUserInfo.phonenumber
},
//
getVerifyCode() {
if (this.verifyCodeText.disabled) {
return
}
const url = this.wxUserInfo.phonenumber
this.verifyCodeText.disabled = true
this.http.quickGet('/captchaUserLogin?phoneNumber=' + url)
.then((res) => {
if (res.data.code == 200) {
this.accountform.uuid = res.data.uuid
uni.showToast({
title: '发送成功',
icon: 'none',
duration: 1000,
})
const TIME_COUNT = 60 //
if (!this.verifyCodeText.timer) {
this.verifyCodeText.text = TIME_COUNT
this.verifyCodeText.disabled = true
this.verifyCodeText.timer = setInterval(() => {
if (this.verifyCodeText.text > 0 && this.verifyCodeText.text <= TIME_COUNT) {
this.verifyCodeText.text--
} else {
this.verifyCodeText.disabled = false
// this.verifyCodeText.show = true
clearInterval(this.verifyCodeText.timer) //
this.verifyCodeText.timer = null
this.verifyCodeText.text = '获取验证码'
}
}, 1000)
}
} else {
this.verifyCodeText.disabled = false
uni.showToast({
title: res.data.msg,
icon: 'none',
duration: 1000,
})
}
})
.catch((err) => {
this.verifyCodeText.disabled = false
console.log('err', err)
})
},
// //
acsumbit(type) { acsumbit(type) {
if (type == 'cancel') { if (type == 'cancel') {
@ -272,13 +415,23 @@
} }
console.log('添加账号data---', data) console.log('添加账号data---', data)
// return; // return;
this.http.quickPost(`/mpay/setting/account`,data,true).then(res=>{ let url = ''
if (this.motify) {
data.uuid = this.accountform.uuid
data.code = this.accountform.code
url = `/mpay/update/account`
} else {
url = `/mpay/setting/account`
}
this.http.quickPost(url, data, true).then(res => {
console.log('res---', res) console.log('res---', res)
let toastTitle = '';
this.motify ? (toastTitle = '重置成功'):(toastTitle = '添加成功')
if (res.data.data.code == 200) { if (res.data.data.code == 200) {
this.$refs.uToast.show( this.$refs.uToast.show(
{ {
type: 'success', type: 'success',
title: "添加成功", title: toastTitle,
duration: 2000, duration: 2000,
} }
) )
@ -287,6 +440,7 @@
// } }); // } });
// //
this.isadd = false this.isadd = false
this.motify = false
this.wxUserInfo = uni.getStorageSync('wxUserInfo'); this.wxUserInfo = uni.getStorageSync('wxUserInfo');
let userId = this.wxUserInfo.userId let userId = this.wxUserInfo.userId
this.http.quickGet(`/mpay/my/account/${userId}`, true).then(res => { this.http.quickGet(`/mpay/my/account/${userId}`, true).then(res => {
@ -403,6 +557,7 @@
font-size: 30rpx; font-size: 30rpx;
margin-left: 13px; margin-left: 13px;
} }
/* #F2F4F7 */ /* #F2F4F7 */
.accounmt { .accounmt {
background: #FFFFFF; background: #FFFFFF;
@ -412,17 +567,20 @@
border-radius: 10px; border-radius: 10px;
padding: 10px 13px; padding: 10px 13px;
} }
.test_content { .test_content {
margin: 30px 0; margin: 30px 0;
/* background: #F2F4F7FF; */ /* background: #F2F4F7FF; */
text-align: center; text-align: center;
} }
.linex { .linex {
height: 1rpx; height: 1rpx;
width: 100%; width: 100%;
background: #EBEBEB background: #EBEBEB
} }
.applbtn { .applbtn {
border-radius: 50px; border-radius: 50px;
width: 150px; width: 150px;
@ -434,6 +592,7 @@
line-height: 40px; line-height: 40px;
color: #FFFFFF; color: #FFFFFF;
} }
.Withdrawable { .Withdrawable {
background: #DDE8F8; background: #DDE8F8;
border-radius: 0px 0px 6px 6px; border-radius: 0px 0px 6px 6px;
@ -443,18 +602,21 @@
font-size: 16px; font-size: 16px;
color: #666666FF; color: #666666FF;
} }
.selectadd { .selectadd {
color: #000000; color: #000000;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
} }
.u-input { .u-input {
padding: 0 10px !important; padding: 0 10px !important;
height: 35px; height: 35px;
border-radius: 4rpx; border-radius: 4rpx;
border: 1px solid #E6E6E6; border: 1px solid #E6E6E6;
} }
.addbtn { .addbtn {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
@ -463,6 +625,39 @@
width: 100%; width: 100%;
margin-left: -40rpx; margin-left: -40rpx;
} }
.resetSubmit {
margin-top: 30px;
display: flex;
justify-content: center;
}
.resetBtn {
width: 85%;
height: 70rpx;
border-radius: 35rpx;
line-height: 70rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
text-align: center;
}
.getVerifyCode {
width: 30%;
border-radius: 5rpx;
line-height: 60rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
text-align: center;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
}
.btnDisable {
background: linear-gradient(90deg, #73a7e7, #4b8eda);
}
.addbtnff { .addbtnff {
width: 40%; width: 40%;
height: 70rpx; height: 70rpx;
@ -473,6 +668,7 @@
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
} }
.tishi { .tishi {
font-weight: 500; font-weight: 500;
font-size: 22rpx; font-size: 22rpx;
@ -480,6 +676,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
.yitianjiaed { .yitianjiaed {
width: 100%; width: 100%;
background: #F5F7FA; background: #F5F7FA;
@ -489,12 +686,14 @@
padding: 20rpx; padding: 20rpx;
margin-top: 40rpx; margin-top: 40rpx;
} }
.yitianjiaedtext { .yitianjiaedtext {
font-weight: 500; font-weight: 500;
font-size: 26rpx; font-size: 26rpx;
color: #333333; color: #333333;
margin-bottom: 25rpx; margin-bottom: 25rpx;
} }
.yitianjiaedtext text { .yitianjiaedtext text {
color: red; color: red;
margin-right: 10rpx; margin-right: 10rpx;

@ -26,7 +26,8 @@
</view> </view>
</block> </block>
<view v-else class="noreview"> <view v-else class="noreview">
暂无评价 <img style="width: 338rpx;height: 254rpx;" src="../../index/testtraining/noEvaluate.png" alt="">
<view>暂无评价</view>
</view> </view>
</view> </view>
</template> </template>
@ -65,7 +66,7 @@
font-weight: bold; font-weight: bold;
color: #9D9D9D; color: #9D9D9D;
text-align: center; text-align: center;
margin-top: 40rpx; margin-top: 100px;
} }
.peixunbanpage { .peixunbanpage {

@ -2,23 +2,62 @@
<view class="navTab"> <view class="navTab">
<!-- <u-search v-model='keyware' placeholder='输入搜索内容' :actionStyle="customActionStyle" <!-- <u-search v-model='keyware' placeholder='输入搜索内容' :actionStyle="customActionStyle"
showAction="true" actionText="搜索" :animation="false" @custom='seacrhko'></u-search> --> showAction="true" actionText="搜索" :animation="false" @custom='seacrhko'></u-search> -->
<div class="sign_list" v-for="(item, key) of signuplist" :key="key">
<view style="display:flex;margin:0 12px 8px 0;justify-content: space-between;align-items: flex-end;">
<view class="rightb">
{{ item.trainClassName }}
</view>
</view>
<view class="fline"></view>
<view @click="catCourse(item)"
style="display: flex;justify-content: space-between;margin: 19px 15px 0 15px;align-items: center;">
<view style="color:#333333FF;font-size:13px;line-height:27px;">
<p>班级名称{{ item.trainClassName }}</p>
<!-- start_time -->
<p v-if="item.trainStartTime">
开课日期{{ item.trainStartTime.slice(0, 4) }}{{ item.trainStartTime.slice(5, 7) }}{{
item.trainStartTime.slice(8, 10) }}
</p>
<p v-if="item.trainEndTime">
结课时间{{ item.trainEndTime.slice(0, 4) }}{{ item.trainEndTime.slice(5, 7) }}{{
item.trainEndTime.slice(8, 10) }}
</p>
</view>
<div v-if="item.status == 1" class="sign_sataus"> 未开课 </div>
<div v-if="item.status == 2" class="sign_sataus"> 未开课 </div>
<div v-if="item.status == 3" class="sign_sataus" style="background: #FBA02A;"> 未开课 </div>
<div v-if="item.status == 4" class="sign_sataus" style="background: #28D17CFF;"> 开课中 </div>
<div v-if="item.status == 5" class="sign_sataus" style="background: #FE5555FF;"> 已结束 </div>
</view>
<view class="endClass">
<view class="reportUrl" @click="uploadReport('cat')">{{ item.reportName }}</view>
<view v-show="reportShow(item)" class="uploadBtn" @click="uploadReport">{{ item.reportName ?
'覆盖上传报告' : '上传结课报告' }}</view>
</view>
</div>
<view v-if="signuplist.length > 0"> <view v-if="signuplist.length > 0">
<view v-for="(item, key) of signuplist" class="sign_list" :key="key"> <view v-for="(item, key) of signuplist" class="sign_list" :key="key">
<view style="display:flex;margin:0 12px 8px 0;justify-content: space-between;align-items: flex-end;"> <view style="display:flex;margin:0 12px 8px 0;justify-content: space-between;align-items: flex-end;">
<view class="rightb"> <view class="rightb">
{{ item.trainClassName }} {{ item.trainClassName }}
</view> </view>
<p v-if="item.registrationTime" style="font-size:24rpx;color: #808080;">报名时间{{ dateFormat(new Date(item.registrationTime))}} </p> <p v-if="item.registrationTime" style="font-size:24rpx;color: #808080;">报名时间{{ dateFormat(new
Date(item.registrationTime)) }} </p>
</view> </view>
<view class="fline"></view> <view class="fline"></view>
<view <view @click="catCourse(item)"
@click="catCourse(item)"
style="display: flex;justify-content: space-between;margin: 19px 15px 0 15px;align-items: center;"> style="display: flex;justify-content: space-between;margin: 19px 15px 0 15px;align-items: center;">
<view style="color:#333333FF;font-size:13px;line-height:27px;"> <view style="color:#333333FF;font-size:13px;line-height:27px;">
<p>班级名称{{ item.trainClassName }}</p> <p>班级名称{{ item.trainClassName }}</p>
<!-- start_time --> <!-- start_time -->
<p v-if="item.trainStartTime" >开课日期{{item.trainStartTime.slice(0,4)}}{{item.trainStartTime.slice(5,7)}}{{item.trainStartTime.slice(8,10)}}</p> <p v-if="item.trainStartTime">
<p v-if="item.trainEndTime" >结课时间{{item.trainEndTime.slice(0,4)}}{{item.trainEndTime.slice(5,7)}}{{item.trainEndTime.slice(8,10)}}</p> 开课日期{{ item.trainStartTime.slice(0, 4) }}{{ item.trainStartTime.slice(5, 7) }}{{
item.trainStartTime.slice(8, 10) }}
</p>
<p v-if="item.trainEndTime">
结课时间{{ item.trainEndTime.slice(0, 4) }}{{ item.trainEndTime.slice(5, 7) }}{{
item.trainEndTime.slice(8, 10) }}
</p>
</view> </view>
<div v-if="item.status == 1" class="sign_sataus"> 未开课 </div> <div v-if="item.status == 1" class="sign_sataus"> 未开课 </div>
<div v-if="item.status == 2" class="sign_sataus"> 未开课 </div> <div v-if="item.status == 2" class="sign_sataus"> 未开课 </div>
@ -26,18 +65,39 @@
<div v-if="item.status == 4" class="sign_sataus" style="background: #28D17CFF;"> 开课中 </div> <div v-if="item.status == 4" class="sign_sataus" style="background: #28D17CFF;"> 开课中 </div>
<div v-if="item.status == 5" class="sign_sataus" style="background: #FE5555FF;"> 已结束 </div> <div v-if="item.status == 5" class="sign_sataus" style="background: #FE5555FF;"> 已结束 </div>
</view> </view>
<view class="endClass">
<view class="reportUrl" @click="uploadReport('cat')">{{ item.reportName }}</view>
<view v-show="reportShow(item)" class="uploadBtn" @click="uploadReport">{{ item.reportName ?
'覆盖上传报告' : '上传结课报告' }}</view>
</view>
</view>
</view> </view>
<view v-else style="font-size:46rpx;font-weight: bold;color: #9D9D9D; text-align:center;margin-top:100px">
<img style="width: 338rpx;height: 254rpx;" src="../../index/testtraining/noregister.png" alt="">
<view>暂无报名信息</view>
</view> </view>
<view v-else style="font-size:46rpx;
font-weight: bold;
color: #9D9D9D; text-align:center;margin-top:100px">暂无报名信息</view>
<view style="height:10px;"></view> <view style="height:10px;"></view>
</view> </view>
</template> </template>
<script> <script>
const endDay = 2
import { dateFormat } from '@/utils/util.js' import { dateFormat } from '@/utils/util.js'
export default { export default {
computed: {
reportShow(v) {
return function (val) {
const nowTime = new Date().getTime()
const endTime = new Date(val.trainEndTime).getTime()
const sub = (endTime - nowTime) / (1000 * 60 * 60 * 24)
// console.log(sub);
if (sub < endDay) {
return true
}
return false
}
},
},
data() { data() {
return { return {
keyware: '', keyware: '',
@ -65,6 +125,11 @@
seacrhko() { seacrhko() {
}, },
// onlineClass() {
// uni.navigateTo({
// url: `/pages/index/onlineTestCourse/onlineCourseInfo`
// })
// },
signupdetails(id) { signupdetails(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/index/testtraining/signup?issueId=${id}&type=1` url: `/pages/index/testtraining/signup?issueId=${id}&type=1`
@ -77,22 +142,75 @@
url: `/pages/personal/myCourse/myCourse?id=${state.trainClassId}&name=${state.trainClassName}` url: `/pages/personal/myCourse/myCourse?id=${state.trainClassId}&name=${state.trainClassName}`
}) })
// } // }
},
uploadReport(val) {
console.log(val);
const url = 'https://www.bjkeyware.com'
uni.showModal({
title: `请登录PC端${(val === 'cat') ? '查看' : '上传'}`,
content: 'PC端网址:' + url,
showCancel: false,
confirmText: '复制网址',
success: function (res) {
if (res.confirm) {
uni.setClipboardData({
data: url,
success: function () {
uni.showToast({
title: '复制成功',
})
},
fail: function () {
uni.showToast({
title: '复制失败',
})
},
})
console.log('用户点击确定')
}
},
})
} }
} }
} }
</script> </script>
<style> <style lang="scss">
.navTab { .navTab {
padding: 2vh 13px; padding: 2vh 13px;
} }
.endClass {
color: #1F80F2;
display: flex;
justify-content: flex-end;
font-size: 24rpx;
line-height: 49rpx;
margin: 30rpx 0;
padding: 25rpx;
border-top: 1px solid #99999936;
;
align-content: center;
.reportUrl {}
.uploadBtn {
margin-left: 30rpx;
background: #EAF3FD;
border-radius: 20rpx;
border: 1px solid #AAD1FE;
padding: 0 20rpx;
}
}
.sign_list { .sign_list {
width: 100%; width: 100%;
background: #FFFFFF; background: #FFFFFF;
border-radius: 10px; border-radius: 10px;
margin-bottom: 20px; margin-bottom: 20px;
padding-bottom:15px; // padding-bottom: 15px;
} }
.rightb { .rightb {
/* width: 183rpx; */ /* width: 183rpx; */
padding: 0 20rpx; padding: 0 20rpx;
@ -105,12 +223,14 @@
text-align: center; text-align: center;
} }
.fline { .fline {
width: 100%; width: 100%;
height: 1rpx; height: 1rpx;
border: 1px solid #999999; border: 1px solid #999999;
opacity: 0.15; opacity: 0.15;
} }
.sign_sataus { .sign_sataus {
width: 75px; width: 75px;
height: 28px; height: 28px;

@ -1,7 +1,8 @@
<template> <template>
<view class="peixunbanpage"> <view class="peixunbanpage">
<view class="nodata" v-if="!useList.length"> <view class="nodata" v-if="!useList.length">
暂无数据 <img src="../../index/testtraining/noUsePerson.png" alt="">
<view>暂无数据</view>
</view> </view>
<view class="boxuser" v-else> <view class="boxuser" v-else>
<view class="items" v-for="it in useList"> <view class="items" v-for="it in useList">
@ -116,14 +117,26 @@
} }
.nodata { .nodata {
display: flex; /* display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 46rpx; font-size: 46rpx;
font-weight: bold; font-weight: bold;
color: #9D9D9D; color: #9D9D9D;
text-align: center; text-align: center;
margin-top: 100px margin-top: 100px */
font-size: 23px;
font-weight: bold;
color: #9D9D9D;
text-align: center;
margin-top: 100px;
}
.nodata img {
width: 338rpx;
height: 254rpx;
} }
.beizhu { .beizhu {

@ -1,8 +1,8 @@
import comstemutil from "./comstemutil"; import comstemutil from "./comstemutil";
//es6 //es6
// const baseUrl = 'http://192.168.0.230:9999'; const baseUrl = 'http://192.168.0.229:9999';
const baseUrl = 'https://www.bjkeyware.com/test-api'; // const baseUrl = 'https://www.bjkeyware.com/test-api';
// const baseUrl = 'https://www.bjkeyware.com/prod-api'; // const baseUrl = 'https://www.bjkeyware.com/prod-api';
// const baseUrl = 'http://172.16.36.180:9999'; // const baseUrl = 'http://172.16.36.180:9999';

Loading…
Cancel
Save