UI_2022-02-10
4 years ago
parent 74cdf0c0f8
commit 3208433db4
  1. 3
      src/components/common/Studentcommon/registration.vue
  2. 2
      src/components/page/PersonalCenter.vue
  3. 4
      src/store/index.js

@ -40,7 +40,7 @@ export default {
return { return {
systemId: this.$store.state.systemId ? this.$store.state.systemId : this.$config.systemId, systemId: this.$store.state.systemId ? this.$store.state.systemId : this.$config.systemId,
systemList: this.$config.systemList, systemList: this.$config.systemList,
activeName: 'first', activeName: this.$store.state.activeName ? this.$store.state.activeName : 'first',
userId: this.$store.state.userId, userId: this.$store.state.userId,
tabs: { tabs: {
first: '练习', first: '练习',
@ -65,6 +65,7 @@ export default {
}, },
tabChange(index){ tabChange(index){
this.activeName = index this.activeName = index
this.$store.commit("activeNameData", { activeName : this.activeName})
}, },
} }
}; };

@ -123,7 +123,7 @@
</div> </div>
<div class="item"> <div class="item">
<span>证件</span> <span>证件</span>
<input id="idnumber" class="idnumber" placeholder="请输入证件" type="text" v-model="personalInformation.idNumber"/> <input onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" id="idnumber" class="idnumber" placeholder="请输入证件" type="text" v-model="personalInformation.idNumber"/>
</div> </div>
</div> </div>
<div class="line"> <div class="line">

@ -30,6 +30,7 @@ const store = new Vuex.Store({
systemId: '', systemId: '',
token: '', token: '',
dataTime: '', dataTime: '',
activeName: 'first'
}, },
mutations:{ mutations:{
courseIdData(state,payload){ courseIdData(state,payload){
@ -97,6 +98,9 @@ const store = new Vuex.Store({
addProjectSystemIdData (state, payload) { addProjectSystemIdData (state, payload) {
state.systemId = payload.systemId state.systemId = payload.systemId
}, },
activeNameData (state, payload) {
state.activeName = payload.activeName
},
} }
}); });

Loading…
Cancel
Save