Merge branch 'master' of http://git.umayle.com:2023/chengdandan/InternetCompetition
This commit is contained in:
commit
040c28361b
|
@ -253,8 +253,8 @@ export default {
|
|||
};
|
||||
},
|
||||
created() {
|
||||
let that = this;
|
||||
window.getParameter = that.getParameter;
|
||||
// let that = this;
|
||||
// window.getParameter = that.getParameter;
|
||||
this.user_id = this.$route.fullPath.split("?")[1];
|
||||
this.GetUserAnswer();
|
||||
// this.tableData = JSON.parse(localStorage.getItem("wgwh")) || [];
|
||||
|
|
|
@ -139,7 +139,12 @@ export default {
|
|||
methods: {
|
||||
getParameter(data) {
|
||||
alert(data);
|
||||
this.user_id = data;
|
||||
this.user_id = data.split("|")[0];
|
||||
if (data.split("|")[1] == 1) {
|
||||
this.$store.commit("setType", "GYWZ_yx");
|
||||
} else {
|
||||
this.$store.commit("setType", "GYWZ_wx");
|
||||
}
|
||||
},
|
||||
//ip地址验证
|
||||
validateIpAddress(rule, value, callback) {
|
||||
|
|
|
@ -290,7 +290,12 @@ export default {
|
|||
methods: {
|
||||
getParameter(data) {
|
||||
alert(data);
|
||||
this.user_id = data;
|
||||
this.user_id = data.split("|")[0];
|
||||
if (data.split("|")[1] == 1) {
|
||||
this.$store.commit("setType", "GYWZ_yx");
|
||||
} else {
|
||||
this.$store.commit("setType", "GYWZ_wx");
|
||||
}
|
||||
},
|
||||
addPolicy() {
|
||||
this.$router.push({ name: "addstrategy", query: { id: this.user_id } });
|
||||
|
|
|
@ -176,14 +176,13 @@ export default {
|
|||
// },
|
||||
// ])
|
||||
// );
|
||||
|
||||
let that = this;
|
||||
window.getParameter = that.getParameter;
|
||||
// let that = this;
|
||||
// window.getParameter = that.getParameter;
|
||||
},
|
||||
methods: {
|
||||
getParameter(data) {
|
||||
this.$router.push(`/${data}`);
|
||||
},
|
||||
// getParameter(data) {
|
||||
// this.$router.push(`/${data}`);
|
||||
// },
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue