Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
374a3914
Commit
374a3914
authored
Dec 17, 2020
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交部分code
parent
66299297
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
14 deletions
+19
-14
VideoForm.vue
src/components/editTemplate/form/VideoForm.vue
+2
-2
EditPassword.vue
src/views/userCenter/EditPassword.vue
+2
-2
EditPhone.vue
src/views/userCenter/EditPhone.vue
+2
-6
SetPassword.vue
src/views/userCenter/SetPassword.vue
+2
-2
VerCode.vue
src/views/userCenter/VerCode.vue
+11
-2
No files found.
src/components/editTemplate/form/VideoForm.vue
View file @
374a3914
...
...
@@ -181,7 +181,7 @@ export default {
}
return
;
}
that
.
locaVideos
.
push
({
name
:
file
.
name
,
state
:
"上传中"
,
...
...
@@ -196,7 +196,6 @@ export default {
uploadComplete
(
xhr
)
{
//服务断接收完文件返回的结果
this
.
hashList
.
push
(
JSON
.
parse
(
xhr
.
target
.
response
).
data
.
hash
);
this
.
locaVideos
[
this
.
locaVideos
.
length
-
1
].
url
=
JSON
.
parse
(
xhr
.
target
.
response
).
data
.
url
;
...
...
@@ -204,6 +203,7 @@ export default {
// 失败回调
uploadFailed
(
xhr
)
{
//上传失败
console
.
log
(
'请求失败'
);
},
},
};
...
...
src/views/userCenter/EditPassword.vue
View file @
374a3914
...
...
@@ -88,7 +88,7 @@ export default Vue.extend({
code_type
:
0
,
pwd
:
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
)
+
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
))
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
.
length
))
),
code
:
this
.
passwordForm
.
code
,
};
...
...
@@ -97,7 +97,7 @@ export default Vue.extend({
email
:
this
.
passwordForm
.
email
,
pwd
:
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
)
+
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
))
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
.
length
))
),
code
:
this
.
passwordForm
.
code
,
code_type
:
1
,
...
...
src/views/userCenter/EditPhone.vue
View file @
374a3914
...
...
@@ -66,6 +66,7 @@
<code-btn
@
sendCode=
"sendCode"
:Modifyphone=
"true"
:newV=
"String(newPhone.phone)"
ref=
"child"
></code-btn>
</el-form-item>
...
...
@@ -78,12 +79,7 @@
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
import
CodeBtn
from
"./VerCode.vue"
;
import
{
// smsCode,
// smsCodeUnlogin,
checkOldPhone
,
editPhone
,
}
from
"./Api.service"
;
import
{
checkOldPhone
,
editPhone
}
from
"./Api.service"
;
export
default
Vue
.
extend
({
components
:
{
CodeBtn
,
...
...
src/views/userCenter/SetPassword.vue
View file @
374a3914
...
...
@@ -88,7 +88,7 @@ export default Vue.extend({
code_type
:
0
,
pwd
:
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
)
+
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
))
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
.
length
))
),
code
:
this
.
passwordForm
.
code
,
};
...
...
@@ -97,7 +97,7 @@ export default Vue.extend({
email
:
this
.
passwordForm
.
email
,
pwd
:
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
)
+
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
))
this
.
$md5
(
String
(
this
.
passwordForm
.
pwd
.
length
))
),
code
:
this
.
passwordForm
.
code
,
code_type
:
1
,
...
...
src/views/userCenter/VerCode.vue
View file @
374a3914
...
...
@@ -16,7 +16,7 @@ import { sendSms, sendEmail } from "./Api.service";
@
Component
export
default
class
VerCode
extends
Vue
{
@
Prop
({
type
:
Boolean
,
default
:
false
})
Modifyphone
!
:
boolean
;
@
Prop
({
type
:
String
,
default
:
""
})
newV
!
:
""
;
public
show
:
boolean
=
true
;
public
count
:
number
=
0
;
public
timer
:
number
=
0
;
...
...
@@ -45,9 +45,17 @@ export default class VerCode extends Vue {
}
// 发送验证码
public
async
getCode
()
{
// return;
// 手机
if
(
this
.
$store
.
state
.
userInfos
.
phone
!==
""
)
{
let
phone
=
""
;
if
(
this
.
newV
!==
""
)
{
phone
=
this
.
newV
;
}
else
{
phone
=
this
.
$store
.
state
.
userInfos
.
phone
;
}
const
res
=
await
sendSms
({
phone
:
this
.
$store
.
state
.
userInfos
.
phone
,
phone
:
phone
,
template_id
:
this
.
Modifyphone
?
3
:
1
,
});
if
(
res
)
{
...
...
@@ -55,6 +63,7 @@ export default class VerCode extends Vue {
this
.
$emit
(
"sendCode"
);
}
}
else
{
// 邮箱
const
res
=
await
sendEmail
({
email
:
this
.
$store
.
state
.
userInfos
.
email
,
template_id
:
this
.
Modifyphone
?
3
:
1
,
...
...
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