4:goods.dwt增加一代码 <li> {insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'}
<strong> 运费查询:</strong><select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}');" style="border:1px solid #ccc;"> <option value="0">{$lang.please_select}{$name_of_region[0]}</option> <!-- {foreach from=$country_list item=country} --> <option value="{$country.region_id}" {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option> <!-- {/foreach} --> </select> <select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}');" style="border:1px solid #ccc;"> <option value="0">{$lang.please_select}{$name_of_region[1]}</option>
</select> <select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}');get_shipping_list(forms['ECS_FORMBUY'],{$goods.goods_id});" style="border:1px solid #ccc;"> <option value="0">{$lang.please_select}{$name_of_region[2]}</option>
</select> <select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if} style="border:1px solid #ccc;"> <option value="0">{$lang.please_select}{$name_of_region[3]}</option>
</select> </li> <li id="show_ship" style="display:none"></li>
5:library增加goods_total.lbi文件
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> {insert_scripts files='transport.js,utils.js'} <div id="ECS1"> <table> {if $list} <tr><td>名称</td><td>运费</td></tr> {foreach from = $list item = item} <tr><td>{$item.shipping_name}</td><td>{$item.format_shipping_fee}</td></tr> {/foreach} {/if} </table> </div> 本文章好模板原创,转载请注明网址!
(责任编辑:好模板) |