Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
c41dce2d
ShopXO
项目概览
starsw001
/
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,发现更多精彩内容 >>
提交
c41dce2d
编写于
12月 28, 2018
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug
上级
6ec9e36b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
32 addition
and
100 deletion
+32
-100
application/service/GoodsService.php
application/service/GoodsService.php
+1
-1
application/service/OrderService.php
application/service/OrderService.php
+1
-1
public/appmini/old/alipay/app.js
public/appmini/old/alipay/app.js
+2
-2
public/appmini/old/alipay/pages/goods-search/goods-search.axml
...c/appmini/old/alipay/pages/goods-search/goods-search.axml
+1
-2
public/appmini/old/alipay/pages/index/index.axml
public/appmini/old/alipay/pages/index/index.axml
+1
-1
public/appmini/old/alipay/pages/user-order/user-order.acss
public/appmini/old/alipay/pages/user-order/user-order.acss
+1
-0
public/install/shopxo_tp5.sql
public/install/shopxo_tp5.sql
+25
-93
未找到文件。
application/service/GoodsService.php
浏览文件 @
c41dce2d
...
...
@@ -145,7 +145,7 @@ class GoodsService
foreach
(
$goods_category
as
&
$v
)
{
$category_ids
=
self
::
GoodsCategoryItemsIds
([
$v
[
'id'
]],
1
);
$v
[
'goods'
]
=
self
::
CategoryGoodsList
([
'where'
=>
[
'gci.category_id'
=>
$category_ids
,
'is_home_recommended'
=>
1
],
'm'
=>
0
,
'n'
=>
6
,
'field'
=>
'g.id,g.title,g.title_color,g.images,g.home_recommended_images,g.original_price,g.price,g.inventory,g.buy_min_number,g.buy_max_number'
]);
$v
[
'goods'
]
=
self
::
CategoryGoodsList
([
'where'
=>
[
'gci.category_id'
=>
$category_ids
,
'is_home_recommended'
=>
1
],
'm'
=>
0
,
'n'
=>
6
,
'field'
=>
'g.id,g.title,g.title_color,g.images,g.home_recommended_images,g.original_price,g.price,g.
min_price,g.max_price,g.
inventory,g.buy_min_number,g.buy_max_number'
]);
}
}
return
$goods_category
;
...
...
application/service/OrderService.php
浏览文件 @
c41dce2d
...
...
@@ -720,7 +720,7 @@ class OrderService
];
if
(
Db
::
name
(
'Order'
)
->
where
(
$where
)
->
update
(
$upd_data
))
{
// 库存
扣除
// 库存
回滚
$ret
=
BuyService
::
OrderInventoryRollback
([
'order_id'
=>
$order
[
'id'
],
'order_data'
=>
$upd_data
]);
if
(
$ret
[
'code'
]
!=
0
)
{
...
...
public/appmini/old/alipay/app.js
浏览文件 @
c41dce2d
...
...
@@ -50,8 +50,8 @@ App({
// 请求地址
//request_url: "{{request_url}}",
request_url
:
"
http://test.shopxo.net/
"
,
//
request_url: 'http://tp5-dev.com/',
//
request_url: "http://test.shopxo.net/",
request_url
:
'
http://tp5-dev.com/
'
,
// 基础信息
application_title
:
"
{{application_title}}
"
,
...
...
public/appmini/old/alipay/pages/goods-search/goods-search.axml
浏览文件 @
c41dce2d
...
...
@@ -20,8 +20,7 @@
<view class="base">
<view class="single-text">{{item.title}}</view>
<view class="price">
<text class="sales-price">¥{{item.price}}</text>
<text a:if="{{item.original_price > 0}}" class="original-price">¥{{item.original_price}}</text>
<text class="sales-price">¥{{item.min_price}}</text>
</view>
</view>
</navigator>
...
...
public/appmini/old/alipay/pages/index/index.axml
浏览文件 @
c41dce2d
...
...
@@ -41,7 +41,7 @@
<image src="{{goods.home_recommended_images}}" mode="aspectFit" />
<view class="goods-base">
<view class="goods-title single-text">{{goods.title}}</view>
<view class="sales-price">¥{{goods.price}}</view>
<view class="sales-price">¥{{goods.
min_
price}}</view>
</view>
</navigator>
</view>
...
...
public/appmini/old/alipay/pages/user-order/user-order.acss
浏览文件 @
c41dce2d
...
...
@@ -38,6 +38,7 @@
}
.goods-price {
position: relative;
margin-top: 10rpx;
}
.buy-number {
position: absolute;
...
...
public/install/shopxo_tp5.sql
浏览文件 @
c41dce2d
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录