wupengfei 3 years ago
parent
commit
571ca084d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/store/view/integral_goods/form.html

+ 1 - 1
application/store/view/integral_goods/form.html

@@ -169,7 +169,7 @@
                                 <option value="0">请选择</option>
                                 {if !empty($all_temp)}
                                 {foreach $all_temp as $tk=>$tv}
-                                {if $vo.freight_id ==$tv['id'] }
+                                {if isset($vo.freight_id) &&  $vo.freight_id ==$tv['id'] }
                                 <option selected value="{$tv['id']}">{$tv['name']}</option>
                                 {else}
                                 <option value="{$tv['id']}">{$tv['name']}</option>