联系官方销售客服
1835022288
028-61286886
<div class="bd">{if $ys}
<?php include_once APPSPATH."ydmm/func.php";?>
{if dr_is_jiami($id, MOD_DIR)}
{$content}
{else}
<form action="" class="form-horizontal" method="post" name="myform" id="myform">
<div class="form-group">
<label class="control-label col-md-2">输入阅读密码</label>
<div class="col-md-3">
<label>
<input type="password" class="form-control" name="password">
</label>
<label>
<button type="button" onclick="mysubmit()" class="btn green"> <i class="fa fa-save"></i> 提交验证</button>
</label>
</div>
</div>
</form>
<script>
function mysubmit() {
$.ajax({
type: "POST",
dataType:"json",
url: '/index.php?s=ydmm&c=home&id={$id}&mid={MOD_DIR}',
data: $('#myform').serialize(),
success: function(json) {
if (json.status) {
alert('验证成功');
window.location.reload();
} else {
alert(json.code);
}
}
});
}
</script>
{/if}
{else}
{$content}
{/if}
代码如上:
问题如下:老提示这个