Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
f9353fd1
Commit
f9353fd1
authored
Mar 08, 2023
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品查看规格状态
parent
ef50aee3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
src/api/system/shop.js
+2
-2
src/views/shop/shop/components/commodity.vue
+1
-1
src/views/shop/shop/setShop.vue
+1
-0
No files found.
src/api/system/shop.js
View file @
f9353fd1
...
@@ -185,9 +185,9 @@ export function getSpecSku(shopId,goodsId) {
...
@@ -185,9 +185,9 @@ export function getSpecSku(shopId,goodsId) {
}
}
// 修改规格选项状态
// 修改规格选项状态
export
function
updateSpecState
(
ids
,
state
)
{
export
function
updateSpecState
(
ids
,
state
,
shopId
,
goodsId
)
{
return
request
({
return
request
({
url
:
"/system/shop/updateShopGoodsSkuState?ids="
+
ids
+
"&state="
+
state
,
url
:
"/system/shop/updateShopGoodsSkuState?ids="
+
ids
+
"&state="
+
state
+
"&shopId="
+
shopId
+
"&goodsId="
+
goodsId
,
method
:
"get"
,
method
:
"get"
,
});
});
}
}
src/views/shop/shop/components/commodity.vue
View file @
f9353fd1
...
@@ -210,7 +210,7 @@ export default {
...
@@ -210,7 +210,7 @@ export default {
this
.
updateSpecState
(
this
.
ids
,
tag
);
this
.
updateSpecState
(
this
.
ids
,
tag
);
},
},
updateSpecState
(
ids
,
tag
){
updateSpecState
(
ids
,
tag
){
updateSpecState
(
ids
,
tag
).
then
((
response
)
=>
{
updateSpecState
(
ids
,
tag
,
this
.
shopId
,
this
.
goodsId
).
then
((
response
)
=>
{
if
(
response
.
code
==
"200"
){
if
(
response
.
code
==
"200"
){
let
idsList
=
ids
.
split
(
","
);
let
idsList
=
ids
.
split
(
","
);
for
(
let
i
=
0
;
i
<
idsList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
idsList
.
length
;
i
++
){
...
...
src/views/shop/shop/setShop.vue
View file @
f9353fd1
...
@@ -64,6 +64,7 @@ export default {
...
@@ -64,6 +64,7 @@ export default {
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
openModal
(
shopId
)
{
openModal
(
shopId
)
{
console
.
log
(
"dianpu"
,
shopId
);
this
.
activeName
=
'first'
;
this
.
activeName
=
'first'
;
this
.
setShopId
(
shopId
);
this
.
setShopId
(
shopId
);
this
.
open
=
true
;
this
.
open
=
true
;
...
...
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