Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
郑艺斌
/
emaint-servicer-wechat-app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5f2cd1f3
authored
Dec 12, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加加载中
parent
249a005f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
pages/endRepair/repair.js
pages/endRepair/repair.js
View file @
5f2cd1f3
...
...
@@ -23,6 +23,7 @@ Page({
},
id
:
''
,
tagText
:
''
,
isBtn
:
false
,
},
/**
...
...
@@ -182,6 +183,12 @@ Page({
});
},
submit
()
{
if
(
this
.
data
.
isBtn
){
return
}
wx
.
showLoading
({
title
:
'加载中'
,
})
const
that
=
this
let
arr
=
[]
let
pattern1
=
/^
\s
+/g
;
...
...
@@ -241,6 +248,9 @@ Page({
"accessToken"
:
wx
.
getStorageSync
(
'accessToken'
)
},
// 设置请求的 header
success
:
function
(
res
)
{
that
.
setData
({
isBtn
:
false
})
if
(
res
.
data
.
statusCode
===
200
)
{
that
.
addTag
()
wx
.
showToast
({
...
...
@@ -251,6 +261,12 @@ Page({
wx
.
navigateBack
({
delta
:
1
})
}
else
{
wx
.
showToast
({
title
:
'提交失败!'
,
icon
:
'error'
,
duration
:
2000
})
}
}
})
...
...
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