Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
mobi
Commits
fd9c02ef
Commit
fd9c02ef
authored
May 26, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
8fdb1ab9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
83 deletions
+82
-83
main.js
src/main.js
+16
-17
api.js
src/server/api.js
+1
-1
mobi.vue
src/views/mobi.vue
+65
-65
No files found.
src/main.js
View file @
fd9c02ef
...
...
@@ -139,21 +139,21 @@ Vue.use(Calendar)
// Vue.use(Carousel)
Vue
.
use
(
Tooltip
)
import
{
NavBar
}
from
'vant'
;
import
{
Form
as
vantForm
}
from
'vant'
;
import
{
Field
}
from
'vant'
;
import
{
Button
as
vantButton
}
from
'vant'
;
import
{
Calendar
as
vanCalendar
}
from
'vant'
;
import
{
Picker
as
vanPicker
}
from
'vant'
;
import
{
DatetimePicker
as
vanDatetimePicker
}
from
'vant'
;
import
{
Popup
}
from
'vant'
;
import
{
Notify
}
from
'vant'
;
import
{
Dialog
}
from
'vant'
;
Vue
.
use
(
vantForm
)
;
Vue
.
use
(
NavBar
)
;
Vue
.
use
(
Field
)
;
Vue
.
use
(
vantButton
)
;
import
{
NavBar
}
from
'vant'
import
{
Form
as
vantForm
}
from
'vant'
import
{
Field
}
from
'vant'
import
{
Button
as
vantButton
}
from
'vant'
import
{
Calendar
as
vanCalendar
}
from
'vant'
import
{
Picker
as
vanPicker
}
from
'vant'
import
{
DatetimePicker
as
vanDatetimePicker
}
from
'vant'
import
{
Popup
}
from
'vant'
import
{
Notify
}
from
'vant'
import
{
Dialog
}
from
'vant'
Vue
.
use
(
vantForm
)
Vue
.
use
(
NavBar
)
Vue
.
use
(
Field
)
Vue
.
use
(
vantButton
)
Vue
.
use
(
vanCalendar
)
Vue
.
use
(
vanPicker
)
Vue
.
use
(
vanDatetimePicker
)
...
...
@@ -161,8 +161,7 @@ Vue.use(Popup)
Vue
.
use
(
Notify
)
Vue
.
use
(
Dialog
)
import
'vant/lib/index.css'
;
import
'vant/lib/index.css'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$ajax
=
ajax
...
...
src/server/api.js
View file @
fd9c02ef
let
BASE_URL
=
''
,
MOCK_URL
=
''
,
WBX_URL
=
''
,
let
BASE_URL
=
''
,
MOCK_URL
=
''
,
WBX_URL
=
''
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
switch
(
process
.
env
.
NODE_ENV
)
{
...
...
src/views/mobi.vue
View file @
fd9c02ef
...
...
@@ -145,78 +145,78 @@
<
script
>
export
default
{
data
()
{
return
{
areaColumns
:
[],
typeColumns
:
[],
data
()
{
return
{
areaColumns
:
[],
typeColumns
:
[],
sectName
:
''
,
sectAddrRoad
:
''
,
sectAddrLong
:
''
,
mpzAddr
:
''
,
repairArea
:
''
,
repairType
:
''
,
description
:
''
,
dueDate
:
''
,
dueTime
:
''
,
sectName
:
''
,
sectAddrRoad
:
''
,
sectAddrLong
:
''
,
mpzAddr
:
''
,
repairArea
:
''
,
repairType
:
''
,
description
:
''
,
dueDate
:
''
,
dueTime
:
''
,
repairAreaPicker
:
''
,
repairTypePicker
:
''
,
repairAreaPicker
:
''
,
repairTypePicker
:
''
,
showrepairAreaPicker
:
false
,
showrepairTypePicker
:
false
,
showrepairAreaPicker
:
false
,
showrepairTypePicker
:
false
,
showCalendar
:
false
,
showTime
:
false
,
showDialog
:
false
showCalendar
:
false
,
showTime
:
false
,
showDialog
:
false
}
},
mounted
()
{
},
methods
:
{
onConfirm
()
{},
onSubmit
()
{
this
.
$ajax
.
post
({
url
:
this
.
$api
.
POST_RESERVATION_FORM
,
params
:
{
'stNameFrst'
:
this
.
sectName
,
'unitLoad'
:
this
.
sectAddrRoad
,
'unitLong'
:
this
.
sectAddrLong
,
'addrFrst'
:
this
.
mpzAddr
,
'place'
:
this
.
repairArea
,
'type'
:
this
.
repairType
,
'dscr'
:
this
.
description
,
'homeDate'
:
this
.
dueDate
,
'homeTime'
:
this
.
dueTime
}
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$notify
({
type
:
'primary'
,
message
:
'提交成功!'
})
this
.
showDialog
=
!
this
.
showDialog
}
})
},
mounted
()
{
repairAreaConfirm
()
{},
repairTypeConfirm
()
{},
calendarOnConfirm
(
val
)
{
this
.
dueDate
=
this
.
$moment
(
val
).
format
(
'YYYY-MM-DD'
)
this
.
showCalendar
=
!
this
.
showCalendar
},
methods
:{
onConfirm
()
{},
onSubmit
()
{
this
.
$ajax
.
post
({
url
:
this
.
$api
.
POST_RESERVATION_FORM
,
params
:
{
"stNameFrst"
:
this
.
sectName
,
"unitLoad"
:
this
.
sectAddrRoad
,
"unitLong"
:
this
.
sectAddrLong
,
"addrFrst"
:
this
.
mpzAddr
,
"place"
:
this
.
repairArea
,
"type"
:
this
.
repairType
,
"dscr"
:
this
.
description
,
"homeDate"
:
this
.
dueDate
,
"homeTime"
:
this
.
dueTime
}
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$notify
({
type
:
'primary'
,
message
:
'提交成功!'
});
this
.
showDialog
=
!
this
.
showDialog
}
})
},
repairAreaConfirm
()
{},
repairTypeConfirm
()
{},
calendarOnConfirm
(
val
)
{
this
.
dueDate
=
this
.
$moment
(
val
).
format
(
'YYYY-MM-DD'
)
this
.
showCalendar
=
!
this
.
showCalendar
},
timeOnConfirm
(
val
)
{
this
.
dueTime
=
val
this
.
showTime
=
!
this
.
showTime
},
clearAllFormFields
()
{
this
.
sectName
=
''
this
.
sectAddrRoad
=
''
this
.
sectAddrLong
=
''
this
.
mpzAddr
=
''
this
.
repairArea
=
''
this
.
repairType
=
''
this
.
description
=
''
this
.
dueDate
=
''
this
.
dueTime
=
''
}
timeOnConfirm
(
val
)
{
this
.
dueTime
=
val
this
.
showTime
=
!
this
.
showTime
},
clearAllFormFields
()
{
this
.
sectName
=
''
this
.
sectAddrRoad
=
''
this
.
sectAddrLong
=
''
this
.
mpzAddr
=
''
this
.
repairArea
=
''
this
.
repairType
=
''
this
.
description
=
''
this
.
dueDate
=
''
this
.
dueTime
=
''
}
}
}
</
script
>
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