Data tracking point added

This commit is contained in:
Vion
2022-03-11 18:41:28 +08:00
parent 283c32a6f0
commit 201f9fa9bf
4 changed files with 21 additions and 5 deletions

View File

@@ -153,6 +153,7 @@ import MyFooter from '~/components/rc-footer.vue';
import tabs from "~/components/tabs.vue";
import util from "@/ajax/util";
import { customerorders, userindent, canceldanhao, repayOrde } from "../../ajax/getData";
import { mapMutations } from "vuex";
export default {
data() {
return {
@@ -288,7 +289,8 @@ export default {
},
mounted() {
let user = JSON.parse(localStorage.getItem("userInfo"));
this.checkIsLogin();
let user = this.$store.state.userInfo;
this.userdata = user.data.mobile;
let stype = this.$route.query.stype;
this.userstype=this.$route.query.stype;
@@ -308,6 +310,7 @@ export default {
tabs
},
methods: {
...mapMutations(["changemessage","checkIsLogin"]),
async indet(mobile, stype) {
let data = await userindent(mobile,undefined,1,100);
this.activeIndex = stype;
@@ -478,6 +481,7 @@ export default {
userfind(item) {
this.paytypeWarning = this.util.checkPaytypeValidated(item.paytype);
this.showPaytypeWarning = !this.paytypeWarning.result;
let user = this.$store.state.userInfo;
if(this.paytypeWarning.result) {
if(item.status==0){
_hmt.push([
@@ -485,6 +489,7 @@ export default {
"order_repay",
{
"status":"success",
"member_id": user.data.id
}
])
this.getwei(item);
@@ -503,6 +508,7 @@ export default {
"order_repay",
{
"status":"fail",
"member_id": user.data.id
}
])
}