Files
yusheng-h5/unpackage/dist/build/web/assets/pages-feedback-help.-T_Jks9b.js
2025-11-29 11:33:18 +08:00

2 lines
12 KiB
JavaScript
Raw 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.

import{g as e,s as t,f as a,o as l,i as s,w as i,q as o,v as n,p as c,l as r,H as d,m as h,x as m,j as u,F as p,t as g,k as f,I as A,Q as b,c as y,h as k,n as w,b as C,r as D,u as x}from"./index-CjgLNey7.js";import{_}from"./uni-icons.Cd3ohCN4.js";import{r as v}from"./uni-app.es.Lj9F4eZi.js";import{t as S}from"./uni-cloud.es.BWcFvug7.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as E}from"./uni-load-more.CzXabmC7.js";import{h as I}from"./headerHeight.CXXE7c94.js";import{n as L}from"./nav.BPYuvgkN.js";const M=B({name:"uni-data-select",mixins:[S.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,l)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:l}=e;if(l=l?`(${l})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${l}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(t=this.getCurrentCacheKey()){return(e(this.cacheKey)||{})[t]},setCache(a,l=this.getCurrentCacheKey()){let s=e(this.cacheKey)||{};s[l]=a,t(this.cacheKey,s)},removeCache(a=this.getCurrentCacheKey()){let l=e(this.cacheKey)||{};delete l[a],t(this.cacheKey,l)}}},[["render",function(e,t,y,k,w,C){const D=f,x=v(a("uni-icons"),_),S=A,B=b;return l(),s(D,{class:"uni-stat__select"},{default:i((()=>[y.label?(l(),o("span",{key:0,class:"uni-label-text hide-on-phone"},n(y.label+""),1)):c("",!0),r(D,{class:d(["uni-stat-box",{"uni-stat__actived":w.current}])},{default:i((()=>[r(D,{class:d(["uni-select",{"uni-select--disabled":y.disabled}])},{default:i((()=>[r(D,{class:"uni-select__input-box",onClick:C.toggleSelector},{default:i((()=>[w.current?(l(),s(D,{key:0,class:"uni-select__input-text"},{default:i((()=>[h(n(C.textShow),1)])),_:1})):(l(),s(D,{key:1,class:"uni-select__input-text uni-select__input-placeholder"},{default:i((()=>[h(n(C.typePlaceholder),1)])),_:1})),w.current&&y.clear&&!y.disabled?(l(),s(D,{key:2,onClick:m(C.clearVal,["stop"])},{default:i((()=>[r(x,{type:"clear",color:"#c0c4cc",size:"24"})])),_:1},8,["onClick"])):(l(),s(D,{key:3},{default:i((()=>[r(x,{type:w.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"])])),_:1}))])),_:1},8,["onClick"]),w.showSelector?(l(),s(D,{key:0,class:"uni-select--mask",onClick:C.toggleSelector},null,8,["onClick"])):c("",!0),w.showSelector?(l(),s(D,{key:1,class:"uni-select__selector",style:u(C.getOffsetByPlacement)},{default:i((()=>[r(D,{class:d("bottom"==y.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top")},null,8,["class"]),r(B,{"scroll-y":"true",class:"uni-select__selector-scroll"},{default:i((()=>[0===w.mixinDatacomResData.length?(l(),s(D,{key:0,class:"uni-select__selector-empty"},{default:i((()=>[r(S,null,{default:i((()=>[h(n(y.emptyTips),1)])),_:1})])),_:1})):(l(!0),o(p,{key:1},g(w.mixinDatacomResData,((e,t)=>(l(),s(D,{class:"uni-select__selector-item",key:t,onClick:t=>C.change(e)},{default:i((()=>[r(S,{class:d({"uni-select__selector__disabled":e.disable})},{default:i((()=>[h(n(C.formatItemName(e)),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])):c("",!0)])),_:1},8,["class"])])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-fe4b6be6"]]);const Q=B({components:{headerHeight:I,navBar:L},data:()=>({statusBarHeight:0,baseBgUrl:y.PRIMARY_BGURL,problemList:[{title:"问题分类",id:0,list:[{title:"全部问题"}]},{title:"常见问题",id:1,list:[]}],footerList:[{title:"在线客服",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA/5JREFUaEPtmE3ID1EUxp+3LCyIBWWhEAsLhSKEEGKhkBSxIApRFMqbBcqCEIoiCqVQCjuiEEIUhSiEIkShLCgL96czdZvm487cv79ezV1NM3fOPc95ztc9Heriq6OL668GwL9msGHgf2Sgm6SBkgZL6m4Av0t6J+mFpF+tBN0qF+onaZGkWZLGeoqndQXIHbfnoqSTkj7GgokFMETSZmfZxZKwfJX1Q9JpSdskva7yo7+3LgCURfFNKWvjHjcdE/fNXT4bsN7O4oAdlcEQQHZI2unk8Vxp1QHQX9IpSRO8k/BtlDgr6VuJBr2MseWSRnh7Ab5Q0tsqCKoCIDivWpByzldJGySdqBmcKww4DLFwpSlVXKoKACx/w1MeN5lj2aWK0dJ7B1hAJ4wCYmIoE6EASIeXPbchi8yt47M5SJF/zmWomfYdd4KJ0pQbCmCLE7zVEz69hconmAABwwQ6i/PIUIUrBAB+/9SyDT5P4L0pE1zzO276SBIxQUYaJullkawQAMdcUC0xISslHa6pXOhvyyQdtc3HnbGWxgCgwr4y6z+UNDJUi4h91BgYp24QA7CSW7HLGFgvabcps0bSwQjFqvzqs0Ca3pP3cxkAMs8080fYKCtSVZQs2ksMfLIqfs0yUub+IgBQ+cUx0ENSoZBWaZ2SQ8GcbMbrmZdSiwAMNV9ELm608S8pmid2l1V5vhMPmdmoCMBUV7iutDH7pIHQZhyylxS4S1lIiwDMdjn/vP20QNKZNjMwz5pDjqVluRADAAF0iQQ0wcwz7cSTFoGiYM2wlIlsWgnOSQwYDYAGi4qcXlxIVllXWgcL2YZCiYL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Ylx/17lI7/NX1DUmi7gVebIPtuivVzBD4lnVIE/h0nV4AP/9U0aanwXSJ0Lbm1yBGwq1ld1cNbzwte0+S3RM/7t/nedq/H1ozeEdhr4JeZtwyFD0VCv0fh+6bQCTOofeknkza5nnc9nZzzubPQuSZlrjgPfwTUHv/ITJsi8KkRuNDcqP7d2htgp5nvh/Jne96+OFbEPvwLYM9U4GMRuNy0BOrfrWm1FbzahKE22POxCFxrvHxm6vChCGwEPjjwahUOTM3zXRFwZxzlvAr299CcAYqljcvSVsRu4bqnB0M0VIEPpVBpAdXgxxBQFb62gOrwNQWMAl9LwGjwNQSMCl9awOjwJQXMBD4kwF2J35kjk65FbD2wz7mhbSd1EFg7ZCVsjle0+7vrj9G2Eq9pjgO127Lbxj7vbYPX/2E60ylhh4D7sVZC10+bHVgfEdeBsy2U8r5O1UqY/s35JwpdG5oNZttoT9xCANofvG6avvcdhIpC6LQ6VdgX3/uhGkgdcBL3xbaUk4DsgpgLmHWI/gAf2LUxhCYAdwAAAABJRU5ErkJggg=="}],page:1,limit:10,typeData:null,typeId:null,ThemeData:null}),onLoad(a){const{id:l,h:s}=a;t("token",l),e("token")&&this.getHelpList(),this.statusBarHeight=s,t("BarHeight",s),e("Theme_Data")&&(this.ThemeData=JSON.parse(e("Theme_Data")))},methods:{async getHelpList(){k.get("/api/Help/help_type",{token:e("token")||""}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[0].list=t.map((e=>({...e,text:`${e.type_name}的相关问题`,value:e.id}))),this.typeId=t.length?t[0].id:null,this.typeData=t.length?t[0]:null),this.$nextTick((()=>{this.getProblemList(this.typeId)})),this.errorPage=!1})).catch((e=>{this.errorPage=!0}))},async getProblemList(t){k.get("/api/Help/help_list",{token:e("token")||"",type:t,page:this.page,page_limit:this.limit}).then((e=>{const{data:t,code:a}=e;a&&(this.problemList[1].list=t)}))},changeType(e){this.typeId=e,this.typeData=this.problemList[0].list.filter((e=>this.typeId===e.id))[0],this.getProblemList(this.typeId),this.problemList[1].list=[]},jumpPage(e){w({url:`/pages/feedback/problemDetail?id=${e.id}`})},operate(t){if(t)w({url:`/pages/feedback/feedback?id=${e("token")}`});else{const e=C().platform;"ios"===e?(console.log("调用iOS原生方法"),window.webkit.messageHandlers.nativeHandler.postMessage({action:"customerService"})):"android"===e&&(console.log("调用Android原生方法"),window.Android.customerService())}},back(){this.closeWeb()},closeWeb(){const e=C().platform;"ios"===e?window.webkit.messageHandlers.nativeHandler.postMessage({action:"closeWeb"}):"android"===e&&window.Android.closeWeb()}}},[["render",function(e,t,d,m,A,b){var y;const k=D("navBar"),w=f,S=v(a("uni-icons"),_),B=v(a("uni-data-select"),M),I=v(a("uni-load-more"),E);return l(),s(w,{class:"view-page",style:u({backgroundImage:`url('${(null==(y=A.ThemeData)?void 0:y.app_bg)||A.baseBgUrl}')`})},{default:i((()=>[r(k,{style:u({marginTop:`${A.statusBarHeight}${"ios"===C().platform?"px":"dp"}`}),navTitle:"帮助与反馈",emitBack:!0,onBackEvent:b.back},null,8,["style","onBackEvent"]),r(w,{class:"content"},{default:i((()=>[r(w,{class:"top-tip flex-line flex-spaceB"},{default:i((()=>[r(w,{class:""},{default:i((()=>[r(w,{class:"tip"},{default:i((()=>[h(" Hi有什么可以帮你 ")])),_:1}),r(w,{class:"color-6 font-24 font-w400"},{default:i((()=>[h(" 尽全力,帮助你 ")])),_:1})])),_:1}),r(w,{class:"kefu-icon"},{default:i((()=>[x("img",{src:"/h5/web/assets/kefu-BdcHH_a1.png",alt:""})])),_:1})])),_:1}),r(w,{class:"problem-view"},{default:i((()=>[(l(!0),o(p,null,g(A.problemList,((e,a)=>(l(),s(w,{class:"problem-box",key:a},{default:i((()=>[r(w,{class:"box-title color-0 font-w500 font-32"},{default:i((()=>{var t;return[h(n(e.id?`${null==(t=A.typeData)?void 0:t.type_name}相关问题`:e.title),1)]})),_:2},1024),e.list&&0!==e.list.length?(l(),s(w,{key:0,class:"box-content"},{default:i((()=>[e.id?(l(!0),o(p,{key:0},g(e.list,((t,a)=>(l(),s(w,{class:"flex-line box-line box-lines",onClick:e=>b.jumpPage(t)},{default:i((()=>[r(w,{class:"title"},{default:i((()=>[e.id?(l(),o(p,{key:0},[h(n(t.title),1)],64)):c("",!0)])),_:2},1024),r(w,{class:""},{default:i((()=>[e.id?(l(),s(S,{key:0,type:"right",size:"14",color:"rgb(153, 153, 153)"})):c("",!0)])),_:2},1024)])),_:2},1032,["onClick"])))),256)):(l(),s(B,{key:1,class:"box-line",modelValue:A.typeId,"onUpdate:modelValue":t[0]||(t[0]=e=>A.typeId=e),clear:!1,localdata:e.list,onChange:b.changeType},null,8,["modelValue","localdata","onChange"]))])),_:2},1024)):(l(),s(w,{key:1,class:""},{default:i((()=>[r(I,{status:"noMore"})])),_:1}))])),_:2},1024)))),128))])),_:1})])),_:1}),r(w,{class:"footer flex-line"},{default:i((()=>[(l(!0),o(p,null,g(A.footerList,((e,t)=>(l(),s(w,{class:"footer-button flex-line",onClick:e=>b.operate(t),key:t},{default:i((()=>[r(w,{class:"icon"},{default:i((()=>[x("img",{src:e.icon,alt:""},null,8,["src"])])),_:2},1024),r(w,{class:"title ml-6 color-3 font-28 font-w400"},{default:i((()=>[h(n(e.title),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["style"])}],["__scopeId","data-v-f9b06fcd"]]);export{Q as default};