订单优化
This commit is contained in:
parent
90c3c4ba25
commit
2e1ce5cb57
|
|
@ -414,7 +414,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
add: function () {
|
add: function () {
|
||||||
$("#mybuttom").on("click", function () {
|
$("#mybuttom").on("click", function () {
|
||||||
const res = $("form[role=form]").isValid();
|
const res = $("form[role=form]").isValid();
|
||||||
if ($('#lng').val() && $('#lng').val() === ''){
|
if ($('#lng').val() && $('#lng').val() !== ''){
|
||||||
if (res) {
|
if (res) {
|
||||||
Form.api.submit($("form[role=form]"));
|
Form.api.submit($("form[role=form]"));
|
||||||
// Toastr.success('录入成功');
|
// Toastr.success('录入成功');
|
||||||
|
|
@ -429,7 +429,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
$("#mysubmit").on("click", function () {
|
$("#mysubmit").on("click", function () {
|
||||||
const res = $("form[role=form]").isValid();
|
const res = $("form[role=form]").isValid();
|
||||||
|
|
||||||
if ($('#lng').val() && $('#lng').val() === ''){
|
if ($('#lng').val() && $('#lng').val() !== ''){
|
||||||
if (res) {
|
if (res) {
|
||||||
Form.api.submit($("form[role=form]"), function (data, ret) {
|
Form.api.submit($("form[role=form]"), function (data, ret) {
|
||||||
clearInfo();
|
clearInfo();
|
||||||
|
|
@ -649,8 +649,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
.on('blur', function () {
|
.on('blur', function () {
|
||||||
// 如果还没有选择地址,且列表中有内容,则默认选择第一个
|
// 如果还没有选择地址,且列表中有内容,则默认选择第一个
|
||||||
if (!addressSelected) {
|
if (!addressSelected) {
|
||||||
$('#suggestionList').empty();
|
$('#suggestionList').hide();
|
||||||
}})
|
}})
|
||||||
|
.on('focus', function () {
|
||||||
|
// 如果还没有选择地址,且列表中有内容,则默认选择第一个
|
||||||
|
$('#suggestionList').show();
|
||||||
|
})
|
||||||
.on('keydown', function (e) {
|
.on('keydown', function (e) {
|
||||||
const $items = $('#suggestionList li');
|
const $items = $('#suggestionList li');
|
||||||
const len = $items.length;
|
const len = $items.length;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user