Showing
1 changed file
with
18 additions
and
0 deletions
@@ -165,3 +165,21 @@ loading.showLoadingMask(); | @@ -165,3 +165,21 @@ loading.showLoadingMask(); | ||
165 | 165 | ||
166 | $(document).ready(main); | 166 | $(document).ready(main); |
167 | 167 | ||
168 | +$('.box').on('click', function() { | ||
169 | + var url = $('.payapp-list a').attr('href'), | ||
170 | + theRequest = [], | ||
171 | + orderCode, | ||
172 | + payment; | ||
173 | + | ||
174 | + if (url.indexOf("?") != -1) { | ||
175 | + theRequest = url.split('?')[1].split("&"); | ||
176 | + orderCode=theRequest[0].split('=')[1]; | ||
177 | + payment=theRequest[1].split('=')[1]; | ||
178 | + } | ||
179 | + | ||
180 | + $.ajax({ | ||
181 | + url:'/shopping/pay/addPaymentInterval?orderCode=' + orderCode + '&payment=' + payment, | ||
182 | + method:'get' | ||
183 | + }); | ||
184 | +}); | ||
185 | + |
-
Please register or login to post a comment