shish 4 miesięcy temu
rodzic
commit
f3a23374e7
1 zmienionych plików z 24 dodań i 12 usunięć
  1. 24 12
      hdApp/src/admin/home/workbench.vue

+ 24 - 12
hdApp/src/admin/home/workbench.vue

@@ -100,7 +100,19 @@
                   <view class="box_9">
                     <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>挂账变动记录</text> </view>
                     <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
-                    <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})"> <text>买花记录</text> </view>
+                    <view class="tag_2" style="position:relative;" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})"> 
+                      <text>买花记录</text> 
+                      
+                      <!-- 买花记录提示 -->
+                      <view class="inline-bought-tooltip-box" v-if="showBoughtTooltip && index === 0" @click.stop="closeBoughtTooltip">
+                        <view class="bought-tooltip-content">
+                          买花记录 在这里查看
+                          <text class="close-tooltip-icon">×</text>
+                        </view>
+                        <view class="bought-tooltip-arrow"></view>
+                      </view>
+
+                    </view>
                     <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
                   </view>
                   <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
@@ -1524,10 +1536,10 @@
     text-align: center;
     line-height: 1.4;
   }
-  .bought-tooltip-box {
-  position: fixed;
-  bottom: calc(env(safe-area-inset-bottom) + 120upx);
-  left: 28%;
+  .inline-bought-tooltip-box {
+  position: absolute;
+  top: 70upx;
+  left: 50%;
   transform: translateX(-50%);
   z-index: 10000;
   display: flex;
@@ -1538,17 +1550,17 @@
 .bought-tooltip-content {
   background-color: rgba(0, 0, 0, 0.75);
   color: #fff;
-  padding: 16upx 24upx;
+  padding: 12upx 20upx;
   border-radius: 12upx;
-  font-size: 29upx;
+  font-size: 28upx;
   display: flex;
   align-items: center;
   white-space: nowrap;
 }
 
 .close-tooltip-icon {
-  margin-left: 12upx;
-  font-size: 38upx;
+  margin-left: 10upx;
+  font-size: 32upx;
   color: #ccc;
   padding: 0 4upx;
   line-height: 1;
@@ -1559,8 +1571,8 @@
   height: 0;
   border-left: 12upx solid transparent;
   border-right: 12upx solid transparent;
-  border-top: 12upx solid rgba(0, 0, 0, 0.75);
-  margin-top: -1upx;
-  margin-right: 39upx;
+  border-bottom: 12upx solid rgba(0, 0, 0, 0.75);
+  margin-bottom: -1upx;
+  order: -1;
 }
 </style>