From b5d3561a2e06106ed9cce2c6bcc9c2463951e998 Mon Sep 17 00:00:00 2001
From: 819527061@qq.com <123456>
Date: 星期五, 15 十一月 2024 11:06:26 +0800
Subject: [PATCH] 新增申请页面不显示发运通知单的问题修改
---
components/common/combination-card/combination-card.vue | 133 ++++++++++++++++++++++++--------------------
1 files changed, 72 insertions(+), 61 deletions(-)
diff --git a/components/common/combination-card/combination-card.vue b/components/common/combination-card/combination-card.vue
index 143ab27..df9c187 100644
--- a/components/common/combination-card/combination-card.vue
+++ b/components/common/combination-card/combination-card.vue
@@ -1,61 +1,72 @@
-<template>
- <!-- 缁勫悎鍗$墖 -->
- <view class="combination-card">
- <view class="combination-card_wrapper">
- <view class="combination-card_top">
- <view class="combination-card_top__content">
- <slot name="top"></slot>
- </view>
- </view>
- <view class="combination-card_content">
- <slot name="center"></slot>
- </view>
- <view class="combination-card_bottom">
- <slot name="bottom" a="$slots.name"></slot>
- </view>
- </view>
- </view>
-</template>
-
-<script>
-export default {
- data() {
- return {};
- },
- methods: {}
-};
-</script>
-
-<style lang="scss" scoped>
-.combination-card {
- width: 91%;
- // height: vww(196);
- border: 1px solid #dddddd;
- margin: 0 auto vww(16) ;
- .combination-card_wrapper {
- font-size:vww(13);
- .combination-card_top {
- // height: vww(16);
- padding:vww(8);
- background-color: #f5f5f5;
- border-bottom:1px solid #dddddd;
- .combination-card_top__content{
- display:flex;
- align-items: center;
- }
- }
- .combination-card_content {
- // height: vww(98);
- padding:vww(16);
- }
- .combination-card_bottom {
- height: vww(16);
- padding:vww(8);
- background-color: #f5f5f5;
- border-top:1px solid #dddddd;
- display:flex;
- justify-content: center;
- }
- }
-}
-</style>
+<template>
+ <!-- 缁勫悎鍗$墖 -->
+ <view class="combination-card">
+ <view class="combination-card_wrapper">
+ <view class="combination-card_top" v-if="showTop">
+ <view class="combination-card_top__content">
+ <slot name="top"></slot>
+ </view>
+ </view>
+ <view class="combination-card_content">
+ <slot name="center"></slot>
+ </view>
+ <view class="combination-card_bottom" v-if="showTop">
+ <slot name="bottom" a="$slots.name"></slot>
+ </view>
+ </view>
+ </view>
+</template>
+
+<script>
+export default {
+ props: {
+ showTop: {
+ type: Boolean,
+ default: true
+ }
+ },
+ data() {
+ return {};
+ },
+ methods: {},
+ mounted() {
+ console.log(this.showTop,'showTop--------')
+ }
+};
+</script>
+
+<style lang="scss" scoped>
+.combination-card {
+ width: 94%;
+ // height: vww(196);
+ border: vww(1) solid #dddddd;
+ border-radius: vww(4);
+ margin: 0 auto vww(16) ;
+ box-shadow: 0 2px 16px #e5e5e5, 0 0 1px #e5e5e5, 0 0 1px #e5e5e5;
+ .combination-card_wrapper {
+ font-size:vww(13);
+ .combination-card_top {
+ // height: vww(16);
+ padding:vww(8);
+ background-color: #f5f5f5;
+ border-bottom:1px solid #dddddd;
+ .combination-card_top__content{
+ display:flex;
+ align-items: center;
+ }
+ }
+ .combination-card_content {
+ // height: vww(98);
+ padding:vww(16);
+ }
+ .combination-card_bottom {
+ height: vww(16);
+ padding:vww(8);
+ background-color: #f5f5f5;
+ border-top:1px solid #dddddd;
+ display:flex;
+ justify-content: center;
+ }
+ }
+}
+</style>
--
Gitblit v1.9.1