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

提交作业-删除作业

parent 72570597
...@@ -279,9 +279,7 @@ export default { ...@@ -279,9 +279,7 @@ export default {
file_image: {}, file_image: {},
resultPicture: "", resultPicture: "",
disabled: false, //限制输入框 disabled: false, //限制输入框
hideUpload: false, hideUpload: false,
limitCount: 1, limitCount: 1,
}; };
}, },
...@@ -289,7 +287,6 @@ export default { ...@@ -289,7 +287,6 @@ export default {
const code = this.$store.state.indexIdentity; const code = this.$store.state.indexIdentity;
this.camp_name = window.localStorage.getItem("camp_name" + code); this.camp_name = window.localStorage.getItem("camp_name" + code);
this.has_amount = window.localStorage.getItem("has_amount" + code); this.has_amount = window.localStorage.getItem("has_amount" + code);
// 已上传的银行付款图片 // 已上传的银行付款图片
let bank_infoFile = window.localStorage.getItem( let bank_infoFile = window.localStorage.getItem(
"bank_info" + window.localStorage.getItem("phone" + code) + code "bank_info" + window.localStorage.getItem("phone" + code) + code
...@@ -300,6 +297,7 @@ export default { ...@@ -300,6 +297,7 @@ export default {
this.fileList = JSON.parse(bank_infoFile); this.fileList = JSON.parse(bank_infoFile);
} }
this.getAccount(); this.getAccount();
this.commonApi(33)
}, },
methods: { methods: {
handleClose(done) { handleClose(done) {
...@@ -498,6 +496,7 @@ export default { ...@@ -498,6 +496,7 @@ export default {
} }
}, },
toPaying() { toPaying() {
this.commonApi(34)
this.dialogPayingVisible = false; this.dialogPayingVisible = false;
if (this.has_amount == 0) { if (this.has_amount == 0) {
getWxConfig({ pay_type: 3 }).then((res) => { getWxConfig({ pay_type: 3 }).then((res) => {
......
...@@ -26,6 +26,10 @@ Vue.prototype.upload = upload ...@@ -26,6 +26,10 @@ Vue.prototype.upload = upload
import preventReClick from './utils/preventRepeatClick.js' import preventReClick from './utils/preventRepeatClick.js'
Vue.use(preventReClick); Vue.use(preventReClick);
//埋点公共方法
import {commonApi}from './utils/common'
Vue.prototype.commonApi = commonApi;
// 禁止浏览器前进后退 另一部本在router的index.js中 // 禁止浏览器前进后退 另一部本在router的index.js中
window.addEventListener('popstate', function() { window.addEventListener('popstate', function() {
history.pushState(null, null, document.URL) history.pushState(null, null, document.URL)
......
...@@ -111,6 +111,7 @@ export function request(config) { ...@@ -111,6 +111,7 @@ export function request(config) {
const passwordCode = '/web/code/passwordCode'; const passwordCode = '/web/code/passwordCode';
const changePassCode = '/web/auth/changePassCode'; const changePassCode = '/web/auth/changePassCode';
const loginOut = '/web/auth/loginOut'; const loginOut = '/web/auth/loginOut';
const setLog = '/web/auth/setLog';
// console.log(config) // console.log(config)
if ( if (
...@@ -123,8 +124,9 @@ export function request(config) { ...@@ -123,8 +124,9 @@ export function request(config) {
config.url.indexOf(registerEmailCode) != -1 || config.url.indexOf(registerEmailCode) != -1 ||
config.url.indexOf(passwordEmailCode) != -1 || config.url.indexOf(passwordEmailCode) != -1 ||
config.url.indexOf(changePassCode) != -1 || config.url.indexOf(changePassCode) != -1 ||
config.url.indexOf(passwordCode) != -1 config.url.indexOf(passwordCode) != -1||
config.url.indexOf(setLog) != -1
) { ) {
return config return config
} }
......
...@@ -123,3 +123,14 @@ export function getSchool(data) { ...@@ -123,3 +123,14 @@ export function getSchool(data) {
params: 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 { ...@@ -199,6 +199,7 @@ export default {
this.loginForm.phone = phone; this.loginForm.phone = phone;
this.intervalHandle(new Date(), Number(endTime)); this.intervalHandle(new Date(), Number(endTime));
} }
this.commonApi(31)
}, },
methods: { methods: {
// 定时器倒计时 // 定时器倒计时
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
v-model="registerForm.phone" v-model="registerForm.phone"
placeholder="请输入手机号" placeholder="请输入手机号"
maxlength="11" maxlength="11"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item prop="email"> <!-- <el-form-item prop="email">
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<el-input <el-input
v-model="registerForm.email" v-model="registerForm.email"
placeholder="请输入邮箱" placeholder="请输入邮箱"
></el-input> ></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item prop="code"> <el-form-item prop="code">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
v-model="registerForm.code" v-model="registerForm.code"
placeholder="请输入短信验证码" placeholder="请输入短信验证码"
maxlength="20" maxlength="20"
></el-input> ></el-input>
<!-- 短信验证码 --> <!-- 短信验证码 -->
<!-- <div class="phoneCode"> <!-- <div class="phoneCode">
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
v-model="registerForm.code" v-model="registerForm.code"
placeholder="请输入邮箱注册验证码" placeholder="请输入邮箱注册验证码"
maxlength="6" maxlength="6"
></el-input> --> ></el-input> -->
<!-- 短信验证码 --> <!-- 短信验证码 -->
<div class="phoneCode"> <div class="phoneCode">
<span class="code" v-show="showCode" @click="getCode" <span class="code" v-show="showCode" @click="getCode"
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
v-model="registerForm.rq_password" v-model="registerForm.rq_password"
placeholder="请再次输入登录密码" placeholder="请再次输入登录密码"
maxlength="20" maxlength="20"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item style="margin: 40px 0 0 0"></el-form-item> <el-form-item style="margin: 40px 0 0 0"></el-form-item>
...@@ -225,6 +225,7 @@ export default { ...@@ -225,6 +225,7 @@ export default {
this.resetForm.phone = phone; this.resetForm.phone = phone;
this.intervalHandle(new Date(), Number(endTime)); this.intervalHandle(new Date(), Number(endTime));
} }
this.commonApi(30)
}, },
methods: { methods: {
// 去注册 // 去注册
......
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
import Header from "@/components/index/Header.vue"; import Header from "@/components/index/Header.vue";
import Footer from "@/components/index/Footer.vue"; import Footer from "@/components/index/Footer.vue";
import { getCamInfo } from "r/index/login"; import { getCamInfo } from "r/index/login";
import { setLogs } from "@/common/utils";
export default { export default {
name: "recruit", name: "recruit",
data() { data() {
...@@ -74,6 +76,7 @@ export default { ...@@ -74,6 +76,7 @@ export default {
document.title = res.data.name; document.title = res.data.name;
return false; return false;
}); });
this.commonApi(29)
}, },
methods: { methods: {
toLogin() { 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