issuePutaway.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>我的发布</title>
  6. <link rel="stylesheet" href="../css/main.css" />
  7. <script src="../js/flexible.js"></script>
  8. <script src="../js/api.js"></script>
  9. <script src="../js/checkLanguage.js"></script>
  10. </head>
  11. <body>
  12. <div class="bb ub plr25 ub-ac ptb20 p-te hid" id="otherFn">
  13. <div class=" ub-pac">
  14. <label>
  15. <input class="h-input" type="checkbox">
  16. <span class="fz26 c3d plr10 nav1">全选</span>
  17. </label>
  18. <!--<span class="fz26 c3d">全选</span>-->
  19. </div>
  20. <a href="javascript:;" class="fz26 plr20 blue nav2">刷新</a>
  21. <a href="javascript:;" class="fz26 plr20 blue nav3">下架</a>
  22. <a href="javascript:;" class="fz26 plr20 blue nav4"><!--删除--></a>
  23. </div>
  24. <div class="bb ub plr25 ub-ac ptb20 p-te fixed hid" id="thisFn">
  25. <div class=" ub-pac">
  26. <label>
  27. <input class="h-input" type="checkbox" id="selAll">
  28. <span class="fz26 c3d plr10 nav5">全选</span>
  29. </label>
  30. <!--<span class="fz26 c3d">全选</span>-->
  31. </div>
  32. <a href="javascript:;" class="fz26 plr20 blue nav6" id="reloadBtn">刷新</a>
  33. <a href="javascript:;" class="fz26 plr20 blue nav7" id="XJArr">下架</a>
  34. <a href="javascript:;" class="fz26 plr20 blue nav8" id="delArr"><!--删除--></a>
  35. </div>
  36. <ul id="evaluation" class="hid">
  37. <li class="bb bgff mb20" rel="{{orderid}}">
  38. <div class="ub p25 ub-pj p-te fz22">
  39. <p class="fz22 c3d ub ub-pac">
  40. <label class="ub ub-ac">
  41. <input type="checkbox" class="{{isShow}}"/>
  42. <span class="ml10"><span class="list1"></span>:{{tnameCn}}</span>
  43. </label>
  44. </p>
  45. <p class="fz22 c81 plr20"><span class="list2"></span>:{{addDate}}</p>
  46. </div>
  47. <div class="bgfa fz24 info-txt ">
  48. <p class="blue fz24 p-te"><span class="list3"></span>:{{polName}}{{polNamecn}}{{polNameShortCn}}</p>
  49. <p class="blue fz24 p-te"><span class="list4"></span>:{{podName}}{{podNamecn}}{{podNameShortCn}}</p>
  50. <div class="clear">{{pricesList}}</div>
  51. <p class="fz22 fz24 p-te"><span class="list5"></span>:{{dateFrom}} <span class="list6"></span> {{dateTo}}</p>
  52. <p class="fz22 c98 p-te"><span class="list7"></span>:{{showId}}</p>
  53. <p class="fz24 c98 p-te"><span class="list8"></span>:{{remark}}</p>
  54. </div>
  55. <div class="ptb20 plr25 ub ub-pe">
  56. <span class="fz24 c65 ub-f1 pt10"><span class="list9"></span>:<span class="list10"></span></span>
  57. <a href="javascript:;" class="red revise-btn fz24 TJ">{{isTop}}</a>
  58. <a href="javascript:;" class="delete-btn fz24 ml10 XJ btn3"></a>
  59. </div>
  60. </li>
  61. </ul>
  62. <!--<div class="plr25 mt50 mb50">-->
  63. <!--<button type="button" class="release-btn btn-box fz30 cff" id="sureBtn">发布运价</button>-->
  64. <!--</div>-->
  65. <script type="text/javascript">
  66. try {
  67. var text=languages.issuePutaway;
  68. $api.dom(".nav1").innerText=text.nav1;
  69. $api.dom(".nav2").innerText=text.nav2;
  70. $api.dom(".nav3").innerText=text.nav3;
  71. $api.dom(".nav5").innerText=text.nav1;
  72. $api.dom(".nav6").innerText=text.nav2;
  73. $api.dom(".nav7").innerText=text.nav3;
  74. $api.dom(".list1").innerText=text.list1;
  75. $api.dom(".list2").innerText=text.list2;
  76. $api.dom(".list3").innerText=text.list3;
  77. $api.dom(".list4").innerText=text.list4;
  78. $api.dom(".list5").innerText=text.list5;
  79. $api.dom(".list6").innerText=text.list6;
  80. $api.dom(".list7").innerText=text.list7;
  81. $api.dom(".list8").innerText=text.list8;
  82. $api.dom(".list9").innerText=text.list9;
  83. $api.dom(".list10").innerText=text.list10;
  84. $api.dom(".btn3").innerText=text.btn3;
  85. }catch (e){
  86. alert(languages.all.list5)
  87. }
  88. </script>
  89. <script src="../js/publicData.js"></script>
  90. <script>
  91. var pageIndex=1,isReload=false,isClick=false;
  92. var modelTxt=$api.dom("#evaluation").innerHTML;
  93. var priceTxt='<p class="fz24 c98">'+languages.issuePutaway.list11+':{{nameOfboard}} &nbsp;'+languages.issuePutaway.list12+':{{day}}{{hour}}</p><p class="fz24 c98">'+languages.issuePutaway.list13+':{{dateOfStart}} &nbsp;'+languages.issuePutaway.list14+':{{dateOfEndGate}}</p> <p class="fz24 c28 clear">{{prices}}</p><p class="fz24 c98">'+languages.issuePutaway.list15+':{{additionalPrice}} </p>';
  94. var priceListTxt='<span class="fl pr20 " style="white-space: nowrap">{{code}}{{price}}/{{theCode}}</span>';
  95. apiready=function () {
  96. var otherFn = $api.dom("#otherFn"), thisFn = $api.dom("#thisFn"), selAll = $api.dom("#selAll"), reloadBtn = $api.dom("#reloadBtn"), XJArr = $api.dom("#XJArr"), delArr = $api.dom("#delArr");
  97. // var sureBtn=$api.dom("#sureBtn");
  98. // sureBtn.onclick=function () {
  99. // api.openWin({
  100. // name: 'issueFare',
  101. // url: 'issueFare.html',
  102. // pageParam: {winName: 'issuePutaway'}
  103. // });
  104. // }
  105. getData(true);
  106. api.addEventListener({
  107. name:"loginInit"
  108. },function (ret,err) {
  109. api.closeFrame({
  110. name: 'issuePutaway'
  111. });
  112. })
  113. api.setRefreshHeaderInfo({
  114. loadingImg: 'widget://image/refresh.png',
  115. bgColor: '#efefef',
  116. textColor: '#818181',
  117. textDown: languages.all.list34+'...',
  118. textUp: languages.all.list35+'...'
  119. }, function (ret, err) {
  120. //在这里从服务器加载数据,加载完成后调用api.refreshHeaderLoadDone()方法恢复组件到默认状态
  121. pageIndex = 1;
  122. if(otherFn.className.indexOf("hid")==-1){
  123. otherFn.className = otherFn.className + " hid";
  124. }
  125. if(thisFn.className.indexOf("hid")==-1){
  126. thisFn.className = thisFn.className + " hid";
  127. }
  128. getData(true);
  129. api.refreshHeaderLoadDone();
  130. });
  131. api.addEventListener({
  132. name: 'scrolltobottom',
  133. extra: {
  134. threshold: 0 //设置距离底部多少距离时触发,默认值为0,数字类型
  135. }
  136. }, function (ret, err) {
  137. if (isReload) {
  138. return;
  139. }
  140. getData(false);
  141. });
  142. api.addEventListener({
  143. name: 'showPutaway'
  144. }, function (ret, err) {
  145. var evaluation = $api.dom("#evaluation"), liList = $api.domAll(evaluation, "li"), total = false;
  146. if (otherFn.className.indexOf("hid") != -1) {
  147. otherFn.className = otherFn.className.replace("hid", "");
  148. thisFn.className = thisFn.className.replace("hid", "");
  149. for (var i = 0, len = liList.length; i < len; i++) {
  150. $api.dom(liList[i], "[type=checkbox]").className = "h-input";
  151. !function (i) {
  152. $api.dom(liList[i], "[type=checkbox]").onclick = function () {
  153. for (var j = 0; j < len; j++) {
  154. if (!$api.dom(liList[j], "[type=checkbox]").checked) {
  155. total = true;
  156. }
  157. }
  158. if (!total) {
  159. selAll.checked=true;
  160. } else {
  161. selAll.checked=false;
  162. }
  163. total = false;
  164. }
  165. }(i)
  166. }
  167. } else {
  168. otherFn.className = otherFn.className + " hid";
  169. thisFn.className = thisFn.className + " hid";
  170. for (var i = 0, len = liList.length; i < len; i++) {
  171. $api.dom(liList[i], "[type=checkbox]").className = "";
  172. }
  173. }
  174. });
  175. selAll.onclick = function () {
  176. var evaluation = $api.dom("#evaluation"), liList = $api.domAll(evaluation, "li");
  177. if (this.checked) {
  178. for (var i = 0, len = liList.length; i < len; i++) {
  179. $api.dom(liList[i], "[type=checkbox]").setAttribute("checked", true);
  180. }
  181. } else {
  182. for (var i = 0, len = liList.length; i < len; i++) {
  183. $api.dom(liList[i], "[type=checkbox]").removeAttribute("checked");
  184. }
  185. }
  186. }
  187. reloadBtn.onclick = function () {
  188. if(isReload) return;
  189. if(otherFn.className.indexOf("hid")==-1){
  190. otherFn.className = otherFn.className + " hid";
  191. }
  192. if(thisFn.className.indexOf("hid")==-1){
  193. thisFn.className = thisFn.className + " hid";
  194. }
  195. selAll.checked=false;
  196. getData(true,1);
  197. }
  198. XJArr.onclick = function () {
  199. if(isClick) return;
  200. var evaluation = $api.dom("#evaluation"), liList = $api.domAll(evaluation, "li"), postArr = [], list = [];
  201. for (var i = 0, len = liList.length; i < len; i++) {
  202. if ($api.dom(liList[i], "[type=checkbox]").checked) {
  203. postArr.push({id: liList[i].getAttribute("rel"), state: 0});
  204. list.push(liList[i])
  205. }
  206. }
  207. if(list.length){
  208. api.showProgress({
  209. title: languages.all.list21+'...',
  210. text: languages.issuePutaway.remind3+'...',
  211. modal: true
  212. });
  213. isClick=true;
  214. }else {
  215. api.toast({
  216. msg: languages.issuePutaway.remind2,
  217. duration: 2000,
  218. location: 'bottom'
  219. });
  220. return;
  221. }
  222. api.ajax({
  223. url: pageUrl + 'Price/set_state',
  224. method: 'post',
  225. timeout: 30,
  226. headers: {
  227. "content-type": "application/json"
  228. },
  229. dataType: 'json',
  230. returnAll: false,
  231. data: {
  232. body: postArr
  233. }
  234. }, function (ret, err) {
  235. isClick = false;
  236. if (ret.status == "200") {
  237. for (var i = 0, len = list.length; i < len; i++) {
  238. list[i].parentNode.removeChild(list[i]);
  239. }
  240. selAll.checked=false;
  241. api.toast({
  242. msg: languages.issuePutaway.remind4,
  243. duration: 2000,
  244. location: 'bottom'
  245. });
  246. //在名为winName的window中执行jsfun脚本
  247. var jsfun2 = 'getData(true,1);';
  248. api.execScript({
  249. name: 'root',
  250. frameName: 'issueSoldOut',
  251. script: jsfun2
  252. });
  253. } else {
  254. api.toast({
  255. msg: languages.all.list48,
  256. duration: 2000,
  257. location: 'bottom'
  258. });
  259. }
  260. api.hideProgress();
  261. });
  262. }
  263. delArr.onclick = function () {
  264. if(isClick) return;
  265. var evaluation = $api.dom("#evaluation"), liList = $api.domAll(evaluation, "li"), postArr = [], list = [];
  266. for (var i = 0, len = liList.length; i < len; i++) {
  267. if ($api.dom(liList[i], "[type=checkbox]").checked) {
  268. postArr.push({id: liList[i].getAttribute("rel")});
  269. list.push(liList[i])
  270. }
  271. }
  272. if(!list.length){
  273. api.toast({
  274. msg: languages.issuePutaway.remind2,
  275. duration: 2000,
  276. location: 'bottom'
  277. });
  278. return;
  279. }
  280. popups(languages.all.list22, function (ret, dialogBox) {
  281. if (ret.eventType == 'right') {
  282. isClick=true;
  283. api.showProgress({
  284. title: languages.all.list21+'...',
  285. text: languages.all.list32+'...',
  286. modal: true
  287. });
  288. api.ajax({
  289. url: pageUrl + 'Price/del_price',
  290. method: 'post',
  291. timeout: 30,
  292. headers: {
  293. "content-type": "application/json"
  294. },
  295. dataType: 'json',
  296. returnAll: false,
  297. data: {
  298. body: postArr
  299. }
  300. }, function (ret, err) {
  301. isClick = false;
  302. if (ret.status == "200") {
  303. for (var i = 0, len = list.length; i < len; i++) {
  304. list[i].parentNode.removeChild(list[i]);
  305. }
  306. selAll.checked=false;
  307. api.toast({
  308. msg: languages.all.list23,
  309. duration: 2000,
  310. location: 'bottom'
  311. });
  312. getData(true, 1)
  313. } else {
  314. api.toast({
  315. msg: languages.all.list47,
  316. duration: 2000,
  317. location: 'bottom'
  318. });
  319. }
  320. api.hideProgress();
  321. });
  322. dialogBox.close({
  323. dialogName: 'alert'
  324. });
  325. } else if (ret.eventType == 'left') {
  326. dialogBox.close({
  327. dialogName: 'alert'
  328. });
  329. }
  330. })
  331. }
  332. function popups(val,fn) {
  333. var dialogBox = api.require('dialogBox');
  334. dialogBox.alert({
  335. texts: {
  336. title: languages.all.list18,
  337. content: val,
  338. leftBtnTitle: languages.all.list2,
  339. rightBtnTitle: languages.all.list18
  340. },
  341. styles: {
  342. bg: '#fff',
  343. w: 300,
  344. title: {
  345. marginT: 20,
  346. icon: 'widget://res/gou.png',
  347. iconSize: 40,
  348. titleSize: 13,
  349. titleColor: '#000'
  350. },
  351. content: {
  352. color: '#000',
  353. size: 16
  354. },
  355. left: {
  356. marginB: 0,
  357. marginL: 0,
  358. w: 150,
  359. h: 60,
  360. corner: 2,
  361. bg: '#f9f9f9',
  362. color: '#818181',
  363. size: 12
  364. },
  365. right: {
  366. marginB: 0,
  367. marginL: 0,
  368. w: 150,
  369. h:60,
  370. corner: 2,
  371. bg: '#51c4d4',
  372. color: '#fff',
  373. size: 12
  374. }
  375. }
  376. }, function(ret) {
  377. fn(ret,dialogBox)
  378. });
  379. }
  380. }
  381. function getData(bl,thisPage) {
  382. isReload=true;
  383. api.ajax({
  384. url: pageUrl+"Price/get_price_list",
  385. method: 'get',
  386. timeout: 30,
  387. dataType: 'json',
  388. returnAll: false,
  389. headers:{
  390. "content-type":"application/json"
  391. },
  392. data: {
  393. body:{
  394. "type":{
  395. "state":1,
  396. "adminIsOk":1
  397. },
  398. "page":thisPage||pageIndex
  399. }
  400. }
  401. }, function (ret, err) {
  402. console.log(JSON.stringify(ret))
  403. var that=$api.dom("#evaluation"),thisFn = $api.dom("#thisFn");
  404. var jsfun1 = 'getNum('+JSON.stringify(ret['data']["total"])+');';
  405. if(thisPage) pageIndex = thisPage;
  406. api.execScript({
  407. name: 'root',
  408. frameName:"issueNav",
  409. script: jsfun1
  410. });
  411. if(ret.status!="200"){
  412. if(bl){
  413. that.innerHTML=" <p style='padding-top: 5.3rem;font-size: .5rem;text-align: center;color: #818181'>"+ languages.issuePutaway.remind1+"</p>";
  414. that.className=that.className.replace("hid","");
  415. }else {
  416. api.toast({
  417. msg: languages.all.list19,
  418. duration: 2000,
  419. location: 'bottom'
  420. });
  421. }
  422. api.refreshHeaderLoadDone();
  423. isReload=false;
  424. return;
  425. }
  426. var data=ret.data['datas'],str="",str2="",str3="";
  427. for(var i in data){
  428. str+=modelTxt.replace("{{orderid}}",data[i]['id']).replace("{{isShow}}",thisFn.className.indexOf("hid")==-1?"h-input":"").replace("{{isTop}}",data[i]['isbegTop']&&data[i]['isbegTop']=="1"?languages.issuePutaway.btn2:languages.issuePutaway.btn1).replace("{{showId}}",data[i]['showId']).replace("{{addDate}}",data[i]['addDate']).replace("{{tnameCn}}",data[i]['tnameCn'])
  429. for(var j in data[i]['pol']){
  430. str=str.replace("{{polName}}",data[i]['pol'][j]['polName']?data[i]['pol'][j]['polName']+"&nbsp;·&nbsp;":"").replace("{{polNamecn}}",data[i]['pol'][j]['nameCn']?data[i]['pol'][j]['nameCn']+"&nbsp;·&nbsp;":"").replace("{{polNameShortCn}}",data[i]['pol'][j]['nameShortCn']?data[i]['pol'][j]['nameShortCn']:"")
  431. }
  432. for(var n in data[i]['pod']){
  433. str=str.replace("{{podName}}",data[i]['pod'][n]['podName']?data[i]['pod'][n]['podName']+"&nbsp;·&nbsp;":"").replace("{{podNamecn}}",data[i]['pod'][n]['nameCn']?data[i]['pod'][n]['nameCn']+"&nbsp;·&nbsp;":"").replace("{{podNameShortCn}}",data[i]['pod'][n]['nameShortCn']?data[i]['pod'][n]['nameShortCn']:"")
  434. }
  435. for(var x in data[i]['detail']){
  436. str2=priceTxt.replace("{{additionalPrice}}",languages.issuePutaway.list16).replace("{{day}}",data[i]['detail'][x]['timeSpendDay']!=0?data[i]['detail'][x]['timeSpendDay']+languages.all.list26:"").replace("{{hour}}",data[i]['detail'][x]['timeSpendHour']!=0?data[i]['detail'][x]['timeSpendHour']+languages.all.list27:"").replace("{{dateOfEndGate}}",data[i]['detail'][x]['dateOfEndGate']).replace("{{dateOfStart}}",data[i]['detail'][x]['dateOfStart']).replace("{{nameOfboard}}",data[i]['tcnameCn'])
  437. for(var s in data[i]['detail'][x]['child']){
  438. str3+=priceListTxt.replace("{{code}}",data[i]['detail'][x]['child'][s]['code']).replace("{{theCode}}",data[i]['detail'][x]['child'][s]['theCode']).replace("{{price}}",data[i]['detail'][x]['child'][s]['price'])
  439. }
  440. }
  441. str2=str2.replace("{{prices}}",str3);
  442. str3="";
  443. str=str.replace("{{pricesList}}",str2).replace("{{remark}}",data[i]['detail'][0]['remark']).replace("{{dateTo}}",data[i]['detail'][0]['dateTo'].split(" ")[0]).replace("{{dateFrom}}",data[i]['detail'][0]['dateFrom'].split(" ")[0]);
  444. str2="";
  445. }
  446. if(bl){
  447. that.innerHTML=str;
  448. that.className=that.className.replace("hid","");
  449. }else {
  450. that.insertAdjacentHTML("beforeend",str);
  451. }
  452. setTJ();
  453. setXJ();
  454. pageIndex++;
  455. str="";
  456. isReload=false;
  457. })
  458. function setTJ() {
  459. var evaluation=$api.dom("#evaluation"),TJS=$api.domAll(evaluation,".TJ"),isClick=false;
  460. for(var num=0,len=TJS.length;num<len;num++){
  461. !function (i) {
  462. TJS[i].onclick=function () {
  463. if(isClick) return;
  464. isClick=true;
  465. api.showProgress({
  466. title: languages.all.list21+'...',
  467. text: languages.all.list25+'...',
  468. modal: true
  469. });
  470. var id=this.parentNode.parentNode.getAttribute("rel"),isTop=0,that=this;
  471. if(this.innerText==languages.issuePutaway.btn1){
  472. // if($api.getStorage("serviceStatus").assurance=="0"){
  473. // api.openWin({
  474. // name: 'paidService',
  475. // url: 'paidService.html',
  476. // pageParam: {index: 0}
  477. // });
  478. // api.hideProgress();
  479. // isClick=false;
  480. // return;
  481. // }
  482. isTop=1;
  483. }else {
  484. isTop=0;
  485. }
  486. api.ajax({
  487. url: pageUrl+'Price/set_top',
  488. method: 'post',
  489. timeout: 30,
  490. dataType: 'json',
  491. returnAll: false,
  492. data: {
  493. values: {
  494. id: id,
  495. isbegTop:isTop
  496. }
  497. }
  498. }, function (ret, err) {
  499. var txt="";
  500. isClick=false;
  501. api.hideProgress();
  502. if(ret.status=="200"){
  503. if(isTop){
  504. that.innerText=languages.issuePutaway.btn2;
  505. txt=languages.issuePutaway.remind5;
  506. }else {
  507. that.innerText=languages.issuePutaway.btn1;
  508. txt=languages.issuePutaway.remind6;
  509. }
  510. api.toast({
  511. msg: txt,
  512. duration: 2000,
  513. location: 'bottom'
  514. });
  515. }else {
  516. api.toast({
  517. msg: languages.all.list48,
  518. duration: 2000,
  519. location: 'bottom'
  520. });
  521. }
  522. });
  523. }
  524. }(num)
  525. }
  526. }
  527. function setXJ() {
  528. var evaluation=$api.dom("#evaluation"),XJS=$api.domAll(evaluation,".XJ"),isClick=false;
  529. for(var num=0,len=XJS.length;num<len;num++){
  530. !function (i) {
  531. XJS[i].onclick=function () {
  532. if(isClick) return;
  533. isClick=true;
  534. var id=this.parentNode.parentNode.getAttribute("rel"),that=this;
  535. var arr=[{id:id,state:0}];
  536. api.showProgress({
  537. title: languages.all.list21+'...',
  538. text: languages.issuePutaway.remind3+'...',
  539. modal: true
  540. });
  541. api.ajax({
  542. url: pageUrl+'Price/set_state',
  543. method: 'post',
  544. timeout: 30,
  545. headers:{
  546. "content-type":"application/json"
  547. },
  548. dataType: 'json',
  549. returnAll: false,
  550. data: {
  551. body: arr
  552. }
  553. }, function (ret, err) {
  554. api.hideProgress();
  555. isClick=false;
  556. if(ret.status=="200"){
  557. api.toast({
  558. msg: languages.issuePutaway.remind4,
  559. duration: 2000,
  560. location: 'bottom'
  561. });
  562. that.parentNode.parentNode.parentNode.removeChild(that.parentNode.parentNode);
  563. //在名为winName的window中执行jsfun脚本
  564. var jsfun2 = 'getData(true,1);';
  565. api.execScript({
  566. name: 'root',
  567. frameName: 'issueSoldOut',
  568. script: jsfun2
  569. });
  570. }else {
  571. api.toast({
  572. msg: languages.all.list48,
  573. duration: 2000,
  574. location: 'bottom'
  575. });
  576. }
  577. });
  578. }
  579. }(num)
  580. }
  581. }
  582. }
  583. </script>
  584. </body>
  585. </html>