新增:已登录用户报名时固定手机号

main
hcj 9 months ago
parent 1aebb3fc4d
commit 7a7b91a02f
  1. BIN
      public/assets/newtrain/model2_0.jpg
  2. BIN
      public/assets/newtrain/model2_00.jpg
  3. 18
      src/page/homepage/traininstitute/train.vue
  4. 7
      src/page/personalpage/course/index.vue
  5. 4
      vue.config.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 KiB

@ -450,7 +450,7 @@
<el-form-item label="" prop="mobile">
<div class="rowboxi">
<span class="rowboxis">*</span>
<el-input v-model="formjj.mobile" placeholder="请输入您的手机号"></el-input>
<el-input v-model="formjj.mobile" :disabled="inpDisable" placeholder="请输入您的手机号"></el-input>
</div>
</el-form-item>
<el-form-item label="" prop="code" v-if="!token">
@ -481,7 +481,8 @@ import {
getTeacherList,
getSwiperImages,
} from '@/api/train/index.js'
import { mapGetters } from 'vuex'
import { mapGetters, mapState } from 'vuex'
import { getCodeUserLogin } from '@/api/system/login'
export default {
data() {
@ -524,6 +525,7 @@ export default {
activeVal: 0,
calltext: '',
timetext: '',
inpDisable:false,
teacherShow:true,
userId: '',
isshowSubmitDialog: false,
@ -1014,7 +1016,7 @@ export default {
this.indexbanner = res.data
console.log(this.indexbanner);
const toggle = this.indexbanner.some(item=>{
return item.sort == '3'
return item.classType == '3'
})
this.teacherShow = toggle
// console.log(toggle);
@ -1237,6 +1239,7 @@ export default {
this.$message.warning(res.data.msg)
this.isshowSubmitDialog = false
}
this.inpDisable = false
})
} else {
console.log('error submit!!')
@ -1314,6 +1317,8 @@ export default {
coloeDialog1() {
this.$refs['formjj1'].resetFields()
this.isPcshow = false
this.inpDisable = false
console.log(this.inpDisable);
},
//
pcBaoming(item) {
@ -1334,6 +1339,13 @@ export default {
// this.isPcshow = true
// this.classInfo = item
// }
const phone = this.userinform.phonenumber
if(phone && this.token){
this.inpDisable = true
this.formjj.mobile = phone
}else{
this.formjj.mobile = ""
}
this.isPcshow = true
if (item) {
this.classInfo = item

@ -59,13 +59,6 @@ export default {
</script>
<style>
.back {
color: #0066eb;
margin-left: 20px;
font-family: PingFang SC;
font-size: 16px;
cursor: pointer;
}
.courseItemWrap {
margin-top: 10px;
}

@ -1,6 +1,6 @@
const webpack = require('webpack')
const path = require('path')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
/**
* 配置参考:
* https://cli.vuejs.org/zh/config/
@ -52,7 +52,7 @@ module.exports = {
'window.Quill': 'quill/dist/quill.js',
'Quill': 'quill/dist/quill.js'
}),
new BundleAnalyzerPlugin()
// new BundleAnalyzerPlugin()
],
},

Loading…
Cancel
Save