|
@@ -182,7 +182,7 @@
|
|
|
<select name="hairnumber" class="select">
|
|
|
<option value="">未选择</option>
|
|
|
{loop typeclass(43) as $val}
|
|
|
-<option value="{$val['id']}">{$val['title']} - {$val['zh']}</option>
|
|
|
+<option value="{$val['id']}" data-ysdj="{$val['ysdj']}">{$val['title']} - {$val['zh']}</option>
|
|
|
{/loop}
|
|
|
</select>
|
|
|
</li>
|
|
@@ -661,32 +661,33 @@ error: function (XMLHttpRequest,textStatus) {
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
-$("select[name='color']").change(function(){
|
|
|
- var id = $(this).find("option:selected").val();
|
|
|
- if(id == '44' || id == '317' || id == '50')
|
|
|
- {
|
|
|
- $("select[name='grade'] option[value='81']").prop("selected","selected");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- $("select[name='grade'] option[value='80']").prop("selected","selected");
|
|
|
- }
|
|
|
- });
|
|
|
- $("select[name='color']").change(function() {
|
|
|
-var ysdj = $(this).find("option:selected").data("ysdj");
|
|
|
-var category =$("select[name='category']").find("option:selected").val();
|
|
|
-if(category == 126 || category == 127 || category == 128 || category == 130 || category == 133)
|
|
|
-{
|
|
|
- if($(this).find("option:selected").data("ysdj") != 0)
|
|
|
- {
|
|
|
- $("select[name='grade'] option[value='"+ysdj+"']").prop('selected', true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- $("select[name='grade'] option[value='80']").prop('selected', true);
|
|
|
- }
|
|
|
-}
|
|
|
-});
|
|
|
+// $("select[name='color']").change(function(){
|
|
|
+// var id = $(this).find("option:selected").val();
|
|
|
+// if(id == '44' || id == '317' || id == '50')
|
|
|
+// {
|
|
|
+// $("select[name='grade'] option[value='81']").prop("selected","selected");
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// $("select[name='grade'] option[value='80']").prop("selected","selected");
|
|
|
+// }
|
|
|
+// });
|
|
|
+// $("select[name='color']").change(function() {
|
|
|
+// var ysdj = $(this).find("option:selected").data("ysdj");
|
|
|
+// var category =$("select[name='category']").find("option:selected").val();
|
|
|
+// if(category == 126 || category == 127 || category == 128 || category == 130 || category == 133)
|
|
|
+// {
|
|
|
+// if($(this).find("option:selected").data("ysdj") != 0)
|
|
|
+// {
|
|
|
+// $("select[name='grade'] option[value='"+ysdj+"']").prop('selected', true);
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// $("select[name='grade'] option[value='80']").prop('selected', true);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
</script>
|
|
|
<script type="text/javascript" src="{$theme}js/print.js?v=202103230006"></script>
|
|
|
+<script src="{$theme}js/goodsrules.js?v={time()}"></script>
|
|
|
{Template footer}
|