Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
e7bdab78
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e7bdab78
编写于
5月 03, 2022
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
站点类型名称优化+商品不可售卖提示优化
上级
49bd3a60
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
12 deletion
+14
-12
app/admin/view/default/site/sitetype/index.html
app/admin/view/default/site/sitetype/index.html
+1
-1
app/index/view/default/buy/index.html
app/index/view/default/buy/index.html
+1
-1
app/service/BuyService.php
app/service/BuyService.php
+3
-3
app/service/ConstService.php
app/service/ConstService.php
+4
-4
app/service/GoodsService.php
app/service/GoodsService.php
+3
-1
app/service/OrderService.php
app/service/OrderService.php
+1
-1
app/service/SystemBaseService.php
app/service/SystemBaseService.php
+1
-1
未找到文件。
app/admin/view/default/site/sitetype/index.html
浏览文件 @
e7bdab78
...
...
@@ -18,7 +18,7 @@
<!-- 提示 -->
<div
class=
"am-alert am-alert-warning am-radius am-margin-top-xs"
data-am-alert
>
<button
type=
"button"
class=
"am-close"
>
×
</button>
<p
class=
"am-text-xs"
>
1.
销售型
、常规电商流程,用户选择收货地址下单支付 -> 商家发货 -> 确认收货 -> 订单完成
</p>
<p
class=
"am-text-xs"
>
1.
快递
、常规电商流程,用户选择收货地址下单支付 -> 商家发货 -> 确认收货 -> 订单完成
</p>
<p
class=
"am-text-xs"
>
2. 展示型、仅展示产品,可发起咨询(不能下单)
</p>
<p
class=
"am-text-xs"
>
3. 自提点、下单时选择自提货物地址,用户下单支付 -> 确认提货 -> 订单完成
</p>
<p
class=
"am-text-xs"
>
4. 虚拟销售、常规电商流程,用户下单支付 -> 自动发货 -> 确认提货 -> 订单完成
</p>
...
...
app/index/view/default/buy/index.html
浏览文件 @
e7bdab78
...
...
@@ -55,7 +55,7 @@
</div>
{{/if}}
<!--
销售型
- 用户地址 -->
<!--
快递
- 用户地址 -->
{{if isset($base['site_model']) and $base['site_model'] eq 0}}
<div
class=
"address user-address-container"
>
<div
class=
"control"
>
...
...
app/service/BuyService.php
浏览文件 @
e7bdab78
...
...
@@ -1062,7 +1062,7 @@ class BuyService
],
];
// //
销售型
,自提点,销售+自提 则校验地址
// //
快递
,自提点,销售+自提 则校验地址
if
(
in_array
(
$site_model
,
[
0
,
2
]))
{
$p
[]
=
[
...
...
@@ -1150,7 +1150,7 @@ class BuyService
return
$check
;
}
//
销售型
,自提点,销售+自提 地址处理
//
快递
,自提点,销售+自提 地址处理
$address
=
[];
if
(
in_array
(
$site_model
,
[
0
,
2
]))
{
...
...
@@ -1337,7 +1337,7 @@ class BuyService
}
// 订单模式处理
//
销售型
模式,自提模式,销售+自提
//
快递
模式,自提模式,销售+自提
if
(
in_array
(
$order
[
'order_model'
],
[
0
,
2
]))
{
// 添加订单(收货|取货)地址
...
...
app/service/ConstService.php
浏览文件 @
e7bdab78
...
...
@@ -311,16 +311,16 @@ class ConstService
// 站点类型
'common_site_type_list'
=>
[
0
=>
[
'value'
=>
0
,
'name'
=>
'
销售
'
],
0
=>
[
'value'
=>
0
,
'name'
=>
'
快递
'
],
1
=>
[
'value'
=>
1
,
'name'
=>
'展示'
],
2
=>
[
'value'
=>
2
,
'name'
=>
'自提'
],
3
=>
[
'value'
=>
3
,
'name'
=>
'虚拟
销售
'
],
4
=>
[
'value'
=>
4
,
'name'
=>
'
销售
+自提'
,
'is_ext'
=>
1
],
3
=>
[
'value'
=>
3
,
'name'
=>
'虚拟
售卖
'
],
4
=>
[
'value'
=>
4
,
'name'
=>
'
快递
+自提'
,
'is_ext'
=>
1
],
],
// 订单类型
'common_order_type_list'
=>
[
0
=>
[
'value'
=>
0
,
'name'
=>
'
销售
'
],
0
=>
[
'value'
=>
0
,
'name'
=>
'
快递
'
],
1
=>
[
'value'
=>
1
,
'name'
=>
'展示'
],
2
=>
[
'value'
=>
2
,
'name'
=>
'自提'
],
3
=>
[
'value'
=>
3
,
'name'
=>
'虚拟销售'
],
...
...
app/service/GoodsService.php
浏览文件 @
e7bdab78
...
...
@@ -2760,7 +2760,9 @@ class GoodsService
}
// 仅可单独购买
return
DataReturn
(
'仅单买'
,
-
1
,
$site_type
);
$site_type_arr
=
MyConst
(
'common_site_type_list'
);
$msg
=
array_key_exists
(
$site_type
,
$site_type_arr
)
?
'仅'
.
$site_type_arr
[
$site_type
][
'name'
]
:
'仅单买'
;
return
DataReturn
(
$msg
,
-
1
,
$site_type
);
}
/**
...
...
app/service/OrderService.php
浏览文件 @
e7bdab78
...
...
@@ -1306,7 +1306,7 @@ class OrderService
}
// 订单模式处理
//
销售型
模式+自提模式
//
快递
模式+自提模式
if
(
in_array
(
$v
[
'order_model'
],
[
0
,
2
]))
{
// 销售模式+自提模式 地址信息
...
...
app/service/SystemBaseService.php
浏览文件 @
e7bdab78
...
...
@@ -280,7 +280,7 @@ class SystemBaseService
*/
public
static
function
SiteTypeValue
()
{
// 当前站点类型、默认
销售型(0销售型
, 1展示型, 2自提点, 3虚拟销售, 4销售+自提)
// 当前站点类型、默认
快递(0快递
, 1展示型, 2自提点, 3虚拟销售, 4销售+自提)
$value
=
(
int
)
MyC
(
'common_site_type'
,
0
,
true
);
// 钩子
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录