Showing
1 changed file
with
6 additions
and
3 deletions
@@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
6 | 6 | ||
7 | 7 | ||
8 | var Order = { | 8 | var Order = { |
9 | + /*业务数据*/ | ||
9 | Data: { | 10 | Data: { |
10 | product: 0, | 11 | product: 0, |
11 | activity: 0, | 12 | activity: 0, |
@@ -13,6 +14,7 @@ var Order = { | @@ -13,6 +14,7 @@ var Order = { | ||
13 | juan: 0, | 14 | juan: 0, |
14 | yohocoin: 0 | 15 | yohocoin: 0 |
15 | }, | 16 | }, |
17 | + /*view 交互*/ | ||
16 | UI: { | 18 | UI: { |
17 | e: { | 19 | e: { |
18 | $pan: $('.pan'), | 20 | $pan: $('.pan'), |
@@ -83,10 +85,9 @@ var Order = { | @@ -83,10 +85,9 @@ var Order = { | ||
83 | 85 | ||
84 | /*取消关闭小窗口*/ | 86 | /*取消关闭小窗口*/ |
85 | e.$cancel.click(function() { | 87 | e.$cancel.click(function() { |
86 | - var p = $(this).parents('.pan'); | 88 | + var pan = $(this).parents('.pan'); |
87 | 89 | ||
88 | - p.find('dt').show(); | ||
89 | - p.find('dd').hide(); | 90 | + c.winHide(pan); |
90 | }); | 91 | }); |
91 | 92 | ||
92 | e.$statistics.slice(3, 5).find('a').click(function() { | 93 | e.$statistics.slice(3, 5).find('a').click(function() { |
@@ -117,6 +118,7 @@ var Order = { | @@ -117,6 +118,7 @@ var Order = { | ||
117 | 118 | ||
118 | } | 119 | } |
119 | }, | 120 | }, |
121 | + /*公共方法*/ | ||
120 | Common: { | 122 | Common: { |
121 | enterNUM: function(str1, str2) { | 123 | enterNUM: function(str1, str2) { |
122 | str1 = str1.replace(/[^\d]/g, ''); | 124 | str1 = str1.replace(/[^\d]/g, ''); |
@@ -152,6 +154,7 @@ var Order = { | @@ -152,6 +154,7 @@ var Order = { | ||
152 | return parseFloat(str).toFixed(2); | 154 | return parseFloat(str).toFixed(2); |
153 | } | 155 | } |
154 | }, | 156 | }, |
157 | + /*业务逻辑*/ | ||
155 | Submit: { | 158 | Submit: { |
156 | e: { | 159 | e: { |
157 | $juanok: $('#juansubmit'), | 160 | $juanok: $('#juansubmit'), |
-
Please register or login to post a comment