修改:已登录用户报名时固定手机号、培训具体内容改为静态

main
hcj 4 months ago
parent 84379210be
commit 22784c38c7
  1. 56
      pages/index/testtraining/signup.vue
  2. 132
      pages/index/testtraining/testtraining.vue
  3. 15
      pages/personal/courseSign/courseSign.vue
  4. BIN
      pages/personal/courseSign/error.1png
  5. BIN
      pages/personal/courseSign/error.png
  6. BIN
      pages/personal/courseSign/signSuc.1png
  7. BIN
      pages/personal/courseSign/signSuc.png
  8. 2
      pages/personal/setup/peixunban.vue

@ -170,34 +170,34 @@
this.register = uni.getStorageSync('register'); this.register = uni.getStorageSync('register');
// console.log('register--',this.register) // console.log('register--',this.register)
// console.log('wxUserInfo---',this.wxUserInfo) // console.log('wxUserInfo---',this.wxUserInfo)
this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then(res=>{ // this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then(res=>{
// console.log('res---', res) // // console.log('res---', res)
this.courselist = res.data.rows; // this.courselist = res.data.rows;
if(this.courselist.length>0){ // if(this.courselist.length>0){
this.courselist.sort((a,b)=>{ // this.courselist.sort((a,b)=>{
return a.orderNum-b.orderNum // return a.orderNum-b.orderNum
}) // })
this.courselist.forEach(item=>{ // this.courselist.forEach(item=>{
if(item.children.length>0){ // if(item.children.length>0){
item.children.sort((a,b)=>{ // item.children.sort((a,b)=>{
return a.orderNum-b.orderNum // return a.orderNum-b.orderNum
}) // })
if(item.orderNum==1){ // if(item.orderNum==1){
item.index='一' // item.index=''
}else if(item.orderNum==2){ // }else if(item.orderNum==2){
item.index='二' // item.index=''
}else if(item.orderNum==3){ // }else if(item.orderNum==3){
item.index='三' // item.index=''
}else if(item.orderNum==4){ // }else if(item.orderNum==4){
item.index='四' // item.index=''
}else if(item.orderNum==5){ // }else if(item.orderNum==5){
item.index='五' // item.index=''
} // }
} // }
}) // })
// console.log('--', this.courselist) // // console.log('--', this.courselist)
} // }
}) // })
this.http.quickGet(`/train/issue/detail/${this.issueId}`).then(res=>{ this.http.quickGet(`/train/issue/detail/${this.issueId}`).then(res=>{
console.log('报名期号信息---',res) console.log('报名期号信息---',res)
this.issueinform=res.data this.issueinform=res.data

@ -42,21 +42,19 @@
针对企业用人需求进行课程培训 针对企业用人需求进行课程培训
</view> </view>
</view> </view>
<view v-for="(item,key) of courselist" :key="key" <view
style='font-size:11px;line-height: 18px;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">{{item.index}} {{item.courseName}}</view> <view class="table_heade">序号</view>
<view style="width:.5px;background-color:#CFDDDD;height:26px"></view> <view style="width:600rpx;text-align:center">课程名称</view>
<view class="table_kheade">课时</view> <view class="table_kheade">课时</view>
</view> </view>
<view v-if='item.children.length>0'> <view>
<view class="bodyt" v-for="(itemd,key) of item.children" <view class="bodyt" v-for="(item,key) of courselist" :key="key"
:style="{'border-bottom':itemd.orderNum==item.children.length?'none':'1rpx solid #CFDDDD;'}"> :style="{'border-bottom':key==courselist.length?'none':'1rpx solid #CFDDDD;'}">
<view class="table_obody">{{itemd.orderNum}}</view> <view class="table_obody">{{key+1}}</view>
<view class="table_tbody">{{itemd.courseName}}</view> <view class="table_tbody">{{item.con}}</view>
<view v-if='itemd.period.slice(-1)==0' class="table_hbody">{{itemd.period.slice(0,1)}} <view class="table_hbody">{{item.num}}</view>
</view>
<view v-else class="table_hbody">{{itemd.period}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -520,7 +518,7 @@
<view class="rowitemxing"> <view class="rowitemxing">
* *
</view> </view>
<u-input v-model="jjform.mobile" 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">
@ -566,9 +564,10 @@ export default {
let schooldata = res.data.rows[0] let schooldata = res.data.rows[0]
this.calltext = schooldata.schoolName + '-' + schooldata.trainClassName this.calltext = schooldata.schoolName + '-' + schooldata.trainClassName
if (schooldata.trainStartTime && schooldata.trainEndTime) { if (schooldata.trainStartTime && schooldata.trainEndTime) {
console.log(schooldata); console.log(schooldata)
this.timetext = this.timetext =
schooldata.trainClassName + ' ' + schooldata.trainClassName +
' ' +
'课程周期:' + '课程周期:' +
schooldata.trainStartTime.slice(0, 10) + schooldata.trainStartTime.slice(0, 10) +
'至' + '至' +
@ -600,6 +599,7 @@ export default {
isShowDown: false, isShowDown: false,
tokenshow: false, tokenshow: false,
isPopupShow: false, isPopupShow: false,
inpDisabled: false,
signobj: { signobj: {
name: '', name: '',
qq: '', qq: '',
@ -625,7 +625,29 @@ export default {
label: '硕士', label: '硕士',
}, },
], ],
courselist: '', // courselist: [
{ con: '静态分析的概念介绍。', num: '1课时' },
{ con: '静态分析工具介绍。', num: '1课时' },
{ con: '静态分析的基本流程。', num: '1课时' },
{ con: '单元测试的概念介绍。', num: '1课时' },
{ con: '单元测试依据的标准介绍。', num: '1课时' },
{ con: '介绍单元测试的测试类型。', num: '1课时' },
{ con: '单元测试的基本流程。', num: '1课时' },
{ con: '单元测试工具的安装和使用。', num: '2课时' },
{ con: '单元测试环境配置。', num: '2课时' },
{ con: '单元测试工具静态分析操作流程。', num: '2课时' },
{ con: '单元测试操作流程。', num: '2课时' },
{ con: '单元测试工具的测试报告导出。', num: '1课时' },
{ con: '静态测试工具的安装和使用。', num: '2课时' },
{
con: '通过项目进行代码行数、圈复杂度、扇入扇出、注释率进行测试。',
num: '4课时',
},
{
con: '通过项目进行文档审查、代码审查、静态分析、测试用例的设计、单元测试的执行、单元测试的记录填写、单元测试的测试用例的自动生成、单元测试的问题记录方法、单元测试文档编写。',
num: '4课时',
},
], //
wxUserInfo: null, // wxUserInfo: null, //
register: null, register: null,
swipelist: [ swipelist: [
@ -978,34 +1000,34 @@ export default {
this.register = uni.getStorageSync('register') this.register = uni.getStorageSync('register')
console.log('register--', this.register) console.log('register--', this.register)
console.log('wxUserInfo---', this.wxUserInfo) console.log('wxUserInfo---', this.wxUserInfo)
this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then((res) => { // this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then((res) => {
console.log('res---', res) // console.log('res---', res)
this.courselist = res.data.rows // this.courselist = res.data.rows
if (this.courselist.length > 0) { // if (this.courselist.length > 0) {
this.courselist.sort((a, b) => { // this.courselist.sort((a, b) => {
return a.orderNum - b.orderNum // return a.orderNum - b.orderNum
}) // })
this.courselist.forEach((item) => { // this.courselist.forEach((item) => {
if (item.children.length > 0) { // if (item.children.length > 0) {
item.children.sort((a, b) => { // item.children.sort((a, b) => {
return a.orderNum - b.orderNum // return a.orderNum - b.orderNum
}) // })
if (item.orderNum == 1) { // if (item.orderNum == 1) {
item.index = '一' // item.index = ''
} else if (item.orderNum == 2) { // } else if (item.orderNum == 2) {
item.index = '二' // item.index = ''
} else if (item.orderNum == 3) { // } else if (item.orderNum == 3) {
item.index = '三' // item.index = ''
} else if (item.orderNum == 4) { // } else if (item.orderNum == 4) {
item.index = '四' // item.index = ''
} else if (item.orderNum == 5) { // } else if (item.orderNum == 5) {
item.index = '五' // item.index = ''
} // }
} // }
}) // })
console.log('课程培训列表--', this.courselist) // console.log('--', this.courselist)
} // }
}) // })
// //
this.getClassList() this.getClassList()
@ -1173,6 +1195,7 @@ export default {
}, },
// 1 // 1
model1CLick() { model1CLick() {
console.log('click me')
this.isShowDown = true this.isShowDown = true
}, },
closeShowDown() { closeShowDown() {
@ -1239,6 +1262,7 @@ export default {
}, },
closeclosejj() { closeclosejj() {
this.isPCshow = false this.isPCshow = false
this.inpDisabled = false
this.$refs.uFormjj.resetFields() this.$refs.uFormjj.resetFields()
this.jjform = { this.jjform = {
studentName: '', studentName: '',
@ -1248,6 +1272,10 @@ export default {
} }
}, },
jjOpen(it) { jjOpen(it) {
const accessToken = uni.getStorageSync('accessToken')
const wxUserInfo = uni.getStorageSync('wxUserInfo')
console.log(accessToken)
console.log(wxUserInfo)
// let accessToken = uni.getStorageSync('accessToken'); // let accessToken = uni.getStorageSync('accessToken');
// if (!accessToken) { // if (!accessToken) {
// this.tokenshow = true // this.tokenshow = true
@ -1255,6 +1283,10 @@ export default {
// this.isPCshow = true // this.isPCshow = true
// this.classInfo = it // this.classInfo = it
// } // }
if (accessToken && wxUserInfo.phonenumber) {
this.jjform.mobile = wxUserInfo.phonenumber
this.inpDisabled = true
}
if (it) { if (it) {
this.classInfo = it this.classInfo = it
} }
@ -1983,13 +2015,14 @@ export default {
} }
.table_heade { .table_heade {
width: 90%; width: 100rpx;
text-align: center; text-align: center;
line-height: 20rpx;
/* margin:5px 0 */ /* margin:5px 0 */
} }
.table_kheade { .table_kheade {
width: 10%; width: 140rpx;
text-align: center; text-align: center;
} }
@ -2004,17 +2037,18 @@ export default {
background-color: #ffffff; background-color: #ffffff;
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 20px;
color: #1a1a1a; color: #1a1a1a;
/* height: 26px; */ /* height: 26px; */
} }
.table_obody { .table_obody {
width: 10%; width: 100rpx;
text-align: center; text-align: center;
} }
.table_tbody { .table_tbody {
width: 80%; width: 600rpx;
text-align: left; text-align: left;
padding: 4px 8px; padding: 4px 8px;
border-left: 1px solid #cfdddd; border-left: 1px solid #cfdddd;
@ -2022,7 +2056,7 @@ export default {
} }
.table_hbody { .table_hbody {
width: 10%; width: 140rpx;
text-align: center; text-align: center;
} }

@ -12,12 +12,12 @@
<view>{{ nowTime }}</view> <view>{{ nowTime }}</view>
</view> </view>
<view class="signBtn" v-else> <view class="signBtn" v-else>
<img src="./signSuc.png" alt="" /> <img src="http://image.bjkeyware.com/static/index/renliwb/signSuc.png" alt="" />
<view>已签到</view> <view>已签到</view>
</view> </view>
</view> </view>
<view class="scanFail" v-else> <view class="scanFail" v-else>
<img src="./error.png" alt="" /> <img src="http://image.bjkeyware.com/static/index/renliwb/error.png" alt="" />
<view>无法识别二维码</view> <view>无法识别二维码</view>
</view> </view>
</view> </view>
@ -78,12 +78,11 @@ export default {
}) })
}, },
init() { init() {
this.http.quickGet(`/course/singin/${this.courseId}`, true).then((response) => {
this.http.quickGet(`/course/singin/${this.courseId}`,true).then((response) => { console.log(response)
console.log(response); if (response.data.msg == '已签到') {
if(response.data.msg == '已签到'){ this.isSignin = true
this.isSignin = true }
}
}) })
}, },
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

@ -3,7 +3,7 @@
<!-- <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> -->
<view v-if="signuplist.length>0"> <view v-if="signuplist.length>0">
<view v-for="(item,key) of signuplist" class="sign_list"> <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}}

Loading…
Cancel
Save