retailer-vue/src/routes/retailer/cc_error.vue

71 lines
1.6 KiB
Vue

<template>
<div>
</div>
</template>
<script>
const baseUrl = process.env.VUE_APP_BASE_URL;
export default {
name: "CCError",
components: {
},
data: () => ({
}),
computed:{
userAuth: function() {
return this.$store.state.auth.userAuth;
},
guestQuoteId: function() {
return this.$store.state.guestInfo.guestQuoteId;
},
canonical: function() {
return this.$route.meta.canonical;
},
},
metaInfo() {
return {
link: [
{rel: 'canonical', href:`${this.canonical ? window.location.href.split('?')[0] : baseUrl }`}
]
}
},
mounted() {
if (this.userAuth) {
if (
this.$route.query.RetailerID &&
this.$route.query.ItemNumber &&
this.$route.query.Quantity &&
this.$route.query.CCID
) {
// this.$store.dispatch("userCartProduct/addToCart", {
// RetailerID: this.$route.query.RetailerID,
// ItemNumber: this.$route.query.ItemNumber,
// Quantity: this.$route.query.Quantity,
// CCID: this.$route.query.CCID
// })
// this.$store.dispatch("userCartProduct/cartProductList");
}
}
else
{
if (
this.$route.query.RetailerID &&
this.$route.query.ItemNumber &&
this.$route.query.Quantity &&
this.$route.query.CCID
) {
// this.$store.dispatch("cartProduct/addToCart", {
// RetailerID: this.$route.query.RetailerID,
// ItemNumber: this.$route.query.ItemNumber,
// Quantity: this.$route.query.Quantity,
// CCID: this.$route.query.CCID
// })
}
}
}
,
created(){
}
};
</script>