优化拼团与秒杀商品详情tab 修复收藏不显示问题

This commit is contained in:
hupeng
2023-12-29 15:47:38 +08:00
parent e69d31e5ad
commit 49d7079d6c
4 changed files with 28 additions and 20 deletions

View File

@ -52,7 +52,7 @@
</view>
<!-- 操作栏 -->
<view style="height: 100rpx"></view>
<view style="height: 160rpx"></view>
<!--底部操作栏-->
<view class="tui-operation">
@ -215,13 +215,14 @@ export default {
setCollect: function() {
let that = this,
id = that.storeInfo.id,
category = 'product'
category = 'seckill',
type = 'collect'
if (that.userCollect) {
getCollectDel(id, category).then(function() {
getCollectDel(id, category,type).then(function() {
that.userCollect = !that.userCollect
})
} else {
getCollectAdd(id, category).then(function() {
getCollectAdd(id, category,type).then(function() {
that.userCollect = !that.userCollect
})
}
@ -727,7 +728,7 @@ export default {
.tui-operation {
width: 100%;
height: 100rpx;
height: 160rpx;
background: rgba(255, 255, 255, 0.98);
position: fixed;
display: flex;