Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
07d9729a
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,体验更适合开发者的 AI 搜索 >>
提交
07d9729a
编写于
8月 08, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
web端分类优化
上级
120a0b8f
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
186 addition
and
106 deletion
+186
-106
application/index/controller/Category.php
application/index/controller/Category.php
+0
-3
application/index/controller/Common.php
application/index/controller/Common.php
+3
-0
application/index/view/default/category/index.html
application/index/view/default/category/index.html
+83
-47
application/index/view/default/public/goods_category.html
application/index/view/default/public/goods_category.html
+40
-28
public/static/index/default/css/category.css
public/static/index/default/css/category.css
+37
-8
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+7
-4
sourcecode/alipay/pages/plugins/coupon/index/index.axml
sourcecode/alipay/pages/plugins/coupon/index/index.axml
+1
-1
sourcecode/alipay/pages/plugins/coupon/user/user.axml
sourcecode/alipay/pages/plugins/coupon/user/user.axml
+3
-3
sourcecode/baidu/pages/plugins/coupon/index/index.swan
sourcecode/baidu/pages/plugins/coupon/index/index.swan
+1
-1
sourcecode/baidu/pages/plugins/coupon/user/user.swan
sourcecode/baidu/pages/plugins/coupon/user/user.swan
+3
-3
sourcecode/qq/pages/plugins/coupon/index/index.qml
sourcecode/qq/pages/plugins/coupon/index/index.qml
+1
-1
sourcecode/qq/pages/plugins/coupon/user/user.qml
sourcecode/qq/pages/plugins/coupon/user/user.qml
+3
-3
sourcecode/toutiao/pages/plugins/coupon/index/index.ttml
sourcecode/toutiao/pages/plugins/coupon/index/index.ttml
+1
-1
sourcecode/toutiao/pages/plugins/coupon/user/user.ttml
sourcecode/toutiao/pages/plugins/coupon/user/user.ttml
+3
-3
未找到文件。
application/index/controller/Category.php
浏览文件 @
07d9729a
...
...
@@ -43,9 +43,6 @@ class Category extends Common
*/
public
function
Index
()
{
// 展示层级
$this
->
assign
(
'category_show_level'
,
MyC
(
'common_show_goods_category_level'
,
3
,
true
));
// 浏览器名称
$this
->
assign
(
'home_seo_site_title'
,
SeoService
::
BrowserSeoTitle
(
'商品分类'
,
1
));
...
...
application/index/controller/Common.php
浏览文件 @
07d9729a
...
...
@@ -369,6 +369,9 @@ class Common extends Controller
// 编辑器文件存放地址
$this
->
assign
(
'editor_path_type'
,
empty
(
$this
->
user
[
'id'
])
?
'public'
:
'user-'
.
$this
->
user
[
'id'
]);
// 分类展示层级模式
$this
->
assign
(
'category_show_level'
,
MyC
(
'common_show_goods_category_level'
,
3
,
true
));
// 备案信息
$this
->
assign
(
'home_site_icp'
,
MyC
(
'home_site_icp'
));
$this
->
assign
(
'home_site_security_record_name'
,
MyC
(
'home_site_security_record_name'
));
...
...
application/index/view/default/category/index.html
浏览文件 @
07d9729a
...
...
@@ -19,64 +19,100 @@
<!-- content -->
<div
class=
"am-container category-list-container"
>
{{if !empty($goods_category_list)}}
<ul
class=
"category-nav am-fl"
>
{{foreach $goods_category_list as $k=>$v}}
<li
class=
"am-text-break am-padding-horizontal-sm {{if $k eq 0}} active{{/if}}"
data-url=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
>
{{$v.name}}
</li>
{{/foreach}}
</ul>
{{foreach $goods_category_list as $k=>$v}}
<div
class=
"category-content category-content-{{$k}} am-fr am-padding-vertical-xs {{if $k neq 0}} none{{/if}}"
>
{{if !empty($v['vice_name']) or !empty($v['describe'])}}
<div
class=
"category-item am-padding-sm am-margin-bottom-sm one-cetegory"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
title=
"{{$v.name}}"
>
<div>
{{if !empty($v['vice_name'])}}
<strong
{{
if
!
empty
($
v
['
bg_color
'])}}
style=
"color:{{$v.bg_color}};"
{{/
if
}}
class=
"am-text-sm am-margin-right-sm"
>
{{$v.vice_name}}
</strong>
{{/if}}
{{if !empty($v['describe'])}}
<span
class=
"am-text-grey"
>
{{$v.describe}}
</span>
{{if $category_show_level eq 1}}
<ul
class=
"model-one am-avg-sm-2 am-avg-md-3 am-avg-lg-4"
>
{{foreach $goods_category_list as $v}}
<li
class=
"am-fl"
>
<div
class=
"item-content am-text-center am-margin-xs"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
title=
"{{$v.name}}"
class=
"am-block am-padding-xs"
>
{{if !empty($v['icon'])}}
<img
src=
"{{$v.icon}}"
alt=
"{{$v.name}}"
class=
"category-icon am-block am-margin-bottom-xs"
/>
{{/if}}
</div>
</a>
</div>
{{/if}}
{{if !empty($v['items'])}}
{{foreach $v.items as $vs}}
<div
class=
"category-item am-padding-sm"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}"
title=
"{{$vs.name}}"
>
<div
class=
"am-text-center"
>
<strong>
{{$vs.name}}
</strong>
<p>
{{$v.name}}
</p>
</a>
</div>
</li>
{{/foreach}}
</ul>
{{else /}}
<ul
class=
"category-nav am-fl"
>
{{foreach $goods_category_list as $k=>$v}}
<li
class=
"am-text-break am-padding-horizontal-sm {{if $k eq 0}} active{{/if}}"
data-url=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
>
{{$v.name}}
</li>
{{/foreach}}
</ul>
{{foreach $goods_category_list as $k=>$v}}
<div
class=
"category-content category-content-{{$k}} am-fr am-padding-vertical-xs {{if $k neq 0}} none{{/if}}"
>
{{if !empty($v['vice_name']) or !empty($v['describe'])}}
<div
class=
"category-item am-padding-sm am-margin-bottom-sm one-cetegory"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
title=
"{{$v.name}}"
>
<div>
{{if !empty($v['vice_name'])}}
<strong
{{
if
!
empty
($
v
['
bg_color
'])}}
style=
"color:{{$v.bg_color}};"
{{/
if
}}
class=
"am-text-sm am-margin-right-sm"
>
{{$v.vice_name}}
</strong>
{{/if}}
{{if !empty($v['describe'])}}
<span
class=
"am-text-grey"
>
{{$v.describe}}
</span>
{{/if}}
</div>
</a>
{{if !empty($vs['items'])}}
<ul
class=
"am-margin-top-sm"
>
{{foreach $vs.items as $kss=>$vss}}
</div>
{{/if}}
{{if !empty($v['items'])}}
{{if $category_show_level eq 2}}
<div
class=
"category-item am-padding-sm two-content"
>
<ul>
{{foreach $v.items as $vs}}
<li
class=
"am-fl am-text-center"
>
{{if !empty($vs
s
['icon'])}}
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
s['id']])}}"
title=
"{{$vss.name}}"
class=
"am-block am-margin-top-xs
"
>
<img
src=
"{{$vs
s.icon}}"
alt=
"{{$vss.name}}"
class=
"category-icon am-block
"
/>
{{if !empty($vs['icon'])}}
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
['id']])}}"
title=
"{{$vs.name}}"
class=
"am-block
"
>
<img
src=
"{{$vs
.icon}}"
alt=
"{{$vs.name}}"
class=
"category-icon am-block am-margin-bottom-xs
"
/>
</a>
{{/if}}
<p
class=
"am-margin-top-xs"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
s['id']])}}"
title=
"{{$vss.name}}"
class=
"am-block"
>
{{$vs
s.name}}
</a>
<p>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
['id']])}}"
title=
"{{$vs.name}}"
class=
"am-block"
>
{{$v
s.name}}
</a>
</p>
</li>
{{/foreach}}
</ul>
{{/if}}
</div>
{{elseif $category_show_level eq 3}}
{{foreach $v.items as $vs}}
<div
class=
"category-item am-padding-sm"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}"
title=
"{{$vs.name}}"
>
<div
class=
"am-text-center"
>
<strong>
{{$vs.name}}
</strong>
</div>
</a>
{{if !empty($vs['items'])}}
<ul
class=
"am-margin-top-sm am-padding-top-sm"
>
{{foreach $vs.items as $kss=>$vss}}
<li
class=
"am-fl am-text-center"
>
{{if !empty($vss['icon'])}}
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vss['id']])}}"
title=
"{{$vss.name}}"
class=
"am-block"
>
<img
src=
"{{$vss.icon}}"
alt=
"{{$vss.name}}"
class=
"category-icon am-block am-margin-bottom-xs"
/>
</a>
{{/if}}
<p>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vss['id']])}}"
title=
"{{$vss.name}}"
class=
"am-block"
>
{{$vss.name}}
</a>
</p>
</li>
{{/foreach}}
</ul>
{{/if}}
</div>
{{/foreach}}
{{/if}}
{{else /}}
<div
class=
"table-no"
>
<i
class=
"am-icon-warning"
></i>
<span>
没有子分类数据
</span>
<p
class=
"am-margin-top-lg am-text-center"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
class=
"am-text-secondary"
title=
"查看分类下商品"
>
查看分类下商品 >>
</a>
</p>
</div>
{{/foreach}}
{{else /}}
<div
class=
"table-no"
>
<i
class=
"am-icon-warning"
></i>
<span>
没有子分类数据
</span>
<p
class=
"am-margin-top-lg am-text-center"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
class=
"am-text-secondary"
title=
"查看分类下商品"
>
查看分类下商品 >>
</a>
</p>
</div>
{{/if}}
</div>
{{/foreach}}
{{/if}}
</div>
{{/foreach}}
{{/if}}
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有分类数据
</div>
{{/if}}
...
...
application/index/view/default/public/goods_category.html
浏览文件 @
07d9729a
...
...
@@ -11,48 +11,60 @@
<ul
class=
"category-list"
>
{{if !empty($goods_category_list) and is_array($goods_category_list)}}
{{foreach $goods_category_list as $v}}
<li
class=
"appliance js_toggle relative first"
>
<li
class=
"first"
>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
class=
"am-block"
title=
"{{$v.name}}"
>
<div
class=
"category-info"
>
<h3
class=
"category-name b-category-name"
>
{{if !empty($v['icon'])}}
<img
src=
"{{$v.icon}}"
/>
{{/if}}
<
a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$v['id']])}}"
class=
"ml-22"
title=
"{{$v.name}}"
>
{{$v.name}}
</a
>
<
span
class=
"bd-name"
>
{{$v.name}}
</span
>
</h3>
<em>
>
</em>
</div>
<div
class=
"menu-item menu-in top"
>
{{if !empty($v['items'])}}
<div
class=
"area-in"
>
<div
class=
"area-bg"
>
<div
class=
"menu-srot"
>
<div
class=
"sort-side"
>
{{foreach $v.items as $vs}}
<dl
class=
"dl-sort"
>
<dt>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}"
title=
"{{$vs.name}}"
>
<span
title=
"{{$vs.name}}"
>
{{$vs.name}}
</span>
</a>
</dt>
{{if !empty($vs['items'])}}
{{foreach $vs.items as $vss}}
</a>
{{if $category_show_level gt 1}}
<div
class=
"menu-item menu-in top"
>
{{if !empty($v['items'])}}
<div
class=
"area-in"
>
<div
class=
"area-bg"
>
<div
class=
"menu-srot"
>
<div
class=
"sort-side"
>
{{foreach $v.items as $vs}}
<dl
class=
"dl-sort two-content"
>
{{if $category_show_level eq 2}}
<dd>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
s['id']])}}"
title=
"{{$vs
s.name}}"
>
<span>
{{$vs
s
.name}}
</span>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs
['id']])}}"
title=
"{{$v
s.name}}"
>
<span>
{{$vs.name}}
</span>
</a>
</dd>
{{/foreach}}
{{/if}}
</dl>
{{/foreach}}
{{elseif $category_show_level eq 3}}
<dt>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}"
title=
"{{$vs.name}}"
>
<span
title=
"{{$vs.name}}"
>
{{$vs.name}}
</span>
</a>
</dt>
{{if !empty($vs['items'])}}
{{foreach $vs.items as $vss}}
<dd>
<a
href=
"{{:MyUrl('index/search/index', ['category_id'=>$vss['id']])}}"
title=
"{{$vss.name}}"
>
<span>
{{$vss.name}}
</span>
</a>
</dd>
{{/foreach}}
{{/if}}
{{/if}}
</dl>
{{/foreach}}
</div>
</div>
</div>
</div>
</div>
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有相关数据
</div>
{{/if}}
</div>
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有相关数据
</div>
{{/if}}
</div>
{{/if}}
</li>
{{/foreach}}
{{/if}}
...
...
public/static/index/default/css/category.css
浏览文件 @
07d9729a
.category-list-container
,
.model-one
,
.category-list-container
ul
.category-nav
li
,
.category-list-container
.category-content
ul
{
overflow
:
hidden
;
}
.category-list-container
ul
.category-nav
,
.category-list-container
.category-content
{
overflow-y
:
auto
;
...
...
@@ -37,23 +43,20 @@
.category-list-container
.category-content
.category-item
:not
(
:last-child
)
{
margin-bottom
:
15px
;
}
.category-list-container
.category-content
.one-cetegory
a
:hover
{
.category-list-container
a
:hover
{
text-decoration
:
none
;
}
.category-list-container
.category-content
ul
{
border-top
:
1px
dotted
#e5e5e5
;
}
.category-list-container
ul
.category-nav
li
,
.category-list-container
.category-content
ul
{
overflow
:
hidden
;
}
.category-list-container
.category-content
ul
li
:not
(
:last-child
)
{
margin-right
:
20px
;
.category-list-container
.category-content
ul
li
{
padding
:
3px
10px
;
margin
:
5px
0
;
border
:
1px
solid
#fff
;
}
.category-list-container
.category-content
ul
li
a
{
color
:
#787878
;
font-size
:
12px
;
line-height
:
22px
;
}
.category-list-container
.table-no
{
padding
:
50px
0
;
...
...
@@ -76,6 +79,19 @@
margin-right
:
5px
;
width
:
calc
(
100%
-
120px
);
}
.model-one
{
margin-top
:
-5px
;
}
.category-list-container
.category-item
:hover
{
border
:
1px
solid
#ccc
;
}
.category-list-container
.category-content
ul
li
:hover
,
.model-one
li
.item-content
:hover
{
border
:
1px
solid
#d3364c
;
}
.category-list-container
.category-content
ul
li
:hover
a
{
color
:
#333
;
}
}
@media
only
screen
and
(
min-width
:
1025px
)
{
.category-list-container
ul
.category-nav
{
...
...
@@ -84,6 +100,10 @@
.category-list-container
.category-content
{
margin-right
:
0
;
width
:
calc
(
100%
-
110px
);
}
.model-one
{
margin-left
:
-5px
;
width
:
calc
(
100%
+
10px
);
}
}
@media
only
screen
and
(
max-width
:
640px
)
{
...
...
@@ -97,4 +117,13 @@
.category-list-container
.category-content
.category-item
{
margin-right
:
10px
;
}
}
.two-content
ul
{
border-top
:
0
!important
;
}
.model-one
.item-content
{
border
:
1px
solid
#e0e0e0
;
}
.model-one
img
{
margin
:
0
auto
;
}
\ No newline at end of file
public/static/index/default/css/common.css
浏览文件 @
07d9729a
...
...
@@ -129,7 +129,7 @@ color: #F5F5F2;font-size: 12px;cursor:pointer;border-radius:0px 0px; position: a
/*分类*/
.goods-category-s
{
display
:
block
;
position
:
absolute
;
z-index
:
100
;}
.goods-category-s
.all-goods
,
.goods-category-title
.all-goods
{
font-size
:
16px
;}
.goods-category-title
{
background
:
#d2364c
;
color
:
#fff
;
height
:
40px
;
line-height
:
44px
;
display
:
block
;
position
:
absolute
;
width
:
150px
;
text-align
:
center
;
top
:
2
px
;
z-index
:
6
;
cursor
:
pointer
;}
.goods-category-title
{
background
:
#d2364c
;
color
:
#fff
;
height
:
40px
;
line-height
:
44px
;
display
:
block
;
position
:
absolute
;
width
:
150px
;
text-align
:
center
;
top
:
0
px
;
z-index
:
6
;
cursor
:
pointer
;}
.goods-category-s
.category-content
{
position
:
relative
;
width
:
150px
;
float
:
left
;
z-index
:
113
;
background
:
#fff
;
top
:
45px
;}
.goods-category-s
.category-content
.all-goods
{
display
:
block
;
padding
:
0
;
border-radius
:
5px
5px
0
0
;
font-weight
:
600
;
line-height
:
36px
;
width
:
150px
;
height
:
36px
;
padding
:
0
;
border-radius
:
5px
5px
0
0
;
color
:
#fff
;
text-align
:
center
;
font
:
16px
/
36px
"Microsoft YaHei"
;}
.goods-category-s
.category-content
.all-goods
em
{
font
:
12px
/
36px
"Microsoft YaHei"
;
}
...
...
@@ -138,14 +138,16 @@ color: #F5F5F2;font-size: 12px;cursor:pointer;border-radius:0px 0px; position: a
.category-content
.category-list
li
{
height
:
36px
;
margin-top
:
-2px
;
z-index
:
113
;
border-top
:
1px
solid
#333
;
border-bottom
:
1px
solid
#252525
}
.category-content
.category-list
li
.first
{
margin-top
:
0
;
}
.category-content
.category-list
li
.last
.c-category-list
{
border-bottom
:
none
;
}
.category-content
.category-list
a
:hover
{
text-decoration
:
none
;
color
:
#D2364C
;
}
.category-content
.category-list
a
{
text-decoration
:
none
;
}
.category-content
li
:hover
,
.category-content
li
:hover
.bd-name
,
.category-content
dd
a
:hover
,
.category-content
dd
a
:hover
*
{
color
:
#D2364C
;
}
.category-content
.category-list
dd
a
:hover
{
border
:
1px
solid
#D2364C
;
}
.category-content
.category-name
{
overflow
:
hidden
;
position
:
relative
;}
.category-content
.category-name
img
{
position
:
absolute
;
top
:
8px
;
width
:
20px
;
height
:
20px
;
left
:
6px
;
display
:
block
;}
.category-content
.
category-name
.ml-22
{
font-size
:
14px
;
padding-left
:
30px
;}
.category-content
.
bd-name
{
font-size
:
14px
;
padding-left
:
30px
;}
.category-content
.category-list
.bd-b
{
height
:
1px
;
margin
:
-1px
10px
0
10px
;
background
:
#eee
;
line-height
:
1
;
font-size
:
0
;
}
.category-content
.b-category-name
{
line-height
:
32px
;
padding-top
:
3px
;
padding-left
:
5px
;
padding-right
:
40px
;}
.category-content
.b-category-name
b
{
margin-left
:
4px
;
font
:
400
12px
/
28px
"宋体"
;
}
.category-content
.b
-category-name
a
{
color
:
#fff
;
}
.category-content
.b
d-name
{
color
:
#fff
;
}
.category-content
.c-category-list
a
{
margin-right
:
8px
;
color
:
#626262
;
}
.category-content
.b-category-name
.fr
{
background-position
:
0
-629px
;
width
:
22px
;
height
:
22px
;
margin
:
10px
16px
0
0
;
}
.category-content
.s-category-name
{
height
:
22px
;}
...
...
@@ -170,6 +172,7 @@ color: #F5F5F2;font-size: 12px;cursor:pointer;border-radius:0px 0px; position: a
.category-content
.menu-item.bottom
{
bottom
:
-2px
;
*
bottom
:
-6px
;
_*
bottom
:
-7px
;}
.category-content
.sort-side
.dl-sort
{
float
:
left
;
width
:
50%
;
}
.category-list
li
.hover
.menu-in
{
border
:
1px
solid
#333
;
}
.category-content
.sort-side
.two-content
{
width
:
auto
;
}
}
@media
only
screen
and
(
min-width
:
1025px
)
{
...
...
sourcecode/alipay/pages/plugins/coupon/index/index.axml
浏览文件 @
07d9729a
...
...
@@ -6,7 +6,7 @@
<view class="item spacing-mt bg-white {{item.is_operable == 0 ? 'item-disabled' : ''}}" style="border:1px solid {{item.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
a:if="{{item.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.discount_value}}</text>
<text class="unit">{{item.type_unit}}</text>
<text a:if="{{(item.desc || null) != null}}" class="desc cr-888">{{item.desc}}</text>
...
...
sourcecode/alipay/pages/plugins/coupon/user/user.axml
浏览文件 @
07d9729a
...
...
@@ -14,7 +14,7 @@
<view class="item spacing-mt bg-white" style="border:1px solid {{item.coupon.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.coupon.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
a:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text a:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -38,7 +38,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
a:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.type_unit}}</text>
<text a:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -60,7 +60,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
a:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.type_unit}}</text>
<text a:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
sourcecode/baidu/pages/plugins/coupon/index/index.swan
浏览文件 @
07d9729a
...
...
@@ -6,7 +6,7 @@
<view class="item spacing-mt bg-white {{item.is_operable == 0 ? 'item-disabled' : ''}}" style="border:1px solid {{item.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
s-if="item.type == 0"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.discount_value}}</text>
<text class="unit">{{item.type_unit}}</text>
<text s-if="(item.desc || null) != null" class="desc cr-888">{{item.desc}}</text>
...
...
sourcecode/baidu/pages/plugins/coupon/user/user.swan
浏览文件 @
07d9729a
...
...
@@ -14,7 +14,7 @@
<view class="item spacing-mt bg-white" style="border:1px solid {{item.coupon.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.coupon.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
s-if="item.coupon.type == 0"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text s-if="(item.coupon.desc || null) != null" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -38,7 +38,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
s-if="item.coupon.type == 0"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text s-if="(item.coupon.desc || null) != null" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -60,7 +60,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
s-if="item.coupon.type == 0"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text s-if="(item.coupon.desc || null) != null" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
sourcecode/qq/pages/plugins/coupon/index/index.qml
浏览文件 @
07d9729a
...
...
@@ -6,7 +6,7 @@
<
view
class
=
"
item spacing-mt bg-white {{item.is_operable == 0 ? 'item-disabled' : ''}}
"
style
=
"
border:1px solid {{item.bg_color_value}};
"
>
<
view
class
=
"
v-left fl
"
>
<
view
class
=
"
base single-text
"
style
=
"
color:{{item.bg_color_value}};
"
>
<
text
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
qq
:
if
=
"
{{item.type == 0}}
"
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
class
=
"
price
"
>
{{
item
.
discount_value
}}
<
/text
>
<
text
class
=
"
unit
"
>
{{
item
.
type_unit
}}
<
/text
>
<
text
qq
:
if
=
"
{{(item.desc || null) != null}}
"
class
=
"
desc cr-888
"
>
{{
item
.
desc
}}
<
/text
>
...
...
sourcecode/qq/pages/plugins/coupon/user/user.qml
浏览文件 @
07d9729a
...
...
@@ -14,7 +14,7 @@
<
view
class
=
"
item spacing-mt bg-white
"
style
=
"
border:1px solid {{item.coupon.bg_color_value}};
"
>
<
view
class
=
"
v-left fl
"
>
<
view
class
=
"
base single-text
"
style
=
"
color:{{item.coupon.bg_color_value}};
"
>
<
text
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
qq
:
if
=
"
{{item.coupon.type == 0}}
"
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
class
=
"
price
"
>
{{
item
.
coupon
.
discount_value
}}
<
/text
>
<
text
class
=
"
unit
"
>
{{
item
.
coupon
.
type_unit
}}
<
/text
>
<
text
qq
:
if
=
"
{{(item.coupon.desc || null) != null}}
"
class
=
"
desc cr-888
"
>
{{
item
.
coupon
.
desc
}}
<
/text
>
...
...
@@ -38,7 +38,7 @@
<
view
class
=
"
item spacing-mt bg-white item-disabled
"
>
<
view
class
=
"
v-left fl
"
>
<
view
class
=
"
base single-text
"
>
<
text
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
qq
:
if
=
"
{{item.coupon.type == 0}}
"
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
class
=
"
price
"
>
{{
item
.
coupon
.
discount_value
}}
<
/text
>
<
text
class
=
"
unit
"
>
{{
item
.
coupon
.
type_unit
}}
<
/text
>
<
text
qq
:
if
=
"
{{(item.coupon.desc || null) != null}}
"
class
=
"
desc cr-888
"
>
{{
item
.
coupon
.
desc
}}
<
/text
>
...
...
@@ -60,7 +60,7 @@
<
view
class
=
"
item spacing-mt bg-white item-disabled
"
>
<
view
class
=
"
v-left fl
"
>
<
view
class
=
"
base single-text
"
>
<
text
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
qq
:
if
=
"
{{item.coupon.type == 0}}
"
class
=
"
symbol
"
>
{{
price_symbol
}}
<
/text
>
<
text
class
=
"
price
"
>
{{
item
.
coupon
.
discount_value
}}
<
/text
>
<
text
class
=
"
unit
"
>
{{
item
.
coupon
.
type_unit
}}
<
/text
>
<
text
qq
:
if
=
"
{{(item.coupon.desc || null) != null}}
"
class
=
"
desc cr-888
"
>
{{
item
.
coupon
.
desc
}}
<
/text
>
...
...
sourcecode/toutiao/pages/plugins/coupon/index/index.ttml
浏览文件 @
07d9729a
...
...
@@ -6,7 +6,7 @@
<view class="item spacing-mt bg-white {{item.is_operable == 0 ? 'item-disabled' : ''}}" style="border:1px solid {{item.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
tt:if="{{item.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.discount_value}}</text>
<text class="unit">{{item.type_unit}}</text>
<text tt:if="{{(item.desc || null) != null}}" class="desc cr-888">{{item.desc}}</text>
...
...
sourcecode/toutiao/pages/plugins/coupon/user/user.ttml
浏览文件 @
07d9729a
...
...
@@ -14,7 +14,7 @@
<view class="item spacing-mt bg-white" style="border:1px solid {{item.coupon.bg_color_value}};">
<view class="v-left fl">
<view class="base single-text" style="color:{{item.coupon.bg_color_value}};">
<text class="symbol">{{price_symbol}}</text>
<text
tt:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text tt:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -38,7 +38,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
tt:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text tt:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
@@ -60,7 +60,7 @@
<view class="item spacing-mt bg-white item-disabled">
<view class="v-left fl">
<view class="base single-text">
<text class="symbol">{{price_symbol}}</text>
<text
tt:if="{{item.coupon.type == 0}}"
class="symbol">{{price_symbol}}</text>
<text class="price">{{item.coupon.discount_value}}</text>
<text class="unit">{{item.coupon.type_unit}}</text>
<text tt:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录