切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
0bc29d7ab5972eda63248a24d5a3d0a99681b6ee
1 个父辈
3efb66d7
1 个管道 的构建
通过
耗费 0 秒
4
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
11 行增加
和
3 行删除
app/portal/controller/SalesmangoodsController.php
public/themes/simpleboot3/portal/salesmangoods/salesman_goods_edit.html
app/portal/controller/SalesmangoodsController.php
查看文件 @
0bc29d7
...
...
@@ -167,6 +167,9 @@ class SalesmangoodsController extends WeChatBaseController{
public
function
Salesman_goods_edit
(){
if
(
$this
->
request
->
isPost
()){
if
(
$_POST
[
'money'
]
>
$_POST
[
'price'
]){
return
2
;
}
$data
[
'show_img'
]
=
$_POST
[
'show_img'
];
$data
[
'thumbnail'
]
=
$_POST
[
'thumbnail'
];
$data
[
'book_name'
]
=
$_POST
[
'book_name'
];
...
...
public/themes/simpleboot3/portal/salesmangoods/salesman_goods_edit.html
查看文件 @
0bc29d7
...
...
@@ -355,11 +355,16 @@
}
$
.
post
(
"{:url('Salesmangoods/Salesman_goods_edit')}"
,{
id
:
id
,
show_img
:
show_img
,
thumbnail
:
thumbnail
,
book_name
:
book_name
,
money
:
money
,
price
:
price
,
pricing
:
pricing
,
instr
:
instr
,
book_number
:
book_number
,
paper
:
paper
,
book_size
:
book_size
,
binding
:
binding
,
author
:
author
,
press
:
press
,
press_time
:
press_time
,
suit
:
suit
,
grade
:
grade
,
img0
:
img0
,
img1
:
img1
,
img2
:
img2
,
printing
:
printing
},
function
(
data
){
if
(
data
){
window
.
location
.
href
=
"{:url('Salesmangoods/salesman_goods')}"
;
if
(
data
==
2
){
alert
(
'佣金不能大于售价'
);
}
else
{
alert
(
'更新失败!'
);
if
(
data
){
window
.
location
.
href
=
"{:url('Salesmangoods/salesman_goods')}"
;
}
else
{
alert
(
'更新失败!'
);
}
}
});
}
...
...
请
注册
或
登录
后发表评论