PageSourceSearch

https://www.markji.com/chunk-BP6ECEQ7.js

js markji.com collected 2026-10-08 02:52:21 UTC 14,652 bytes, 2 lines download raw bytes

1import{i as U,k as V}from"./chunk-NLRWUJW6.js";import{a as Y}from"./chunk-4NYL3MTV.js";import{a as A}from"./chunk-PUBM7CQ3.js";import{c as N}from"./chunk-QF5HLS3Q.js";import"./chunk-7V7DAUPP.js";import{ye as R,ze as M}from"./chunk-OYWHHPTD.js";import"./chunk-XDRSKTVV.js";import"./chunk-BXP7M62U.js";import"./chunk-RZM75C6V.js";import{k as y,l as O,m as w}from"./chunk-BYVB43HZ.js";import{$c as T,Bc as x,Fa as F,Ga as v,Gc as m,Jc as E,Ob as h,Ub as f,Yc as i,_c as p,md as I,od as k,pd as b,rb as D,rc as g,sc as e,tc as t,uc as S,vb as s,xa as B}from"./chunk-RLFCBRIJ.js";import{k as C}from"./chunk-VJTDQWBS.js";var L=(a,c)=>({"error-item":a,"right-item":c});function P(a,c){if(a&1&&(e(0,"div",13),i(1),t()),a&2){let r=c.$implicit;g("ngClass",I(2,L,r.type===0,r.type===1)),s(),p(" ",r.message," ")}}function z(a,c){a&1&&(e(0,"span",18),i(1," \u9ED8\u8BA4\u5934\u50CF "),t())}function Q(a,c){if(a&1&&(S(0,"img",19),k(1,"cdn")),a&2){let r=E(3);g("src",b(1,1,r.userInfo.avatar),D)}}function G(a,c){if(a&1&&(e(0,"div",6)(1,"div"),i(2,"getUserInfo"),t(),e(3,"ul")(4,"li"),i(5),t(),e(6,"li"),i(7),t(),e(8,"li"),i(9),t(),e(10,"li"),i(11," \u5934\u50CF: "),f(12,z,2,0,"span",16)(13,Q,2,3,"img",17),t()()()),a&2){let r=E(2);s(5),p("\u7528\u6237id: ",r.userInfo.user_id),s(2),p("\u6635\u79F0: ",r.userInfo.nickname),s(2),p("\u7528\u6237\u624B\u673A\u53F7: ",r.userInfo.phone),s(3),g("ngIf",!r.userInfo.avatar),s(),g("ngIf",r.userInfo.avatar)}}function H(a,c){if(a&1&&(e(0,"div",14)(1,"div",2),i(2,"\u6821\u9A8C\u503C"),t(),e(3,"div",6)(4,"div"),i(5,"getEnv"),t(),e(6,"ul")(7,"li"),i(8),t(),e(9,"li"),i(10),t(),e(11,"li"),i(12),t(),e(13,"li"),i(14),t(),e(15,"li"),i(16),t(),e(17,"li"),i(18),t()()(),f(19,G,14,5,"div",15),t()),a&2){let r=E();s(8),p("\u5E94\u7528\u7248\u672C: ",r.envObj.app_version),s(2),p("\u4E3B\u9898: ",r.envObj.theme),s(2),p("\u64CD\u4F5C\u7CFB\u7EDF: ",r.envObj.os),s(2),p("\u64CD\u4F5C\u7CFB\u7EDF\u7248\u672C: ",r.envObj.os_version),s(2),T(" \u5C4F\u5E55\u5C3A\u5BF8: \u5BBD: ",r.envObj.screen_size[0],"px\uFF1B\u9AD8: ",r.envObj.screen_size[1],"px "),s(2),p("\u72B6\u6001\u680F\u9AD8\u5EA6: ",r.envObj.status_bar_height,"px"),s(),g("ngIf",r.userInfo)}}function J(a,c){if(a&1){let r=x();e(0,"li",8),m("click",function(){let l=F(r).$implicit,n=E();return v(n.showToast(l))}),i(1),t()}if(a&2){let r=c.$implicit;s(),p(" ",r," ")}}function X(a,c){if(a&1){let r=x();e(0,"li",8),m("click",function(){let l=F(r).$implicit,n=E();return v(n.alert(!0,"HORIZONTAL",l))}),i(1),t()}if(a&2){let r=c.$implicit;s(),p(" ",r," \u4E2A\u6309\u94AE ")}}function K(a,c){if(a&1){let r=x();e(0,"li",8),m("click",function(){let l=F(r).$implicit,n=E();return v(n.setNavButtons(l.type))}),i(1),t()}if(a&2){let r=c.$implicit;s(),p(" ",r.name," ")}}var le=(()=>{let c=class c{constructor(){this.bridge=B(Y),this.userService=B(N),this.autoDetectInfos=[],this.showToastType=["SUCCESS","ERROR","INFO"],this.navButtonsType=[{name:"\u6587\u672C\u6309\u94AE",type:"text"},{name:"icon \u6309\u94AE",type:"icon"},{name:"icon + \u6587\u672C\u6309\u94AE",type:"icon-text"},{name:"\u66F4\u591A\u6309\u94AE",type:"more"},{name:"\u6E05\u7A7A",type:"clear"}],this.alertButtons=[2,1,0]}ngOnInit(){return C(this,null,function*(){yield this.autoDetect()})}autoDetect(){return C(this,null,function*(){if(!/markji/i.test(navigator.userAgent)){this.autoDetectInfos.push({message:"\u901A\u8BAF\u6846\u67B6\u6CA1\u751F\u6548\uFF1Aua \u4E2D\u6CA1\u6709\u643A\u5E26 markji",type:0});return}this.autoDetectInfos.push({message:"\u901A\u8BAF\u6846\u67B6\u6CE8\u5165\u6210\u529F",type:1}),yield this.getAndDetectEnvObj(),yield this.getAndDetectUserInfo(),yield this.validUserAccessToken()})}getAndDetectEnvObj(){return C(this,null,function*(){let u=yield A.common.getEnv();this.envObj=u.data;let l={app_version:["string"],theme:["string",["night","day"]],os:["string",["ios","android"]],os_version:["string"],status_bar_height:["number"],screen_size:["array"]};this.validData({method:"getEnv",keyInfos:l,data:this.envObj})})}getAndDetectUserInfo(){return C(this,null,function*(){let u=yield A.common.getUserInfo();this.userInfo=u.data;let l={user_id:["number"],nickname:["string"],avatar:["string"],phone:["string"]};this.validData({method:"getUserInfo",keyInfos:l,data:this.userInfo})})}validData(u){let l=Object.entries(u.keyInfos).reduce((n,[o,d])=>{let _=u.data[o];return d[0]==="array"?Array.isArray(_)?n:n+"${ key } \u7C7B\u578B\u4E0D\u662F\u6570\u7EC4\uFF1B":!_&&(u.method!=="getUserInfo"||o!=="avatar")?n+`${o} \u503C\u4E3A\u7A7A\uFF1B`:typeof _!==d[0]?n+`${o} \u7C7B\u578B\u5E94\u4E3A ${d[0]}\uFF1B`:typeof _=="string"&&(_==="null"||_==="undefined")?n+`${o} \u503C\u4E3A\u65E0\u6548\u503C\uFF1B`:d[1]&&!d[1].includes(_)?n+`${o} \u503C\u5E94\u4E3A ${d[1].join(" \u6216 ")}\uFF1B`:n},"");this.autoDetectInfos.push({message:u.method+" \u65B9\u6CD5: "+(l.slice(0,-1)||"\u7C7B\u578B\u68C0\u6D4B\u901A\u8FC7"),type:l?0:1})}validUserAccessToken(){return C(this,null,function*(){let u=yield this.bridge.getUserAccessToken(),l="";if(u.user_id!==this.userInfo.user_id&&(l+="user_id \u7684\u503C\u4E0E getUserInfo \u4E2Duser_id \u7684\u503C\u4E0D\u4E00\u81F4\uFF1B"),typeof u.token!="string")l+="token \u7C7B\u578B\u5E94\u4E3A string\uFF1B";else try{yield this.userService.getUserProfile().toPromise()}catch{l+="\u65E0\u6548 token\uFF08\u68C0\u67E5\u73AF\u5883\u662F\u5426\u4E00\u81F4\uFF09\uFF1B"}this.autoDetectInfos.push({message:"getUserAccessToken \u65B9\u6CD5: "+(l.slice(0,-1)||"\u68C0\u6D4B\u901A\u8FC7"),type:l?0:1})})}detectLoading(u){this.bridge.showLoading(u),setTimeout(()=>{this.bridge.closeLoading()},1e3)}showToast(u){A.common.toast({message:"\u563F\u563F\u563F",type:u}).then()}alert(u,l,n=2,o=!0){let d=[{id:"ok",text:"\u786E\u5B9A",text_color:"#44BCC7"},{id:"cancel",text:"\u53D6\u6D88",text_color:"text"}].slice(0,n);A.common.alert({title:"\u4F60\u6765\u5E72\u561B",message:o?"\u563F\u563F\u563F":"",cancelable:u,button_align:l,buttons:d,button_callback:_=>{_==="ok"&&A.common.toast({message:"\u70B9\u51FB\u4E86\u786E\u5B9A\u6309\u94AE",type:"INFO"}).then()}}).then()}setNavButtons(u){let l="iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFeSURBVGiB7ZntbYMwEIafVh2go3SDHpPVnSywQUfpBvRPSBHxx9kcdlD8SCgR9h3vC2fJcNDpPDcviXEHfCpzTdf5MS7KXKX5bwgwFxwxga4wZzT/a+BipXdq
1ioxpn2QWb55zznNuVObzxS4M6EvyHfjQXNBnYEtqneTgFHOEjArwldD6Do3aREYImeUbWgMtEPzif2JBj2JA8IsfgN9Y4CMYEMLix1RwawPCDvHQ1oCwUzy0MyAYiIc2BgQj8VDfgGAoHuoaEIzFQz0DwgHioY4BwU58bLd744Juf69lnW85JDOHy9FibWCv+Cg1Suj7+jtiUPMarJ/AobTeC+2mG6iEhAbOYMDxvy5lO3gGA+t39K/t4BkMROkGWtMNtKYbaE030JqUAakhIoGs/t+9Uvr6A9MmaKb+Z/YFSU0INS9mWx1m3OkNldBwsJASvJo0bVY4qEGnJKu92uk8G3/BRGTVKq7nBgAAAABJRU5ErkJggg==",o=[{id:"btn",text:"\u4E3B\u8981\u6587\u672C",icon:l,text_color:"text",folded:!1},{id:"btn2",text:"\u6B21\u8981\u6587\u672C",icon:l,text_color:"para_text",folded:!1},{id:"btn3",text:"\u4E3B\u9898\u84DD",icon:"iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFfSURBVGiB7ZlvboQgEMUfpsfhCCRlb1G9DO5lur3F0sQjeJ6lH1w1m5Y/Dlg0md8nWXHgwTiGtwDDMExNRG4AqT50gXn8yTh82VgfsoBp4sIA0NQYccR1HD77YA9qaKlaR312I3YcbhffTZIAqboecGYeAHBXShw/jQbcO5bddRdfOr3lDhVanQzsM0V1rGOzw+D/yukFJKXQtJ2NXn9xer3X9TkTiFWZGEEBzzy8Ty1f0VleZhJStSalXPqIpNA8+b1xhvpB9O7Aa0D6CoV4LceNBmC3xkh8iR+bA6dQYlFOX4VYQG1YQG1YQG1YQG1YQG1YQG0OLKDRKb2yXYlyODOdzpb2chVy6A68AzMuaNscaAfwDQi7Nh82xRs9kABhKSe0E6RQmNMLSEwhYaTqdPnDvcjylICIOy1Ve8eu/v/KONxITnkwhSbnWRS2zn9hY6UyRJLq2n8jMQzDHJcfp6xfjpA00KUAAAAASUVORK5CYII=",text_color:"#44BCC7",folded:!1}];u==="clear"?o=[]:o=o.map(d=>(u==="text"&&delete d.icon,u==="icon"&&delete d.text,u==="more"&&(d.folded=!0),d)),A.common.setNavButtons({buttons:o,click_listener:d=>{let _=o.find(j=>j.id===d);A.common.toast({message:`\u70B9\u51FB\u4E86\u3010${_.text}\u3011\u6309\u94AE`,type:"INFO"}).then()}}).then()}copy(u,l){let n=u.target.innerText;l===void 0?A.common.copy({content:n}):A.common.copy({content:n,msg:l}).then()}vibrate(){A.common.vibrate().then()}getAppStoreLink(u){location.href=R(u)}getAppStoreCommentLink(u){location.href=M(u)}};c.\u0275fac=function(l){return new(l||c)},c.\u0275cmp=h({type:c,selectors:[["app-bridge-test"]],decls:110,vars:5,consts:[[1,"bridge-container"],[1,"part","auto-detect-part"],[1,"part-title"],["class","auto-detect-item flex align-item-center",3,"ngClass",4,"ngFor","ngForOf"],["class","part no-click-part",4,"ngIf"],[1,"part"],[1,"part-item"],[1,"no-click-part"],[3,"click"],[3,"click",4,"ngFor","ngForOf"],["href","/mobile/bridge-test?__open_mode=1"],["href","/mobile/bridge-test?__open_mode=2"],["href","/mobile/bridge-test?__open_mode=4"],[1,"auto-detect-item","flex","align-item-center",3,"ngClass"],[1,"part","no-click-part"],["class","part-item",4,"ngIf"],["style","color: var(--color-secondary-text)",4,"ngIf"],["class","avatar","alt","",3,"src",4,"ngIf"],[2,"color","var(--color-secondary-text)"],["alt","",1,"avatar",3,"src"]],template:function(l,n){l&1&&(e(0,"div",0)(1,"div",1)(2,"div",2),i(3,"\u81EA\u52A8\u68C0\u6D4B"),t(),f(4,P,2,5,"div",3),t(),f(5,H,20,8,"div",4),e(6,"div",5)(7,"div",2),i(8,"\u624B\u52A8\u68C0\u6D4B"),t(),e(9,"div",6)(10,"div"),i(11,"\u4E3B\u9898\u8272"),t(),e(12,"ul",7)(13,"li"),i(14,"\u65E5\u95F4\u8FDB\u5165"),t(),e(15,"li"),i(16,"\u591C\u95F4\u8FDB\u5165"),t(),e(17,"li"),i(18,"\u8DDF\u968F\u7CFB\u7EDF\u8FDB\u5165\uFF0C\u5207\u6362\u7CFB\u7EDF\u65E5\u591C\u95F4"),t()()(),e(19,"div",6)(20,"div"),i(21,"setLoading"),t(),e(22,"ul")(23,"li",8),m("click",function(){return n.detectLoading()}),i(24," \u65E0\u6587\u672C "),t(),e(25,"li",8),m("click",function(){return n.detectLoading("\u6B63\u5728\u52A0\u8F7D\u4E2D...")}),i(26," \u6709\u6587\u672C: \u6B63\u5728\u52A0\u8F7D\u4E2D... "),t()()(),e(27,"div",6)(28,"div"),i(29,"toast \u63D0\u793A"),t(),e(30,"ul"),f(31,J,2,1,"li",9),t()(),e(32,"div",6)(33,"div"),i(34,"alert \u5F39\u7A97"),t(),e(35,"ul"),i(36," 1. \u6709\u591A\u5C11\u4E2A\u6309\u94AE\uFF08\u6B64\u7528\u4F8B\u6309\u94AE\u4ECE\u5DE6\u5230\u53F3\u4E3A\u786E\u5B9A\u3001\u53D6\u6D88\uFF0C\u786E\u5B9A\u6309\u94AE\u4E3A\u4E3B\u9898\u84DD\u8272\uFF0C\u53D6\u6D88\u4E3A\u4E3B\u8981\u6587\u672C\u8272\uFF09 "),f(37,X,2,1,"li",9),t(),e(38,"ul"),i(39," 2. cancelable \u53C2\u6570\uFF1A\u70B9\u51FB\u906E\u7F69\uFF0C\u5F39\u7A97\u662F\u5426\u53EF\u4EE5\u53D6\u6D88 "),e(40,"li",8),m("click",function(){return n.alert(!0,"HORIZONTAL")}),i(41," true "),t(),e(42,"li",8),m("click",function(){return n.alert(!1,"HORIZONTAL")}),i(43," false "),t()(),e(44,"ul"),i(45," 3. button_align \u53C2\u6570\uFF1A\u6309\u94AE\u5BF9\u9F50\u65B9\u5F0F "),e(46,"li",8),m("click",function(){return n.alert(!0,"HORIZONTAL")}),i(47," HORIZONTAL \u6C34\u5E73\u5BF9\u9F50 "),t(),e(48,"li",8),m("click",function(){return n.alert(!0,"VERTICAL")}),i(49," VERTICAL \u7AD6\u76F4\u5BF9\u9F50 "),t()(),e(50,"ul"),i(51," 4. \u53EA\u6709\u6807\u9898\uFF0C\u6CA1\u6709\u526F\u6807\u9898 "),e(52,"li",8),m("click",function(){return n.alert(!0,"HORIZONTAL",1,!1)}),i(53," \u6D4B\u8BD5 "),t()()(),e(54,"div",6)(55,"div"),i(56,"setNavButtons \u8BBE\u7F6E\u5BFC\u822A\u680F\u6309\u94AE"),t(),e(57,"ul"),f(58,K,2,1,"li",9),t()(),e(59,"div",6)(60,"div"),i(61,"copy \u590D\u5236\u5185\u5BB9\u81F3\u526A\u8D34\u677F"),t(),e(62,"ul")(63,"li",8),m("click",function(d){return n.copy(d,"(\uFF3E\uFF0D\uFF3E)\u590D\u5236\u6210\u529F")}),i(64,"\u590D\u5236\u540E\u63D0\u793A\u201C(\uFF3E\uFF0D\uFF3E)\u590D\u5236\u6210\u529F\u201D"),t(),e(65,"li",8),m("click",function(d){return n.copy(d)}),i(66,"\u590D\u5236\u540E\u6CA1\u63D0\u793A"),t()()(),e(67,"div",6)(68,"div"),i(69,"vibrate"),t(),e(70,"ul")(71,"li",8),m("click",function(){return n.vibrate()}),i(72," \u9707\u52A8\u53CD\u9988 "),t()()(),e(73,"div",6)(74,"div"),i(75,"finish"),t(),e(76,"ul")(77,"li",8),m("click",function(){return n.bridge.finish()}),i(78," \u4E3B\u52A8\u9000\u51FA\u5F53\u524D webview "),t(),e(79,"li",8),m("click",function(){return n.bridge.finish("/mobile/help-center")}),i(80," \u9000\u51FA\u5F53\u524D webview\uFF0C\u5E76\u8DF3\u8F6C\u5230\u65B0\u9875\u9762 \uFF08\u4F7F\u7528\u573A\u666F\uFF1A\u5982\u6253\u5361\u6311\u6218\u652F\u4ED8\u540E\u81EA\u52A8\u8DF3\u8F6C\u5230\u8BE6\u60C5\u9875\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u56DE\u9000\u5230\u767E\u5B9D\u7BB1\u5217\u8868\u9875\uFF0C\u800C\u4E0D\u662F\u6311\u6218\u652F\u4ED8\u9875\uFF09 "),t()()(),e(81,"div",6)(82,"div"),i(83,"\u8DF3\u8F6C\u5E94\u7528\u5E02\u573A\u8BE6\u60C5\u9875(\u5206\u522B\u6D4B\u8BD5 ios\u3001\u5B89\u5353\u3001\u5B89\u5353\u5C0F\u7C73 \u8FD93\u79CD\u60C5\u51B5)"),t(),e(84,"ul")(85,"li",8),m("click",function(){return n.getAppStoreLink("tan-list")}),i(86," \u70AD\u80CC "),t(),e(87,"li",8),m("click",function(){return n.getAppStoreLink("markji")}),i(88," \u58A8\u8BB0 "),t()()(),e(89,"div",6)(90,"div"),i(91,"\u524D\u5F80\u5E94\u7528\u5E02\u573A\u8BC4\u8BBA(\u5206\u522B\u6D4B\u8BD5 ios\u3001\u5B89\u5353\u3001\u5B89\u5353\u5C0F\u7C73 \u8FD93\u79CD\u60C5\u51B5)"),t(),e(92,"ul")(93,"li",8),m("click",function(){return n.getAppStoreCommentLink("tan-list")}),i(94," \u70AD\u80CC "),t(),e(95,"li",8),m("click",function(){return n.getAppStoreCommentLink("markji")}),i(96," \u58A8\u8BB0 "),t()()(),e(97,"div",6)(98,"div"),i(99,"__open_mode"),t(),e(100,"ul")(101,"li")(102,"a",10),i(103,"1 \u6253\u5F00\u5916\u90E8\u6D4F\u89C8\u5668"),t()(),e(104,"li")(105,"a",11),i(106,"2 \u65B0\u5EFA webview"),t()(),e(107,"li")(108,"a",12),i(109,"4 \u5168\u5C4F\u900F\u660E webview"),t()()()()()()),l&2&&(s(4),g("ngForOf",n.autoDetectInfos),s(),g("ngIf",n.envObj),s(26),g("ngForOf",n.showToastType),s(6),g("ngForOf",n.alertButtons),s(21),g("ngForOf",n.navButtonsType))},dependencies:[O,y,w,V,U],styles:[".bridge-container[_ngcontent-%COMP%]{height:100%;overflow-y:scroll;padding:12px 24px;font-size:15px;color:var(--color-primary-text)}.part[_ngcontent-%COMP%]:not(:last-child){padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--color-divider)}.part-title[_ngcontent-%COMP%]{margin-bottom:8px;font-size:20px;font-weight:700}.part-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}.part-item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:4px;font-size:16px;font-weight:700}li[_ngcontent-%COMP%]{margin-bottom:4px;margin-left:16px;list-style:initial;text-decoration:underline}.no-click-part[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{text-decoration:none}.auto-detect-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.error-item[_ngcontent-%COMP%]{color:var(--color-error)}.right-item[_ngcontent-%COMP%]{color:var(--color-theme)}
1.avatar[_ngcontent-%COMP%]{width:32px;height:32px}li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline-block;width:100%}"]});let a=c;return a})();export{le as BridgeTestComponent};
2//# sourceMappingURL=chunk-BP6ECEQ7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.