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
22d2cb95
Commit
22d2cb95
authored
May 28, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into dev
parents
3bbc3075
8d6d5c45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
http.interceptor.js
src/common/http.interceptor.js
+2
-2
complete.vue
src/pages/order/complete.vue
+10
-4
detail.vue
src/pages/order/detail.vue
+2
-1
No files found.
src/common/http.interceptor.js
View file @
22d2cb95
...
@@ -74,7 +74,7 @@ const install = (Vue, vm) => {
...
@@ -74,7 +74,7 @@ const install = (Vue, vm) => {
return
msg
||
'请求错误'
return
msg
||
'请求错误'
}
}
// 响应拦截,判断状态码是否通过
// 响应拦截,判断状态码是否通过
Vue
.
prototype
.
$u
.
http
.
interceptor
.
response
=
(
res
)
=>
{
Vue
.
prototype
.
$u
.
http
.
interceptor
.
response
=
(
res
)
=>
{
let
result
=
res
.
data
||
res
;
let
result
=
res
.
data
||
res
;
let
msg
=
getMsg
(
res
)
let
msg
=
getMsg
(
res
)
//返回__token__,设置
//返回__token__,设置
...
@@ -88,7 +88,7 @@ const install = (Vue, vm) => {
...
@@ -88,7 +88,7 @@ const install = (Vue, vm) => {
// return result;
// return result;
case
200
:
case
200
:
return
{
return
{
data
:
result
.
data
||
result
,
data
:
result
.
data
==
null
?
result
:
result
.
data
,
// result.data的值为0, false, ''的时候也要算有值
code
:
code
,
code
:
code
,
message
:
msg
message
:
msg
};
};
...
...
src/pages/order/complete.vue
View file @
22d2cb95
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<complete-check
:show=
"completeCheckStatus"
:list-data=
"completeCheckResult"
:pass=
"pass"
@
close=
"closeCheckResult"
@
handle=
"handerProgrom"
@
change=
"confirm"
></complete-check>
<complete-check
:show=
"completeCheckStatus"
:list-data=
"completeCheckResult"
:pass=
"pass"
@
close=
"closeCheckResult"
@
handle=
"handerProgrom"
@
change=
"confirm"
></complete-check>
<view
class=
"u-wrap"
>
<view
class=
"u-wrap"
>
<u-navbar
:background=
"
{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息" title-bold>
</u-navbar>
<u-navbar
:background=
"
{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息" title-bold>
</u-navbar>
<u-tabs
class=
"order-tabs"
ref=
"tabs"
:current=
"tabIndex"
name=
"panelName"
:list=
"list"
@
change=
"tabsChange"
:is-scroll=
"false"
bg-color=
"#2272FF"
inactive-color=
"#a6c6ff"
active-color=
"#fff"
height=
"80"
font-size=
"32"
></u-tabs>
<u-tabs
v-show=
"showTab"
class=
"order-tabs"
ref=
"tabs"
:current=
"tabIndex"
name=
"panelName"
:list=
"list"
@
change=
"tabsChange"
:is-scroll=
"false"
bg-color=
"#2272FF"
inactive-color=
"#a6c6ff"
active-color=
"#fff"
height=
"80"
font-size=
"32"
></u-tabs>
<view
class=
"u-menu-wrap
"
>
<view
:class=
"['u-menu-wrap',
{'one': !showTab}]
">
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
v-if=
"list[tabIndex].items.length > 1"
>
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
v-if=
"list[tabIndex].items.length > 1
&& showTab
"
>
<view
v-for=
"(item,index) in list[tabIndex].items"
:key=
"index"
class=
"u-tab-item"
<view
v-for=
"(item,index) in list[tabIndex].items"
:key=
"index"
class=
"u-tab-item"
:class=
"[current == index ? 'u-tab-item-active' : '']"
@
tap
.
stop=
"swichMenu(index)"
>
:class=
"[current == index ? 'u-tab-item-active' : '']"
@
tap
.
stop=
"swichMenu(index)"
>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
...
@@ -173,7 +173,8 @@
...
@@ -173,7 +173,8 @@
maskShow
:
false
,
maskShow
:
false
,
takeStatus
:
false
,
takeStatus
:
false
,
currentItemDate
:{},
currentItemDate
:{},
photoItem
:
{}
photoItem
:
{},
showTab
:
true
}
}
},
},
components
:
{
components
:
{
...
@@ -205,6 +206,7 @@
...
@@ -205,6 +206,7 @@
this
.
inGuaranteePeriod
=
option
.
inGuaranteePeriod
this
.
inGuaranteePeriod
=
option
.
inGuaranteePeriod
this
.
partnerCompanyId
=
option
.
partnerCompanyId
this
.
partnerCompanyId
=
option
.
partnerCompanyId
this
.
auditResultsId
=
option
.
auditResultsId
this
.
auditResultsId
=
option
.
auditResultsId
this
.
showTab
=
option
.
partnerCompanyName
==
'挚达充电桩'
}
else
{
}
else
{
this
.
orderId
=
11880091
this
.
orderId
=
11880091
this
.
categoryId
=
1100000214
this
.
categoryId
=
1100000214
...
@@ -361,6 +363,7 @@
...
@@ -361,6 +363,7 @@
}
}
}
}
this
.
list
=
res
.
data
.
config
this
.
list
=
res
.
data
.
config
this
.
showTab
=
this
.
list
.
length
>
1
this
.
form
=
res
.
data
.
value
||
{}
this
.
form
=
res
.
data
.
value
||
{}
// 异常单处理
// 异常单处理
if
(
this
.
auditResultsId
)
this
.
checkCompleteError
()
if
(
this
.
auditResultsId
)
this
.
checkCompleteError
()
...
@@ -858,6 +861,9 @@
...
@@ -858,6 +861,9 @@
display
:
flex
;
display
:
flex
;
overflow
:
hidden
;
overflow
:
hidden
;
border-radius
:
12rpx
12rpx
0
0
;
border-radius
:
12rpx
12rpx
0
0
;
&
.one
{
border-radius
:
0
;
}
}
}
...
...
src/pages/order/detail.vue
View file @
22d2cb95
...
@@ -647,7 +647,7 @@
...
@@ -647,7 +647,7 @@
if
(
this
.
submitType
==
'orderAccept'
||
this
.
submitType
==
'orderGan'
)
{
if
(
this
.
submitType
==
'orderAccept'
||
this
.
submitType
==
'orderGan'
)
{
this
.
$u
.
api
.
checkAddCustomer
().
then
((
res
)
=>
{
this
.
$u
.
api
.
checkAddCustomer
().
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
data
===
true
){
if
(
res
.
data
===
true
){
this
.
handleBtn
()
this
.
handleBtn
()
}
else
{
}
else
{
this
.
visible
=
true
this
.
visible
=
true
...
@@ -785,6 +785,7 @@
...
@@ -785,6 +785,7 @@
+
"&orderServiceType="
+
this
.
order
.
orderServiceType
+
"&orderServiceType="
+
this
.
order
.
orderServiceType
+
"&inGuaranteePeriod="
+
this
.
order
.
inGuaranteePeriod
+
"&inGuaranteePeriod="
+
this
.
order
.
inGuaranteePeriod
+
"&partnerCompanyId="
+
this
.
order
.
partnerCompanyId
+
"&partnerCompanyId="
+
this
.
order
.
partnerCompanyId
+
'&partnerCompanyName='
+
this
.
order
.
partnerCompanyName
})
})
},
},
rejectOrder
()
{
// 拒单
rejectOrder
()
{
// 拒单
...
...
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