浏览代码

feature: 调整固件升级进度条弹窗

Damon 1 年之前
父节点
当前提交
70e93b7691
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 0 1
      pages/piano/firmware/firmware.js
  2. 1 1
      pages/piano/firmware/firmware.wxml
  3. 4 3
      pages/piano/firmware/firmware.wxss

+ 0 - 1
pages/piano/firmware/firmware.js

@@ -76,7 +76,6 @@ Page({
     let interval = setInterval(() => {
       var progress = that.data.progress;
       if (progress < 100) {
-        console.log("gassdfadfasdfaf====" + progress);
         that.setData({
           progress: progress + 0.1,
         });

+ 1 - 1
pages/piano/firmware/firmware.wxml

@@ -21,7 +21,7 @@
     <!-- 自定义模态框,用于显示带进度条的弹窗 -->
     <view class="update_progress_modal" wx:if="{{showModal}}">
       <text>正在升级中</text>
-      <progress percent="{{progress}}" style="width: 500rpx;" stroke-width="4" />
+      <progress class="update_progress" percent="{{progress}}" style="width: 500rpx;" stroke-width="4" />
     </view>
   </view>
 </view>

+ 4 - 3
pages/piano/firmware/firmware.wxss

@@ -59,12 +59,13 @@
   left: 50%;
   transform: translate(-50%, -50%);
   background-color: #fff;
-  padding: 30rpx;
+  padding: 40rpx;
   /* 置顶优先级 */
   z-index: 1000;
+  text-align: center;
 }
 
-progress {
+.update_progress {
   width: 100%;
-  margin: 10rpx auto;
+  margin: 20rpx 0 30rpx 0;
 }