Merge pull request '优化' (#59) from feature/1228zgc into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/59
master
张谷成 4 years ago
commit 049f08af72

@ -292,6 +292,11 @@ class SocietyInfoController extends ThinkController
foreach ($save['game_types'] as $v) { foreach ($save['game_types'] as $v) {
$save['game_type'] .= $v . "/"; $save['game_type'] .= $v . "/";
} }
if ($save['province'] == '请选择省份') {
$save['province'] = '';
$save['city'] = '';
}
$save['game_type'] = trim($save['game_type'], '/'); $save['game_type'] = trim($save['game_type'], '/');
$save['communication_time'] = time(); $save['communication_time'] = time();
$save['update_time'] = time(); $save['update_time'] = time();

@ -255,10 +255,10 @@
$("#submit").on("click",function(){ $("#submit").on("click",function(){
var cres = $('form').serializeArray(); var cres = $('form').serializeArray();
if ($("#province").val() == "请选择省份" || !$("#province").val()) { if ($("#province").val() == "请选择省份" || !$("#province").val()) {
layer.msg('请选择省份');return ; // layer.msg('请选择省份');return ;
} }
if (!$("#city").val()) { if (!$("#city").val()) {
layer.msg('请选择城市');return ; // layer.msg('请选择城市');return ;
} }
if (!$("#company_name").val()) { if (!$("#company_name").val()) {
layer.msg('请输入公司名');return ; layer.msg('请输入公司名');return ;

Loading…
Cancel
Save