Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
4d26471f
authored
Aug 28, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整接口
parent
66e85574
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
app/Http/Controllers/AddOrderController.php
config/website.php
public/js/add_order.js
resources/views/addOrder/content.blade.php
app/Http/Controllers/AddOrderController.php
View file @
4d26471f
...
@@ -290,7 +290,7 @@ Class AddOrderController extends Controller
...
@@ -290,7 +290,7 @@ Class AddOrderController extends Controller
$url
=
Config
(
'website.search-skuid'
);
$url
=
Config
(
'website.search-skuid'
);
$data
[
'sku_id'
]
=
$request
->
input
(
'sku_id'
);
$data
[
'sku_id'
]
=
$request
->
input
(
'sku_id'
);
$response
=
json_decode
(
curlApi
(
$url
,
$data
),
true
);
$response
=
json_decode
(
curlApi
(
$url
,
$data
,
'POST'
),
true
);
if
(
!
empty
(
$response
[
'data'
][
'data'
]))
{
if
(
!
empty
(
$response
[
'data'
][
'data'
]))
{
return
[
'errcode'
=>
0
,
'errmsg'
=>
''
,
'data'
=>
$response
[
'data'
][
'data'
][
0
]];
return
[
'errcode'
=>
0
,
'errmsg'
=>
''
,
'data'
=>
$response
[
'data'
][
'data'
][
0
]];
...
...
config/website.php
View file @
4d26471f
...
@@ -48,7 +48,8 @@ return [
...
@@ -48,7 +48,8 @@ return [
'add-user-url'
=>
'http://member.liexin.net/add'
,
'add-user-url'
=>
'http://member.liexin.net/add'
,
// 查询SKUID接口
// 查询SKUID接口
'search-skuid'
=>
'http://footstone.liexin.net/webapi/sku_list'
,
// 'search-skuid' => 'http://footstone.liexin.net/webapi/sku_list',
'search-skuid'
=>
'http://www.liexin.com/v3/sku/list'
,
// 新增SKU入口
// 新增SKU入口
'add-sku-url'
=>
'http://footstone.liexin.net/manage/addsku'
,
'add-sku-url'
=>
'http://footstone.liexin.net/manage/addsku'
,
...
...
public/js/add_order.js
View file @
4d26471f
...
@@ -264,12 +264,17 @@
...
@@ -264,12 +264,17 @@
var
len
=
data
.
ladder_price
.
length
;
var
len
=
data
.
ladder_price
.
length
;
if
(
len
>
0
)
{
if
(
len
>
0
)
{
var
html
=
''
;
var
html
=
''
;
var
str
=
''
;
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
if
(
goods_type
==
1
)
{
str
=
'<td>$<span>'
+
data
.
ladder_price
[
i
][
'price_us'
]
+
'</span></td>'
;
}
if
(
i
==
0
)
{
if
(
i
==
0
)
{
html
+=
'<tr><td><span class="goods-min-num">'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td></tr>'
;
html
+=
'<tr><td><span class="goods-min-num">'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>
'
+
str
+
'
</tr>'
;
}
else
{
}
else
{
html
+=
'<tr><td><span>'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td></tr>'
;
html
+=
'<tr><td><span>'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>
'
+
str
+
'
</tr>'
;
}
}
}
}
...
...
resources/views/addOrder/content.blade.php
View file @
4d26471f
...
@@ -329,6 +329,7 @@
...
@@ -329,6 +329,7 @@
<tr>
<tr>
<th>
阶梯
</th>
<th>
阶梯
</th>
<th>
RMB价格
</th>
<th>
RMB价格
</th>
<th>
USD价格
</th>
</tr>
</tr>
</table>
</table>
</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