Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
14c50f4e
Commit
14c50f4e
authored
Dec 23, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!132
parents
0be19b71
9ac27630
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
6 deletions
+42
-6
src/views/order/podCN/index.vue
+21
-3
src/views/order/podUs/index.vue
+21
-3
No files found.
src/views/order/podCN/index.vue
View file @
14c50f4e
...
...
@@ -1177,10 +1177,15 @@
</
template
>
<
template
v-else
>
<img
:src=
"
item.variantImage
"
:src=
"
getNewImageFn(item.variantImage)
"
alt=
"商品图片"
style=
"cursor: pointer"
@
click=
"handlePictureCardPreview(item.variantImage)"
@
click=
"
handlePictureCardPreview(
item.variantImage,
'variantImage',
)
"
/>
<div
class=
"triangle-container-wrap"
>
<div
class=
"triangle-container"
>
...
...
@@ -5792,8 +5797,11 @@ const handleMark = (mark: string) => {
const
dialogVisible
=
ref
(
false
)
const
dialogImageUrl
=
ref
(
''
)
const
handlePictureCardPreview
=
(
fileUrl
:
string
)
=>
{
const
handlePictureCardPreview
=
(
fileUrl
:
string
,
type
?:
string
)
=>
{
dialogImageUrl
.
value
=
fileUrl
if
(
type
==
'variantImage'
)
dialogImageUrl
.
value
=
getNewImageFn
(
fileUrl
)
as
string
dialogVisible
.
value
=
true
}
// 全局 loading 改为每行 loading map
...
...
@@ -5826,6 +5834,16 @@ const handleStockOut = async (row: PodCnOrderListData) => {
}
)
}
const
getNewImageFn
=
(
img
:
string
)
=>
{
try
{
if
(
img
.
startsWith
(
'http'
))
return
img
if
(
img
.
startsWith
(
'/'
))
return
`https://img.jomalls.com/upload/erp${img
}
`
return
`https://image.jomalls.com/${img
}
`
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
useRouter
().
beforeEach
((
to
,
from
,
next
)
=>
{
handleBeforeRouteLeave
(
to
,
from
,
next
)
}
)
...
...
src/views/order/podUs/index.vue
View file @
14c50f4e
...
...
@@ -1260,10 +1260,15 @@
</
template
>
<
template
v-else
>
<img
:src=
"
item.variantImage
"
:src=
"
getNewImageFn(item.variantImage)
"
alt=
"商品图片"
style=
"cursor: pointer"
@
click=
"handlePictureCardPreview(item.variantImage)"
@
click=
"
handlePictureCardPreview(
item.variantImage,
'variantImage',
)
"
/>
<div
class=
"triangle-container-wrap"
>
<div
class=
"triangle-container"
>
...
...
@@ -6574,8 +6579,11 @@ function getQuantityText(qty: number) {
const
dialogVisible
=
ref
(
false
)
const
dialogImageUrl
=
ref
(
''
)
const
handlePictureCardPreview
=
(
fileUrl
:
string
)
=>
{
const
handlePictureCardPreview
=
(
fileUrl
:
string
,
type
?:
string
)
=>
{
dialogImageUrl
.
value
=
fileUrl
if
(
type
==
'variantImage'
)
dialogImageUrl
.
value
=
getNewImageFn
(
fileUrl
)
as
string
dialogVisible
.
value
=
true
}
// 全局 loading 改为每行 loading map
...
...
@@ -6816,6 +6824,16 @@ const globalProperties =
getCurrentInstance
()?.
appContext
.
config
.
globalProperties
// 获取全局挂载
const
isPermissionBtn
=
globalProperties
?.
$isPermissionBtn
const
getNewImageFn
=
(
img
:
string
)
=>
{
try
{
if
(
img
.
startsWith
(
'http'
))
return
img
if
(
img
.
startsWith
(
'/'
))
return
`https://img.jomalls.com/upload/erp${img
}
`
return
`https://image.jomalls.com/${img
}
`
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
useRouter
().
beforeEach
((
to
,
from
,
next
)
=>
{
handleBeforeRouteLeave
(
to
,
from
,
next
)
}
)
...
...
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