Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
李俊赕
self-support
Commits
2f2d08ea
Commit
2f2d08ea
authored
Apr 27, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
468ee0bd
4b8810bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
25 deletions
+29
-25
.env.dev.js
.env.dev.js
+2
-2
appoint-time.vue
src/components/appoint/appoint-time.vue
+11
-23
feedback.vue
src/pages/order/feedback.vue
+16
-0
No files found.
.env.dev.js
View file @
2f2d08ea
...
@@ -5,8 +5,8 @@ const UNI_APP = {
...
@@ -5,8 +5,8 @@ const UNI_APP = {
// banshou: 'https://m.banshou.com', //扳手app
// banshou: 'https://m.banshou.com', //扳手app
},
},
systemUrl
:
{
systemUrl
:
{
apiUrl
:
'http://192.168.1.22'
,
//java端域名请求头
//
apiUrl: 'http://192.168.1.22', //java端域名请求头
//
apiUrl: 'http://apidoc.banshouhui.com:3000/mock/31', // mock端域名请求头
apiUrl
:
'http://apidoc.banshouhui.com:3000/mock/31'
,
// mock端域名请求头
},
},
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
}
}
...
...
src/components/appoint/appoint-time.vue
View file @
2f2d08ea
...
@@ -47,33 +47,19 @@
...
@@ -47,33 +47,19 @@
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
dateList
:
{
type
:
Array
,
default
:
[]
},
timeList
:
{
type
:
Array
,
default
:
[]
},
},
},
data
()
{
data
()
{
return
{
return
{
currentDay
:
0
,
currentDay
:
0
,
currentTime
:
null
,
currentTime
:
null
,
dateList
:
[{
weekDay
:
'周三'
,
day
:
'21'
,
},
{
weekDay
:
'周四'
,
day
:
'22'
,
},
{
weekDay
:
'周五'
,
day
:
'23'
,
},
{
weekDay
:
'周六'
,
day
:
'24'
,
},
{
weekDay
:
'周日'
,
day
:
'25'
,
},
{
weekDay
:
'周一'
,
day
:
'26'
,
},
],
timeList
:
[
'06:00-08:00'
,
'08:00-10:00'
,
'10:00-12:00'
,
'12:00-14:00'
,
'14:00-16:00'
,
'16:00-18:00'
,
'18:00-20:00'
,
'20:00-22:00'
,
'22:00-24:00'
],
}
}
},
},
computed
:
{
computed
:
{
...
@@ -88,13 +74,15 @@
...
@@ -88,13 +74,15 @@
getDateList
()
{
getDateList
()
{
// 获取日期
// 获取日期
},
},
dateChange
(
item
,
index
,
list
)
{
async
dateChange
(
item
,
index
,
list
)
{
let
data
=
{
let
data
=
{
item
,
item
,
index
,
index
,
list
,
list
,
}
}
this
.
currentDay
=
index
this
.
currentDay
=
index
let
res
=
await
this
.
$u
.
api
.
openTimerange
()
debugger
this
.
$emit
(
'date-change'
,
data
)
this
.
$emit
(
'date-change'
,
data
)
},
},
timeChange
(
item
,
index
,
list
)
{
timeChange
(
item
,
index
,
list
)
{
...
...
src/pages/order/feedback.vue
View file @
2f2d08ea
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
},
},
},
},
async
onLoad
(
e
)
{
async
onLoad
(
e
)
{
this
.
$u
.
vuex
(
'vuex_token'
,
'RTOKEN7493e6defc2f1a77782f105dc297a9366763fec5'
);
this
.
orderId
=
1
this
.
orderId
=
1
this
.
categoryId
=
88
this
.
categoryId
=
88
if
(
e
)
{
if
(
e
)
{
...
@@ -151,9 +152,11 @@
...
@@ -151,9 +152,11 @@
title
:
"数据加载中"
,
title
:
"数据加载中"
,
mask
:
true
mask
:
true
})
})
this
.
loadCalendar
()
await
this
.
initPageData
()
await
this
.
initPageData
()
},
},
methods
:
{
methods
:
{
/* 初始化页面数据 */
async
initPageData
()
{
async
initPageData
()
{
let
self
=
this
let
self
=
this
let
params
=
{
categoryId
:
self
.
categoryId
}
let
params
=
{
categoryId
:
self
.
categoryId
}
...
@@ -165,6 +168,7 @@
...
@@ -165,6 +168,7 @@
}
}
uni
.
hideLoading
()
uni
.
hideLoading
()
},
},
/* 组装参数 */
buildConfig
()
{
buildConfig
()
{
let
self
=
this
let
self
=
this
if
(
self
.
config
)
{
if
(
self
.
config
)
{
...
@@ -176,6 +180,7 @@
...
@@ -176,6 +180,7 @@
})
})
}
}
},
},
/* 初始化参数 */
initParams
()
{
initParams
()
{
let
self
=
this
let
self
=
this
if
(
self
.
config
)
{
if
(
self
.
config
)
{
...
@@ -195,6 +200,17 @@
...
@@ -195,6 +200,17 @@
}
}
}
}
},
},
/* 加载日历数据 */
async
loadCalendar
()
{
let
self
=
this
let
res
=
await
this
.
$u
.
api
.
workerCalendar
()
if
(
res
&&
res
.
code
==
200
)
{
}
debugger
},
/**
/**
* 切换tab项
* 切换tab项
*/
*/
...
...
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