ITP_MLOANMNG02010.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. require(['config'], function() {
  2. require([
  3. ], function($) {
  4. mobPageObj.init();
  5. });
  6. });
  7. /*API URL*/
  8. const API_MOBILE_GRID_LIST = '/api/dspt/mng/detail-grid-list'; // 목록
  9. const API_MOBILE_INFO = '/api/dspt/mng/info-dspt'; // 상세
  10. const API_MOBILE_DSPT_REQ = '/api/dspt/mng/request-dspt'; // 신규/승인
  11. const API_MOBILE_DSPT_REJ = '/api/dspt/mng/remove-dspt'; // 삭제/반려
  12. const API_MOBILE_APPROVE = '/api/dspt/mng/approve-dspt'; // 승인
  13. const API_MOBILE_REJECT = '/api/dspt/mng/reject-dspt'; // 반려
  14. const API_POP_SEARCH_LIST = '/api/store/pop-grid-list';
  15. const PAGE_MODE_LIST = "LIST";
  16. const PAGE_MODE_VIEW = "VIEW";
  17. let mobPageObj = {
  18. viewMode: PAGE_MODE_LIST,
  19. init: function () {
  20. this.ui.init();
  21. this.event.init();
  22. this.ready();
  23. },
  24. ui: {
  25. init: function () {
  26. this.view();
  27. this.info();
  28. },
  29. view: function() {
  30. // 공통코드 표시
  31. $('select').each(function() {
  32. if($(this).data('select-code')) {
  33. fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
  34. }
  35. });
  36. // 조회일자 지정
  37. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_FROM_DT').val(itp_fn_date_add('M', -1));
  38. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_TO_DT').val(itp_fn_date_add('M', 0));
  39. if(fn_make_user_info.get('authTpCd') === '50') {
  40. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val(fn_make_user_info.get('storeNm'));
  41. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').attr('readonly', true);
  42. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE').attr('disabled', true);
  43. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_BTN_MLOANMNG02010_LIST_DELETE_RTN_PLACE').attr('disabled', true);
  44. }
  45. },
  46. info: function() {
  47. $('input:hidden[id$="_BRAND_ID"]').val(fn_make_user_info.get('brandId'));
  48. $('input:hidden[id$="_STORE_ID"]').val(fn_make_user_info.get('storeId'));
  49. }
  50. },
  51. event: {
  52. init: function() {
  53. this.action();
  54. },
  55. action: function() {
  56. $('button[id^="ITP_BTN_MLOANMNG02010_LIST"]').on('click', function() {
  57. var id = $(this).attr('id');
  58. switch (id) {
  59. case 'ITP_BTN_MLOANMNG02010_LIST_SEARCH_RTN_PLACE' : mobPopObj.popStoreNm.init(); break;
  60. case 'ITP_BTN_MLOANMNG02010_LIST_DELETE_RTN_PLACE' : mobPopObj.popStoreNm.delete(); break;
  61. case 'ITP_BTN_MLOANMNG02010_LIST_PAY' : mobContentObj.list.payment(); break;
  62. case 'ITP_BTN_MLOANMNG02010_LIST_ADD' : mobContentObj.list.add(); break;
  63. case 'ITP_BTN_MLOANMNG02010_LIST_SEARCH' : mobContentObj.list.search(); break;
  64. }
  65. return false;
  66. });
  67. $('button[id^="ITP_BTN_MLOANMNG02010_VIEW"]').on('click', function() {
  68. var id = $(this).attr('id');
  69. switch (id) {
  70. case 'ITP_BTN_MLOANMNG02010_VIEW_PAY_REQ' : mobContentObj.view.payment(); break;
  71. case 'ITP_BTN_MLOANMNG02010_VIEW_CANCEL_LIST' : mobContentObj.view.cancel(); break;
  72. }
  73. return false;
  74. });
  75. $(document).on('click', '#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS li', function(e) {
  76. var index = $(this).index();
  77. if($(e.target).hasClass('AGR')) {
  78. mobContentObj.list.agree(index);
  79. } else if($(e.target).hasClass('RJT')) {
  80. mobContentObj.list.reject(index);
  81. } else {
  82. }
  83. });
  84. $('select[id^="ITP_FORM_MLOANMNG02010_VIEW_EMAIL_CD"]').on('change', function() {
  85. var val = $(this).val();
  86. var emailId = '#ITP_FORM_MLOANMNG02010_VIEW_PAY_EMAIL_NM';
  87. if(val === '') {
  88. $(emailId).val('');
  89. $(emailId).attr('readonly', false);
  90. } else {
  91. $(emailId).val($(this).val());
  92. $(emailId).attr('readonly', true);
  93. }
  94. });
  95. $(document).on('click', '#ITP_LIST_MLOANMNG02010_POP_STORE_ROWS li button', function() {
  96. mobPopObj.popWhsNm.choice($(this));
  97. });
  98. }
  99. },
  100. switchScreen: function(mode) {
  101. this.viewMode = mode;
  102. $('#ITP_MOBILE_MLOANMNG02010').find('div[id$="_CONTAINER"]').each(function(i) {
  103. $(this).hide();
  104. });
  105. if(mode === PAGE_MODE_LIST) {
  106. $('#ITP_AJAX_MLOANMNG02010_LIST_CONTAINER').show();
  107. this.moreView(true);
  108. } else if(mode === PAGE_MODE_VIEW) {
  109. $('#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER').show();
  110. this.moreView(false);
  111. }
  112. },
  113. moreView: function(isScroll) {
  114. var _this = this;
  115. if(isScroll) {
  116. $('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA').on('scroll', function () {
  117. if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
  118. if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
  119. if(!mobContentObj.list.isSearch) {
  120. mobContentObj.list.load();
  121. }
  122. }
  123. }
  124. });
  125. } else {
  126. $('#ITP_LIST_MLOANMNG02010_LIST_AREA').off('scroll');
  127. }
  128. },
  129. ready: function() {
  130. mobContentObj.list.init();
  131. }
  132. };
  133. let mobContentObj = {
  134. list: {
  135. listSize: 10,
  136. listPage: 0,
  137. totPage: 0,
  138. isSearch: false,
  139. rows: [],
  140. init: function() {
  141. mobPageObj.switchScreen(PAGE_MODE_LIST);
  142. this.search();
  143. },
  144. search: function() {
  145. this.listPage = 0;
  146. this.totPage = 0;
  147. this.rows.length = 0;
  148. $('#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWS').empty();
  149. this.load();
  150. },
  151. load: function() {
  152. var _this = this;
  153. this.isSearch = true;
  154. var callbackFn = function(result) {
  155. console.log(result);
  156. _this.isSearch = false;
  157. _this.totPage = result.gridTotal;
  158. $.each(result.gridRows, function (i, item) {
  159. $('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MLOANMNG02010_LIST_ITEM_ROWCOPY').html());
  160. var $li = $('#ITP_LIST_MLOANMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
  161. $li.find('.fnStoreNm').text(item.storeNm);
  162. $li.find('.fnDpstDt').text(item.dpstDt);
  163. $li.find('.fnDpstAmt').text(CommonObj.currency.add(item.dpstAmt));
  164. $li.find('.fnDpstNm').text(item.dpstNm);
  165. $li.find('.fnRcvAcctNo').text(item.rcvAcctNo);
  166. $li.find('.fnDpstBnkNm').text(item.dpstBnkNm);
  167. $li.find('.fnDpstStNm').text(item.dpstStNm);
  168. var dpstDt = '';
  169. if(item.dpstStCd === 'DP01') {
  170. dpstDt = item.reqDt;
  171. if(fn_make_user_info.get('authTpCd') === '40') {
  172. $li.find('.btn-dpst').show();
  173. }
  174. } else if(item.dpstStCd === 'DP02') {
  175. dpstDt = item.dpstDt;
  176. } else if(item.dpstStCd === 'DP03') {
  177. dpstDt = item.dsptRjctDt;
  178. } else if(item.dpstStCd === 'DP04') {
  179. dpstDt = item.dpstAuthDt;
  180. }
  181. $li.find('.fnDpstDt').text(dpstDt);
  182. _this.rows.push(item);
  183. });
  184. };
  185. var errFn = function() { _this.isSearch = false;};
  186. const param = $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH').serializeObject();
  187. param.gridPage = ++this.listPage;
  188. param.gridSize = this.listSize
  189. param.fromDt = CommonObj.onlyNumber(param.fromDt);
  190. param.toDt = CommonObj.onlyNumber(param.toDt);
  191. console.log(JSON.stringify(param));
  192. fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
  193. },
  194. payment: function() {
  195. console.log('payment');
  196. mobPageObj.switchScreen(PAGE_MODE_VIEW);
  197. },
  198. add: function() {
  199. var storeId = $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val();
  200. if(storeId.length < 1) {
  201. alert('신규입금 처리를 위한 매장을 선택하세요.');
  202. return;
  203. }
  204. mobPopObj.popDpstReq.init();
  205. },
  206. agree: function(index) {
  207. var item = this.rows[index];
  208. console.log(item);
  209. if(item.dpstStCd !== 'DP01') {
  210. alert('입금요청 건만 승인처리를 할 수 있습니다.');
  211. return;
  212. }
  213. if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
  214. var param = {"dsptMgntNoList": [item.dsptMgntNo]};
  215. fn_ajax_call(API_MOBILE_APPROVE, JSON.stringify(param), function() { mobContentObj.list.search(); }, 'POST');
  216. }
  217. },
  218. reject: function(index) {
  219. var item = this.rows[index];
  220. console.log(item);
  221. if(item.dpstStCd !== 'DP01') {
  222. alert('입금요청 건만 반려처리를 할 수 있습니다.');
  223. return;
  224. }
  225. mobPopObj.popDpstRjct.init(item.dsptMgntNo);
  226. }
  227. },
  228. view: {
  229. init: function(item) {
  230. mobPageObj.switchScreen(PAGE_MODE_VIEW);
  231. this.search(item);
  232. },
  233. search: function(item) {
  234. var _this = this;
  235. var callbackFn = function(result) {
  236. console.log(result);
  237. _this.view(result);
  238. };
  239. const param = {
  240. 'brandId': fn_make_user_info.get('brandId'),
  241. 'spplyId': fn_make_user_info.get('spplyId'),
  242. 'loanMgntUnqNo': item.loanMgntUnqNo
  243. };
  244. fn_ajax_call(API_MOBILE_INFO, param, callbackFn, 'GET');
  245. },
  246. view: function(result) {
  247. var _this = this;
  248. var id = '#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER';
  249. $(id).find('.fnStoreNm').text(result.storeNm);
  250. $(id).find('.fnLoanDvsnNm').text(result.loanDvsnNm);
  251. var limitAmt;
  252. if(result.loanDvsn == 'LD01') { // 선불(충전)
  253. limitAmt = result.chrgeLimitAmt;
  254. } else if(result.loanDvsn == 'LD02') { // 후불(신용)
  255. limitAmt = result.credtLimitAmt;
  256. }
  257. $(id).find('.fnLimitAmt').text(CommonObj.currency.add(limitAmt));
  258. $(id).find('.fnUseYnNm').text(result.useYnNm);
  259. $(id).find('.fnPosbLimitAmt').text(CommonObj.currency.add(limitAmt - result.useAmtTotal));
  260. $(id).find('.fnTmpRcvAcctTotal').text(CommonObj.currency.add(result.tmpRcvAcctTotal));
  261. $(id).find('.fnUseAmtTotal').text(CommonObj.currency.add(result.useAmtTotal));
  262. _this.history.init(result.loanMgntUnqNo);
  263. },
  264. payment:function() {
  265. location.replace('app:payment');
  266. },
  267. cancel: function () {
  268. var id = '#ITP_AJAX_MLOANMNG02010_VIEW_CONTAINER';
  269. $(id).find('.fnItemid').text('');
  270. $(id).find('.fnItemNm').text('');
  271. $(id).find('.fnUPodrQty').text('');
  272. $(id).find('#ITP_FORM_MLOANMNG02010_VIEW_TRSC_AMT').val('');
  273. $(id).find('#ITP_FORM_MLOANMNG02010_VIEW_MBL_NO').val('');
  274. $(id).find('#ITP_FORM_MLOANMNG02010_VIEW_PAY_EMAIL_ID').val('');
  275. $(id).find('#ITP_FORM_MLOANMNG02010_VIEW_PAY_EMAIL_NM').val('');
  276. $(id).find('#ITP_FORM_MLOANMNG02010_VIEW_EMAIL_CD').val('');
  277. mobPageObj.switchScreen(PAGE_MODE_LIST);
  278. }
  279. }
  280. };
  281. let mobPopObj = {
  282. popStoreNm: {
  283. popId: 'ITP_POP_MLOANMNG02010_STORE_AREA',
  284. rows: [],
  285. init: function () {
  286. this.rows.length = 0;
  287. mobPopObj.show(this.popId);
  288. this.search();
  289. this.action();
  290. },
  291. search: function () {
  292. var _this = this;
  293. $('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group').empty();
  294. var callbackFn = function(result) {
  295. console.log(result);
  296. _this.view(result.gridRows);
  297. };
  298. const param = $('#ITP_FORM_MLOANMNG02010_POP_STORE').serializeObject();
  299. fn_ajax_call(API_POP_SEARCH_LIST, JSON.stringify(param), callbackFn, 'POST');
  300. },
  301. view: function(gridRows) {
  302. this.rows = gridRows;
  303. $.each(gridRows, function (i, item) {
  304. $('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group').append($('#ITP_LIST_MLOANMNG02010_POP_STORE_ROWCOPY').html());
  305. var $li = $('#ITP_LIST_MLOANMNG02010_POP_STORE_AREA .panel-group > .list-row:last');
  306. $li.find('.fnStoreNm').text(item.storeNm);
  307. $li.find('.fnStoreStNm').text(item.storeStNm);
  308. $li.find('.fnStoreId').data('store-id', item.storeId);
  309. });
  310. },
  311. choice: function(elem) {
  312. var _this = this;
  313. var storeId = $(elem).data('store-id');
  314. $.each(this.rows, function (i, item) {
  315. if(storeId === item.storeId) {
  316. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val(item.storeId);
  317. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val(item.storeNm);
  318. _this.close();
  319. return false;
  320. }
  321. });
  322. },
  323. action: function() {
  324. var _this = this;
  325. $('button[id^="ITP_BTN_MLOANMNG02010_POP_STORE"]').off('click').on('click', function() {
  326. var id = $(this).attr('id');
  327. switch (id) {
  328. case 'ITP_BTN_MLOANMNG02010_POP_STORE_SEARCH' : _this.search(); break;
  329. case 'ITP_BTN_MLOANMNG02010_POP_STORE_CHOICE' : _this.choice($(this)); break;
  330. case 'ITP_BTN_MLOANMNG02010_POP_STORE_CLOSE' : _this.close(); break;
  331. }
  332. return false;
  333. });
  334. },
  335. delete: function() {
  336. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val('');
  337. $('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val('');
  338. },
  339. close: function() {
  340. this.rows.length = 0;
  341. $('#ITP_POP_MLOANMNG02010_LIST_WHS_AREA .panel-group').empty();
  342. $('#ITP_FORM_MLOANMNG02010_POP_STORE #ITP_FORM_MLOANMNG02010_POP_STORE_KEYWORD').val('');
  343. mobPopObj.hide(this.popId);
  344. }
  345. },
  346. popDpstReq: {
  347. popId: 'ITP_POP_MLOANMNG02010_DPST_REQ_AREA',
  348. init: function() {
  349. this.reset();
  350. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_BRAND_NM').val(fn_make_user_info.get('brandNm'));
  351. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_POP_FORM_MLOANMNG02010_DPST_REQ_STORE_ID').val($('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_ID').val());
  352. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_NM').val($('#ITP_FORM_MLOANMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_STORE_NM').val());
  353. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_DT').val(itp_fn_date_add('M', 0));
  354. mobPopObj.show(this.popId);
  355. this.action();
  356. },
  357. action: function() {
  358. var _this = this;
  359. $('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_ADD"]').off('click').on('click', function() {
  360. _this.save();
  361. });
  362. $('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_CANCEL"]').off('click').on('click', function() {
  363. _this.cancel();
  364. });
  365. },
  366. save: function() {
  367. var _this = this;
  368. const formId = '#ITP_POP_FORM_MLOANMNG02010_DPST_REQ';
  369. if (itp_fn_form_event.isValid(formId)) {
  370. if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
  371. var saveFn = function() {
  372. _this.cancel();
  373. mobContentObj.list.search();
  374. };
  375. var param = $(formId).serializeObject();
  376. param.dpstDt = param.dpstDt.replace(/-/g, ".");
  377. console.log(JSON.stringify(param));
  378. fn_ajax_call(API_MOBILE_DSPT_REQ, JSON.stringify(param), saveFn, 'POST');
  379. }
  380. }
  381. },
  382. reset: function() {
  383. itp_fn_form_clear_validate(null, '#ITP_POP_FORM_MLOANMNG02010_DPST_REQ');
  384. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_ID').val('');
  385. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_BRAND_NM').val('');
  386. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_STORE_NM').val('');
  387. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_AMT').val('');
  388. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_DT').val('');
  389. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_NM').val('');
  390. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_BNK').val('');
  391. $('#ITP_POP_FORM_MLOANMNG02010_DPST_REQ #ITP_FORM_MLOANMNG02010_POP_DPST_ACCT_NO').val('');
  392. },
  393. cancel: function() {
  394. mobPopObj.hide(this.popId);
  395. }
  396. },
  397. popDpstRjct: {
  398. popId: 'ITP_POP_MLOANMNG02010_DPST_RJCT_AREA',
  399. init: function(dsptMgntNo) {
  400. this.reset();
  401. this.action();
  402. this.dsptMgntNo = dsptMgntNo;
  403. mobPopObj.show(this.popId);
  404. },
  405. action: function() {
  406. var _this = this;
  407. $('button[id="ITP_BTN_MLOANMNG02010_POP_DPST_RJCT"]').off('click').on('click', function() {
  408. _this.save();
  409. });
  410. },
  411. save: function() {
  412. var _this = this;
  413. var reason = $('#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT #ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_REASON').val();
  414. if(reason.length < 1) {
  415. alert('반려 사유를 입력해 주세요.');
  416. return;
  417. }
  418. if(confirm(ITP_MSG_LOCALE.message.form.procData)) {
  419. var saveFn = function() {
  420. _this.cancel();
  421. mobContentObj.list.search();
  422. };
  423. var param = {'dsptMgntNoList': [_this.dsptMgntNo], 'dsptRjctRsn': reason};
  424. fn_ajax_call(API_MOBILE_REJECT, JSON.stringify(param), saveFn, 'POST');
  425. }
  426. },
  427. reset: function() {
  428. itp_fn_form_clear_validate(null, '#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT');
  429. $('#ITP_POP_FORM_MLOANMNG02010_DPST_RJCT #ITP_POP_FORM_MLOANMNG02010_DPST_RJCT_REASON').val('');
  430. },
  431. cancel: function() {
  432. mobPopObj.hide(this.popId);
  433. }
  434. },
  435. show: function(popId) {
  436. $('button[id$="_CLOSE"]').off('click').on('click', function() {
  437. console.log($(this).attr('id'));
  438. if($(this).hasClass('btn-pop-close')) {
  439. mobPopObj.hide(popId);
  440. }
  441. });
  442. $('#' + popId).show();
  443. },
  444. hide: function(popId) {
  445. $('#' + popId).closest('.mobile-pop-close').hide();
  446. }
  447. };