Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
4efe3e5b
ShopXO
项目概览
飞鱼0526
/
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,发现更多精彩内容 >>
提交
4efe3e5b
编写于
6月 19, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品详情图片缝隙,小程序适配icon价格展示
上级
9b7ff621
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
38 addition
and
6 deletion
+38
-6
application/service/GoodsService.php
application/service/GoodsService.php
+1
-1
public/appmini/old/alipay/pages/goods-detail/goods-detail.acss
...c/appmini/old/alipay/pages/goods-detail/goods-detail.acss
+11
-0
public/appmini/old/alipay/pages/goods-detail/goods-detail.axml
...c/appmini/old/alipay/pages/goods-detail/goods-detail.axml
+2
-1
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
+5
-1
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
+5
-1
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
...c/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
+2
-1
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
...c/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
+11
-0
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+1
-1
未找到文件。
application/service/GoodsService.php
浏览文件 @
4efe3e5b
...
...
@@ -1309,7 +1309,7 @@ class GoodsService
{
return
DataReturn
(
'请填写有效的规格销售价格'
,
-
1
);
}
if
(
empty
(
$data
[
0
][
1
])
)
if
(
!
isset
(
$data
[
0
][
1
])
||
$data
[
0
][
1
]
<
0
)
{
return
DataReturn
(
'请填写规格库存'
,
-
1
);
}
...
...
public/appmini/old/alipay/pages/goods-detail/goods-detail.acss
浏览文件 @
4efe3e5b
...
...
@@ -195,4 +195,15 @@
}
.page {
padding-bottom: 100rpx;
}
/*
* 价格icon
*/
.price-icon {
background:#FF5722;
color:#fff;
padding:2px 5px;
line-height:20px;
border-radius:1px;
}
\ No newline at end of file
public/appmini/old/alipay/pages/goods-detail/goods-detail.axml
浏览文件 @
4efe3e5b
...
...
@@ -27,6 +27,7 @@
</view>
</view>
<view class="goods-price single-text">
<text a:if="{{(show_field_price_text || null) != null}}" class="price-icon">{{show_field_price_text}}</text>
<text class="sales-price">¥{{goods.price}}</text>
<text a:if="{{(goods.original_price || null) != null}}" class="original-price">¥{{goods.original_price}}</text>
<view class="cr-ccc sales">
...
...
@@ -49,7 +50,7 @@
<text class="text-wrapper">详情</text>
</view>
<view a:for="{{goods_content_app}}" class="goods-detail-app bg-white">
<image a:if="{{(item.images || null) != null}}" onTap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto" src="{{item.images}}" mode="widthFix" />
<image a:if="{{(item.images || null) != null}}" onTap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto
dis-block
" src="{{item.images}}" mode="widthFix" />
<view a:if="{{(item.content || null) != null}}" class="content-items">
<view a:for="{{item.content}}" a:for-item="items">{{items}}</view>
</view>
...
...
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
浏览文件 @
4efe3e5b
...
...
@@ -28,6 +28,8 @@ Page({
goods_spec_base_original_price
:
0
,
goods_spec_base_inventory
:
0
,
goods_spec_base_images
:
''
,
show_field_price_text
:
null
,
},
onLoad
(
params
)
{
...
...
@@ -93,7 +95,9 @@ Page({
goods_spec_base_price
:
data
.
goods
.
price
,
goods_spec_base_original_price
:
data
.
goods
.
original_price
,
goods_spec_base_inventory
:
data
.
goods
.
inventory
,
goods_spec_base_images
:
data
.
goods
.
images
goods_spec_base_images
:
data
.
goods
.
images
,
show_field_price_text
:
data
.
goods
.
show_field_price_text
.
replace
(
/<
[^
>
]
+>/g
,
""
)
||
null
,
});
// 不能选择规格处理
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
浏览文件 @
4efe3e5b
...
...
@@ -28,6 +28,8 @@ Page({
goods_spec_base_original_price
:
0
,
goods_spec_base_inventory
:
0
,
goods_spec_base_images
:
''
,
show_field_price_text
:
null
,
},
onLoad
(
params
)
{
...
...
@@ -93,7 +95,9 @@ Page({
goods_spec_base_price
:
data
.
goods
.
price
,
goods_spec_base_original_price
:
data
.
goods
.
original_price
,
goods_spec_base_inventory
:
data
.
goods
.
inventory
,
goods_spec_base_images
:
data
.
goods
.
images
goods_spec_base_images
:
data
.
goods
.
images
,
show_field_price_text
:
data
.
goods
.
show_field_price_text
.
replace
(
/<
[^
>
]
+>/g
,
""
)
||
null
,
});
// 不能选择规格处理
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxml
浏览文件 @
4efe3e5b
...
...
@@ -27,6 +27,7 @@
</view>
</view>
<view class="goods-price single-text">
<text wx:if="{{(show_field_price_text || null) != null}}" class="price-icon">{{show_field_price_text}}</text>
<text class="sales-price">¥{{goods.price}}</text>
<text wx:if="{{(goods.original_price || null) != null}}" class="original-price">¥{{goods.original_price}}</text>
<view class="cr-ccc sales">
...
...
@@ -49,7 +50,7 @@
<text class="text-wrapper">详情</text>
</view>
<view wx:for="{{goods_content_app}}" wx:key="key" class="goods-detail-app bg-white">
<image wx:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto" src="{{item.images}}" mode="widthFix" />
<image wx:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto
dis-block
" src="{{item.images}}" mode="widthFix" />
<view wx:if="{{(item.content || null) != null}}" class="content-items">
<view wx:for="{{item.content}}" wx:for-item="items">{{items}}</view>
</view>
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.wxss
浏览文件 @
4efe3e5b
...
...
@@ -202,4 +202,15 @@
}
.page {
padding-bottom: 100rpx;
}
/*
* 价格icon
*/
.price-icon {
background:#FF5722;
color:#fff;
padding:2px 5px;
line-height:20px;
border-radius:1px;
}
\ No newline at end of file
public/static/index/default/css/common.css
浏览文件 @
4efe3e5b
...
...
@@ -14,7 +14,6 @@ time, mark, audio, video {
margin
:
0
;
padding
:
0
;
border
:
0
;
vertical-align
:
baseline
;
font-family
:
arial
,
"Lantinghei SC"
,
"Microsoft Yahei"
;
font-style
:
normal
;
}
...
...
@@ -649,6 +648,7 @@ ul.am-dropdown-content > .am-active > a:focus,
max-width
:
100px
;
max-height
:
45px
;
padding
:
5px
;
line-height
:
30px
;
}
.shop-navigation
.wap-logo
img
{
max-width
:
100%
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录