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
39d7abbe
authored
Dec 01, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增跳转以及校验
parent
4310a86a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
pages/endRepair/repair.js
pages/information/information.js
pages/endRepair/repair.js
View file @
39d7abbe
...
...
@@ -68,6 +68,24 @@ Page({
},
addTag
(){
const
that
=
this
let
pattern1
=
/^
\s
+/g
;
let
pattern2
=
/
\s
+$/g
;
let
tagText
=
this
.
data
.
tagText
if
(
pattern1
.
test
(
tagText
)){
wx
.
showToast
({
title
:
`文字前不能包含空格!`
,
icon
:
'none'
,
duration
:
2000
})
return
}
else
if
(
pattern2
.
test
(
tagText
)){
wx
.
showToast
({
title
:
`文字后不能包含空格!`
,
icon
:
'none'
,
duration
:
2000
})
return
}
wx
.
request
({
url
:
baseUrl
+
'/api/emaint/problem-base/addLabel'
,
data
:
{
...
...
@@ -84,6 +102,12 @@ Page({
tagText
:
''
})
that
.
getTabs
()
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
responseResult
,
icon
:
'none'
,
duration
:
2000
})
}
}})
},
...
...
pages/information/information.js
View file @
39d7abbe
...
...
@@ -81,6 +81,8 @@ Page({
// 点击完成维修
wanchengdan
(
e
){
var
that
=
this
;
wx
.
navigateTo
({
url
:
`../endRepair/repair?id=
${
e
.
currentTarget
.
dataset
.
id
}
`
})
return
console
.
log
(
e
.
currentTarget
.
dataset
.
id
)
this
.
setData
({
// wantan: true,
...
...
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