doctor-consultation_new.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. //家庭医生咨询分页参数
  2. var id = 0;
  3. var pageSize = 15;
  4. //续方咨询分页参数
  5. var xfId = 0;
  6. var xfPageSize = 15;
  7. var d = dialog({contentType:'load', skin:'bk-popup'});
  8. var patientcode ="",
  9. patientName = "";
  10. //var isHealthSearch = false,
  11. // isPreSearch = false;
  12. var userAgent = window.localStorage.getItem(agentName);
  13. var pagetype = 1;
  14. var chooseType; //记录选择的咨询类型
  15. var loaded = [true, false]; //标记两个tab是否已经加载过
  16. var chooseTab = 1; //默认选中的是家庭健康咨询
  17. var expensesStatus ="";//'扣费状态 【""没有签约信息 "0"未扣费 "1"已扣费 "2"已退费】'
  18. var is_sign = 0;
  19. //页面初始化
  20. $(function(){
  21. checkUserAgent();
  22. // queryInit();
  23. });
  24. function queryInit(){
  25. // 验证居民信息是否完善
  26. checkBaseInfo()
  27. initScroller();
  28. initFamilyData();
  29. initPageData();
  30. bindEvents();
  31. wxGetSign();
  32. }
  33. function initScroller(){
  34. //阻尼系数
  35. var deceleration = mui.os.ios?0.003:0.0009;
  36. mui('.mui-scroll-wrapper1').scroll({
  37. scrollY: false, //是否竖向滚动
  38. scrollX: true, //是否横向滚动
  39. startX: 0, //初始化时滚动至x
  40. startY: 0, //初始化时滚动至y
  41. bounce: false,
  42. indicators: true, //是否显示滚动条
  43. deceleration:deceleration
  44. });
  45. mui.ready(function() {
  46. //循环初始化所有下拉刷新,上拉加载。
  47. $.each(document.querySelectorAll('.mui-slider-group .mui-scroll-wrapper'), function(index, pullRefreshEl) {
  48. mui(pullRefreshEl).pullRefresh({
  49. up: {
  50. callback: function() {
  51. var self = this;
  52. setTimeout(function() {
  53. if(index == 0){
  54. getHealthConsulationList(false);
  55. // }else{
  56. // getPreConsultList();
  57. }
  58. self.endPullupToRefresh();
  59. }, 1000);
  60. }
  61. }
  62. });
  63. });
  64. });
  65. }
  66. function initFamilyData(){
  67. appendFamilyMember($('#memberContainer'),function(){
  68. //切换家庭成员,默认选中健康咨询tab显示
  69. id = 0;
  70. xfId = 0;
  71. chooseType = 1;
  72. loaded = [true, false];
  73. $("#healthTab a").click();
  74. initPageData();
  75. },function(t){
  76. //判断有授权家人,修改样式,只在初始的时候执行一次
  77. var height = $('#memberContainer').height();
  78. $("#slider").css({
  79. 'top': height,
  80. 'height': 'calc(100% - '+height+'px)'
  81. });
  82. });
  83. }
  84. function initPageData(){
  85. // var userInfo= JSON.parse(userAgent);
  86. // patientcode = userInfo.uid;
  87. getPatientInfo();
  88. }
  89. //获得患者信息
  90. function getPatientInfo(){
  91. d.show();
  92. var data={};
  93. sendPost('patient/baseinfo', data, 'json', 'post', queryFailed, function(res){
  94. if (res.status == 200) {
  95. var data = res.data,
  96. ssc = data.ssc;
  97. expensesStatus = res.data.expensesStatus;
  98. patientName = data.name;
  99. mui('#slider').slider().gotoItem(0);
  100. $("#preTab").hide();
  101. mui('#slider').slider().setStopped(true);
  102. //获得咨询列表数据
  103. getHealthConsulationList(true);
  104. } else {
  105. queryFailed(res);
  106. }
  107. });
  108. }
  109. //获取健康咨询列表
  110. function getHealthConsulationList(isInit){
  111. if(isInit){
  112. id = 0;
  113. }
  114. var url = 'patient/consult/records',
  115. params = {
  116. id: id,
  117. pagesize: pageSize,
  118. title: $("#item1 .inp-search").val().trim()
  119. };
  120. sendPost(url, params, 'json', 'get', queryFailed, function(res){
  121. if(res.status == 200){
  122. $("#healthConsulationPanel").css("top","50px");
  123. d.close();
  124. $('#healthConsulationPanel').show();
  125. if (res.list.length > 0) {
  126. $('#ul_jiating_consultation').show();
  127. $('#item1 .vertical-line').show();
  128. $("#item1 .div-no-search-info").hide();
  129. $("#item1 .div-no-info").hide();
  130. var searchText = $("#item1 .inp-search").val().trim();
  131. var list = _.map(res.list, function(o){
  132. o.jsonStr = JSON.stringify(o);
  133. //针对搜索字体
  134. if(searchText.length > 0){
  135. var reg = new RegExp(searchText,"g");
  136. o.symptoms = o.symptoms.replace(reg, '<em>'+searchText+"</em>");
  137. }
  138. var divStatus = "";
  139. // if(o.type==2){
  140. if(o.status==0){
  141. //咨询中
  142. divStatus = "div-beginning";
  143. }else if(o.evaluate ==1){
  144. divStatus = "div-hasvalue";//是否有评价 0无 1有
  145. }else{
  146. divStatus = "div-novalue";
  147. }
  148. // }
  149. o.statusClass = divStatus;
  150. return o;
  151. });
  152. var html = template('healthConsulation_tmp', {list: list});
  153. if(id == 0){
  154. $("#ul_jiating_consultation").empty().append(html);
  155. }else{
  156. $("#ul_jiating_consultation").append(html);
  157. }
  158. if(res.list.length < pageSize){
  159. mui("#item1 .mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);
  160. }
  161. id = res.list[res.list.length-1].id;
  162. }else{
  163. if(isInit){
  164. $('#ul_jiating_consultation').hide();
  165. $('#item1 .vertical-line').hide();
  166. $("#item1 .div-no-search-info").show();
  167. }else{
  168. mui("#item1 .mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);
  169. }
  170. }
  171. }else{
  172. queryFailed(res);
  173. }
  174. });
  175. }
  176. //判断是否有未结束的咨询
  177. function isConsultUnfinished(docInfo,docQkInfo){
  178. var url = 'patient/consult/is_consult_unfinished',
  179. params = {doctor: docInfo.code};
  180. sendPost(url, params, 'json', 'post', function(res){
  181. queryFailed(res, '获取是否存在咨询失败');
  182. },function(res){
  183. d.close();
  184. if(res.status == 200){
  185. if(res.data == ""){
  186. //不存在
  187. checkDocInWork(chooseType, docInfo,docQkInfo);
  188. } else {
  189. dialog({
  190. content: '十分抱歉,您与'+ docInfo.name +'医生还有<br/>未结束咨询,无法发起新的咨询',
  191. okValue:'前往查看',
  192. ok: function (){
  193. var userInfo = JSON.parse(userAgent);
  194. var rep = userInfo.uid;
  195. window.location.href = "consulting-doctor.html?consult=" + res.data +"&toUser="+rep;
  196. },
  197. cancelValue: '我知道了',
  198. cancel: function () {
  199. $(".modal-overlay").trigger("click");
  200. $(".jiating-icon").removeClass("active");
  201. $(".mingyi-icon").removeClass("active");
  202. return;
  203. }
  204. }).showModal();
  205. }
  206. } else {
  207. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
  208. }
  209. });
  210. }
  211. //获取签约医生的工作时间
  212. function checkDocInWork(type, doctor,docQkInfo){
  213. var url = 'patient/consult/isDoctorWorkWhenconsult',
  214. params = {doctor:docQkInfo.code,healthDoctor:doctor.code};
  215. sendPost(url, params, 'json', 'post', queryFailed, function(res){
  216. if(res.status == 200){
  217. // data:0-医生不接受咨询/1-医生当前接受咨询/2-全科医生和健管师当前都不在工作时间/3-全科医生当前不在工作时间/4-健管师当前不在工作时间 健管师当前不在工作时间
  218. if(res.data==2){
  219. dialog({
  220. content: '您好,由于您的签约医生工作繁忙,设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复。',
  221. okValue:'查看医生工作时间',
  222. ok: function (){
  223. window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
  224. },
  225. cancelValue: '继续新增咨询',
  226. cancel: function () {
  227. window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
  228. }
  229. }).showModal();
  230. }else if(res.data==3){
  231. dialog({
  232. content: '您好,由于您的签约全科医生工作繁忙……,您的咨询将不会马上获得全科医生的回复 。',
  233. okValue:'查看医生工作时间',
  234. ok: function (){
  235. window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
  236. },
  237. cancelValue: '继续新增咨询',
  238. cancel: function () {
  239. window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
  240. }
  241. }).showModal();
  242. }else if(res.data==4){
  243. dialog({
  244. content: '您好,由于您的签约健康管理师工作繁忙……,您的咨询将不会马上获得健康管理师的回复 。',
  245. okValue:'查看医生工作时间',
  246. ok: function (){
  247. window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
  248. },
  249. cancelValue: '继续新增咨询',
  250. cancel: function () {
  251. window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
  252. }
  253. }).showModal();
  254. }else{
  255. //跳转到新增咨询页面
  256. window.location.href = "add-consult.html?type="+type+"&doctorCode="+doctor.code;
  257. }
  258. }else{
  259. queryFailed(res);
  260. }
  261. });
  262. }
  263. //判断是否可以新增续方咨询
  264. function checkCanPreConsult(){
  265. var url = "/patient/consult/isPrescriptionConsult",
  266. params = {patient: patientcode};
  267. d.show();
  268. sendPost(url, params, 'json', 'get', queryFailed, function(res){
  269. if(res.status == 200){
  270. //成功及可以发起续方咨询,跳转去新增续方咨询页面
  271. //TODO 待处理事件
  272. window.location.href = "add-prescription-consult.html?patient="+patientcode+"&name="+patientName;
  273. }else{
  274. queryFailed(res);
  275. }
  276. });
  277. }
  278. //显示搜索输入文字
  279. function showSearchSuggest(text, type){
  280. var suggestText = '搜索“'+text+'”';
  281. // 如果text不为空,则显示;否则隐藏
  282. if(text&&text.trim().length) {
  283. if(type == 1){//家庭医生咨询
  284. $("#search_suggest_text").text(suggestText);
  285. $("#search_suggest_text").show();
  286. }else if(type == 2){//续方咨询
  287. $("#xf_search_suggest_text").text(suggestText);
  288. $("#xf_search_suggest_text").show();
  289. }
  290. } else {
  291. if(type == 1){//家庭医生咨询
  292. $("#search_suggest_text").text('');
  293. $("#search_suggest_text").hide();
  294. }else if(type == 2){//续方咨询
  295. $("#xf_search_suggest_text").text('');
  296. $("#xf_search_suggest_text").hide();
  297. }
  298. }
  299. }
  300. //搜索操作
  301. function search(type){
  302. d.show();
  303. if(type == 1){//家庭医生咨询
  304. // isHealthSearch = true;
  305. // id = 0;
  306. $("#search_suggest_text").text('');
  307. $("#search_suggest_text").hide();
  308. $("#item1 .searchbar-cancel").hide();
  309. $("#item1 .searchbar-cancel").css("opacity","0");
  310. $("#item1 .div-no-info").hide();
  311. $("#item1 .div-no-search-info").hide();
  312. d.show();
  313. getHealthConsulationList(true);
  314. }else if(type == 2){//续方咨询
  315. // isPreSearch = true;
  316. // xfId = 0;
  317. $("#xf_search_suggest_text").text('');
  318. $("#xf_search_suggest_text").hide();
  319. $("#item2 .searchbar-cancel").hide();
  320. $("#item2 .searchbar-cancel").css("opacity","0");
  321. $("#item2 .div-no-info").hide();
  322. $("#item2 .div-no-search-info").hide();
  323. getPreConsultList();
  324. }
  325. }
  326. function bindEvents(){
  327. //监听tab切换动作
  328. document.querySelector('.mui-slider').addEventListener('slide', function(event) {
  329. var index = event.detail.slideNumber;
  330. chooseTab = index + 1;
  331. if(!loaded[index]){ //tab未加载过,则加载数据
  332. d.show();
  333. getPreConsultList();
  334. loaded[index] = true;
  335. }
  336. });
  337. $("#ul_jiating_consultation").on("tap",'li', function(){
  338. var jsonData = JSON.parse(this.getAttribute("data-json"));
  339. var userInfo = JSON.parse(userAgent);
  340. patientcode = window.localStorage.getItem('nowPatientCode')
  341. if(jsonData.status == 0){
  342. window.location.href = "../../qygl/html/sign_info.html?consult="+jsonData.code+"&doctor="+jsonData.doctorCode+"&patientcode="+patientcode;
  343. }else{
  344. localStorage.setItem("evaluate",jsonData.evaluate);
  345. window.location.href = "consulting-doctor.html?consult=" + jsonData.code+"&type="+jsonData.type+"&toUser="+userInfo.uid+"&doctor="+jsonData.doctorCode;
  346. }
  347. });
  348. $("#ul_xufang_consultation").on("tap",'li', function(){
  349. var userInfo = JSON.parse(userAgent);
  350. var jsonData = JSON.parse(this.getAttribute("data-json"));
  351. localStorage.setItem("evaluate",jsonData.evaluate);
  352. //跳转去续方咨询页面
  353. window.location.href = 'prescription-consulting.html?consult='+jsonData.code+'&type='+jsonData.type+"&toUser="+userInfo.uid+"&doctor="+jsonData.doctorCode;
  354. });
  355. //新增按钮事件
  356. $(".div-add-btn").on("click",function(){
  357. //现在固定显示咨询可以选择类型,不做三师等的判断
  358. // $(this).hide();
  359. // $(".div-dialog-content").show();
  360. // $(".modal-overlay").addClass("modal-overlay-visible");
  361. //直接跳转去选择医生列表
  362. window.location.href = "select-consult-doctor.html";
  363. });
  364. //点击遮罩事件
  365. $(".modal-overlay").on("click",function(){
  366. $(".modal-overlay").removeClass("modal-overlay-visible");
  367. $(".div-dialog-content").hide();
  368. $(".div-add-btn").removeClass("active");
  369. if(is_sign == 1){
  370. $(".div-add-btn").show();
  371. }else{
  372. $(".div-add-btn").hide();
  373. }
  374. });
  375. //点击家庭医生事件
  376. $(".jiating-icon").on("click",function(){
  377. $(this).addClass("active");
  378. if(is_sign == 1){
  379. //判断该居民是否已经缴费 1为已经交费 ""没有签约信息 "0"未扣费 "1"已扣费 "2"已退费
  380. if(expensesStatus == 1){
  381. querySignType(2);
  382. }else{
  383. //未缴费居民限制咨询次数
  384. limitZxTimes();
  385. }
  386. }else{
  387. $(".div-dialog-content").show();
  388. dialog({
  389. content: '没有有效的签约信息,请前往签约',
  390. okValue:'前往签约',
  391. ok: function (){
  392. window.location.href = "../../qygl/html/signing_management.html";
  393. },
  394. cancelValue: '我知道了',
  395. cancel: function () {
  396. $(".modal-overlay").trigger("click");
  397. $(".jiating-icon").removeClass("active");
  398. $(".mingyi-icon").removeClass("active");
  399. return;
  400. }
  401. }).showModal();
  402. }
  403. // if(expensesStatus == 1){
  404. // querySignType(2);
  405. // }else if(expensesStatus == ""){
  406. // d.close();
  407. // $(".mui-content").hide();
  408. // $(".div-no-sign").show();
  409. // }else{
  410. // //未缴费居民限制咨询次数
  411. // limitZxTimes();
  412. // }
  413. });
  414. //点击名医咨询事件
  415. $(".mingyi-icon").on("click",function(){
  416. $(this).addClass("active");
  417. if(is_sign == 1){
  418. window.location.href = "select-consult-doctor.html";
  419. }else{
  420. dialog({
  421. content: '没有有效的签约信息,请前往签约',
  422. okValue:'前往签约',
  423. ok: function (){
  424. window.location.href = "../../qygl/html/signing_management.html";
  425. },
  426. cancelValue: '我知道了',
  427. cancel: function () {
  428. $(".modal-overlay").trigger("click");
  429. $(".jiating-icon").removeClass("active");
  430. $(".mingyi-icon").removeClass("active");
  431. return;
  432. }
  433. }).showModal();
  434. }
  435. });
  436. //取消事件
  437. $(".quxiao").on("click",function(){
  438. $(".modal-overlay").trigger("click");
  439. });
  440. //查看签约
  441. $('#signing-btn').on('click',function(){
  442. window.location.href = "../../qygl/html/signing_management.html";
  443. });
  444. //跳转去签约管理页面
  445. $("#goToSign").on('click', function(){
  446. window.location.href = "../../qygl/html/signing_management.html";
  447. });
  448. //点击发起咨询事件
  449. $("#launch-btn").on("tap",function(){
  450. // $(".div-add-btn").trigger("click");
  451. window.location.href = "select-consult-doctor.html";
  452. });
  453. //点击续方tab内发起咨询的事件
  454. $("#launch-btn2").on("tap", function(){
  455. //判断是否可以续方咨询
  456. checkCanPreConsult();
  457. })
  458. //点击续方申请事件
  459. $(".xufangsq-icon").on("click",function(){
  460. $(this).addClass("active");
  461. //判断是否可以续方咨询
  462. checkCanPreConsult();
  463. });
  464. //搜索框事件
  465. $(".inp-search").on("input",function(){
  466. var text = $(this).val().trim(),
  467. type = $(this).attr("data-val");
  468. if(type == 1){//家庭医生咨询
  469. $('#healthConsulationPanel').hide();
  470. }else if(type == 2){//续方咨询
  471. $('#re-prescriptionConsulationPanel').hide();
  472. }
  473. showSearchSuggest(text, type);
  474. var $searchCancelBtn = $(".searchbar-clear");
  475. if(text){
  476. // $searchCancelBtn.css("opacity","1");
  477. }else{
  478. // $searchCancelBtn.css("opacity","0");
  479. search(type);
  480. }
  481. }).on('keydown',function(e) {
  482. var type = $(this).attr("data-val");
  483. if (e.which === 13) {
  484. search(type);
  485. }
  486. });
  487. $("#search_suggest_text").on("click", function(){
  488. search(1);
  489. });
  490. $("#xf_search_suggest_text").on("click", function(){
  491. search(2);
  492. });
  493. $(".searchbar-clear").on("click", function(){
  494. $(this).css("opacity","0");
  495. var $input = $(this).closest('.inp-search'),
  496. type = $input.attr("data-val");
  497. $input.val('');
  498. if(type == 1){//家庭医生咨询
  499. $("#search_suggest_text").text('');
  500. $("#search_suggest_text").hide();
  501. }else if(type == 2){//续方咨询
  502. $("#xf_search_suggest_text").text('');
  503. $("#xf_search_suggest_text").hide();
  504. }
  505. search(type);
  506. });
  507. //限制左右滑动
  508. // 左滑事件
  509. document.addEventListener("swipeleft", function(event) {
  510. console.log(event);
  511. event.preventDefault();
  512. return false;
  513. });
  514. // 右滑事件
  515. document.addEventListener("swiperight", function(event) {
  516. console.log(event);
  517. event.preventDefault();
  518. return false;
  519. });
  520. }
  521. //未缴费居民限制咨询次数
  522. function limitZxTimes(){
  523. //获取剩余家庭咨询次数
  524. var url = '/patient/consult/remainConsultTimes';
  525. var remainTimes;//剩余咨询次数
  526. var countTimes;//总咨询次数
  527. var zxTimes;//已咨询次数
  528. d.show();
  529. sendPost(url, {}, 'json', 'get', queryFailed, function(res){
  530. if(res.status == 200){
  531. d.close();
  532. remainTimes = res.data.amount;
  533. countTimes = res.data.count;
  534. zxTimes = countTimes - remainTimes;
  535. if(zxTimes == countTimes){
  536. //未缴费的总咨询次数已达上限 提示去缴费
  537. dialog({
  538. content: '您本年度家庭医生签约暂未缴费,当前10次免费健康咨询已全部使用.如果需要家庭医生继续为您提供服务,请尽快完成缴费操作',
  539. okValue:'前往缴费',
  540. ok: function (){
  541. window.location.href = "../../qygl/html/signing_management.html";
  542. }
  543. }).showModal();
  544. }else{
  545. dialog({
  546. content: '您本年度家庭医生签约暂未缴费,可使用10次免费健康咨询,当前剩余:'+remainTimes+'次.为避免影响您的服务体验,请尽快完成缴费操作',
  547. okValue:'前往缴费',
  548. ok: function (){
  549. window.location.href = "../../qygl/html/signing_management.html";
  550. },
  551. cancelValue: '开始咨询',
  552. cancel: function () {
  553. querySignType(2)
  554. }
  555. }).showModal();
  556. }
  557. }else{
  558. queryFailed(res);
  559. }
  560. });
  561. }
  562. //请求失败处理事件
  563. function queryFailed(res, message){
  564. d.close();
  565. if(message){
  566. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content: message}).show();
  567. }else{
  568. if (res && res.msg) {
  569. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
  570. } else {
  571. dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载失败'}).show();
  572. }
  573. }
  574. }
  575. //获取微信信息,并配置微信api接口
  576. function wxGetSign(){
  577. var params = {};
  578. params.pageUrl = window.location.href;
  579. $.ajax(server + "weixin/getSign", {
  580. data: params,
  581. dataType: "json",
  582. type: "post",
  583. success: function(res){
  584. if (res.status == 200) {
  585. var t = res.data.timestamp;
  586. var noncestr = res.data.noncestr;
  587. var signature = res.data.signature;
  588. wx.config({
  589. //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  590. appId: appId, // 必填,公众号的唯一标识
  591. timestamp: t, // 必填,生成签名的时间戳
  592. nonceStr: noncestr, // 必填,生成签名的随机串
  593. signature: signature,// 必填,签名,见附录1
  594. jsApiList: [
  595. 'closeWindow'
  596. ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
  597. });
  598. }
  599. }
  600. });
  601. }