mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
细节优化
This commit is contained in:
parent
ca13c5c5e1
commit
3180f6595f
@ -11,6 +11,25 @@
|
||||
|
||||
// 应用公共文件
|
||||
|
||||
/**
|
||||
* 生成uuid
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2021-10-30
|
||||
* @desc description
|
||||
*/
|
||||
function UUId()
|
||||
{
|
||||
$chars = md5(uniqid(mt_rand(), true));
|
||||
$uuid = substr($chars, 0, 8) . '-'
|
||||
. substr($chars, 8, 4) . '-'
|
||||
. substr($chars, 12, 4) . '-'
|
||||
. substr($chars, 16, 4) . '-'
|
||||
. substr($chars, 20, 12);
|
||||
return $uuid;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取常量数据
|
||||
* @author Devil
|
||||
|
@ -488,7 +488,7 @@ class ResourcesService
|
||||
$count += count($files);
|
||||
foreach($files as $v)
|
||||
{
|
||||
$temp = Db::name('Attachment')->where(['title'=>$v['title'], 'hash'=>$v['hash']])->find();
|
||||
$temp = Db::name('Attachment')->where(['title'=>$v['title'], 'hash'=>$v['hash'], 'path_type'=>$path_type])->find();
|
||||
if(empty($temp))
|
||||
{
|
||||
$ret = self::AttachmentAdd($v);
|
||||
@ -713,6 +713,12 @@ class ResourcesService
|
||||
// 取参数uuid、默认空
|
||||
$uid = input('uuid', '');
|
||||
|
||||
// 取当前session
|
||||
if(empty($uid))
|
||||
{
|
||||
$uid = MySession('uuid');
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
$user = UserService::LoginUserInfo();
|
||||
if(!empty($user) && !empty($user['id']))
|
||||
|
@ -50,7 +50,6 @@ class SlideService
|
||||
// 图片地址
|
||||
if(isset($v['images_url']))
|
||||
{
|
||||
$v['images_url_old'] = $v['images_url'];
|
||||
$v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']);
|
||||
}
|
||||
|
||||
|
@ -291,7 +291,7 @@ class SystemBaseService
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否使用商品优化记录
|
||||
* 是否使用商品优惠记录
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
|
@ -30,6 +30,10 @@ class SystemService
|
||||
*/
|
||||
public static function SystemBegin($params = [])
|
||||
{
|
||||
// 当前用户生成uuid并存储
|
||||
self::SetUserUUId();
|
||||
|
||||
// 钩子
|
||||
$hook_name = 'plugins_service_system_begin';
|
||||
MyEventTrigger($hook_name, [
|
||||
'hook_name' => $hook_name,
|
||||
@ -57,6 +61,24 @@ class SystemService
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前用户生成uuid并存储
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2019-03-18
|
||||
* @desc description
|
||||
* @param [array] $params [输入参数]
|
||||
*/
|
||||
public static function SetUserUUId($params = [])
|
||||
{
|
||||
$uuid = MySession('uuid');
|
||||
if(empty($uuid))
|
||||
{
|
||||
MySession('uuid', UUId());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 系统安装检查
|
||||
* @author Devil
|
||||
|
@ -30,7 +30,8 @@ ul { list-style: none; }
|
||||
/**
|
||||
* 表单优化
|
||||
*/
|
||||
.am-form-group:hover>input, .am-form-group:hover>select, .am-form-group:hover>textarea, .am-form-group:hover .chosen-choices, .am-form-group:hover .chosen-single { border: 1px solid #999 ; }
|
||||
.am-form-group:hover input, .am-form-group:hover select, .am-form-group:hover textarea, .am-form-group:hover .chosen-choices, .am-form-group:hover .chosen-single, .am-form-group:hover .am-tagsinput { border: 1px solid #999 ; }
|
||||
.am-form-group .am-tagsinput input {border: 0 !important;}
|
||||
.am-form-error .chosen-choices, .am-form-error .chosen-default { border: 1px solid #dd514c !important; }
|
||||
.am-form-success .chosen-choices, .am-form-success .chosen-single { border: 1px solid #5eb95e !important; }
|
||||
form.am-form .am-form-group-label-tips, form.am-form .am-form-group-label-tips-must { font-size: 12px; font-weight: 400; margin-left: 10px; }
|
||||
@ -45,7 +46,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
|
||||
* 插件
|
||||
*/
|
||||
.chosen-container { width: 100% !important; }
|
||||
.am-tagsinput { display: block; padding: 2px 5px; border-radius: 2px; }
|
||||
.am-tagsinput { display: block; padding: 3px 5px; border-radius: 2px; min-height: 30px; }
|
||||
.chosen-choices, .chosen-single { border-radius: 2px; }
|
||||
.chosen-choices li.search-field input[type="text"] { height: 30px !important; }
|
||||
.chosen-choices li.search-field input[type="text"]:hover,
|
||||
|
@ -78,7 +78,6 @@ text-align: center;float:none}
|
||||
.floor { margin-bottom: 15px; }
|
||||
.floor .goods-list { overflow: hidden; }
|
||||
.outer-con .describe {font-size: 14px;font-weight: 600;}
|
||||
.goods-title, .outer-con .price { font-size: 14px; }
|
||||
.floor .goods-list .goods-items { float: left; width: 25%; padding: 10px 15px; border-right: 1px solid; border-bottom: 1px solid; border-color: #eee; }
|
||||
.floor .aggregation img {position: absolute;top:auto;left:0;bottom:0;}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user