Browse Source

修复商品价格修改时价格显示问题

antshop
linyaostalker 5 years ago
parent
commit
db7374f12f
  1. 2
      backend/modules/goods/views/goods/express.php
  2. 4
      backend/modules/goods/views/goods/goods.php

2
backend/modules/goods/views/goods/express.php

@ -31,6 +31,8 @@ use backend\modules\shop\models\ars\ExpressTemplate;
$(document).ready(function(){
if(!$("#goods-uniform_postage").val()){
$("#goods-uniform_postage").val("0.00")
}else{
$("#goods-uniform_postage").val(toFixeds($("#goods-uniform_postage").val(), 2));
}
$("input:radio[name='Goods[is_express]']").on('ifChecked', function(event){
if ($(this).val() === '1') {

4
backend/modules/goods/views/goods/goods.php

@ -67,9 +67,13 @@ $js =<<<JS
$(document).ready(function(){
if(!$("#goods-market_price").val()){
$("#goods-market_price").val("0.00")
}else{
$("#goods-market_price").val(toFixeds($("#goods-market_price").val(), 2));
}
if(!$("#goods-price").val()){
$("#goods-price").val("0.00")
}else{
$("#goods-price").val(toFixeds($("#goods-price").val(), 2));
}
$("#goods-market_price").blur(function(){
if(!$(this).val()){

Loading…
Cancel
Save