Authored by 郭成尧

tel-no-null

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-06-23 11:43:34
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-23 15:15:21
* @Last Modified time: 2017-06-23 15:58:31
*/
require('cart/select-invoice.page.css');
... ... @@ -102,7 +102,11 @@ function confirmAction() {
company = $company.val();
if ($editFlag.val() === 'true') {
if (title === '单位' && company.length === 0) {
if (!tel) {
tip.show('请输入正确手机号');
$tel.focus();
return false;
} else if (title === '单位' && company.length === 0) {
tip.show('请填写发票抬头');
$company.focus();
return false;
... ...
... ... @@ -101,7 +101,11 @@ function confirmAction() {
company = $company.val();
if ($editFlag.val() === 'true') {
if (title === '单位' && company.length === 0) {
if (!tel) {
tip.show('请输入正确手机号');
$tel.focus();
return false;
} else if (title === '单位' && company.length === 0) {
tip.show('请填写发票抬头');
$company.focus();
return false;
... ...