切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
761f22423c625ca5b76a2c38cbaedc66abe851c0
1 个父辈
6e7fb495
4
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
17 行增加
和
2 行删除
public/themes/admin_simpleboot3/admin/ratio/ratio_list.html
public/themes/admin_simpleboot3/admin/ratio/ratio_list.html
查看文件 @
761f224
...
...
@@ -2,7 +2,7 @@
</head>
<body>
<div
style=
"padding: 100px 100px 10px;"
>
<form
class=
"bs-example bs-example-form"
role=
"form"
method=
"post"
action=
"{:url('Ratio/ratio_list')}"
>
<form
class=
"bs-example bs-example-form"
role=
"form"
method=
"post"
action=
"{:url('Ratio/ratio_list')}"
onsubmit=
"return checked()"
>
<div
class=
"input-group"
style=
"width: 100px;"
>
<span
class=
"input-group-addon"
>
平台订单
</span>
</div>
...
...
@@ -31,8 +31,23 @@
<input
type=
"text"
name=
"courier"
class=
"form-control"
value=
"{$data.courier}"
>
</div>
<br>
<button
type=
"submit"
class=
"btn btn-default"
>
确定
</button>
<button
type=
"submit"
class=
"btn btn-default"
>
确定
</button>
</form>
</div>
</body>
<script>
/**
* 当点击提交时
*/
function
checked
(){
salesman_ratio
=
$
(
"input[name='salesman_ratio']"
).
val
();
teacher_ratio
=
$
(
"input[name='teacher_ratio']"
).
val
();
$money
=
Number
(
salesman_ratio
)
+
Number
(
teacher_ratio
);
console
.
log
(
$money
);
if
(
$money
>=
1
){
alert
(
'业务员佣金比例和老师佣金比例之和不能大于1'
);
return
false
;
}
}
</script>
</html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论