shish 3 лет назад
Родитель
Сommit
e737e55b8a
2 измененных файлов с 41 добавлено и 5 удалено
  1. 20 2
      hdApp/src/admin/home/workbench.vue
  2. 21 3
      hdApp/src/pagesPurchase/order.vue

+ 20 - 2
hdApp/src/admin/home/workbench.vue

@@ -111,7 +111,8 @@
               <image class="icon_3" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps83ag7scu3a8bfq22ciodg5hiu0x9cesxjbfb4c9ca-ee3f-45ec-a6d7-6f166e13d6e6.png" />
             </view>
           </view>
-          <view class="button_4 flex-col" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
         </view>
 
       </template>
@@ -230,7 +231,7 @@ export default {
   methods: {
     enterShop(item) {
       if(item.isOpen == 0){
-        this.$msg('本店已休息,请选择其它门店')
+        this.$msg('已休店,请选择其它门店')
         return false
       }
       const { id } = item
@@ -799,6 +800,23 @@ export default {
           font-weight:bold;
         }
       }
+      .button_5 {
+        height: 80upx;
+        line-height:80upx;
+        text-align:center;
+        background-color:#CCCCCC;
+        background-size: 137upx 137upx;
+        width: 130upx;
+        position: absolute;
+        left: 600upx;
+        top: 80upx;
+        border-radius:39upx;
+        .text_13 {
+          color: rgba(255, 255, 255, 1);
+          font-size: 30upx;
+          font-weight:bold;
+        }
+      }
     }
   }
 }

+ 21 - 3
hdApp/src/pagesPurchase/order.vue

@@ -30,7 +30,8 @@
               <image class="icon_3" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps83ag7scu3a8bfq22ciodg5hiu0x9cesxjbfb4c9ca-ee3f-45ec-a6d7-6f166e13d6e6.png" />
             </view>
           </view>
-          <view class="button_4 flex-col" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
+          <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
         </view>
 
       </template>
@@ -61,7 +62,7 @@ export default {
   methods: {
     enterShop(item) {
       if(item.isOpen == 0){
-        this.$msg('本店已休息,请选择其它门店')
+        this.$msg('已休店,请选择其它门店')
         return false
       }
       const { id } = item
@@ -345,7 +346,24 @@ export default {
         background-size: 137upx 137upx;
         width: 130upx;
         position: absolute;
-        left: 600upx;
+        left: 590upx;
+        top: 80upx;
+        border-radius:39upx;
+        .text_13 {
+          color: rgba(255, 255, 255, 1);
+          font-size: 30upx;
+          font-weight:bold;
+        }
+      }
+      .button_5 {
+        height: 80upx;
+        line-height:80upx;
+        text-align:center;
+        background-color:#CCCCCC;
+        background-size: 137upx 137upx;
+        width: 130upx;
+        position: absolute;
+        left: 590upx;
         top: 80upx;
         border-radius:39upx;
         .text_13 {