解决选择订单列表,和订单之间的交互

This commit is contained in:
sin
2019-04-10 21:48:31 +08:00
parent dad4d33d68
commit dd452f81e6
4 changed files with 48 additions and 24 deletions

View File

@@ -18,6 +18,7 @@
import {GetAddressList} from "../../../api/user.js";
import { AddressList } from 'vant';
import eventBus from '../../eventBus';
import orderStore from '../../../store/order'
export default {
components: {
@@ -43,9 +44,9 @@
if (!this.isSelect) {
return;
}
this.$emit('selectaddress', item);
//传递一个mapchoiceHospital是keyhospital是value
// eventBus.$emit('selectaddress',item);
this.$store.commit('changeAddressData', {
...item
});
this.$router.go(-1);
}
},
@@ -62,8 +63,8 @@
}
});
})
}
},
store: orderStore,
}
</script>