Commit 802a90c8 authored by 杨梦雪's avatar 杨梦雪

提交作业-删除作业

parent 72570597
......@@ -279,9 +279,7 @@ export default {
file_image: {},
resultPicture: "",
disabled: false, //限制输入框
hideUpload: false,
limitCount: 1,
};
},
......@@ -289,7 +287,6 @@ export default {
const code = this.$store.state.indexIdentity;
this.camp_name = window.localStorage.getItem("camp_name" + code);
this.has_amount = window.localStorage.getItem("has_amount" + code);
// 已上传的银行付款图片
let bank_infoFile = window.localStorage.getItem(
"bank_info" + window.localStorage.getItem("phone" + code) + code
......@@ -300,6 +297,7 @@ export default {
this.fileList = JSON.parse(bank_infoFile);
}
this.getAccount();
this.commonApi(33)
},
methods: {
handleClose(done) {
......@@ -498,6 +496,7 @@ export default {
}
},
toPaying() {
this.commonApi(34)
this.dialogPayingVisible = false;
if (this.has_amount == 0) {
getWxConfig({ pay_type: 3 }).then((res) => {
......
......@@ -26,6 +26,10 @@ Vue.prototype.upload = upload
import preventReClick from './utils/preventRepeatClick.js'
Vue.use(preventReClick);
//埋点公共方法
import {commonApi}from './utils/common'
Vue.prototype.commonApi = commonApi;
// 禁止浏览器前进后退 另一部本在router的index.js中
window.addEventListener('popstate', function() {
history.pushState(null, null, document.URL)
......
......@@ -111,6 +111,7 @@ export function request(config) {
const passwordCode = '/web/code/passwordCode';
const changePassCode = '/web/auth/changePassCode';
const loginOut = '/web/auth/loginOut';
const setLog = '/web/auth/setLog';
// console.log(config)
if (
......@@ -123,7 +124,8 @@ export function request(config) {
config.url.indexOf(registerEmailCode) != -1 ||
config.url.indexOf(passwordEmailCode) != -1 ||
config.url.indexOf(changePassCode) != -1 ||
config.url.indexOf(passwordCode) != -1
config.url.indexOf(passwordCode) != -1||
config.url.indexOf(setLog) != -1
) {
return config
......
......@@ -123,3 +123,14 @@ export function getSchool(data) {
params: data
})
}
//埋点
export function setLog(data) {
data['identity'] = store.state.indexIdentity;
return request({
method: 'post',
url: '/web/auth/setLog',
params: data
})
}
import {setLog} from "../request/index/signUp";
//埋点
export function commonApi(number) {
console.log(number, "number");
setLog({type:number}).then((res) => {
console.log(number, "number");
console.log(res, "signBack");
if (res.data.code != 200) {
return
}
}).catch(err=>{
console.log(err, "err");
});
}
......@@ -199,6 +199,7 @@ export default {
this.loginForm.phone = phone;
this.intervalHandle(new Date(), Number(endTime));
}
this.commonApi(31)
},
methods: {
// 定时器倒计时
......
......@@ -225,6 +225,7 @@ export default {
this.resetForm.phone = phone;
this.intervalHandle(new Date(), Number(endTime));
}
this.commonApi(30)
},
methods: {
// 去注册
......
......@@ -57,6 +57,8 @@
import Header from "@/components/index/Header.vue";
import Footer from "@/components/index/Footer.vue";
import { getCamInfo } from "r/index/login";
import { setLogs } from "@/common/utils";
export default {
name: "recruit",
data() {
......@@ -74,6 +76,7 @@ export default {
document.title = res.data.name;
return false;
});
this.commonApi(29)
},
methods: {
toLogin() {
......
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 to comment