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
2a303a59
authored
Jul 20, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化js
parent
5f2b7ba8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
app/Http/routes.php
resources/views/script/SkuListScript.blade.php
app/Http/routes.php
View file @
2a303a59
...
...
@@ -79,9 +79,12 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$redis
=
\Illuminate\Support\Facades\Redis
::
connection
(
'spu'
);
dd
(
$redis
->
hget
(
'spu'
,
2168984725448887508
));
\App\Model\SupplierChannelModel
::
where
(
'supplier_id'
,
15385
)
->
update
([
'supplier_name'
=>
'Information And Communication Technology Group (Hongkong) Co., Limited'
]);
// (new \App\Http\Services\DataService())->initSkuRulers();
// (new \App\Http\Services\DataService())->initialMainBrandsLimit();
// (new \App\Http\Services\DataService())->initialMainBrandsToSkuRuler();
...
...
resources/views/script/SkuListScript.blade.php
View file @
2a303a59
...
...
@@ -90,7 +90,7 @@
field
:
'us_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
.
price_us
)
{
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>'
;
}
...
...
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