Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
421249a5
Commit
421249a5
authored
Feb 17, 2023
by
柳士祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整款购买倍数
parent
298fa5fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/api/live.js
+4
-0
src/components/common/TwoBAddCart.vue
+14
-0
No files found.
src/api/live.js
View file @
421249a5
...
@@ -9,6 +9,10 @@ export default {
...
@@ -9,6 +9,10 @@ export default {
getProductInfo
(
options
)
{
getProductInfo
(
options
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_info?productId=
${
options
}
`
);
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_info?productId=
${
options
}
`
);
},
},
// 查询商品详情(传productInfoId和 terminalProductId)
getProductInfoTwo
(
options
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_info?productId=
${
options
.
productInfoId
}
&terminalProductId=
${
options
.
terminalProductId
}
`
);
},
// 查询所有产品规格详情
// 查询所有产品规格详情
getProductGoodsByProductInfo
(
options
)
{
getProductGoodsByProductInfo
(
options
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_goods_by_product_info`
,
options
);
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_goods_by_product_info`
,
options
);
...
...
src/components/common/TwoBAddCart.vue
View file @
421249a5
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
<p>
<p>
商品金额:
<span>
¥
{{
selectPrice
}}
</span>
商品金额:
<span>
¥
{{
selectPrice
}}
</span>
</p>
</p>
<p
v-if=
"goodsInfoData.wholePurchaseMultiple && goodsInfoData.wholePurchaseMultiple > 1"
>
此款所有规格数量合计 需满足
{{
goodsInfoData
.
wholePurchaseMultiple
}}
的倍数
</p>
</div>
</div>
</div>
</div>
<div
class=
"bottom flex"
>
<div
class=
"bottom flex"
>
...
@@ -79,6 +80,7 @@ export default {
...
@@ -79,6 +80,7 @@ export default {
addCartLoading
:
false
,
addCartLoading
:
false
,
defaultImg
:
`this.src="https://cdn.mayi888.com/product/85pdScJ5ch.jpg?x-oss-process=image/resize,m_pad,limit_0,w_800,h_800"`
,
defaultImg
:
`this.src="https://cdn.mayi888.com/product/85pdScJ5ch.jpg?x-oss-process=image/resize,m_pad,limit_0,w_800,h_800"`
,
selectList
:
[],
selectList
:
[],
goodsInfoData
:{}
};
};
},
},
components
:
{},
components
:
{},
...
@@ -144,6 +146,18 @@ export default {
...
@@ -144,6 +146,18 @@ export default {
});
});
}
}
})
})
live
.
getProductInfoTwo
(
query
).
then
(
res2
=>
{
let
res
=
res2
.
data
;
if
(
res
.
code
==
200
)
{
this
.
goodsInfoData
=
res
.
data
}
else
{
wx
.
showToast
({
title
:
res
.
msg
,
icon
:
'none'
,
});
}
})
},
},
close
()
{
close
()
{
this
.
show
=
false
;
this
.
show
=
false
;
...
...
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