Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
2c13394a
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2c13394a
编写于
3月 20, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
71884b25
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
37 addition
and
18 deletion
+37
-18
application/api/controller/Cart.php
application/api/controller/Cart.php
+1
-1
application/index/controller/Cart.php
application/index/controller/Cart.php
+1
-1
application/index/view/default/order/detail.html
application/index/view/default/order/detail.html
+2
-2
application/index/view/default/order/index.html
application/index/view/default/order/index.html
+2
-2
application/service/BuyService.php
application/service/BuyService.php
+3
-3
application/tags.php
application/tags.php
+21
-0
config/shopxo.php
config/shopxo.php
+1
-1
public/static/common/js/common.js
public/static/common/js/common.js
+0
-1
public/static/index/default/css/goods.css
public/static/index/default/css/goods.css
+1
-1
public/static/index/default/js/goods.js
public/static/index/default/js/goods.js
+5
-6
未找到文件。
application/api/controller/Cart.php
浏览文件 @
2c13394a
...
...
@@ -70,7 +70,7 @@ class Cart extends Common
{
$params
=
$this
->
data_post
;
$params
[
'user'
]
=
$this
->
user
;
return
BuyService
::
Cart
Add
(
$params
);
return
BuyService
::
Cart
Save
(
$params
);
}
/**
...
...
application/index/controller/Cart.php
浏览文件 @
2c13394a
...
...
@@ -80,7 +80,7 @@ class Cart extends Common
$params
=
$_POST
;
$params
[
'user'
]
=
$this
->
user
;
return
BuyService
::
Cart
Add
(
$params
);
return
BuyService
::
Cart
Save
(
$params
);
}
/**
...
...
application/index/view/default/order/detail.html
浏览文件 @
2c13394a
...
...
@@ -223,11 +223,11 @@
<!-- 订单详情操作钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div
class=
"plugins-tag"
>
<span>
plugins_view_index_order_detail_operat
ion
</span>
<span>
plugins_view_index_order_detail_operat
e
</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_index_order_detail_operat
ion
';
$hook_name = 'plugins_view_index_order_detail_operat
e
';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'id'=>$data['id'], 'data'=>$data]);
if(!empty($hook_data)
&&
is_array($hook_data))
{
...
...
application/index/view/default/order/index.html
浏览文件 @
2c13394a
...
...
@@ -237,11 +237,11 @@
<!-- 订单列表操作钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div
class=
"plugins-tag"
>
<span>
plugins_view_index_order_list_operat
ion
</span>
<span>
plugins_view_index_order_list_operat
e
</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_index_order_list_operat
ion
';
$hook_name = 'plugins_view_index_order_list_operat
e
';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'id'=>$order['id'], 'data'=>$order]);
if(!empty($hook_data)
&&
is_array($hook_data))
{
...
...
application/service/BuyService.php
浏览文件 @
2c13394a
...
...
@@ -27,7 +27,7 @@ use app\service\ConfigService;
class
BuyService
{
/**
* 购物车添加
* 购物车添加
/更新
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
...
...
@@ -35,7 +35,7 @@ class BuyService
* @desc description
* @param [array] $params [输入参数]
*/
public
static
function
Cart
Add
(
$params
=
[])
public
static
function
Cart
Save
(
$params
=
[])
{
// 请求参数
$p
=
[
...
...
@@ -163,7 +163,7 @@ class BuyService
* @desc description
* @param [array] $params [输入参数]
*/
p
rivate
static
function
GoodsSpecificationsHandle
(
$params
=
[])
p
ublic
static
function
GoodsSpecificationsHandle
(
$params
=
[])
{
$spec
=
''
;
if
(
!
empty
(
$params
[
'spec'
]))
...
...
application/tags.php
浏览文件 @
2c13394a
...
...
@@ -127,6 +127,7 @@ return array (
array
(
0
=>
'app\\plugins\\coupon\\Hook'
,
1
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
2
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_view_buy_goods_bottom'
=>
array
(
...
...
@@ -219,5 +220,25 @@ return array (
array
(
0
=>
'app\\plugins\\share\\Hook'
,
),
'plugins_service_system_begin'
=>
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_common_header'
=>
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_view_header_navigation_top_left'
=>
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_view_user_login_info_top'
=>
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_view_user_reg_info'
=>
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
);
?>
\ No newline at end of file
config/shopxo.php
浏览文件 @
2c13394a
...
...
@@ -15,7 +15,7 @@
return
[
// 开发模式
'is_develop'
=>
tru
e
,
'is_develop'
=>
fals
e
,
// 默认编码
'default_charset'
=>
'utf-8'
,
...
...
public/static/common/js/common.js
浏览文件 @
2c13394a
...
...
@@ -1589,7 +1589,6 @@ function TableContainerInit()
var
last_width
=
$
(
this
).
find
(
'
th
'
).
last
().
data
(
'
width
'
)
||
$
(
this
).
find
(
'
th
'
).
last
().
innerWidth
();
if
(
last_width
>
0
)
{
console
.
log
(
$
(
this
).
find
(
'
th
'
).
eq
(
-
2
).
innerWidth
())
$
(
this
).
find
(
'
th
'
).
eq
(
-
2
).
css
(
'
min-width
'
,
(
$
(
this
).
find
(
'
th
'
).
eq
(
-
2
).
innerWidth
()
+
last_width
)
+
'
px
'
);
$
(
this
).
find
(
'
th
'
).
eq
(
-
2
).
css
(
'
padding-right
'
,
(
last_width
+
10
)
+
'
px
'
);
}
...
...
public/static/index/default/css/goods.css
浏览文件 @
2c13394a
...
...
@@ -49,7 +49,7 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;}
.introduce-main
.am-sticky-placeholder
{
margin
:
0px
!important
;
}
.am-sticky-placeholder
.am-nav-tabs
>
li
span
{
color
:
#888
;
}
.am-sticky-placeholder
.am-nav-tabs
>
li
.am-active
span
{
color
:
#333
;
}
.
attr
-not-active
{
border
:
1px
solid
#f03726
!important
;
box-shadow
:
0
0px
3px
#ed7f76
,
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
}
.
sku
-not-active
{
border
:
1px
solid
#f03726
!important
;
box-shadow
:
0
0px
3px
#ed7f76
,
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
}
.sku-items-disabled
{
color
:
#d2cfcf
!important
;
background-color
:
#ffffff
!important
;
border
:
1px
dashed
#d5d5d5
!important
;
box-shadow
:
none
!important
;
}
.sku-dont-choose
{
color
:
#b4b3b3
!important
;
background-color
:
#ffffff
!important
;
border
:
1px
solid
#ebeaea
!important
;
box-shadow
:
none
!important
;
}
.sku-dont-choose
img
{
opacity
:
0.5
;
}
...
...
public/static/index/default/js/goods.js
浏览文件 @
2c13394a
...
...
@@ -111,13 +111,13 @@ function CartAdd(e)
{
if
(
$
(
this
).
find
(
'
.sku-line.selected
'
).
length
==
0
)
{
$
(
this
).
addClass
(
'
attr
-not-active
'
);
$
(
this
).
addClass
(
'
sku
-not-active
'
);
}
});
PromptCenter
(
'
请选择规格
'
);
return
false
;
}
else
{
$
(
'
.iteminfo_parameter .sku-items
'
).
removeClass
(
'
attr
-not-active
'
);
$
(
'
.iteminfo_parameter .sku-items
'
).
removeClass
(
'
sku
-not-active
'
);
$
(
'
.theme-signin-left .sku-items li.selected
'
).
each
(
function
(
k
,
v
)
{
spec
.
push
({
"
type
"
:
$
(
this
).
data
(
'
type-value
'
),
"
value
"
:
$
(
this
).
data
(
'
value
'
)})
...
...
@@ -423,7 +423,7 @@ $(function() {
return
false
;
}
$
(
this
).
addClass
(
'
selected
'
).
siblings
(
'
li
'
).
removeClass
(
'
selected
'
);
$
(
this
).
parents
(
'
.sku-items
'
).
removeClass
(
'
attr
-not-active
'
);
$
(
this
).
parents
(
'
.sku-items
'
).
removeClass
(
'
sku
-not-active
'
);
// 去掉元素之后的禁止
if
(
index
<
length
)
...
...
@@ -608,12 +608,11 @@ $(function() {
{
number
=
inventory
;
}
if
(
number
<=
1
)
if
(
number
<=
1
||
isNaN
(
number
)
)
{
number
=
1
;
number
=
min
;
}
$sotck
.
val
(
number
);
console
.
log
(
number
)
});
//数量增加操作
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录