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
481dc4d2
Commit
481dc4d2
authored
Feb 17, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
fcc6d2d2
421249a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
src/api/live.js
+5
-2
src/components/common/TwoBAddCart.vue
+15
-1
No files found.
src/api/live.js
View file @
481dc4d2
...
...
@@ -9,6 +9,10 @@ export default {
getProductInfo
(
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
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_goods_by_product_info`
,
options
);
...
...
@@ -97,4 +101,4 @@ export default {
queryPlaybackComments
(
options
){
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/liveBroadcastInfo/getLiveGuestAndLikeNumById`
,
options
);
}
};
\ No newline at end of file
};
src/components/common/TwoBAddCart.vue
View file @
481dc4d2
...
...
@@ -53,6 +53,7 @@
<p>
商品金额:
<span>
¥
{{
selectPrice
}}
</span>
</p>
<p
v-if=
"goodsInfoData.wholePurchaseMultiple && goodsInfoData.wholePurchaseMultiple > 1"
>
此款所有规格数量合计 需满足
{{
goodsInfoData
.
wholePurchaseMultiple
}}
的倍数
</p>
</div>
</div>
<div
class=
"bottom flex"
>
...
...
@@ -79,6 +80,7 @@ export default {
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"`
,
selectList
:
[],
goodsInfoData
:{}
};
},
components
:
{},
...
...
@@ -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
()
{
this
.
show
=
false
;
...
...
@@ -434,7 +448,7 @@ export default {
height
:
49px
;
align-items
:
center
;
background
:
#fff
;
.addCart
{
width
:
100%
;
height
:
38px
;
...
...
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