群里有细心的同学告诉我微餐饮的订单界面 原价跟优惠价格颠倒错位,经过我的一番测试发现的确如此,这个bug用心一想也就知道肯定是2个价格的标签写反了,那我们只需要找到这2个文件进行修改一番就可以了。
根据系统生成的url我们可以得出是以下的2个文件价格标签写反了,下面为了方便超级小白们只带是哪2个文件 我就直接吧文件路径贴出来给大家,免得大家去找了!
/public_html/wx/public_html/admin2/tpl/Wap/default/Product_product.html
/public_html/wx/public_html/admin2/tpl/Wap/default/Product_products.html
眼镜睁大点哈 这不是同一个文件,多了一个s哈!~~
/public_html/wx/public_html/admin2/tpl/Wap/default/Product_product.html
<span class="all_price all_price_this">价格:<font>¥{ai9me:$product.oprice}</font> <span style="text-decoration:line-through">原价:{ai9me:$product.price}元</span></span>
/public_html/wx/public_html/admin2/tpl/Wap/default/Product_products.html
<div class="f_list_l"> <a href="{ai9me::U(‘Product/product‘,array(‘token‘=>$_GET[‘token‘],‘id‘=>$hostlist[‘id‘],‘wecha_id‘=>$_GET[‘wecha_id‘]))}"> <img src="{ai9me:$hostlist.logourl}" /> <h3>{ai9me:$hostlist.name}</h3> <p class="tui_price ts2" style="font-weight:normal;font-size:14px;color:#666;text-decoration:line-through">原价:{ai9me:$hostlist.price} 元</p> <div class="hot"> <strong <if condition="$hostlist.groupon neq 1"> style="display:none"</if>>团购</strong> </div> </a> </div> <div class="f_list_r"> <p class="tui_price ts2"> <strong>¥{ai9me:$hostlist.oprice}</strong> </p> <a href="{ai9me::U(‘Product/product‘,array(‘token‘=>$_GET[‘token‘],‘id‘=>$hostlist[‘id‘],‘wecha_id‘=>$_GET[‘wecha_id‘]))}" class="u_order_return ts1" id="in_car"><if condition="$hostlist[‘dining‘] eq 1">请点餐<else/>去购买</if></a> </div>
微餐饮订单界面原价跟优惠价颠倒,布布扣,bubuko.com
原文:http://taoyouth.blog.51cto.com/2793776/1364162