Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
802a90c8
Commit
802a90c8
authored
Mar 13, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交作业-删除作业
parent
72570597
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
51 additions
and
12 deletions
+51
-12
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+2
-3
src/main.js
src/main.js
+4
-0
src/request/index/network.js
src/request/index/network.js
+4
-2
src/request/index/signUp.js
src/request/index/signUp.js
+11
-0
src/utils/common.js
src/utils/common.js
+18
-0
src/views/index/login/Login.vue
src/views/index/login/Login.vue
+1
-0
src/views/index/login/Register.vue
src/views/index/login/Register.vue
+8
-7
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+3
-0
No files found.
src/components/index/SignUp/paying.vue
View file @
802a90c8
...
...
@@ -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
)
=>
{
...
...
src/main.js
View file @
802a90c8
...
...
@@ -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
)
...
...
src/request/index/network.js
View file @
802a90c8
...
...
@@ -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
...
...
src/request/index/signUp.js
View file @
802a90c8
...
...
@@ -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
})
}
src/utils/common.js
0 → 100644
View file @
802a90c8
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
"
);
});
}
src/views/index/login/Login.vue
View file @
802a90c8
...
...
@@ -199,6 +199,7 @@ export default {
this
.
loginForm
.
phone
=
phone
;
this
.
intervalHandle
(
new
Date
(),
Number
(
endTime
));
}
this
.
commonApi
(
31
)
},
methods
:
{
// 定时器倒计时
...
...
src/views/index/login/Register.vue
View file @
802a90c8
...
...
@@ -225,6 +225,7 @@ export default {
this
.
resetForm
.
phone
=
phone
;
this
.
intervalHandle
(
new
Date
(),
Number
(
endTime
));
}
this
.
commonApi
(
30
)
},
methods
:
{
// 去注册
...
...
src/views/index/recruit/Index.vue
View file @
802a90c8
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment