chengdu
yujialong 4 years ago
parent ead39d6803
commit 18c18bdd56
  1. 7
      src/components/page/ProjectPattern.vue
  2. 3
      src/utils/core.js

@ -25,7 +25,7 @@
</div> </div>
</div> </div>
<div class="pattern_wrap"> <div class="pattern_wrap">
<div class="img_wrap" @click="core.toSubSystem('')"> <div class="img_wrap" @click="toPrac">
<div><img src="../../assets/img/buttonOne.png" alt=""></div> <div><img src="../../assets/img/buttonOne.png" alt=""></div>
<div>练习模式</div> <div>练习模式</div>
</div> </div>
@ -46,7 +46,7 @@
export default { export default {
data() { data() {
return { return {
pattern: this.$route.query.pattern, pattern: Number(this.$route.query.pattern),
projectList:[{ projectList:[{
title:'期权套期保值实验', title:'期权套期保值实验',
url:'http://122.9.154.146/kd/#/Dashboard', url:'http://122.9.154.146/kd/#/Dashboard',
@ -67,6 +67,9 @@ export default {
this.patternId = this.$route.query.type this.patternId = this.$route.query.type
}, },
methods: { methods: {
toPrac(){
this.core.toSubSystem('','','',this.pattern)
},
toNext(index) { toNext(index) {
this.$store.commit("patternData",{pattern: this.pattern}); this.$store.commit("patternData",{pattern: this.pattern});
this.$router.push(`dashboard#${index}`) this.$router.push(`dashboard#${index}`)

@ -188,9 +188,8 @@ function toSubSystem(className = '',id = '',classId = '',pattern = ''){
location.href = pattern === 0 ? config.subSystem1 : config.subSystem2 location.href = pattern === 0 ? config.subSystem1 : config.subSystem2
}) })
}else{ }else{
location.href = config.subSystem1 location.href = pattern === 0 ? config.subSystem1 : config.subSystem2
} }
} }
function encodeString(str) { function encodeString(str) {

Loading…
Cancel
Save