templates/1/distribution/default/phone/shop_goods.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<div id=<?php echo $module['module_name'];?> class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left >
<script>
$(document).ready(function(){
if('<?php echo $module['distribution_mode']?>'==0){
$("#<?php echo $module['module_name'];?> .first_stock").css('display','block');
}
$("#<?php echo $module['module_name'];?> .submit").click(function(){
id=$(this).parent().parent().attr('id');
$("#<?php echo $module['module_name'];?> #"+id+" .act_state").html('');
check_result=true;
$("#<?php echo $module['module_name'];?> #"+id+" input").each(function(index, element) {
if($(this).val()==''){$("#<?php echo $module['module_name'];?> #"+id+" .act_state").html('<?php echo self::$language['is_null']?>');check_result=false;return false;}
if(!$.isNumeric($(this).val())){$("#<?php echo $module['module_name'];?> #"+id+" .act_state").html('<?php echo self::$language['please_input']?><?php echo self::$language['number']?>');check_result=false;return false;}
});
if(!check_result){return false;}
$("#<?php echo $module['module_name'];?> #"+id+" .act_state").html('<span class=\'fa fa-spinner fa-spin\'></span>');
$.post('<?php echo $module['action_url'];?>&act=update',{id:id.replace(/tr_/,''),rebate_1:$("#<?php echo $module['module_name'];?> #"+id+" .rebate_1").val(),rebate_2:$("#<?php echo $module['module_name'];?> #"+id+" .rebate_2").val(),rebate_3:$("#<?php echo $module['module_name'];?> #"+id+" .rebate_3").val(),stock:$("#<?php echo $module['module_name'];?> #"+id+" .stock").val()},function(data){
//alert(data);
try{v=eval("("+data+")");}catch(exception){alert(data);}
$("#<?php echo $module['module_name'];?> #"+id+" .act_state").html(v.info);
});
return false;
});
});
</script>
<style>
#<?php echo $module['module_name'];?>{ line-height:3rem; }
#<?php echo $module['module_name'];?> table input{ text-align:center; width:3rem;}
#<?php echo $module['module_name'];?> table .title{ width:15rem;}
#<?php echo $module['module_name'];?>_html{}
#<?php echo $module['module_name'];?>_html .icon img{ width:5rem; }
#<?php echo $module['module_name'];?>_html .first_stock{ display:none; }
#<?php echo $module['module_name'];?>_html .increase{ display:inline-block; line-height:2rem; padding:5px; border-radius:5px; }
#<?php echo $module['module_name'];?>_html .increase:hover{ }
#<?php echo $module['module_name'];?>_html .increase:before{ font: normal normal normal 1rem/1 FontAwesome; content:"\f067"; padding-right:3px;}
</style>
<div id="<?php echo $module['module_name'];?>_html" monxin-table=1>
<div class="alert alert-success" role="alert"><?php echo $module['distribution_remark'];?></div>
<div class="portlet-title">
<div class="caption"><?php echo self::$language['pages']['distribution.shop_goods']['name']?></div>
<div class="actions"><a href=./index.php?monxin=mall.goods_admin&act=distribution class=increase><?php echo self::$language['increase'];?></a></div>
</div>
<div class=table_scroll><table class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" id="<?php echo $module['module_name'];?>_table" style="width:100%" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td ><?php echo self::$language['cover_image']?></td>
<td style="text-align:left;"><?php echo self::$language['title']?></td>
<td><?php echo self::$language['rebate_1']?></td>
<td><?php echo self::$language['rebate_2']?></td>
<td><?php echo self::$language['rebate_3']?></td>
后面还有 16 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
