Browse Source

优化本地存储
修复移动端搜索框显示错位问题

陈龙 10 months ago
parent
commit
bd61c0ea45

+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.DataAccess/EndShopping/EndSkusDAO.designer.cs

@@ -1,4 +1,4 @@
-锘縰sing System;
+using System;
 using System.Collections.Generic;
 using System.Text;
 using System.Data;

+ 2 - 2
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/README.md

@@ -1,8 +1,8 @@
 # SUI 说明文档
 
-**当前版本:** 1.2.9
+**当前版本:** 1.2.10
 
-**更新日期:** 2024/8/2
+**更新日期:** 2024/8/5
 
 SUI 全称为 Simple User Interface,由**成都能友科技有限责任公司**开发,使用JavaScript、HTML、CSS语言编写,基于前端流行框架jQuery开发的UI组件库。
 

+ 9 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/UpdateLog.md

@@ -1,5 +1,14 @@
 # SUI 更新日志
 
+## 版本:1.2.10
+
+**更新时间:2024/8/2**
+
+1. 新增 SUI.Validate.IsNull 方法,判断是否空值。
+2. 新增 SUI.Validate.IsObject 方法,判断是否是对象。
+3. 优化 Object.IsNullOrEmpty 方法。
+4. 优化 $().Form('GetValue') 方法。
+
 ## 版本:1.2.9
 
 **更新时间:2024/8/2**

+ 9 - 2
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/extend/topbar/themes/sui.topbar.Goldhoo.css

@@ -3,7 +3,7 @@
 	* SUI Topbar
     * 顶栏 默认样式
 	* 基于 SUI 库开发的组件,适用于 Web 应用程序
-	* 最后更新日期:2018年07月23
+	* 最后更新日期:2024年08月5
 */
 
 /* ------ Topbar [ ------ */
@@ -88,6 +88,7 @@
     vertical-align: middle;
     color: #581818;
     padding: 0 5px;
+    min-width: 10px;
 }
 
 .topbar-searchBox .topbar-searchBox-icon {
@@ -116,6 +117,7 @@
     width: 90px;
     color: #ffffff;
     border-right: 1px solid #471010;
+    flex-shrink: 0;
 }
 
 .topbar-search-combobox-view {
@@ -147,6 +149,7 @@
     justify-content: flex-start;
     padding-left: 5px;
     font-size: 12px;
+    flex-shrink: 0;
 }
 
 .topbar-search-combobox-panel {
@@ -214,8 +217,12 @@
 /* mobile */
 .mobile.sui-topbar {
     font-size: 12px;
+    padding-left: 10px;
+    padding-right: 10px;
+    box-sizing: border-box;
 }
 
 .mobile.sui-topbar .topbar-searchBox {
-    width: 150px;
+    max-width: 280px;
+    min-width: 200px;
 }

File diff suppressed because it is too large
+ 0 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main-min.js


+ 21 - 4
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main.js

@@ -288,7 +288,7 @@ Object.ExceptionFormat = function (ex) {
 
 // 判断是否是空对象
 Object.IsNullOrEmpty = function (value) {
-    if (value === null || value === undefined || typeof value !== 'object') {
+    if (value === null || value === undefined) {
         return true;
     }
     return false;
@@ -990,10 +990,10 @@ window.DoGetCaretPosition = function (oField) {
  */
 var SUI = new function () {
     // SUI 版本号
-    this.Version = '1.2.9';
+    this.Version = '1.2.10';
 
     // SUI 更新时间
-    this.UpdateDate = Date.DateFormat('2024/8/2');
+    this.UpdateDate = Date.DateFormat('2024/8/5');
 
     // SUI 文件路径
     this.Path = '';
@@ -1436,6 +1436,23 @@ SUI.Validate = new function () {
         }
         return res;
     }
+
+    /**
+     * 是否是空值
+     * @param {any} value 
+     */
+    this.IsNull = function (value) {
+        return value === null || value === undefined;
+    }
+
+    /**
+     * 是否是对象
+     * @param {any} value 
+     * @returns 
+     */
+    this.IsObject = function (value) {
+        return !this.IsNull(value) && typeof value === 'object';
+    }
 };
 
 /**
@@ -1450,7 +1467,7 @@ SUI.Storage = {
             if (String.IsNullOrWhiteSpace(key) || value === null || value === undefined) {
                 return res;
             }
-            if (!Object.IsNullOrEmpty(value)) {
+            if (SUI.Validate.IsObject(value)) {
                 value = JSON.stringify(value);
             }
             localStorage.setItem(key, value);

+ 2 - 2
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Views/Shared/_Layout.cshtml

@@ -25,10 +25,10 @@
     <link href="@Url.Content("~/Content/themes/SUI/themes/default/sui.css")?v=1.1.5" rel="stylesheet" />
     <link href="@Url.Content("~/Content/themes/SUI/extend/topbar/themes/sui.topbar." + Befri.Goldhoo.Mobile.MvcUI.WebConstants.THEMES + ".css")?v=3" rel="stylesheet" />
     <link href="@Url.Content("~/Content/themes/SUI/extend/header/themes/sui.header." + Befri.Goldhoo.Mobile.MvcUI.WebConstants.THEMES + ".css")?v=1.0.1" rel="stylesheet" />
-    <link href="@Url.Content("~/Content/themes/Client/version1/themes/" + Befri.Goldhoo.Mobile.MvcUI.WebConstants.THEMES +"/style.css")?v=0.1.1" rel="stylesheet" />
+    <link href="@Url.Content("~/Content/themes/Client/version1/themes/" + Befri.Goldhoo.Mobile.MvcUI.WebConstants.THEMES +"/style.css")?v=0.1.2" rel="stylesheet" />
     <script src="@Url.Content("~/Content/themes/Library/jQuery/1.9.1/jquery.min.js")"></script>
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.mobile.touch.min.js")"></script>
-    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.6"></script>
+    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.10"></script>
     <script src="@Url.Content("~/Content/themes/SUI/extend/topbar/sui.topbar.js")?v=3"></script>
     <script src="@Url.Content("~/Content/themes/SUI/extend/header/sui.header.js")?v=1.0.1"></script>
     <script src="@Url.Content("~/Content/themes/Client/version1/src/system.js")?v=1.1.0"></script>

+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Views/Shared/_LayoutEmpty.cshtml

@@ -16,7 +16,7 @@
     <link href="@Url.Content("~/Content/themes/SUI/themes/default/sui.css")?v=1.1.5" rel="stylesheet" />
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.min.js")"></script>
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.mobile.touch.min.js")"></script>
-    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.5"></script>
+    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.10"></script>
     <script src="@Url.Content("~/Content/themes/Client/version1/src/system.js")?v=1.1.0"></script>
     <script type="text/javascript">
         // 电脑谷歌浏览器下载地址

Some files were not shown because too many files changed in this diff