优化拼团与秒杀商品详情tab 修复收藏不显示问题
This commit is contained in:
@ -123,7 +123,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<view style="height: 100rpx"></view>
|
<view style="height: 160rpx"></view>
|
||||||
|
|
||||||
<!--底部操作栏-->
|
<!--底部操作栏-->
|
||||||
<view class="tui-operation">
|
<view class="tui-operation">
|
||||||
@ -288,13 +288,14 @@ export default {
|
|||||||
setCollect: function() {
|
setCollect: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
id = that.storeInfo.id,
|
id = that.storeInfo.id,
|
||||||
category = 'product'
|
category = 'combination',
|
||||||
|
type = 'collect'
|
||||||
if (that.userCollect) {
|
if (that.userCollect) {
|
||||||
getCollectDel(id, category).then(function() {
|
getCollectDel(id, category,type).then(function() {
|
||||||
that.userCollect = !that.userCollect
|
that.userCollect = !that.userCollect
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getCollectAdd(id, category).then(function() {
|
getCollectAdd(id, category,type).then(function() {
|
||||||
that.userCollect = !that.userCollect
|
that.userCollect = !that.userCollect
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -970,7 +971,7 @@ export default {
|
|||||||
|
|
||||||
.tui-operation {
|
.tui-operation {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100rpx;
|
height: 160rpx;
|
||||||
background: rgba(255, 255, 255, 0.98);
|
background: rgba(255, 255, 255, 0.98);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<view style="height: 100rpx"></view>
|
<view style="height: 160rpx"></view>
|
||||||
|
|
||||||
<!--底部操作栏-->
|
<!--底部操作栏-->
|
||||||
<view class="tui-operation">
|
<view class="tui-operation">
|
||||||
@ -215,13 +215,14 @@ export default {
|
|||||||
setCollect: function() {
|
setCollect: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
id = that.storeInfo.id,
|
id = that.storeInfo.id,
|
||||||
category = 'product'
|
category = 'seckill',
|
||||||
|
type = 'collect'
|
||||||
if (that.userCollect) {
|
if (that.userCollect) {
|
||||||
getCollectDel(id, category).then(function() {
|
getCollectDel(id, category,type).then(function() {
|
||||||
that.userCollect = !that.userCollect
|
that.userCollect = !that.userCollect
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getCollectAdd(id, category).then(function() {
|
getCollectAdd(id, category,type).then(function() {
|
||||||
that.userCollect = !that.userCollect
|
that.userCollect = !that.userCollect
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -727,7 +728,7 @@ export default {
|
|||||||
|
|
||||||
.tui-operation {
|
.tui-operation {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100rpx;
|
height: 160rpx;
|
||||||
background: rgba(255, 255, 255, 0.98);
|
background: rgba(255, 255, 255, 0.98);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
<view class="text acea-row row-column-between">
|
<view class="text acea-row row-column-between">
|
||||||
<view class="infor line1">{{ item.storeName }}</view>
|
<view class="infor line1">{{ item.storeName }}</view>
|
||||||
<view class="acea-row row-between-wrapper">
|
<view class="acea-row row-between-wrapper">
|
||||||
<view class="money font-color-red" v-if="isIntegral == 1">{{ item.costPrice }}积分</view>
|
<!-- <view class="money font-color-red" v-if="isIntegral == 1">{{ item.costPrice }}积分</view> -->
|
||||||
<view class="money font-color-red" v-else>¥{{ item.price }}</view>
|
<view class="money font-color-red">¥{{ item.price }}</view>
|
||||||
<view class="delete" @tap.stop="delCollection(collectProductListIndex)">删除</view>
|
<view class="delete" @tap.stop="delCollection(collectProductListIndex)">删除</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -54,15 +54,20 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goGoodsCon(item) {
|
goGoodsCon(item) {
|
||||||
if (item.isIntegral == 1) {
|
if (item.category == 'combination') {
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/shop/GoodsCon/index',
|
path: '/pages/activity/GroupDetails/index',
|
||||||
query: { id: item.pid },
|
query: { id: item.productId },
|
||||||
})
|
})
|
||||||
} else {
|
} else if (item.category == 'seckill') {
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: '/pages/activity/SeckillDetails/index',
|
||||||
|
query: { id: item.productId },
|
||||||
|
})
|
||||||
|
}else {
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/shop/GoodsCon/index',
|
path: '/pages/shop/GoodsCon/index',
|
||||||
query: { id: item.pid },
|
query: { id: item.productId },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -612,13 +612,14 @@ export default {
|
|||||||
setCollect: function() {
|
setCollect: function() {
|
||||||
let that = this,
|
let that = this,
|
||||||
id = that.storeInfo.id,
|
id = that.storeInfo.id,
|
||||||
category = 'collect'
|
category = 'product',
|
||||||
|
type = 'collect'
|
||||||
if (that.storeInfo.userCollect) {
|
if (that.storeInfo.userCollect) {
|
||||||
getCollectDel(id, category).then(function() {
|
getCollectDel(id, category,type).then(function() {
|
||||||
that.storeInfo.userCollect = !that.storeInfo.userCollect
|
that.storeInfo.userCollect = !that.storeInfo.userCollect
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getCollectAdd(id, category).then(function() {
|
getCollectAdd(id, category,type).then(function() {
|
||||||
that.storeInfo.userCollect = !that.storeInfo.userCollect
|
that.storeInfo.userCollect = !that.storeInfo.userCollect
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user