Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
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
249a0d31
authored
May 22, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新查询联营sku列表
parent
f9b5a2d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
app/Http/Controllers/ApiController.php
app/Model/Server/ServerFoostoneModel.php
public/pc/js/controller/GoodsComList.js
app/Http/Controllers/ApiController.php
View file @
249a0d31
...
...
@@ -157,10 +157,14 @@ class ApiController extends Controller
dispatch
(
new
JopExportGoodsComList
(
$id
));
Export
(
0
,
$id
);
}
//查询品牌
//查询
自营
品牌
private
function
GetBrand
(
$request
){
(
new
ServerFoostoneModel
(
$request
->
appid
,
$request
->
key
))
->
getBrand
(
$request
->
input
(
"p"
),
100
,
2
);
}
//查询联营品牌
private
function
GetBrandCom
(
$request
){
(
new
ServerFoostoneModel
(
$request
->
appid
,
$request
->
key
))
->
getBrandCom
(
$request
->
input
(
"p"
),
100
,
2
);
}
//价格明细弹框
private
function
PurePrice
(
$request
){
ExportLayui2
((
new
ServerFoostoneModel
(
$request
->
appid
,
$request
->
key
))
->
SkuCost
(
$request
->
input
(),
2
));
...
...
app/Model/Server/ServerFoostoneModel.php
View file @
249a0d31
...
...
@@ -56,13 +56,20 @@ class ServerFoostoneModel
$data
[
'goods_type'
]
=
$goods_type
;
return
$this
->
push
(
'/third/api/obtain/list/sku'
,
$data
,
$type
);
}
//模糊搜索品牌
//模糊搜索
自营
品牌
public
function
getBrand
(
$keyword
,
$limit
=
100
,
$type
=
1
){
$data
[
'keyword'
]
=
$keyword
;
$data
[
'limit'
]
=
$limit
;
$s
=
$this
->
push
(
'/third/api/query/brand/list'
,
$data
,
$type
);
echo
\GuzzleHttp\json_encode
(
$s
[
'data'
],
JSON_UNESCAPED_UNICODE
);
}
//模糊搜索联营品牌
public
function
getBrandCom
(
$keyword
,
$limit
=
100
,
$type
=
1
){
$data
[
'keyword'
]
=
$keyword
;
$data
[
'limit'
]
=
$limit
;
$s
=
$this
->
push
(
'/yunxin/api/pool/brand/list'
,
$data
,
$type
);
echo
\GuzzleHttp\json_encode
(
$s
[
'data'
],
JSON_UNESCAPED_UNICODE
);
}
/*
* 批量上传联营物料
* @param str $url 上传网址
...
...
public/pc/js/controller/GoodsComList.js
View file @
249a0d31
...
...
@@ -183,7 +183,7 @@ function initSelectTelephone() {
selectTelehone
.
select2
({
ajax
:
{
url
:
function
(
params
)
{
return
"/api/GetBrand?p="
+
params
.
term
;
return
"/api/GetBrand
Com
?p="
+
params
.
term
;
},
dataType
:
'json'
,
processResults
:
function
(
data
,
params
)
{
...
...
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