Browse Source

fix:pc端个人部分bug修复完成

luoy 2 days ago
parent
commit
a38890001d
2 changed files with 10 additions and 10 deletions
  1. 2 2
      source/index/public/header.php
  2. 8 8
      static/pack/webview/lib.js

+ 2 - 2
source/index/public/header.php

@@ -90,7 +90,7 @@ document.addEventListener('DOMContentLoaded', () => {
                         <span class="ms-badge">分发</span>
                     </li>
 
-                    <!-- <?php if ($this->userlogined) { ?>
+                    <?php if ($this->userlogined) { ?>
                        
                     <?php }
 
@@ -102,7 +102,7 @@ document.addEventListener('DOMContentLoaded', () => {
                         
                       <li class="<?php if ($this->module == 'sign') echo 'active' ?>">
                         <a href="<?php echo IN_PATH . 'index/apps/sign' ?>">企业签名</a>
-                    </li> -->
+                    </li>
 
 
                     <li class="<?php if ($this->module == 'webview' or $this->module == 'webview2' or $this->module == 'pack') echo 'active' ?>">

+ 8 - 8
static/pack/webview/lib.js

@@ -125,17 +125,17 @@ function next_view() {
     }
     var type = $('input:radio[name=type]:checked').val();
     if (step == 2) {
-        // if ($("#preview_a_icon img").length < 1) {
-        //     alert("请上传应用图标!");
-        //     return;
-        // }
+        if ($("#preview_a_icon img").length < 1) {
+            alert("请上传应用图标!");
+            return;
+        }
 
 
 
-        // if ($("#preview_l_image img").length < 1) {
-        //     alert("请上传启动图片!");
-        //     return;
-        // }
+        if ($("#preview_l_image img").length < 1) {
+            alert("请上传启动图片!");
+            return;
+        }
         step++;
         $('.step' + step).show().siblings('.step-common').hide();
         $('ul.fz-step-box li').eq(step - 1).addClass('active').siblings().removeClass('active')