Commit 333457f5 authored by xd's avatar xd

修改切换专柜

parent 4986eedb
......@@ -21,22 +21,23 @@
<script>
import { getStoreList } from "@/api/sidebar/voucher"
import { log } from 'util';
export default {
data() {
return {
radio: "1",
radio: '',
userId: '',
list: []
}
},
created() {
this.getList()
this.userId = sessionStorage.getItem('userId')
this.radio = this.$route.query.userId
},
methods: {
getList() {
let params = {
user_id: this.userId
user_id: this.$route.query.userId
}
getStoreList(params).then(res => {
console.log(res.data);
......
......@@ -277,8 +277,14 @@ export default {
manInfoClick() {
this.$router.push("counterInfo");
},
switchBarClick() {
this.$router.push("ChangeCounter");
switchBarClick() {
// this.$router.push("ChangeCounter");
this.$router.push({
path:'ChangeCounter',
query:{
userId: this.zcache.userId
}
})
},
testButtonClick() {},
menu01Click() {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment