Commit 35f88c3d by 施宇

1

parent ce0b42f8
......@@ -82,7 +82,12 @@ const actions = {
if (payload.data.type == 1) {
window.location.href = "/v3/order/confirm?type=zy&k=" + payload.data.k
} else {
window.location.href = "/v3/order/confirm?type=other&k=" + payload.data.k
if(payload.invitedId){
window.location.href = "/v3/order/confirm?type=other&k=" + payload.data.k+"&invitedId="+payload.invitedId
}else{
window.location.href = "/v3/order/confirm?type=other&k=" + payload.data.k
}
}
} else {
state.isShowAlert = true;
......
......@@ -211,10 +211,17 @@ export default {
num:1,
buy: 1
};
let invitedId="";
if(this.invitedId){
invitedId = this.invitedId
}else if(util.getCookie("Yo4teW_uid")){
invitedId = util.getCookie("Yo4teW_uid")
}
this.$store.dispatch({
type: "addGoods",
data: { datax: datax },
invitedId:this.invitedId
invitedId:invitedId
});
})
},
......
This diff could not be displayed because it is too large.
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 sign in to comment