Ver código fonte

修复任务栏白色背景颜色问题

XSXS 8 meses atrás
pai
commit
8552b802fa

+ 2 - 2
components/CustomDialog/CustomDialog.vue

@@ -109,8 +109,8 @@ export default {
   
   .dialog-content {
     position: relative;
-    // background: #fff;
-    // border-radius: 16rpx;
+    background: #fff;
+    border-radius: 16rpx;
     overflow: hidden;
     opacity: 0;
     transform: scale(0.8);

+ 6 - 1
pages/isLand/homeLand.vue

@@ -37,7 +37,7 @@
     <inventory-dialog :visible.sync="inventoryVisible" @close="onInventoryClose"></inventory-dialog>
     <character-dialog :visible.sync="characterVisible" @close="onCharacterClose"></character-dialog>
     <shop-dialog :visible.sync="shopVisible" @close="onShopClose" @buy="onShopBuy"></shop-dialog>
-    <task-dialog :visible.sync="taskVisible" @close="onTaskClose"></task-dialog>
+    <task-dialog class="task-dialog" :visible.sync="taskVisible" @close="onTaskClose"></task-dialog>
   </view> 
 </template>
 
@@ -416,4 +416,9 @@ export default {
     margin-top: 10rpx;
   }
 }
+.task-dialog{
+	 ::v-deep.dialog-content{
+		  background: transparent !important;
+	  }
+}
 </style>