Browse Source

样式修改

tanxue 7 hours ago
parent
commit
ee97cbbdda
2 changed files with 15 additions and 4 deletions
  1. 12 1
      common/styles/global/components.scss
  2. 3 3
      components/dialog/shengJiDialog.vue

+ 12 - 1
common/styles/global/components.scss

@@ -558,4 +558,15 @@ margin-right: 18rpx;display: inline-block;vertical-align: middle;}
 .no-data-tip-box{
 		font-size: 1rem;color: #999;flex: 1;display: flex;
 		justify-content: center;align-items: center;background-color: #f8f9fd;
-	}
+	}
+	
+// 升级提醒弹窗
+.shengji-popup-box{
+	position: relative;
+	.preview-image{
+		max-height: 80vh;
+		>div{background-size: contain!important;background-position: center;}
+		}
+	.close-btn{position: absolute;top: -30px;right: 5px}
+	.close-icon{color:#fff}
+}

+ 3 - 3
components/dialog/shengJiDialog.vue

@@ -19,14 +19,14 @@
 
   <!-- 自定义预览弹窗 -->
   <uni-popup ref="previewPopup" type="center" :safe-area="false" :is-mask-click="false">
-    <view class="custom-preview" style="position: relative">
+    <view class="shengji-popup-box">
       <image
           src="/static/images/login/ggg.gif"
           mode="widthFix"
           class="preview-image"
       />
-      <view class="close-btn" @click="handleCloseImg" style="position: absolute;top: -30px;right: 5px">
-        <text class="close-icon" style="color:#fff">关闭</text>
+      <view class="close-btn" @click="handleCloseImg">
+        <text class="close-icon">关闭</text>
       </view>
     </view>
   </uni-popup>