人人商城 2.0 修改默认购买按钮

修改两处内容:

打开 addons/ewei_shopv2/template/mobile/default/goods/index.html 搜索以下内容(105 行左右)

           <span class="buy"><%if g.bargain >0%>砍价活动<%else%><i class="icon icon-cart"></i><%/if%></span>

注释并修改为

           <span class="buy buybtn-3" style="background-color: #fe5455;"><%if g.bargain >0%>砍价活动<%else%>购买<%/if%></span>

打开 addons/ewei_shopv2/template/mobile/default/static/css/style.css 搜索以下内容(179 行左右)

.fui-goods-item .detail .price .buy {
    display: block;
    text-align: center;
    line-height: 1rem;
    color: #fff;
    font-size: 0.6rem;
    background: #fe5455;
    border-radius: 1rem;
    display: block;
    font-size: 0.6rem;
    padding: 0 .25rem;

修改为

.fui-goods-item .detail .price .buy {
    display: block;
    text-align: center;
    line-height: 1rem;
    color: #fff;
    font-size: 0.6rem;
    background: #fe5455;
/*    border-radius: 1rem;*/
    border-radius: 3px;
    display: block;
    font-size: 0.6rem;
    padding: 0 .25rem;

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>