|
|
@@ -155,10 +155,10 @@
|
|
|
|
|
|
<!-- 操作按钮组 -->
|
|
|
<view class="action-buttons">
|
|
|
- <view class="action-btn secondary" @click.stop="bug(item)">
|
|
|
+ <view class="action-btn secondary" :class="{ disabled: item.openShop === 0 }" @click.stop="bug(item)">
|
|
|
<text class="btn-text">🌸 花材</text>
|
|
|
</view>
|
|
|
- <view class="action-btn secondary" @click.stop="hs(item)">
|
|
|
+ <view class="action-btn secondary" :class="{ disabled: item.openShop === 0 }" @click.stop="hs(item)">
|
|
|
<text class="btn-text">💐 绿植花束</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -300,12 +300,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
bug(item) {
|
|
|
+ if(item.openShop == 0){
|
|
|
+ this.$msg('已休店')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.pageTo({ url: "/pages/item/item?account=" + item.shopId + "&hdId=" + item.id, })
|
|
|
},
|
|
|
hs(item) {
|
|
|
- this.pageTo({
|
|
|
- url: "/pages/home/category?id=" + item.id + "&account=" + item.shopId,
|
|
|
- });
|
|
|
+ if(item.openShop == 0){
|
|
|
+ this.$msg('已休店')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.pageTo({ url: "/pages/home/category?id=" + item.id + "&account=" + item.shopId, })
|
|
|
},
|
|
|
tj(item) {
|
|
|
this.pageTo({
|
|
|
@@ -837,6 +843,13 @@ page {
|
|
|
&.secondary {
|
|
|
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
|
|
flex: 1.1;
|
|
|
+
|
|
|
+ &.disabled {
|
|
|
+ background: linear-gradient(135deg, #ccc 0%, #999 100%);
|
|
|
+ opacity: 0.6;
|
|
|
+ box-shadow: none;
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
&.tertiary {
|