Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
ce4b6817
提交
ce4b6817
authored
4月 24, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化跳转
上级
da9d4ee9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
editQuotation.vue
src/pages/order/editQuotation.vue
+8
-4
quotation.vue
src/pages/order/quotation.vue
+6
-7
没有找到文件。
src/pages/order/editQuotation.vue
浏览文件 @
ce4b6817
...
...
@@ -201,10 +201,14 @@ let init = () => {
onBackPress
((
options
:
any
)
=>
{
let
pages
=
getCurrentPages
();
// 当前页面路由
let
route
=
pages
[
pages
.
length
-
2
].
route
;
// 上一个页面路由
if
(
options
.
from
===
'backbutton'
&&
route
==
'pages/order/quotation'
)
// return uni.navigateBack({ delta: 4 })
return
uni
.
reLaunch
({
url
:
'/'
})
let
route
=
JSON
.
parse
(
JSON
.
stringify
(
pages
[
pages
.
length
-
2
].
route
))
// 上一个页面路由
let
route1
=
JSON
.
parse
(
JSON
.
stringify
(
pages
[
pages
.
length
-
3
].
route
))
// 上一个页面路由
let
route2
=
JSON
.
parse
(
JSON
.
stringify
(
pages
[
pages
.
length
-
4
].
route
))
// 上一个页面路由
if
(
options
.
from
===
'backbutton'
&&
route
==
'pages/order/quotation'
)
{
if
(
route2
&&
route2
==
'pages/order/checkout'
)
return
uni
.
navigateBack
({
delta
:
1
})
console
.
log
(
'跳转'
,
route
,
route1
);
return
uni
.
navigateBack
({
delta
:
2
})
}
})
</
script
>
...
...
src/pages/order/quotation.vue
浏览文件 @
ce4b6817
...
...
@@ -250,7 +250,7 @@ onLoad((options: any) => {
quotationExist
({
orderId
:
orderId
.
value
}).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
data
)
{
uni
.
reLaunch
({
uni
.
navigateTo
({
url
:
'../order/editQuotation?orderId='
+
orderId
.
value
})
}
else
{
...
...
@@ -379,12 +379,11 @@ let modelConfirm = () => {
}
let
handleSheet
=
(
index
:
number
)
=>
{
console
.
log
(
index
);
// if (index)
// open(baseUrl + '/wx/quotation/download/pdf?orderId=' + orderId.value)
// else
// open(baseUrl + '/wx/quotation/download?orderId=' + orderId.value)
// uni.navigateBack({ delta: 1 })
if
(
index
)
open
(
baseUrl
+
'/wx/quotation/download/pdf?orderId='
+
orderId
.
value
)
else
open
(
baseUrl
+
'/wx/quotation/download?orderId='
+
orderId
.
value
)
uni
.
navigateBack
({
delta
:
1
})
showSheet
.
value
=
false
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论