mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
commit
baccc0e5d6
@ -333,6 +333,7 @@ export default {
|
|||||||
//订单立即支付
|
//订单立即支付
|
||||||
async getwei(user) {
|
async getwei(user) {
|
||||||
let data = await this.repayOrde(this.orderNumber);
|
let data = await this.repayOrde(this.orderNumber);
|
||||||
|
let loginedUser = this.$store.state.userInfo;
|
||||||
if(data.code==1) {
|
if(data.code==1) {
|
||||||
let userPayData = {
|
let userPayData = {
|
||||||
userprice: this.usersalesAmount,
|
userprice: this.usersalesAmount,
|
||||||
@ -345,6 +346,7 @@ export default {
|
|||||||
"order_repay",
|
"order_repay",
|
||||||
{
|
{
|
||||||
"status":"success",
|
"status":"success",
|
||||||
|
"member_id": loginedUser.data.id
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@ -361,6 +363,7 @@ export default {
|
|||||||
"order_repay",
|
"order_repay",
|
||||||
{
|
{
|
||||||
"status":"fail - " + this.orderNumber,
|
"status":"fail - " + this.orderNumber,
|
||||||
|
"member_id": loginedUser.data.id
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
this.$message({
|
this.$message({
|
||||||
|
@ -153,6 +153,7 @@ import MyFooter from '~/components/rc-footer.vue';
|
|||||||
import tabs from "~/components/tabs.vue";
|
import tabs from "~/components/tabs.vue";
|
||||||
import util from "@/ajax/util";
|
import util from "@/ajax/util";
|
||||||
import { customerorders, userindent, canceldanhao, repayOrde } from "../../ajax/getData";
|
import { customerorders, userindent, canceldanhao, repayOrde } from "../../ajax/getData";
|
||||||
|
import { mapMutations } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -288,7 +289,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
let user = JSON.parse(localStorage.getItem("userInfo"));
|
this.checkIsLogin();
|
||||||
|
let user = this.$store.state.userInfo;
|
||||||
this.userdata = user.data.mobile;
|
this.userdata = user.data.mobile;
|
||||||
let stype = this.$route.query.stype;
|
let stype = this.$route.query.stype;
|
||||||
this.userstype=this.$route.query.stype;
|
this.userstype=this.$route.query.stype;
|
||||||
@ -308,6 +310,7 @@ export default {
|
|||||||
tabs
|
tabs
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations(["changemessage","checkIsLogin"]),
|
||||||
async indet(mobile, stype) {
|
async indet(mobile, stype) {
|
||||||
let data = await userindent(mobile,undefined,1,100);
|
let data = await userindent(mobile,undefined,1,100);
|
||||||
this.activeIndex = stype;
|
this.activeIndex = stype;
|
||||||
@ -478,6 +481,7 @@ export default {
|
|||||||
userfind(item) {
|
userfind(item) {
|
||||||
this.paytypeWarning = this.util.checkPaytypeValidated(item.paytype);
|
this.paytypeWarning = this.util.checkPaytypeValidated(item.paytype);
|
||||||
this.showPaytypeWarning = !this.paytypeWarning.result;
|
this.showPaytypeWarning = !this.paytypeWarning.result;
|
||||||
|
let user = this.$store.state.userInfo;
|
||||||
if(this.paytypeWarning.result) {
|
if(this.paytypeWarning.result) {
|
||||||
if(item.status==0){
|
if(item.status==0){
|
||||||
_hmt.push([
|
_hmt.push([
|
||||||
@ -485,6 +489,7 @@ export default {
|
|||||||
"order_repay",
|
"order_repay",
|
||||||
{
|
{
|
||||||
"status":"success",
|
"status":"success",
|
||||||
|
"member_id": user.data.id
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
this.getwei(item);
|
this.getwei(item);
|
||||||
@ -503,6 +508,7 @@ export default {
|
|||||||
"order_repay",
|
"order_repay",
|
||||||
{
|
{
|
||||||
"status":"fail",
|
"status":"fail",
|
||||||
|
"member_id": user.data.id
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
@ -492,6 +492,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//领取优惠券
|
//领取优惠券
|
||||||
usergetconf(item) {
|
usergetconf(item) {
|
||||||
|
let memberId = '';
|
||||||
|
if (this.usermessage.data !== "" || this.usermessage.data !== undefined) {
|
||||||
|
this.getconf(this.usermessage.data.id, item.couponId);
|
||||||
|
memberId = this.usermessage.data.id;
|
||||||
|
}
|
||||||
_hmt.push([
|
_hmt.push([
|
||||||
"_trackCustomEvent",
|
"_trackCustomEvent",
|
||||||
"get_coupon",
|
"get_coupon",
|
||||||
@ -501,11 +506,9 @@ export default {
|
|||||||
"product_name": this.curItem.productName,
|
"product_name": this.curItem.productName,
|
||||||
"product_quantity" : this.sales_num,
|
"product_quantity" : this.sales_num,
|
||||||
"product_amount" : this.sales_num*this.curItem.ecPrice,
|
"product_amount" : this.sales_num*this.curItem.ecPrice,
|
||||||
|
"member_id" : memberId
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
if (this.usermessage.data !== "" || this.usermessage.data !== undefined) {
|
|
||||||
this.getconf(this.usermessage.data.id, item.couponId);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取用户领取的优惠券
|
//获取用户领取的优惠券
|
||||||
@ -723,6 +726,7 @@ export default {
|
|||||||
"product_name": this.curItem.productName,
|
"product_name": this.curItem.productName,
|
||||||
"product_quantity" : this.sales_num,
|
"product_quantity" : this.sales_num,
|
||||||
"product_amount" : this.sales_num*this.curItem.ecPrice,
|
"product_amount" : this.sales_num*this.curItem.ecPrice,
|
||||||
|
'member_id': user.data.id
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
@ -407,6 +407,7 @@ export default {
|
|||||||
this.checkIsLogin();
|
this.checkIsLogin();
|
||||||
let returnMessage='';
|
let returnMessage='';
|
||||||
if(data.type==1) {
|
if(data.type==1) {
|
||||||
|
debugger;
|
||||||
if(data.data.memberName===undefined){
|
if(data.data.memberName===undefined){
|
||||||
returnMessage = '欢迎回来';
|
returnMessage = '欢迎回来';
|
||||||
}
|
}
|
||||||
@ -416,7 +417,9 @@ export default {
|
|||||||
_hmt.push([
|
_hmt.push([
|
||||||
"_trackCustomEvent",
|
"_trackCustomEvent",
|
||||||
"login",
|
"login",
|
||||||
{}
|
{
|
||||||
|
'member_id': data.data.id
|
||||||
|
}
|
||||||
])
|
])
|
||||||
} else if(data.type==2) {
|
} else if(data.type==2) {
|
||||||
returnMessage = '恭喜注册成功';
|
returnMessage = '恭喜注册成功';
|
||||||
|
Loading…
Reference in New Issue
Block a user