|
@@ -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;
|