Authored by 郭成尧

tel-no-null

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