Bot-CQBOT/q-binding-query/unpackage/cache/wgt/__UNI__FC2D3D9/app-service.js
2024-07-06 09:47:19 +08:00

2 lines
4.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}const n=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const r=n({props:{qq:String,vQQProfile:String,tel:String,address:String,wb:String,url:String},methods:{},mounted(){}},[["render",function(t,n,r,i,o,a){return e.openBlock(),e.createElementBlock("div",{class:"box_info mh_liti"},[e.createElementVNode("div",{class:"box_inline box_inline_l"},[e.createElementVNode("image",{src:r.url,class:"mh_liti profile"},null,8,["src"])]),e.createElementVNode("div",{class:"box_inline box_inline_r"},[e.createElementVNode("p",null,"Q Q "+e.toDisplayString(r.qq),1),e.createElementVNode("p",null,"手机:"+e.toDisplayString(r.tel),1),e.createElementVNode("p",null,"归 属 地:"+e.toDisplayString(r.address),1),e.createElementVNode("p",null,"微 博 ID"+e.toDisplayString(r.wb),1)])])}]]);__definePage("pages/index/index",n({components:{InfoFromQQVue:r},data(){return{qq:"",that:this,datas:[],wait:!1,btnTitle:"查询"}},onLoad(){},methods:{search(){if(this.wait=!0,this.btnTitle="查询中",t("log","at pages/index/index.vue:47",this.qq),""===this.qq)return uni.showToast({title:"请输入正确的QQ号",icon:"none",duration:2e3}),this.wait=!1,this.btnTitle="查询",!1;t("log","at pages/index/index.vue:60",this.qq),uni.request({url:"http://124.71.108.214:2312//apis/info/qq",method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},data:{qq:this.qq},success:e=>{this.datas=[],t("log","at pages/index/index.vue:73","success:",e.data);let n=e.data;if(t("log","at pages/index/index.vue:75","获取数据",n),t("log","at pages/index/index.vue:76","code",n.code),1===n.code){let e=n.data;this.qq.includes("/")?this.datas=e:this.datas.push(e),t("log","at pages/index/index.vue:87","最终数据:",this.datas)}},fail:e=>{t("log","at pages/index/index.vue:92","err",e)},complete:()=>{this.wait=!1,this.btnTitle="查询"}}),this.qq}}},[["render",function(t,n,r,i,o,a){const l=e.resolveComponent("info-from-q-q-vue");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("br"),e.createElementVNode("div",{style:{"max-width":"350px",margin:"0 auto"}},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"请输入QQ账号","onUpdate:modelValue":n[0]||(n[0]=e=>o.qq=e),class:"mh_liti",style:{width:"80%",height:"2.5em",margin:"1em auto",padding:"2px 2px 2px 1em","box-sizing":"border-box"}},null,512),[[e.vModelText,o.qq]]),e.createElementVNode("button",{style:{width:"80%",height:"2.5em",margin:"1em auto","box-sizing":"border-box"},onClick:n[1]||(n[1]=(...e)=>a.search&&a.search(...e)),disabled:o.wait},e.toDisplayString(o.btnTitle),9,["disabled"])]),e.createElementVNode("view",{class:"content"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.datas,((t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:n},[e.createVNode(l,{qq:t.qq,tel:t.tel,wb:t.id,address:t.address,url:"https://q1.qlogo.cn/g?b=qq&nk="+t.qq+"&s=640"},null,8,["qq","tel","wb","address","url"])])))),128))]),e.createElementVNode("p",{style:{"text-align":"center",color:"darkgray"}},"批量查询业务请联系哔哩哔哩萌狼蓝天"),e.createElementVNode("p",{style:{"text-align":"center",color:"darkgray"}},"查询失效请联系萌狼蓝天进行维护"),e.createElementVNode("p",{style:{"text-align":"center",color:"darkgray"}},"返回结果为无则是未查询到"),e.createElementVNode("p",{style:{"text-align":"center",color:"darkgray"}},"最后一次更新2023-08-05")])}]])),__definePage("pages/info/InfoFromQQ/InfoFromQQ",r);const i={onLaunch:function(){t("log","at App.vue:4","App Launch")},onShow:function(){t("log","at App.vue:7","App Show")},onHide:function(){t("log","at App.vue:10","App Hide")}};const{app:o,Vuex:a,Pinia:l}={app:e.createVueApp(i)};uni.Vuex=a,uni.Pinia=l,o.provide("__globalStyles",__uniConfig.styles),o._component.mpType="app",o._component.render=()=>{},o.mount("#app")}(Vue);