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
1ce37313
Commit
1ce37313
authored
Aug 31, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单管理和浏览记录页面的跳转
parent
7abaf6b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
13 deletions
+56
-13
index.vue
src/components/order/index.vue
+4
-0
index.vue
src/pages/mine/order/index.vue
+2
-0
complete.vue
src/pages/order/complete.vue
+50
-13
No files found.
src/components/order/index.vue
View file @
1ce37313
...
@@ -442,6 +442,10 @@ export default {
...
@@ -442,6 +442,10 @@ export default {
this
.
otherAction
()
this
.
otherAction
()
},
},
handleClickCell
()
{
handleClickCell
()
{
if
(
this
.
isSimple
)
{
this
.
handleClick
()
return
}
var
func
=
'click'
var
func
=
'click'
this
.
handleExceptions
()
this
.
handleExceptions
()
if
(
this
.
isException
)
{
if
(
this
.
isException
)
{
...
...
src/pages/mine/order/index.vue
View file @
1ce37313
...
@@ -114,6 +114,8 @@ export default {
...
@@ -114,6 +114,8 @@ export default {
},
},
onLoad
()
{
onLoad
()
{
this
.
currentClicks
=
this
.
clicks
this
.
currentClicks
=
this
.
clicks
},
onShow
()
{
this
.
getOrderCount
()
this
.
getOrderCount
()
},
},
methods
:
{
methods
:
{
...
...
src/pages/order/complete.vue
View file @
1ce37313
...
@@ -597,6 +597,22 @@ export default {
...
@@ -597,6 +597,22 @@ export default {
this
.
form
.
paymentMethodsType
&&
this
.
form
.
paymentMethodsType
!=
'03'
this
.
form
.
paymentMethodsType
&&
this
.
form
.
paymentMethodsType
!=
'03'
)
)
},
},
// 从订单管理和浏览记录进来,不跳转到订单列表,而是后退到订单管理和浏览记录
completeBack
()
{
let
pages
=
getCurrentPages
()
var
i
=
0
for
(
var
item
of
pages
)
{
if
(
[
'/pages/mine/history/index'
,
'/pages/mine/order/index'
].
indexOf
(
item
.
$page
.
fullPath
)
!=
-
1
)
{
return
pages
.
length
-
i
-
1
}
i
++
}
return
0
},
},
},
methods
:
{
methods
:
{
getCompleteData
()
{
getCompleteData
()
{
...
@@ -867,10 +883,17 @@ export default {
...
@@ -867,10 +883,17 @@ export default {
async
appointment
()
{
async
appointment
()
{
const
save
=
await
this
.
nextStepSaveData
()
const
save
=
await
this
.
nextStepSaveData
()
if
(
save
)
{
if
(
save
)
{
if
(
this
.
completeBack
)
{
// 从订单管理和浏览记录进来
uni
.
navigateBack
({
delta
:
this
.
completeBack
,
})
}
else
{
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
'/pages/index/order?type=waitAppointment'
,
url
:
'/pages/index/order?type=waitAppointment'
,
})
})
}
}
}
},
},
// 下一步动作
// 下一步动作
async
nextAction
()
{
async
nextAction
()
{
...
@@ -926,7 +949,7 @@ export default {
...
@@ -926,7 +949,7 @@ export default {
maintainFields
:
this
.
handleSaveData
(),
maintainFields
:
this
.
handleSaveData
(),
currentStep
:
this
.
list
[
this
.
tabIndex
].
panelFieldsName
,
currentStep
:
this
.
list
[
this
.
tabIndex
].
panelFieldsName
,
nextStep
:
this
.
list
[
this
.
tabIndex
+
1
].
panelFieldsName
,
nextStep
:
this
.
list
[
this
.
tabIndex
+
1
].
panelFieldsName
,
version
:
2
version
:
2
,
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
...
@@ -1003,9 +1026,16 @@ export default {
...
@@ -1003,9 +1026,16 @@ export default {
title
:
'提交成功'
,
title
:
'提交成功'
,
type
:
'success'
,
type
:
'success'
,
callback
:
()
=>
{
callback
:
()
=>
{
if
(
this
.
completeBack
)
{
// 从订单管理和浏览记录进来
uni
.
navigateBack
({
delta
:
this
.
completeBack
,
})
}
else
{
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
'/pages/index/order?type=audit'
,
url
:
'/pages/index/order?type=audit'
,
})
})
}
},
},
})
})
}
else
{
}
else
{
...
@@ -1024,9 +1054,16 @@ export default {
...
@@ -1024,9 +1054,16 @@ export default {
title
:
'提交成功'
,
title
:
'提交成功'
,
type
:
'success'
,
type
:
'success'
,
callback
:
()
=>
{
callback
:
()
=>
{
if
(
this
.
completeBack
)
{
// 从订单管理和浏览记录进来
uni
.
navigateBack
({
delta
:
this
.
completeBack
,
})
}
else
{
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
'/pages/index/order?type=audit'
,
url
:
'/pages/index/order?type=audit'
,
})
})
}
},
},
})
})
}
else
{
}
else
{
...
@@ -1157,7 +1194,7 @@ export default {
...
@@ -1157,7 +1194,7 @@ export default {
orderNumber
:
this
.
orderNumber
,
orderNumber
:
this
.
orderNumber
,
fieldsName
:
this
.
photoItem
.
fieldsName
,
fieldsName
:
this
.
photoItem
.
fieldsName
,
fieldsTitle
:
this
.
photoItem
.
fieldsTitle
,
fieldsTitle
:
this
.
photoItem
.
fieldsTitle
,
uploadType
:
'camera'
uploadType
:
'camera'
,
}
}
const
value
=
await
this
.
saveToTask
(
val
,
order
)
const
value
=
await
this
.
saveToTask
(
val
,
order
)
this
.
$refs
[
this
.
$refs
[
...
@@ -1174,13 +1211,13 @@ export default {
...
@@ -1174,13 +1211,13 @@ export default {
let
options
=
{
let
options
=
{
sourceType
:
[
'album'
],
//['album', 'camera']
sourceType
:
[
'album'
],
//['album', 'camera']
count
:
3
,
count
:
3
,
sizeType
:
[
'original'
]
sizeType
:
[
'original'
]
,
}
}
const
order
=
{
const
order
=
{
orderNumber
:
this
.
orderNumber
,
orderNumber
:
this
.
orderNumber
,
fieldsName
:
this
.
photoItem
.
fieldsName
,
fieldsName
:
this
.
photoItem
.
fieldsName
,
fieldsTitle
:
this
.
photoItem
.
fieldsTitle
,
fieldsTitle
:
this
.
photoItem
.
fieldsTitle
,
uploadType
:
'album'
uploadType
:
'album'
,
}
}
const
value
=
await
this
.
chooseImg
(
options
,
order
)
const
value
=
await
this
.
chooseImg
(
options
,
order
)
self
.
$refs
[
self
.
$refs
[
...
...
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