Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8846f381
authored
Aug 01, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
价格展示问题
parent
9a6823b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
resources/views/script/SkuListScript.blade.php
resources/views/script/SkuListScript.blade.php
View file @
8846f381
...
...
@@ -76,8 +76,12 @@
field
:
'cn_price'
,
title
:
'人民币成本价(¥)'
,
align
:
'left'
,
width
:
150
,
templet
:
function
(
data
)
{
if
(
data
.
ladder_price
)
{
let
ladder
=
data
.
ladder_price
[
data
.
ladder_price
.
length
-
1
];
if
(
ladder
)
{
return
'
<
div
class
=
"view_ladder_price_cn layui-row"
><
div
class
=
"layui-col-xs5"
><
span
>
'+ (ladder.purchases) + '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
¥
' + (ladder.price_cn) + '
<
/span></
div
><
/div>'
;
if
(
ladder
.
hasOwnProperty
(
'price_cn'
))
{
if
(
ladder
.
price_cn
>
0
)
{
return
'
<
div
class
=
"view_ladder_price_cn layui-row"
><
div
class
=
"layui-col-xs5"
><
span
>
' + (ladder.purchases) + '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
¥
' + (ladder.price_cn) + '
<
/span></
div
><
/div>'
;
}
else
{
return
''
;
}
}
else
{
return
''
;
}
...
...
@@ -91,7 +95,10 @@
if
(
data
.
ladder_price
)
{
let
ladder
=
data
.
ladder_price
[
data
.
ladder_price
.
length
-
1
];
if
(
ladder
.
hasOwnProperty
(
'price_us'
))
{
return
'
<
div
class
=
"view_ladder_price_us layui-row"
"
><
div
class
=
"layui-col-xs5"
><
span
>
'+ (ladder.purchases) + '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
$
' + (ladder.price_us) + '
<
/span></
div
><
/div>'
;
if
(
ladder
.
price_us
>
0
)
{
return
'
<
div
class
=
"view_ladder_price_us layui-row"
"
><
div
class
=
"layui-col-xs5"
><
span
>
'+ (ladder.purchases) + '
+<
/span></
div
><
div
class
=
"layui-col-xs7"
><
span
>
$
' + (ladder.price_us) + '
<
/span></
div
><
/div>'
;
}
return
''
;
}
}
...
...
@@ -519,4 +526,4 @@
layer
.
close
(
ladderPriceTipsValUs
);
});
});
</script>
\ No newline at end of file
</script>
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