web端分类优化
parent
120a0b8f27
commit
07d9729a43
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
|
|
@ -19,64 +19,100 @@
|
|||
<!-- content -->
|
||||
<div class="am-container category-list-container">
|
||||
{{if !empty($goods_category_list)}}
|
||||
<ul class="category-nav am-fl">
|
||||
{{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}}
|
||||
<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}}
|
||||
<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>
|
||||
</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>
|
||||
<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($vss['icon'])}}
|
||||
<a href="{{:MyUrl('index/search/index', ['category_id'=>$vss['id']])}}" title="{{$vss.name}}" class="am-block am-margin-top-xs">
|
||||
<img src="{{$vss.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'=>$vss['id']])}}" title="{{$vss.name}}" class="am-block">{{$vss.name}}</a>
|
||||
<p>
|
||||
<a href="{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}" title="{{$vs.name}}" class="am-block">{{$vs.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}}
|
||||
|
|
|
|||
|
|
@ -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'=>$vss['id']])}}" title="{{$vss.name}}">
|
||||
<span>{{$vss.name}}</span>
|
||||
<a href="{{:MyUrl('index/search/index', ['category_id'=>$vs['id']])}}" title="{{$vs.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}}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
.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;
|
||||
}
|
||||
|
|
@ -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:2px;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:0px;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 .bd-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) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue