This commit is contained in:
mkm 2023-11-09 09:38:43 +08:00
parent 8aaae285a4
commit e6b3cf8736
150 changed files with 0 additions and 237 deletions

View File

@ -1 +0,0 @@
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as c,o as g};

View File

@ -1 +0,0 @@
.as-us .img[data-v-66368619]{width:5rem;height:5rem;border-radius:.625rem;margin-top:3rem}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.avatar-upload[data-v-b0182dd0]{background:#fff;overflow:hidden}.avatar-upload[data-v-b0182dd0]:after{border:none}

View File

@ -1 +0,0 @@
uni-page-body[data-v-76211013]{height:100%}

View File

@ -1 +0,0 @@
uni-page-body[data-v-cb3b940a]{height:100%}

View File

@ -1 +0,0 @@
.u-swipe-action[data-v-d0fdd334]{width:auto;height:initial;position:relative;overflow:hidden}.u-swipe-view[data-v-d0fdd334]{display:flex;flex-direction:row;height:initial;position:relative}.u-swipe-content[data-v-d0fdd334]{flex:1}.u-swipe-del[data-v-d0fdd334]{position:relative;font-size:.9375rem;color:#fff}.u-btn-text[data-v-d0fdd334]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}

View File

@ -1 +0,0 @@
function t(t,o,a){}var o={methods:{dispatch(t,o,a){let s=this.$parent||this.$root,n=s.$options.name;for(;s&&(!n||n!==t);)s=s.$parent,s&&(n=s.$options.name);s&&s[o](a)},broadcast(o,a,s){t.call(this,o,a,s)}}};export{o as E};

View File

@ -1 +0,0 @@
uni-page-body[data-v-104bb953]{height:100%}

View File

@ -1 +0,0 @@
var i="/mobile/static/images/icon/icon_visit.png";export{i as _};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.article-title[data-v-937fbb6c]:before{content:"";width:.25rem;height:1.0625rem;display:block;margin-right:.3125rem;background:#4173ff}

View File

@ -1 +0,0 @@
.u-divider[data-v-ba53c472]{width:100%;position:relative;text-align:center;display:flex;justify-content:center;align-items:center;overflow:hidden;flex-direction:row}.u-divider-line[data-v-ba53c472]{border-bottom:1px solid #e5e5e5;transform:scaleY(.5);transform-origin:center}.u-divider-line--bordercolor--primary[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--success[data-v-ba53c472]{border-color:#19be6b}.u-divider-line--bordercolor--error[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--info[data-v-ba53c472]{border-color:#909399}.u-divider-line--bordercolor--warning[data-v-ba53c472]{border-color:#f90}.u-divider-text[data-v-ba53c472]{white-space:nowrap;padding:0 .5rem;display:inline-flex}uni-page-body[data-v-e905ed52]{height:100%}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1 +0,0 @@
.news-card[data-v-4508fd44]{border-bottom:1px solid #f8f8f8}.news-card-content-title[data-v-4508fd44]{-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.news-card-content-intro[data-v-4508fd44]{-webkit-line-clamp:1;overflow:hidden;word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}

View File

@ -1 +0,0 @@
import{_ as e}from"./u-image.e15c05f6.js";import{d as t,r as s,a,o as l,c as r,w as i,b as c,h as d,l as f,t as m,k as n,n as u,i as x}from"./index.26a6cf84.js";import{_ as p}from"./icon_visit.9ad00ab7.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";var o=_(t({__name:"news-card",props:{item:{default:{}},newsId:{default:""}},setup:t=>(_,o)=>{const w=s(a("u-image"),e),g=n,h=u,j=x;return l(),r(j,{url:`/pages/news_detail/news_detail?id=${t.newsId}`},{default:i((()=>[c(g,{class:"news-card flex bg-white px-[20rpx] py-[32rpx]"},{default:i((()=>[t.item.image?(l(),r(g,{key:0,class:"mr-[20rpx]"},{default:i((()=>[c(w,{src:t.item.image,width:"240",height:"180"},null,8,["src"])])),_:1})):d("v-if",!0),c(g,{class:"news-card-content flex flex-col justify-between flex-1"},{default:i((()=>[c(g,{class:"news-card-content-title text-lg font-medium"},{default:i((()=>[f(m(t.item.title),1)])),_:1}),c(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[f(m(t.item.desc),1)])),_:1}),c(g,{class:"text-muted text-xs w-full flex justify-between mt-[12rpx]"},{default:i((()=>[c(g,null,{default:i((()=>[f(m(t.item.create_time),1)])),_:1}),c(g,{class:"flex items-center"},{default:i((()=>[c(h,{src:p,class:"w-[30rpx] h-[30rpx]"}),c(g,{class:"ml-[10rpx]"},{default:i((()=>[f(m(t.item.click),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-4508fd44"]]);export{o as _};

View File

@ -1 +0,0 @@
import{C as t}from"./index.26a6cf84.js";function a(){return t.get({url:"/article/cate"})}function r(a){return t.get({url:"/article/lists",data:a})}function e(a){return t.get({url:"/article/detail",data:a})}function c(a){return t.post({url:"/article/addCollect",data:a},{isAuth:!0})}function l(a){return t.post({url:"/article/cancelCollect",data:a},{isAuth:!0})}function n(){return t.get({url:"/article/collect"})}export{a,e as b,l as c,c as d,n as e,r as g};

View File

@ -1 +0,0 @@
.tab.active[data-v-9df85c86]{height:auto}.tab.inactive[data-v-9df85c86]{height:0;overflow:visible}.u-sticky[data-v-d82ef4b0]{z-index:9999999999}[data-v-c1344dea]::-webkit-scrollbar,[data-v-c1344dea]::-webkit-scrollbar,[data-v-c1344dea]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.scroll-box[data-v-c1344dea]{height:100%;position:relative}.tab-fixed[data-v-c1344dea]{position:sticky;top:0;width:100%}uni-scroll-view[data-v-c1344dea] ::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.scroll-view[data-v-c1344dea]{width:100%;white-space:nowrap;position:relative}.tab-item[data-v-c1344dea]{position:relative;display:inline-block;text-align:center;transition-property:background-color,color}.tab-bar[data-v-c1344dea]{position:absolute;bottom:.1875rem}.tabs-scorll-flex[data-v-c1344dea]{display:flex;justify-content:space-between}.news-search[data-v-84965902]{margin-bottom:.0625rem}.news-list[data-v-84965902]{height:calc(100vh - 8.5rem - env(safe-area-inset-bottom))}

View File

@ -1 +0,0 @@
.news-detail[data-v-80019d60]{height:100%}.news-detail-header[data-v-80019d60]{border-bottom:.0625rem solid #f8f8f8}.news-detail-section .summary[data-v-80019d60]{border-radius:.375rem;background-color:#f7f7f7}.news-detail .panel-btn[data-v-80019d60]{position:fixed;right:.9375rem;height:2.5rem;bottom:2.5rem;border-radius:1.25rem;background:rgba(255,255,255,.95);box-shadow:0 0 10px rgba(0,0,0,.16)}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as e,V as a,z as s,o as t,c as r,w as l,b as o,e as d,f as u,F as c,k as p,r as f,a as i,l as m,t as n}from"./index.26a6cf84.js";import{_}from"./z-paging.dba6931f.js";import{b as g}from"./recharge.ff7c9ddf.js";import"./plugin-vue_export-helper.21dcd24c.js";const x=e({__name:"recharge_record",setup(e){const x=a(),b=s([]),h=async(e,a)=>{try{const s=await g({page_no:e,page_size:a});x.value.complete(s.lists)}catch(s){x.value.complete(!1)}};return(e,a)=>{const s=p,g=f(i("z-paging"),_);return t(),r(g,{ref_key:"paging",ref:x,modelValue:b.value,"onUpdate:modelValue":a[0]||(a[0]=e=>b.value=e),onQuery:h,"show-loading-more-when-reload":!0},{default:l((()=>[o(s,{class:"pt-2.5"},{default:l((()=>[(t(!0),d(c,null,u(b.value,(e=>(t(),r(s,{key:e.id,class:"bg-white border-solid border-b border-0 border-light px-[26rpx] py-[24rpx]"},{default:l((()=>[o(s,{class:"flex justify-between"},{default:l((()=>[o(s,{class:"mr-2"},{default:l((()=>[m(n(e.tips),1)])),_:2},1024),o(s,{class:"text-lg text-primary"},{default:l((()=>[m(" +"+n(e.order_amount),1)])),_:2},1024)])),_:2},1024),o(s,{class:"text-sm text-muted mr-1"},{default:l((()=>[m(n(e.create_time),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["modelValue"])}}});export{x as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as a,z as t,W as s,o as e,c as r,w as n,b as l,aD as o,aw as p,r as c,a as u,k as i}from"./index.26a6cf84.js";import{_ as m}from"./u-parse.a47c6099.js";import"./plugin-vue_export-helper.21dcd24c.js";const d=a({__name:"agreement",setup(a){let d=t("");const f=t("");return s((a=>{a.type&&(d=a.type,(async a=>{const t=await o({type:a});f.value=t.content,p({title:String(t.title)})})(d))})),(a,t)=>{const s=c(u("u-parse"),m),o=i;return e(),r(o,{class:""},{default:n((()=>[l(s,{html:f.value},null,8,["html"])])),_:1})}}});export{d as default};

View File

@ -1 +0,0 @@
import{d as s,u as e,o as a,c as t,w as o,b as r,g as c,l,t as n,n as u,k as f}from"./index.26a6cf84.js";import{_ as d}from"./plugin-vue_export-helper.21dcd24c.js";var i=d(s({__name:"as_us",setup(s){const d=e();return(s,e)=>{const i=u,p=f;return a(),t(p,{class:"as-us flex flex-1 flex-col items-center"},{default:o((()=>[r(i,{src:c(d).getWebsiteConfig.shop_logo,mode:"",class:"img"},null,8,["src"]),r(p,{class:"text-content mt-[20rpx]"},{default:o((()=>[l("当前版本"+n(c(d).config.version),1)])),_:1})])),_:1})}}}),[["__scopeId","data-v-66368619"]]);export{i as default};

View File

@ -1 +0,0 @@
import{d as e,V as a,z as o,a8 as l,m as t,o as r,c as s,w as u,b as d,l as i,t as m,aj as n,ak as c,aK as f,ag as b,r as p,a as _,k as x}from"./index.26a6cf84.js";import{a as v,_ as h}from"./u-form-item.9efeed79.js";import{_ as j}from"./u-verification-code.3d8dc169.js";import{_ as g}from"./u-form.4eb8cd7e.js";import{_ as k}from"./u-button.ae3a4a51.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";import"./emitter.5b880544.js";var V=w(e({__name:"bind_mobile",setup(e){const w=a(),V=o(""),y=l(),B=e=>{V.value=e},C=t({type:"bind",mobile:"",code:""}),$=async()=>{var e,a;if(!C.mobile)return uni.$u.toast("请输入手机号码");(null==(e=w.value)?void 0:e.canGetCode)&&(await n({scene:c.BIND_MOBILE,mobile:C.mobile}),uni.$u.toast("发送成功"),null==(a=w.value)||a.start())},I=async()=>C.mobile?C.code?(await f(C,{token:y.temToken}),uni.$u.toast("绑定成功"),y.login(y.temToken),void setTimeout((()=>{b()}),1500)):uni.$u.toast("请输入验证码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=p(_("u-input"),v),l=p(_("u-form-item"),h),t=p(_("u-verification-code"),j),n=x,c=p(_("u-form"),g),f=p(_("u-button"),k);return r(),s(n,{class:"bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[40rpx] box-border"},{default:u((()=>[d(n,{class:"w-full"},{default:u((()=>[d(c,{borderBottom:"","label-width":150},{default:u((()=>[d(l,{label:"手机号",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",modelValue:C.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>C.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(l,{label:"验证码",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",modelValue:C.code,"onUpdate:modelValue":a[1]||(a[1]=e=>C.code=e),placeholder:"请输入验证码",border:!1},null,8,["modelValue"]),d(n,{class:"border-l border-solid border-0 border-light pl-3 text-muted leading-4 ml-3 w-[180rpx]",onClick:$},{default:u((()=>[d(t,{ref_key:"uCodeRef",ref:w,seconds:60,onChange:B,"change-text":"x秒"},null,512),i(" "+m(V.value),1)])),_:1})])),_:1})])),_:1}),d(n,{class:"mt-[40rpx]"},{default:u((()=>[d(f,{type:"primary",shape:"circle",onClick:I},{default:u((()=>[i(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-76211013"]]);export{V as default};

View File

@ -1 +0,0 @@
import{d as a,z as e,m as s,W as o,aw as l,o as t,c as r,w as d,b as u,l as p,t as m,h as i,aE as f,ag as c,k as n,r as _,a as w}from"./index.26a6cf84.js";import{a as b,_ as x}from"./u-form-item.9efeed79.js";import{_ as h}from"./u-form.4eb8cd7e.js";import{_ as v}from"./u-button.ae3a4a51.js";import{_ as V}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";import"./emitter.5b880544.js";var y=V(a({__name:"change_password",setup(a){const V=e(""),y=s({password:"",password_confirm:""}),j=async()=>y.old_password||"set"==V.value?y.password?y.password_confirm?y.password!=y.password_confirm?uni.$u.toast("两次输入的密码不一致"):(await f(y),uni.$u.toast("操作成功"),void setTimeout((()=>{c()}),1500)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入原来的密码");return o((a=>{V.value=a.type||"","set"==V.value&&l({title:"设置登录密码"})})),(a,e)=>{const s=n,o=_(w("u-input"),b),l=_(w("u-form-item"),x),f=_(w("u-form"),h),c=_(w("u-button"),v);return t(),r(s,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:d((()=>[u(s,{class:"w-full"},{default:d((()=>[u(s,{class:"text-2xl font-medium mb-[60rpx]"},{default:d((()=>[p(m("set"==V.value?"设置登录密码":"修改登录密码"),1)])),_:1}),u(f,{borderBottom:"","label-width":150},{default:d((()=>["set"!=V.value?(t(),r(l,{key:0,label:"原密码",borderBottom:""},{default:d((()=>[u(o,{class:"flex-1",type:"password",modelValue:y.old_password,"onUpdate:modelValue":e[0]||(e[0]=a=>y.old_password=a),border:!1,placeholder:"请输入原来的密码"},null,8,["modelValue"])])),_:1})):i("v-if",!0),u(l,{label:"新密码",borderBottom:""},{default:d((()=>[u(o,{class:"flex-1",type:"password",modelValue:y.password,"onUpdate:modelValue":e[1]||(e[1]=a=>y.password=a),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),u(l,{label:"确认密码",borderBottom:""},{default:d((()=>[u(o,{class:"flex-1",type:"password",modelValue:y.password_confirm,"onUpdate:modelValue":e[2]||(e[2]=a=>y.password_confirm=a),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),u(s,{class:"mt-[100rpx]"},{default:d((()=>[u(c,{type:"primary",shape:"circle",onClick:j},{default:d((()=>[p(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-cb3b940a"]]);export{y as default};

View File

@ -1 +0,0 @@
import{_ as t}from"./news-card.bf9d4267.js";import{P as e,aA as s,o as i,c as o,w as a,b as n,x as l,v as h,E as d,e as c,f as u,l as r,t as m,F as p,h as f,k as v,aB as b,aC as w,d as g,V as y,m as k,z as x,r as C,a as _}from"./index.26a6cf84.js";import{_ as W}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as X}from"./z-paging.dba6931f.js";import{e as B,c as $}from"./news.3e6b7eb5.js";import"./u-image.e15c05f6.js";import"./u-icon.7191c6e8.js";import"./icon_visit.9ad00ab7.js";var F=W({name:"u-swipe-action",emits:["click","content-click","open","close"],props:{index:{type:[Number,String],default:""},btnWidth:{type:[String,Number],default:180},disabled:{type:Boolean,default:!1},show:{type:Boolean,default:!1},bgColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},options:{type:Array,default:()=>[]}},watch:{show:{immediate:!0,handler(t,e){t?this.open():this.close()}}},data(){return{moveX:0,scrollX:0,status:!1,movableAreaWidth:0,elId:this.$u.guid(),showBtn:!1}},computed:{movableViewWidth(){return this.movableAreaWidth+this.allBtnWidth+"px"},innerBtnWidth(){return e(this.btnWidth)},allBtnWidth(){return e(this.btnWidth)*this.options.length},btnStyle(){return t=>(t.width=this.btnWidth+"rpx",t)}},mounted(){this.getActionRect()},methods:{btnClick(t){this.status=!1,this.$emit("click",this.index,t)},change(t){this.scrollX=t.detail.x},close(){this.moveX=0,this.status=!1},open(){this.disabled||(this.moveX=-this.allBtnWidth,this.status=!0)},touchend(){this.moveX=this.scrollX,this.$nextTick((function(){0==this.status?this.scrollX<=-this.allBtnWidth/4?(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent(),this.vibrateShort&&s()):(this.moveX=0,this.status=!1,this.emitCloseEvent()):this.scrollX>3*-this.allBtnWidth/4?(this.moveX=0,this.$nextTick((()=>{this.moveX=101})),this.status=!1,this.emitCloseEvent()):(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent())}))},emitOpenEvent(){this.$emit("open",this.index)},emitCloseEvent(){this.$emit("close",this.index)},touchstart(){},getActionRect(){this.$uGetRect(".u-swipe-action").then((t=>{this.movableAreaWidth=t.width,this.$nextTick((()=>{this.showBtn=!0}))}))},contentClick(){1==this.status&&(this.status="close",this.moveX=0),this.$emit("content-click",this.index)}}},[["render",function(t,e,s,g,y,k){const x=v,C=b,_=w;return i(),o(x,{class:""},{default:a((()=>[n(_,{class:"u-swipe-action",style:l({backgroundColor:s.bgColor})},{default:a((()=>[n(C,{class:"u-swipe-view",onChange:k.change,onTouchend:k.touchend,onTouchstart:k.touchstart,direction:"horizontal",disabled:s.disabled,x:y.moveX,style:l({width:k.movableViewWidth?k.movableViewWidth:"100%"})},{default:a((()=>[n(x,{class:"u-swipe-content",onClick:h(k.contentClick,["stop"])},{default:a((()=>[d(t.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"]),y.showBtn?(i(!0),c(p,{key:0},u(s.options,((t,e)=>(i(),o(x,{class:"u-swipe-del",onClick:h((t=>k.btnClick(e)),["stop"]),style:l([k.btnStyle(t.style)]),key:e},{default:a((()=>[n(x,{class:"u-btn-text"},{default:a((()=>[r(m(t.text),1)])),_:2},1024)])),_:2},1032,["onClick","style"])))),128)):f("v-if",!0)])),_:3},8,["onChange","onTouchend","onTouchstart","disabled","x","style"])])),_:3},8,["style"])])),_:3})}],["__scopeId","data-v-d0fdd334"]]);const j=g({__name:"collection",setup(e){const s=y(),l=k([{text:"取消收藏",style:{color:"#FFFFFF",backgroundColor:"#FF2C3C"}}]),h=x([]),d=async(t,e)=>{const{lists:i}=await B();i.forEach((t=>{t.show=!1})),h.value=i,s.value.complete(i)},r=async t=>{try{const e=h.value[t].article_id;await $({id:e}),uni.$u.toast("已取消收藏"),s.value.reload()}catch(e){console.log("取消收藏报错=>",e)}};return(e,m)=>{const f=C(_("news-card"),t),v=C(_("u-swipe-action"),F),b=C(_("z-paging"),X);return i(),o(b,{ref_key:"paging",ref:s,modelValue:h.value,"onUpdate:modelValue":m[0]||(m[0]=t=>h.value=t),onQuery:d,fixed:!1,height:"100%","use-page-scroll":""},{default:a((()=>[(i(!0),c(p,null,u(h.value,((t,e)=>(i(),o(v,{show:t.show,index:e,key:t.id,onClick:r,options:l,"btn-width":"120"},{default:a((()=>[n(f,{item:t,newsId:t.article_id},null,8,["item","newsId"])])),_:2},1032,["show","index","options"])))),128))])),_:1},8,["modelValue"])}}});export{j as default};

View File

@ -1 +0,0 @@
import{d as e,u as t,r as s,a,o as n,c as r,w as c,b as o,g as l,l as u,t as i,h as m,a7 as p,k as f,m as d,e as x,f as y,F as _}from"./index.26a6cf84.js";import{_ as g}from"./u-image.e15c05f6.js";import{_ as h}from"./u-button.ae3a4a51.js";import{a as v}from"./shop.f969658d.js";import"./u-icon.7191c6e8.js";import"./plugin-vue_export-helper.21dcd24c.js";async function b(e){if(!e)return uni.$u.toast("图片错误");uni.$u.toast("长按图片保存")}const j=e({__name:"customer-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:d}=t();return(t,x)=>{const y=s(a("u-image"),g),_=f,v=s(a("u-button"),h);return n(),r(_,{class:"customer-service bg-white flex flex-col justify-center items-center mx-[36rpx] mt-[20rpx] rounded-lg px-[110rpx] pt-[100rpx] pb-[160rpx]"},{default:c((()=>[o(y,{width:"280",height:"280",src:l(d)(e.content.qrcode)},null,8,["src"]),e.content.title?(n(),r(_,{key:0,class:"text-lg mt-[14rpx] font-medium"},{default:c((()=>[u(i(e.content.title),1)])),_:1})):m("v-if",!0),e.content.time?(n(),r(_,{key:1,class:"text-content mt-[40rpx]"},{default:c((()=>[u("服务时间:"+i(e.content.time),1)])),_:1})):m("v-if",!0),e.content.mobile?(n(),r(_,{key:2,class:"text-content mt-[14rpx] flex flex-wrap"},{default:c((()=>[u(" 客服电话:"+i(e.content.mobile)+" ",1),p("a",{class:"ml-[10rpx] phone text-muted underline",href:"tel:"+e.content.mobile}," 拨打 ",8,["href"])])),_:1})):m("v-if",!0),o(_,{class:"mt-[100rpx] w-full"},{default:c((()=>[o(v,{type:"primary",shape:"circle",onClick:x[0]||(x[0]=t=>l(b)(l(d)(e.content.qrcode)))},{default:c((()=>[u(" 保存二维码图片 ")])),_:1})])),_:1})])),_:1})}}}),k=e({__name:"customer_service",setup(e){const t=d({pages:[]});return(async()=>{const e=await v({id:3});t.pages=JSON.parse(e.data)})(),(e,o)=>{const l=s(a("w-customer-service"),j),u=f;return n(),r(u,{class:"customer-service"},{default:c((()=>[(n(!0),x(_,null,y(t.pages,((e,t)=>(n(),r(u,{key:t},{default:c((()=>["customer-service"==e.name?(n(),r(l,{key:0,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0)])),_:2},1024)))),128))])),_:1})}}});export{k as default};

View File

@ -1 +0,0 @@
import{o as r,e}from"./index.26a6cf84.js";import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";var a=o({},[["render",function(o,a){return r(),e("div")}]]);export{a as default};

View File

@ -1 +0,0 @@
import{d as e,V as a,z as o,m as l,o as s,c as r,w as t,b as d,l as u,s as m,t as i,aj as c,ak as p,av as n,ag as f,k as b,r as _,a as x,y as w}from"./index.26a6cf84.js";import{a as v,_ as V}from"./u-form-item.9efeed79.js";import{_ as h}from"./u-verification-code.3d8dc169.js";import{_ as g}from"./u-form.4eb8cd7e.js";import{_ as j}from"./u-button.ae3a4a51.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";import"./emitter.5b880544.js";var k=y(e({__name:"forget_pwd",setup(e){const y=a(),k=o(""),B=l({mobile:"",code:"",password:"",password_confirm:""}),C=e=>{k.value=e},$=async()=>{var e,a;B.mobile&&(null==(e=y.value)?void 0:e.canGetCode)&&(await c({scene:p.FIND_PASSWORD,mobile:B.mobile}),uni.$u.toast("发送成功"),null==(a=y.value)||a.start())},U=async()=>B.mobile?B.password?B.password_confirm?B.password!=B.password_confirm?uni.$u.toast("两次输入的密码不一致"):(await n(B),void setTimeout((()=>{f()}),1500)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=b,l=_(x("u-input"),v),c=_(x("u-form-item"),V),p=_(x("u-verification-code"),h),n=w,f=_(x("u-form"),g),D=_(x("u-button"),j);return s(),r(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:t((()=>[d(o,{class:"w-full"},{default:t((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:t((()=>[u("忘记登录密码")])),_:1}),d(f,{borderBottom:"","label-width":150},{default:t((()=>[d(c,{label:"手机号",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:B.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>B.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(c,{label:"验证码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:B.code,"onUpdate:modelValue":a[1]||(a[1]=e=>B.code=e),placeholder:"请输入验证码",border:!1},null,8,["modelValue"]),d(o,{class:"border-l border-solid border-0 border-light pl-3 text-muted leading-4 ml-3 w-[180rpx]",onClick:$},{default:t((()=>[d(p,{ref_key:"uCodeRef",ref:y,seconds:60,onChange:C,"change-text":"x秒"},null,512),d(n,{class:m(B.mobile?"text-primary":"text-muted")},{default:t((()=>[u(i(k.value),1)])),_:1},8,["class"])])),_:1})])),_:1}),d(c,{label:"新密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:B.password,"onUpdate:modelValue":a[2]||(a[2]=e=>B.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(c,{label:"确认密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:B.password_confirm,"onUpdate:modelValue":a[3]||(a[3]=e=>B.password_confirm=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:t((()=>[d(D,{type:"primary",shape:"circle",onClick:U},{default:t((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-104bb953"]]);export{k as default};

View File

@ -1 +0,0 @@
import{_ as e}from"./u-search.5a7a3cc0.js";import{r as t,a,o as s,c as n,w as l,b as r,i as c,d as i,u as o,e as d,f as u,g as p,F as f,h as m,S as y,j as h,k as g,l as _,t as b,m as v}from"./index.26a6cf84.js";import{_ as x}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as w}from"./u-image.e15c05f6.js";import{n as k}from"./util.871c1879.js";import{_ as j}from"./news-card.bf9d4267.js";import{_ as O}from"./tabbar.c02ed954.js";import{g as C}from"./shop.f969658d.js";import"./u-icon.7191c6e8.js";import"./icon_visit.9ad00ab7.js";import"./u-badge.f4477090.js";var I=x({},[["render",function(i,o){const d=t(a("u-search"),e),u=c;return s(),n(u,{url:"/pages/search/search",class:"search px-[24rpx] py-[14rpx] bg-white","hover-class":"none"},{default:l((()=>[r(d,{placeholder:"请输入关键词搜索",disabled:"","show-action":!1})])),_:1})}]]);const F=i({__name:"banner",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:c}=o();return(i,o)=>{const _=t(a("u-image"),w),b=y,v=h,x=g;return e.content.data.length&&e.content.enabled?(s(),n(x,{key:0,class:"banner h-[340rpx] bg-white translate-y-0"},{default:l((()=>[r(v,{class:"swiper h-full","indicator-dots":e.content.data.length>1,"indicator-active-color":"#4173ff",autoplay:!0},{default:l((()=>[(s(!0),d(f,null,u(e.content.data,((e,t)=>(s(),n(b,{key:t,onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(_,{mode:"aspectFit",width:"100%",height:"100%",src:p(c)(e.image)},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):m("v-if",!0)}}}),S=i({__name:"nav",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:c}=o();return(i,o)=>{const y=t(a("u-image"),w),h=g;return e.content.data.length&&e.content.enabled?(s(),n(h,{key:0,class:"nav pt-[30rpx] pb-[16rpx] bg-white"},{default:l((()=>[r(h,{class:"nav-item flex flex-wrap"},{default:l((()=>[(s(!0),d(f,null,u(e.content.data,((e,t)=>(s(),n(h,{key:t,class:"flex flex-col items-center w-1/5 mb-[30rpx]",onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(y,{width:"41px",height:"41px",src:p(c)(e.image),alt:""},null,8,["src"]),r(h,{class:"mt-[14rpx]"},{default:l((()=>[_(b(e.name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):m("v-if",!0)}}});var U=x(i({__name:"index",setup(e){const c=v({pages:[],article:[]});return(async()=>{var e;const t=await C();c.pages=JSON.parse(null==(e=null==t?void 0:t.page)?void 0:e.data),c.article=t.article})(),(e,i)=>{const o=t(a("w-search"),I),p=t(a("w-banner"),F),y=t(a("w-nav"),S),h=g,b=t(a("news-card"),j),v=t(a("tabbar"),O);return s(),n(h,{class:"index"},{default:l((()=>[(s(!0),d(f,null,u(c.pages,((e,t)=>(s(),n(h,{key:t},{default:l((()=>["search"==e.name?(s(),n(o,{key:0,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0),"banner"==e.name?(s(),n(p,{key:1,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0),"nav"==e.name?(s(),n(y,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0)])),_:2},1024)))),128)),c.article.length?(s(),n(h,{key:0,class:"article"},{default:l((()=>[r(h,{class:"flex items-center article-title mx-[20rpx] my-[30rpx] text-2xl font-medium"},{default:l((()=>[_(" 最新资讯 ")])),_:1}),(s(!0),d(f,null,u(c.article,(e=>(s(),n(b,{key:e.id,"news-id":e.id,item:e},null,8,["news-id","item"])))),128))])),_:1})):m("v-if",!0),r(v)])),_:1})}}}),[["__scopeId","data-v-937fbb6c"]]);export{U as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as a,z as e,W as t,o as s,c as l,w as r,h as c,b as u,l as i,t as o,k as d,n,y as m,r as p,a as f}from"./index.26a6cf84.js";import{_ as x}from"./u-parse.a47c6099.js";import{_}from"./u-icon.7191c6e8.js";import{_ as v}from"./icon_visit.9ad00ab7.js";import{b as w,c as b,d as h}from"./news.3e6b7eb5.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var j=y(a({__name:"news_detail",setup(a){const y=e({});let j="";const k=async a=>{y.value=await w({id:a})};return t((a=>{j=a.id,k(j)})),(a,e)=>{const t=d,w=n,g=m,z=p(f("u-parse"),x),$=p(f("u-icon"),_);return s(),l(t,{class:"news-detail bg-white"},{default:r((()=>[c(" 标题信心 "),u(t,{class:"news-detail-header py-[20rpx] px-[30rpx]"},{default:r((()=>[u(t,{class:"text-3xl font-medium"},{default:r((()=>[i(o(y.value.title),1)])),_:1}),u(t,{class:"flex mt-[20rpx] text-xs"},{default:r((()=>[y.value.author?(s(),l(t,{key:0,class:"mr-[40rpx]"},{default:r((()=>[i("作者: "+o(y.value.author),1)])),_:1})):c("v-if",!0),u(t,{class:"text-muted mr-[40rpx] flex-1"},{default:r((()=>[i(o(y.value.create_time),1)])),_:1}),u(t,{class:"flex items-center text-muted flex-none"},{default:r((()=>[u(w,{src:v,class:"w-[30rpx] h-[30rpx]"}),u(t,{class:"ml-[10rpx]"},{default:r((()=>[i(o(y.value.click),1)])),_:1})])),_:1})])),_:1})])),_:1}),c(" 咨询内容 "),u(t,{class:"news-detail-section bg-white p-[24rpx]"},{default:r((()=>[c(" 摘要 "),y.value.abstract?(s(),l(t,{key:0,class:"summary p-[20rpx] text-base"},{default:r((()=>[u(g,{class:"font-medium"},{default:r((()=>[i("摘要: ")])),_:1}),i(" "+o(y.value.abstract),1)])),_:1})):c("v-if",!0),c(" 内容 "),u(t,{class:"mt-[20rpx]"},{default:r((()=>[u(z,{html:y.value.content},null,8,["html"])])),_:1})])),_:1}),u(t,{class:"panel-btn flex items-center px-[34rpx]",onClick:e[0]||(e[0]=a=>(async a=>{try{y.value.collect?(await b({id:a}),uni.$u.toast("已取消收藏")):(await h({id:a}),uni.$u.toast("收藏成功")),k(j)}catch(e){}})(y.value.id))},{default:r((()=>[u($,{name:y.value.collect?"star-fill":"star",size:"40",color:y.value.collect?"#F7BA47":"#333"},null,8,["name","color"]),u(g,{class:"ml-[10rpx]"},{default:r((()=>[i("收藏")])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-80019d60"]]);export{j as default};

View File

@ -1 +0,0 @@
import{d as e,z as a,aQ as s,m as t,A as r,W as l,o as u,e as i,h as c,b as o,w as d,g as n,l as m,t as f,c as _,F as p,J as g,H as x,r as y,a as h,y as v,k as w}from"./index.26a6cf84.js";import{g as b,_ as j,a as k}from"./pay.7f11ad07.js";import{_ as O}from"./u-image.e15c05f6.js";import{_ as R}from"./u-button.ae3a4a51.js";import{_ as A}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";var C=A(e({__name:"payment_result",setup(e){const A={succeed:{text:"支付成功",image:"/static/images/payment/icon_succeed.png"},waiting:{text:"等待支付",image:"/static/images/payment/icon_waiting.png"}},C=a(s.LOADING),E=a({id:"",from:""}),I=t({order:{}}),L=r((()=>{const e=!!I.pay_status;return A[e?"succeed":"waiting"]})),N=()=>{g({url:"/pages/index/index"})},z=()=>{if("recharge"===E.value.from)x({url:"/packages/pages/recharge/recharge"})};return l((async e=>{try{if(!e.id)throw new Error("订单不存在");E.value=e,await new Promise(((e,a)=>{b({order_id:E.value.id,from:E.value.from}).then((a=>{Object.assign(I,a),e(a)})).catch((e=>{a(e)}))})),C.value=s.NORMAL}catch(a){console.log(a),C.value=s.ERROR}})),(e,a)=>{const s=y(h("u-empty"),j),t=y(h("u-image"),O),r=v,l=w,g=y(h("u-button"),R),x=y(h("page-status"),k);return u(),i(p,null,[c(" 页面状态 "),o(x,{status:C.value},{error:d((()=>[o(s,{text:"订单不存在",mode:"order"})])),default:d((()=>[o(l,{class:"payment-result p-[20rpx]"},{default:d((()=>[o(l,{class:"result bg-white p-[20rpx] rounded-md"},{default:d((()=>[o(l,{class:"flex flex-col items-center my-[40rpx]"},{default:d((()=>[c(" 支付状态图片 "),o(t,{class:"status-image",src:n(L).image,width:"100",height:"100",shape:"circle"},null,8,["src"]),c(" 支付状态文字 "),o(r,{class:"text-2xl font-medium mt-[20rpx]"},{default:d((()=>[m(f(n(L).text),1)])),_:1}),o(l,{class:"text-3xl font-medium mt-[20rpx]"},{default:d((()=>[m(" ¥ "+f(I.order.order_amount),1)])),_:1})])),_:1}),c(" 支付信息 "),o(l,{class:"result-info"},{default:d((()=>[o(l,{class:"result-info__item"},{default:d((()=>[o(r,null,{default:d((()=>[m("订单编号")])),_:1}),o(r,null,{default:d((()=>[m(f(I.order.order_sn),1)])),_:1})])),_:1}),o(l,{class:"result-info__item"},{default:d((()=>[o(r,null,{default:d((()=>[m("付款时间")])),_:1}),o(r,null,{default:d((()=>[m(f(I.order.pay_time),1)])),_:1})])),_:1}),o(l,{class:"result-info__item"},{default:d((()=>[o(r,null,{default:d((()=>[m("支付方式")])),_:1}),I.pay_status?(u(),_(r,{key:0},{default:d((()=>[m(f(I.order.pay_way||"-"),1)])),_:1})):(u(),_(r,{key:1},{default:d((()=>[m("未支付")])),_:1}))])),_:1})])),_:1})])),_:1}),o(l,{class:"mt-[40rpx]"},{default:d((()=>[o(l,{class:"mb-[20rpx]"},{default:d((()=>["recharge"==E.value.from?(u(),_(g,{key:0,type:"primary",shape:"circle","hover-class":"none",onClick:z},{default:d((()=>[m(" 继续充值 ")])),_:1})):c("v-if",!0)])),_:1}),o(l,{class:"mb-[20rpx]"},{default:d((()=>[o(g,{type:"primary",plain:"",shape:"circle","hover-class":"none",onClick:N},{default:d((()=>[m(" 返回首页 ")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["status"])],2112)}}}),[["__scopeId","data-v-514986f8"]]);export{C as default};

View File

@ -1 +0,0 @@
import{d as e,z as a,u as o,A as s,m as l,o as t,c as r,w as u,b as d,g as m,l as p,v as c,h as n,au as i,ag as f,r as _,a as b,i as x,k as g}from"./index.26a6cf84.js";import{a as w,_ as h}from"./u-form-item.9efeed79.js";import{_ as v}from"./u-form.4eb8cd7e.js";import{_ as V}from"./u-checkbox.ba902ed1.js";import{_ as y}from"./u-button.ae3a4a51.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.7191c6e8.js";import"./emitter.5b880544.js";var k=j(e({__name:"register",setup(e){const j=a(!1),k=o(),$=s((()=>1==k.getLoginConfig.login_agreement)),B=l({account:"",password:"",password_confirm:""}),C=async()=>!j.value&&$.value?uni.$u.toast("请勾选已阅读并同意《服务协议》和《隐私协议》"):B.account?B.password?B.password_confirm?B.password!=B.password_confirm?uni.$u.toast("两次输入的密码不一致"):(await i(B),void setTimeout((()=>{f()}),1500)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入账号");return(e,a)=>{const o=_(b("u-input"),w),s=_(b("u-form-item"),h),l=_(b("u-form"),v),i=x,f=g,k=_(b("u-checkbox"),V),U=_(b("u-button"),y);return t(),r(f,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[40rpx] box-border"},{default:u((()=>[d(f,{class:"w-full"},{default:u((()=>[d(l,{borderBottom:"","label-width":150},{default:u((()=>[d(s,{label:"创建账号",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",modelValue:B.account,"onUpdate:modelValue":a[0]||(a[0]=e=>B.account=e),border:!1,placeholder:"请输入账号"},null,8,["modelValue"])])),_:1}),d(s,{label:"设置密码",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",type:"password",modelValue:B.password,"onUpdate:modelValue":a[1]||(a[1]=e=>B.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(s,{label:"确认密码",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",type:"password",modelValue:B.password_confirm,"onUpdate:modelValue":a[2]||(a[2]=e=>B.password_confirm=e),placeholder:"请确认密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),m($)?(t(),r(f,{key:0,class:"mt-[40rpx]"},{default:u((()=>[d(k,{modelValue:j.value,"onUpdate:modelValue":a[5]||(a[5]=e=>j.value=e),shape:"circle"},{default:u((()=>[d(f,{class:"text-xs flex"},{default:u((()=>[p(" 已阅读并同意 "),d(f,{onClick:a[3]||(a[3]=c((()=>{}),["stop"]))},{default:u((()=>[d(i,{class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=service"},{default:u((()=>[p(" 《服务协议》 ")])),_:1})])),_:1}),p(" 和 "),d(f,{onClick:a[4]||(a[4]=c((()=>{}),["stop"]))},{default:u((()=>[d(i,{class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=privacy"},{default:u((()=>[p(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})):n("v-if",!0),d(f,{class:"mt-[60rpx]"},{default:u((()=>[d(U,{type:"primary",shape:"circle",onClick:C},{default:u((()=>[p(" 注册 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-6052d898"]]);export{k as default};

View File

@ -1 +0,0 @@
import{d as e,A as a,o as s,c as t,w as l,h as r,g as c,b as o,l as h,e as u,f as n,t as i,F as d,k as p,m as _,z as f,V as m,al as g,aM as x,aN as y,aO as v,az as b,r as w,a as k}from"./index.26a6cf84.js";import{_ as j}from"./u-search.5a7a3cc0.js";import{_ as C}from"./news-card.bf9d4267.js";import{_ as V}from"./z-paging.dba6931f.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{b as I}from"./shop.f969658d.js";import{g as S}from"./news.3e6b7eb5.js";import"./u-icon.7191c6e8.js";import"./u-image.e15c05f6.js";import"./icon_visit.9ad00ab7.js";var U=z(e({__name:"suggest",props:{hot_search:{default:()=>({data:[],status:0})},his_search:{default:()=>[]}},emits:["search","clear"],setup(e,{emit:_}){const f=e,m=a((()=>f.hot_search.data.filter((e=>e.name)))),g=e=>{_("search",e)};return(a,f)=>{const x=p;return s(),t(x,{class:"suggest bg-white"},{default:l((()=>[r(" 热门搜索 "),1==e.hot_search.status&&c(m).length?(s(),t(x,{key:0,class:"hot"},{default:l((()=>[o(x,{class:"font-medium pl-[24rpx] pt-[26rpx] pb-[6rpx] text-lg"},{default:l((()=>[h("热门搜索")])),_:1}),o(x,{class:"w-full px-[24rpx]"},{default:l((()=>[(s(!0),u(d,null,n(c(m),((e,a)=>(s(),t(x,{key:a,class:"keyword truncate max-w-full",onClick:a=>g(e.name)},{default:l((()=>[h(i(e.name),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0),1==e.hot_search.status&&c(m).length&&e.his_search.length?(s(),t(x,{key:1,class:"mx-[24rpx] my-[40rpx] border-b border-solid border-0 border-light"})):r("v-if",!0),r(" 历史搜索 "),e.his_search.length?(s(),t(x,{key:2,class:"history"},{default:l((()=>[o(x,{class:"flex justify-between px-[24rpx] pb-[6rpx] pt-[26rpx]"},{default:l((()=>[o(x,{class:"text-lg font-medium"},{default:l((()=>[h("历史搜索")])),_:1}),o(x,{class:"text-xs text-muted",onClick:f[0]||(f[0]=()=>_("clear"))},{default:l((()=>[h("清空")])),_:1})])),_:1}),o(x,{class:"w-full px-[24rpx]"},{default:l((()=>[(s(!0),u(d,null,n(e.his_search,((e,a)=>(s(),t(x,{key:a,class:"keyword truncate",onClick:a=>g(e)},{default:l((()=>[h(i(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-6ff22e4e"]]);var A=z(e({__name:"search",setup(e){const a=_({hot_search:{data:[],status:1},his_search:[],result:[],searching:!1}),c=f(""),h=m(),i=e=>{c.value=e,c.value&&(a.his_search.includes(c.value)||(a.his_search.unshift(c.value),g.set(x,a.his_search))),h.value.reload(),a.searching=!0},z=async()=>{(await b({title:"温馨提示",content:"是否清空历史记录?"})).confirm&&(g.set(x,""),a.his_search=[])},A=async(e,a)=>{try{const{lists:s}=await S({keyword:c.value,page_no:e,page_size:a});h.value.complete(s)}catch(s){console.log("报错=>",s),h.value.complete(!1)}};return(async()=>{try{a.hot_search=await I()}catch(e){console.log("获取热门搜索失败=>",e)}})(),a.his_search=g.get(x)||[],(e,_)=>{const f=w(k("u-search"),j),m=p,g=w(k("news-card"),C),x=w(k("z-paging"),V);return s(),t(m,{class:"search"},{default:l((()=>[r(" 搜索框 "),o(m,{class:"px-[24rpx] py-[14rpx] bg-white"},{default:l((()=>[o(f,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=e=>c.value=e),placeholder:"请输入关键词搜索",height:"72",onSearch:i,onCustom:i,onClear:_[1]||(_[1]=e=>a.searching=!1)},null,8,["modelValue"])])),_:1}),r(" 搜索 "),o(m,{class:"search-content"},{default:l((()=>[r(" "),y(o(U,{onSearch:i,onClear:z,hot_search:a.hot_search,his_search:a.his_search},null,8,["hot_search","his_search"]),[[v,!a.searching]]),r(" "),y(o(m,{class:"search-content-s pt-[20rpx]"},{default:l((()=>[o(x,{ref_key:"paging",ref:h,modelValue:a.result,"onUpdate:modelValue":_[2]||(_[2]=e=>a.result=e),onQuery:A,fixed:!1,height:"100%"},{default:l((()=>[(s(!0),u(d,null,n(a.result,(e=>(s(),t(g,{key:e.id,item:e,newsId:e.id},null,8,["item","newsId"])))),128))])),_:1},8,["modelValue"])])),_:1},512),[[v,a.searching]])])),_:1})])),_:1})}}}),[["__scopeId","data-v-5fd54b17"]]);export{A as default};

View File

@ -1 +0,0 @@
import{a6 as e,d as t,r as s,a,o as r,c as n,w as l,b as o,l as c,t as i,v as u,g as d,h as p,H as f,k as m,i as y,u as x,e as g,a7 as b,F as v,f as _,S as k,j as h,m as j,a8 as w,a9 as C,aa as O}from"./index.26a6cf84.js";import{_ as I}from"./u-avatar.82f87cbb.js";import{_ as L}from"./u-icon.7191c6e8.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as S}from"./u-image.e15c05f6.js";import{n as U}from"./util.871c1879.js";import{_ as F}from"./tabbar.c02ed954.js";import{a as B}from"./shop.f969658d.js";import"./u-badge.f4477090.js";var H=z(t({__name:"user-info",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},user:{type:Object,default:()=>({})},isLogin:{type:Boolean}},setup(t){const{copy:x}={copy:t=>{e({data:String(t)})}};return(e,g)=>{const b=s(a("u-avatar"),I),v=m,_=y,k=s(a("u-icon"),L);return r(),n(v,{class:"user-info flex px-[50rpx] justify-between py-[50rpx]"},{default:l((()=>[t.isLogin?(r(),n(v,{key:0,class:"flex items-center",onClick:g[1]||(g[1]=e=>{f({url:"/pages/user_data/user_data"})})},{default:l((()=>[o(b,{src:t.user.avatar,size:120},null,8,["src"]),o(v,{class:"text-white ml-[20rpx]"},{default:l((()=>[o(v,{class:"text-2xl"},{default:l((()=>[c(i(t.user.nickname),1)])),_:1}),o(v,{class:"text-xs mt-[18rpx]",onClick:g[0]||(g[0]=u((e=>d(x)(t.user.account)),["stop"]))},{default:l((()=>[c(" 账号:"+i(t.user.account),1)])),_:1})])),_:1})])),_:1})):(r(),n(_,{key:1,class:"flex items-center","hover-class":"none",url:"/pages/login/login"},{default:l((()=>[o(b,{src:"/static/images/user/default_avatar.png",size:120}),o(v,{class:"text-white text-3xl ml-[20rpx]"},{default:l((()=>[c("未登录")])),_:1})])),_:1})),t.isLogin?(r(),n(_,{key:2,"hover-class":"none",url:"/pages/user_set/user_set"},{default:l((()=>[o(k,{name:"setting",color:"#fff",size:48})])),_:1})):p("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-4c42a4cc"]]);const J=t({__name:"my-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=x(),n=e=>{U(e)};return(l,c)=>{const u=s(a("u-image"),S),f=s(a("u-icon"),L);return r(),g("div",{class:"my-service bg-white mx-[20rpx] mt-[20rpx] rounded-lg"},[e.content.title?(r(),g("div",{key:0,class:"title px-[30rpx] py-[20rpx] font-medium text-xl border-light border-solid border-0 border-b"},[b("div",null,i(e.content.title),1)])):p("v-if",!0),1==e.content.style?(r(),g("div",{key:1,class:"flex flex-wrap pt-[40rpx] pb-[20rpx]"},[(r(!0),g(v,null,_(e.content.data,((e,s)=>(r(),g("div",{key:s,class:"flex flex-col items-center w-1/4 mb-[15px]",onClick:t=>n(e.link)},[o(u,{width:"52",height:"52",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"mt-[7px]"},i(e.name),1)],8,["onClick"])))),128))])):p("v-if",!0),2==e.content.style?(r(),g("div",{key:2},[(r(!0),g(v,null,_(e.content.data,((e,s)=>(r(),g("div",{key:s,class:"flex items-center border-light border-solid border-0 border-b h-[100rpx] px-[24rpx]",onClick:t=>n(e.link)},[o(u,{width:"48",height:"48",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"ml-[20rpx] flex-1"},i(e.name),1),b("div",{class:"text-muted"},[o(f,{name:"arrow-right"})])],8,["onClick"])))),128))])):p("v-if",!0)])}}}),N=t({__name:"user-banner",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=x();return(c,i)=>{const u=s(a("u-image"),S),f=k,y=h,x=m;return e.content.data.length&&e.content.enabled?(r(),n(x,{key:0,class:"banner h-[200rpx] mx-[20rpx] mt-[20rpx] translate-y-0"},{default:l((()=>[o(y,{class:"swiper h-full","indicator-dots":e.content.data.length>1,"indicator-active-color":"#4173ff",autoplay:!0},{default:l((()=>[(r(!0),g(v,null,_(e.content.data,((e,s)=>(r(),n(f,{key:s,onClick:t=>{return s=e.limk,void U(s);var s}},{default:l((()=>[o(u,{mode:"aspectFit",width:"100%",height:"100%",src:d(t)(e.image),"border-radius":14},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):p("v-if",!0)}}}),q=t({__name:"user",setup(e){const t=j({pages:[]}),c=w(),{userInfo:i,isLogin:u}=C(c);return O((()=>{c.getUser()})),(async()=>{const e=await B({id:2});t.pages=JSON.parse(e.data)})(),(e,c)=>{const f=s(a("w-user-info"),H),y=s(a("w-my-service"),J),x=s(a("w-user-banner"),N),b=m,k=s(a("tabbar"),F);return r(),n(b,{class:"user"},{default:l((()=>[(r(!0),g(v,null,_(t.pages,((e,t)=>(r(),n(b,{key:t},{default:l((()=>["user-info"==e.name?(r(),n(f,{key:0,content:e.content,styles:e.styles,user:d(i),"is-login":d(u)},null,8,["content","styles","user","is-login"])):p("v-if",!0),"my-service"==e.name?(r(),n(y,{key:1,content:e.content,styles:e.styles},null,8,["content","styles"])):p("v-if",!0),"user-banner"==e.name?(r(),n(x,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):p("v-if",!0)])),_:2},1024)))),128)),o(k)])),_:1})}}});export{q as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as e,z as s,W as a,o as n,c as o,aP as r}from"./index.26a6cf84.js";const t=e({__name:"webview",setup(e){const t=s("");return a((e=>{t.value=decodeURIComponent(e.url)})),(e,s)=>{const a=r;return n(),o(a,{src:t.value},null,8,["src"])}}});export{t as default};

View File

@ -1 +0,0 @@
import{_ as e}from"./u-icon.7191c6e8.js";import{r as t,a,o as s,c as o,w as r,b as l,E as i,x as c,h as u,k as n,s as d,d as p,aQ as y,g as f,C as m}from"./index.26a6cf84.js";import{_ as g}from"./plugin-vue_export-helper.21dcd24c.js";var S=g({name:"u-empty",props:{src:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"#c0c4cc"},iconColor:{type:String,default:"#c0c4cc"},iconSize:{type:[String,Number],default:120},fontSize:{type:[String,Number],default:26},mode:{type:String,default:"data"},imgWidth:{type:[String,Number],default:120},imgHeight:{type:[String,Number],default:"auto"},show:{type:Boolean,default:!0},marginTop:{type:[String,Number],default:0},iconStyle:{type:Object,default:()=>({})}},data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空"}})},[["render",function(d,p,y,f,m,g){const S=t(a("u-icon"),e),h=n;return y.show?(s(),o(h,{key:0,class:"u-empty",style:c({marginTop:y.marginTop+"rpx"})},{default:r((()=>[l(S,{name:y.src?y.src:"empty-"+y.mode,"custom-style":y.iconStyle,label:y.text?y.text:m.icons[y.mode],"label-pos":"bottom","label-color":y.color,"label-size":y.fontSize,size:y.iconSize,color:y.iconColor,"margin-top":"14"},null,8,["name","custom-style","label","label-color","label-size","size","color"]),l(h,{class:"u-slot-wrap"},{default:r((()=>[i(d.$slots,"bottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])):u("v-if",!0)}],["__scopeId","data-v-582d610a"]]);var h=g({name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle(){let e={};return e.width=this.size+"rpx",e.height=this.size+"rpx","circle"==this.mode&&(e.borderColor=`#e4e4e4 #e4e4e4 #e4e4e4 ${this.color?this.color:"#c7c7c7"}`),e}}},[["render",function(e,t,a,r,l,i){const p=n;return a.show?(s(),o(p,{key:0,class:d(["u-loading","circle"==a.mode?"u-loading-circle":"u-loading-flower"]),style:c([i.cricleStyle])},null,8,["class","style"])):u("v-if",!0)}],["__scopeId","data-v-53c07659"]]);var b=g(p({__name:"page-status",props:{status:{type:String,default:y.LOADING},fixed:{type:Boolean,default:!0}},setup:e=>(c,p)=>{const m=t(a("u-loading"),h),g=n;return e.status!==f(y).NORMAL?(s(),o(g,{key:0,class:d(["page-status",{"page-status--fixed":e.fixed}])},{default:r((()=>[u(" Loading "),e.status===f(y).LOADING?i(c.$slots,"loading",{key:0},(()=>[l(m,{size:60,mode:"flower"})]),!0):u("v-if",!0),u(" Error "),e.status===f(y).ERROR?i(c.$slots,"error",{key:1},void 0,!0):u("v-if",!0),u(" Empty "),e.status===f(y).EMPTY?i(c.$slots,"empty",{key:2},void 0,!0):u("v-if",!0)])),_:3},8,["class"])):i(c.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-e456cece"]]);function v(e){return m.get({url:"/pay/payWay",data:e},{isAuth:!0})}function _(e){return m.post({url:"/pay/prepay",data:e},{isAuth:!0})}function x(e){return m.get({url:"/pay/payStatus",data:e},{isAuth:!0})}export{S as _,b as a,v as b,x as g,_ as p};

View File

@ -1 +0,0 @@
.u-empty[data-v-582d610a]{display:flex;flex-direction:row;flex-direction:column;justify-content:center;align-items:center;height:100%}.u-image[data-v-582d610a]{margin-bottom:.625rem}.u-slot-wrap[data-v-582d610a]{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:.625rem}.u-loading-circle[data-v-53c07659]{display:inline-flex;vertical-align:middle;width:.875rem;height:.875rem;background:0 0;border-radius:50%;border:2px solid;border-color:#e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;animation:u-circle 1s linear infinite}.u-loading-flower[data-v-53c07659]{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:u-flower-53c07659 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}@keyframes u-flower-53c07659{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.page-status[data-v-e456cece]{height:100%;width:100%;min-height:100%;padding:0;flex:1;display:flex;justify-content:center;align-items:center;background-color:#fff}.page-status--fixed[data-v-e456cece]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:900}

View File

@ -1 +0,0 @@
.result-info .result-info__item[data-v-514986f8]{display:flex;justify-content:space-between;margin-bottom:.625rem}

View File

@ -1 +0,0 @@
var o=(o,r)=>{const t=o.__vccOpts||o;for(const[c,s]of r)t[c]=s;return t};export{o as _};

View File

@ -1 +0,0 @@
.price-container[data-v-171c6bc6]{display:inline-block}.price-wrap[data-v-171c6bc6]{display:flex;align-items:baseline}.price-wrap--disabled[data-v-171c6bc6]{position:relative}.price-wrap--disabled[data-v-171c6bc6]:before{position:absolute;left:0;top:50%;right:0;transform:translateY(-50%);display:block;content:"";height:.05em;background-color:currentColor}.u-radio[data-v-1458021f]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:1.8}.u-radio__icon-wrap[data-v-1458021f]{color:#666;display:flex;flex-direction:row;flex:none;align-items:center;justify-content:center;box-sizing:border-box;width:1.3125rem;height:1.3125rem;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-radio__icon-wrap--circle[data-v-1458021f]{border-radius:100%}.u-radio__icon-wrap--square[data-v-1458021f]{border-radius:3px}.u-radio__icon-wrap--checked[data-v-1458021f]{color:#fff;background-color:#2979ff;border-color:#2979ff}.u-radio__icon-wrap--disabled[data-v-1458021f]{background-color:#ebedf0;border-color:#c8c9cc}.u-radio__icon-wrap--disabled--checked[data-v-1458021f]{color:#c8c9cc!important}.u-radio__label[data-v-1458021f]{word-wrap:break-word;margin-left:.3125rem;margin-right:.75rem;color:#666;font-size:.9375rem}.u-radio__label--disabled[data-v-1458021f]{color:#c8c9cc}.u-radio-group[data-v-b8b0ce5a]{display:inline-flex;flex-wrap:wrap}.u-radio-group.flex-end[data-v-b8b0ce5a]{display:inline-flex;justify-content:flex-end;flex-wrap:wrap}.payway-lists .payway-item[data-v-851e5f30]{border-bottom:1px solid;--tw-border-opacity: 1;border-color:rgb(246 246 246 / var(--tw-border-opacity))}

View File

@ -1 +0,0 @@
import{C as r}from"./index.26a6cf84.js";function t(t){return r.post({url:"/recharge/recharge",data:t},{isAuth:!0})}function e(t){return r.get({url:"/recharge/lists",data:t},{isAuth:!0})}function a(){return r.get({url:"/recharge/config"},{isAuth:!0})}export{t as a,e as b,a as r};

View File

@ -1 +0,0 @@
uni-page-body[data-v-6052d898]{height:100%}

View File

@ -1 +0,0 @@
.suggest[data-v-6ff22e4e]{height:100%}.suggest .keyword[data-v-6ff22e4e]{display:inline-block;margin:.75rem .5rem 0 0;padding:.25rem .75rem;border-radius:.8125rem;background-color:#f4f4f4}.search-content[data-v-5fd54b17]{height:calc(100vh - 46px - env(safe-area-inset-bottom))}.search-content-s[data-v-5fd54b17]{height:100%}

View File

@ -1 +0,0 @@
import{C as t}from"./index.26a6cf84.js";function e(){return t.get({url:"/index/index"})}function r(e){return t.get({url:"/index/decorate",data:e})}function n(){return t.get({url:"/search/hotLists"})}export{r as a,n as b,e as g};

View File

@ -1 +0,0 @@
.u-fixed-placeholder[data-v-e0c09bf6]{box-sizing:content-box}.u-tabbar__content[data-v-e0c09bf6]{display:flex;flex-direction:row;align-items:center;position:relative;position:fixed;bottom:0;left:0;width:100%;z-index:998;box-sizing:content-box}.u-tabbar__content__circle__border[data-v-e0c09bf6]{border-radius:100%;width:3.4375rem;height:3.4375rem;top:-1.5rem;position:absolute;z-index:4;background-color:#fff;left:50%;transform:translate(-50%)}.u-tabbar__content__circle__border[data-v-e0c09bf6]:after{border-radius:100px}.u-tabbar__content__item[data-v-e0c09bf6]{flex:1;justify-content:center;height:100%;padding:.375rem 0;display:flex;flex-direction:row;flex-direction:column;align-items:center;position:relative}.u-tabbar__content__item__button[data-v-e0c09bf6]{position:absolute;top:.4375rem;left:50%;transform:translate(-50%)}.u-tabbar__content__item__text[data-v-e0c09bf6]{color:#666;font-size:.6875rem;line-height:.875rem;position:absolute;bottom:.4375rem;left:50%;transform:translate(-50%);width:100%;text-align:center}.u-tabbar__content__circle[data-v-e0c09bf6]{position:relative;display:flex;flex-direction:row;flex-direction:column;justify-content:space-between;z-index:10;height:calc(100% - 1px)}.u-tabbar__content__circle__button[data-v-e0c09bf6]{width:2.8125rem;height:2.8125rem;border-radius:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute;background-color:#fff;top:-1.25rem;left:50%;z-index:6;transform:translate(-50%)}

View File

@ -1 +0,0 @@
import{p as t,q as e,r as a,a as o,o as i,c as l,w as s,b as n,e as r,f as u,s as c,v as d,x as h,h as f,l as m,t as p,F as b,k as g,y as _,d as y,z as C,u as v,A as B,g as S,B as k}from"./index.26a6cf84.js";import{_ as w}from"./u-icon.7191c6e8.js";import{_ as x}from"./u-badge.f4477090.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";import{n as T}from"./util.871c1879.js";var U=P({emits:["update:modelValue","input","change"],props:{value:{type:[String,Number],default:0},modelValue:{type:[String,Number],default:0},show:{type:Boolean,default:!0},bgColor:{type:String,default:"#ffffff"},height:{type:[String,Number],default:100},iconSize:{type:[String,Number],default:40},midButtonSize:{type:[String,Number],default:90},activeColor:{type:String,default:"#303133"},inactiveColor:{type:String,default:"#606266"},midButton:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},beforeSwitch:{type:Function,default:null},borderTop:{type:Boolean,default:!0},hideTabBar:{type:Boolean,default:!0}},data:()=>({midButtonLeft:"50%",pageUrl:""}),created(){this.hideTabBar&&t();let a=e();this.pageUrl=a[a.length-1].route},computed:{valueCom(){return this.modelValue},elIconPath(){return t=>{let e=this.list[t].pagePath;return e?e==this.pageUrl||e=="/"+this.pageUrl?this.list[t].selectedIconPath:this.list[t].iconPath:t==this.valueCom?this.list[t].selectedIconPath:this.list[t].iconPath}},elColor(){return t=>{let e=this.list[t].pagePath;return e?e==this.pageUrl||e=="/"+this.pageUrl?this.activeColor:this.inactiveColor:t==this.valueCom?this.activeColor:this.inactiveColor}}},mounted(){this.midButton&&this.getMidButtonLeft()},methods:{async clickHandler(t){if(this.beforeSwitch&&"function"==typeof this.beforeSwitch){let e=this.beforeSwitch.bind(this.$u.$parent.call(this))(t);e&&"function"==typeof e.then?await e.then((e=>{this.switchTab(t)})).catch((t=>{})):!0===e&&this.switchTab(t)}else this.switchTab(t)},switchTab(t){let e=this.list[t].pagePath;if(e){if(e==this.pageUrl||e=="/"+this.pageUrl)return;this.$emit("change",t)}else this.$emit("change",t),this.$emit("input",t),this.$emit("update:modelValue",t)},getOffsetRight:(t,e)=>e?-20:t>9?-40:-30,getMidButtonLeft(){let t=this.$u.sys().windowWidth;this.midButtonLeft=t/2+"px"}}},[["render",function(t,e,y,C,v,B){const S=a(o("u-icon"),w),k=a(o("u-badge"),x),P=g,T=_;return y.show?(i(),l(P,{key:0,class:"u-tabbar",onTouchmove:e[0]||(e[0]=d((()=>{}),["stop","prevent"]))},{default:s((()=>[n(P,{class:c(["u-tabbar__content safe-area-inset-bottom",{"u-border-top":y.borderTop}]),style:h({height:t.$u.addUnit(y.height),backgroundColor:y.bgColor})},{default:s((()=>[(i(!0),r(b,null,u(y.list,((t,e)=>(i(),l(P,{class:c(["u-tabbar__content__item",{"u-tabbar__content__circle":y.midButton&&t.midButton}]),key:e,onClick:d((t=>B.clickHandler(e)),["stop"]),style:h({backgroundColor:y.bgColor})},{default:s((()=>[n(P,{class:c([y.midButton&&t.midButton?"u-tabbar__content__circle__button":"u-tabbar__content__item__button"])},{default:s((()=>[n(S,{size:y.midButton&&t.midButton?y.midButtonSize:y.iconSize,name:B.elIconPath(e),"img-mode":"scaleToFill",color:B.elColor(e),"custom-prefix":t.customIcon?"custom-icon":"uicon"},null,8,["size","name","color","custom-prefix"]),t.count?(i(),l(k,{key:0,count:t.count,"is-dot":t.isDot,offset:[-2,B.getOffsetRight(t.count,t.isDot)]},null,8,["count","is-dot","offset"])):f("v-if",!0)])),_:2},1032,["class"]),n(P,{class:"u-tabbar__content__item__text",style:h({color:B.elColor(e)})},{default:s((()=>[n(T,{class:"u-line-1"},{default:s((()=>[m(p(t.text),1)])),_:2},1024)])),_:2},1032,["style"])])),_:2},1032,["class","onClick","style"])))),128)),y.midButton?(i(),l(P,{key:0,class:c(["u-tabbar__content__circle__border",{"u-border":y.borderTop}]),style:h({backgroundColor:y.bgColor,left:v.midButtonLeft})},null,8,["class","style"])):f("v-if",!0)])),_:1},8,["style","class"]),f(" 这里加上一个48rpx的高度,是为了增高有凸起按钮时的防塌陷高度(也即按钮凸出来部分的高度) "),n(P,{class:"u-fixed-placeholder safe-area-inset-bottom",style:h({height:`calc(${t.$u.addUnit(y.height)} + ${y.midButton?48:0}rpx)`})},null,8,["style"])])),_:1})):f("v-if",!0)}],["__scopeId","data-v-e0c09bf6"]]);const $=y({__name:"tabbar",setup(t){const s=C(),n=v(),r=B((()=>n.getTabbarConfig.map((t=>({iconPath:t.unselected,selectedIconPath:t.selected,text:t.name,link:t.link,pagePath:t.link.path}))))),u=B((()=>{const t=e(),a=t[t.length-1];return r.value.findIndex((t=>t.pagePath==="/"+a.route))>=0})),c=B((()=>({activeColor:n.getStyleConfig.selected_color,inactiveColor:n.getStyleConfig.default_color}))),d=t=>{const e=r.value[t];T(e.link,"reLaunch")};return(t,e)=>{const n=a(o("u-tabbar"),U);return S(u)?(i(),l(n,k({key:0,modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t)},S(c),{list:S(r),onChange:d,"hide-tab-bar":!1}),null,16,["modelValue","list"])):f("v-if",!0)}}});export{$ as _};

View File

@ -1 +0,0 @@
.content[data-v-458e1d34]{background:rgb(255,255,255)}.cropper[data-v-458e1d34]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.cropper-buttons[data-v-458e1d34]{background-color:#000;color:#eee}.cropper-wrapper[data-v-458e1d34]{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;background-color:#000}.cropper-buttons[data-v-458e1d34]{width:100vw;display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:fixed;bottom:0;left:0;font-size:.875rem}.cropper-buttons .upload[data-v-458e1d34],.cropper-buttons .getCropperImage[data-v-458e1d34]{width:50%;text-align:center}.cropper-buttons .upload[data-v-458e1d34]{text-align:left;padding-left:1.5625rem}.cropper-buttons .getCropperImage[data-v-458e1d34]{text-align:right;padding-right:1.5625rem}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.u-avatar[data-v-d5794d26]{display:inline-flex;align-items:center;justify-content:center;font-size:.875rem;color:#666;border-radius:10px;position:relative}.u-avatar__img[data-v-d5794d26]{width:100%;height:100%}.u-avatar__sex[data-v-d5794d26]{position:absolute;width:1rem;color:#fff;height:1rem;display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:3.125rem;top:5%;z-index:1;right:-7%;border:1px #ffffff solid}.u-avatar__sex--man[data-v-d5794d26]{background-color:#4173ff}.u-avatar__sex--woman[data-v-d5794d26]{background-color:#fa3534}.u-avatar__sex--none[data-v-d5794d26]{background-color:#f90}.u-avatar__level[data-v-d5794d26]{position:absolute;width:1rem;color:#fff;height:1rem;display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:3.125rem;bottom:5%;z-index:1;right:-7%;border:1px #ffffff solid;background-color:#f90}

View File

@ -1 +0,0 @@
.u-badge[data-v-11d03f21]{display:inline-flex;justify-content:center;align-items:center;line-height:.75rem;padding:.125rem .25rem;border-radius:3.125rem;z-index:9}.u-badge--bg--primary[data-v-11d03f21]{background-color:#4173ff}.u-badge--bg--error[data-v-11d03f21]{background-color:#fa3534}.u-badge--bg--success[data-v-11d03f21]{background-color:#19be6b}.u-badge--bg--info[data-v-11d03f21]{background-color:#909399}.u-badge--bg--warning[data-v-11d03f21]{background-color:#f90}.u-badge-dot[data-v-11d03f21]{height:.5rem;width:.5rem;border-radius:3.125rem;line-height:1}.u-badge-mini[data-v-11d03f21]{transform:scale(.8);transform-origin:center center}.u-info[data-v-11d03f21]{background-color:#909399;color:#fff}

View File

@ -1 +0,0 @@
import{o as t,c as e,w as o,l as r,t as s,s as a,x as i,h as n,k as f}from"./index.26a6cf84.js";import{_ as l}from"./plugin-vue_export-helper.21dcd24c.js";var u=l({name:"u-badge",props:{type:{type:String,default:"error"},size:{type:String,default:"default"},isDot:{type:Boolean,default:!1},count:{type:[Number,String]},overflowCount:{type:Number,default:99},showZero:{type:Boolean,default:!1},offset:{type:Array,default:()=>[20,20]},absolute:{type:Boolean,default:!0},fontSize:{type:[String,Number],default:"24"},color:{type:String,default:"#ffffff"},bgColor:{type:String,default:""},isCenter:{type:Boolean,default:!1}},computed:{boxStyle(){let t={};return this.isCenter?(t.top=0,t.right=0,t.transform="translateY(-50%) translateX(50%)"):(t.top=this.offset[0]+"rpx",t.right=this.offset[1]+"rpx",t.transform="translateY(0) translateX(0)"),"mini"==this.size&&(t.transform=t.transform+" scale(0.8)"),t},showText(){return this.isDot?"":this.count>this.overflowCount?`${this.overflowCount}+`:this.count},show(){return 0!=this.count||0!=this.showZero}}},[["render",function(l,u,p,d,h,y){const c=f;return y.show?(t(),e(c,{key:0,class:a(["u-badge",[p.isDot?"u-badge-dot":"","mini"==p.size?"u-badge-mini":"",p.type?"u-badge--bg--"+p.type:""]]),style:i([{top:p.offset[0]+"rpx",right:p.offset[1]+"rpx",fontSize:p.fontSize+"rpx",position:p.absolute?"absolute":"static",color:p.color,backgroundColor:p.bgColor},y.boxStyle])},{default:o((()=>[r(s(y.showText),1)])),_:1},8,["class","style"])):n("v-if",!0)}],["__scopeId","data-v-11d03f21"]]);export{u as _};

View File

@ -1 +0,0 @@
.u-btn[data-v-cbb631f0]:after{border:none}.u-btn[data-v-cbb631f0]{position:relative;border:0;display:inline-flex;overflow:visible;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;padding:0 1.25rem;z-index:1;box-sizing:border-box;transition:all .15s}.u-btn--bold-border[data-v-cbb631f0]{border:1px solid #ffffff}.u-btn--default[data-v-cbb631f0]{color:#666;border-color:#c0c4cc;background-color:#fff}.u-btn--primary[data-v-cbb631f0]{color:#fff;border-color:#4173ff;background-color:#4173ff}.u-btn--success[data-v-cbb631f0]{color:#fff;border-color:#19be6b;background-color:#19be6b}.u-btn--error[data-v-cbb631f0]{color:#fff;border-color:#fa3534;background-color:#fa3534}.u-btn--warning[data-v-cbb631f0]{color:#fff;border-color:#f90;background-color:#f90}.u-btn--default--disabled[data-v-cbb631f0]{color:#fff;border-color:#e4e7ed;background-color:#fff}.u-btn--primary--disabled[data-v-cbb631f0]{color:#fff!important;border-color:#a0cfff!important;background-color:#a0cfff!important}.u-btn--success--disabled[data-v-cbb631f0]{color:#fff!important;border-color:#71d5a1!important;background-color:#71d5a1!important}.u-btn--error--disabled[data-v-cbb631f0]{color:#fff!important;border-color:#fab6b6!important;background-color:#fab6b6!important}.u-btn--warning--disabled[data-v-cbb631f0]{color:#fff!important;border-color:#fcbd71!important;background-color:#fcbd71!important}.u-btn--primary--plain[data-v-cbb631f0]{color:#4173ff!important;border-color:#a0cfff!important;background-color:#ecf5ff!important}.u-btn--success--plain[data-v-cbb631f0]{color:#19be6b!important;border-color:#71d5a1!important;background-color:#dbf1e1!important}.u-btn--error--plain[data-v-cbb631f0]{color:#fa3534!important;border-color:#fab6b6!important;background-color:#fef0f0!important}.u-btn--warning--plain[data-v-cbb631f0]{color:#f90!important;border-color:#fcbd71!important;background-color:#fdf6ec!important}.u-hairline-border[data-v-cbb631f0]:after{content:" ";position:absolute;pointer-events:none;box-sizing:border-box;transform-origin:0 0;left:0;top:0;width:199.8%;height:199.7%;transform:scale(.5);border:1px solid currentColor;z-index:1}.u-wave-ripple[data-v-cbb631f0]{z-index:0;position:absolute;border-radius:100%;background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:scale(0);opacity:1;transform-origin:center}.u-wave-ripple.u-wave-active[data-v-cbb631f0]{opacity:0;transform:scale(2);transition:opacity 1s linear,transform .4s linear}.u-round-circle[data-v-cbb631f0]{border-radius:3.125rem}.u-round-circle[data-v-cbb631f0]:after{border-radius:3.125rem}.u-loading[data-v-cbb631f0]:after{background-color:rgba(255,255,255,.35)}.u-size-default[data-v-cbb631f0]{font-size:.9375rem;height:2.5rem;line-height:2.5rem}.u-size-medium[data-v-cbb631f0]{display:inline-flex;width:auto;font-size:.8125rem;height:2.1875rem;line-height:2.1875rem}.u-size-mini[data-v-cbb631f0]{display:inline-flex;width:auto;font-size:.75rem;padding-top:1px;height:1.5625rem;line-height:1.5625rem;padding:0 .625rem}.u-primary-plain-hover[data-v-cbb631f0]{color:#fff!important;background:#2b85e4!important}.u-default-plain-hover[data-v-cbb631f0]{color:#2b85e4!important;background:#ecf5ff!important}.u-success-plain-hover[data-v-cbb631f0]{color:#fff!important;background:#18b566!important}.u-warning-plain-hover[data-v-cbb631f0]{color:#fff!important;background:#f29100!important}.u-error-plain-hover[data-v-cbb631f0]{color:#fff!important;background:#dd6161!important}.u-info-plain-hover[data-v-cbb631f0]{color:#fff!important;background:#82848a!important}.u-default-hover[data-v-cbb631f0]{color:#2b85e4!important;border-color:#2b85e4!important;background-color:#ecf5ff!important}.u-primary-hover[data-v-cbb631f0]{background:#2b85e4!important;color:#fff}.u-success-hover[data-v-cbb631f0]{background:#18b566!important;color:#fff}.u-info-hover[data-v-cbb631f0]{background:#82848a!important;color:#fff}.u-warning-hover[data-v-cbb631f0]{background:#f29100!important;color:#fff}.u-error-hover[data-v-cbb631f0]{background:#dd6161!important;color:#fff}

View File

@ -1 +0,0 @@
import{G as e,o as t,c as i,w as a,E as r,s,x as n,h as o,v as p,k as l,ac as d}from"./index.26a6cf84.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var u=h({name:"u-button",emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp"],props:{hairLine:{type:Boolean,default:!0},type:{type:String,default:"default"},size:{type:String,default:"default"},shape:{type:String,default:"square"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},openType:{type:String,default:""},formType:{type:String,default:""},appParameter:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},lang:{type:String,default:"en"},sessionFrom:{type:String,default:""},sendMessageTitle:{type:String,default:""},sendMessagePath:{type:String,default:""},sendMessageImg:{type:String,default:""},showMessageCard:{type:Boolean,default:!1},hoverBgColor:{type:String,default:""},rippleBgColor:{type:String,default:""},ripple:{type:Boolean,default:!1},hoverClass:{type:String,default:""},customStyle:{type:Object,default:()=>({})},dataName:{type:String,default:""},throttleTime:{type:[String,Number],default:500},hoverStartTime:{type:[String,Number],default:20},hoverStayTime:{type:[String,Number],default:150},timerId:{type:[String,Number]}},computed:{getHoverClass(){if(this.loading||this.disabled||this.ripple||this.hoverClass)return"";let e="";return e=this.plain?"u-"+this.type+"-plain-hover":"u-"+this.type+"-hover",e},showHairLineBorder(){return["primary","success","error","warning"].indexOf(this.type)>=0&&!this.plain?"":"u-hairline-border"}},data(){return{btnTimerId:this.timerId||"button_"+Math.floor(1e8*Math.random()+0),rippleTop:0,rippleLeft:0,fields:{},waveActive:!1}},methods:{click(e){this.$u.throttle((()=>{!0!==this.loading&&!0!==this.disabled&&(this.ripple&&(this.waveActive=!1,this.$nextTick((function(){this.getWaveQuery(e)}))),this.$emit("click",e))}),this.throttleTime,!0,this.btnTimerId)},getWaveQuery(e){this.getElQuery().then((t=>{let i=t[0];if(!i.width||!i.width)return;if(i.targetWidth=i.height>i.width?i.height:i.width,!i.targetWidth)return;this.fields=i;let a="",r="";a=e.touches[0].clientX,r=e.touches[0].clientY,this.rippleTop=r-i.top-i.targetWidth/2,this.rippleLeft=a-i.left-i.targetWidth/2,this.$nextTick((()=>{this.waveActive=!0}))}))},getElQuery(){return new Promise((t=>{let i="";i=e().in(this),i.select(".u-btn").boundingClientRect(),i.exec((e=>{t(e)}))}))},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)}}},[["render",function(e,h,u,g,m,f){const c=l,y=d;return t(),i(y,{id:"u-wave-btn",class:s(["u-btn u-line-1 u-fix-ios-appearance",["u-size-"+u.size,u.plain?"u-btn--"+u.type+"--plain":"",u.loading?"u-loading":"","circle"==u.shape?"u-round-circle":"",u.hairLine?f.showHairLineBorder:"u-btn--bold-border","u-btn--"+u.type,u.disabled?`u-btn--${u.type}--disabled`:""]]),"hover-start-time":Number(u.hoverStartTime),"hover-stay-time":Number(u.hoverStayTime),disabled:u.disabled,"form-type":u.formType,"open-type":u.openType,"app-parameter":u.appParameter,"hover-stop-propagation":u.hoverStopPropagation,"send-message-title":u.sendMessageTitle,"send-message-path":"sendMessagePath",lang:u.lang,"data-name":u.dataName,"session-from":u.sessionFrom,"send-message-img":u.sendMessageImg,"show-message-card":u.showMessageCard,onGetphonenumber:f.getphonenumber,onGetuserinfo:f.getuserinfo,onError:f.error,onOpensetting:f.opensetting,onLaunchapp:f.launchapp,style:n([u.customStyle,{overflow:u.ripple?"hidden":"visible"}]),onClick:h[0]||(h[0]=p((e=>f.click(e)),["stop"])),"hover-class":f.getHoverClass,loading:u.loading},{default:a((()=>[r(e.$slots,"default",{},void 0,!0),u.ripple?(t(),i(c,{key:0,class:s(["u-wave-ripple",[m.waveActive?"u-wave-active":""]]),style:n({top:m.rippleTop+"px",left:m.rippleLeft+"px",width:m.fields.targetWidth+"px",height:m.fields.targetWidth+"px","background-color":u.rippleBgColor||"rgba(0, 0, 0, 0.15)"})},null,8,["class","style"])):o("v-if",!0)])),_:3},8,["class","hover-start-time","hover-stay-time","disabled","form-type","open-type","app-parameter","hover-stop-propagation","send-message-title","lang","data-name","session-from","send-message-img","show-message-card","onGetphonenumber","onGetuserinfo","onError","onOpensetting","onLaunchapp","style","hover-class","loading"])}],["__scopeId","data-v-cbb631f0"]]);export{u as _};

View File

@ -1 +0,0 @@
import{_ as e}from"./u-icon.7191c6e8.js";import{r as t,a as i,o as a,c as s,w as l,b as h,s as n,x as r,E as o,k as c}from"./index.26a6cf84.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";var p=u({name:"u-checkbox",emits:["update:modelValue","input","change"],props:{value:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},name:{type:[String,Number],default:""},shape:{type:String,default:""},disabled:{type:[String,Boolean],default:""},labelDisabled:{type:[String,Boolean],default:""},activeColor:{type:String,default:""},iconSize:{type:[String,Number],default:""},labelSize:{type:[String,Number],default:""},size:{type:[String,Number],default:""}},data:()=>({parentDisabled:!1,newParams:{}}),created(){this.parent=this.$u.$parent.call(this,"u-checkbox-group"),this.parent&&this.parent.children.push(this)},computed:{valueCom(){return this.modelValue},isDisabled(){return""!==this.disabled?this.disabled:!!this.parent&&this.parent.disabled},isLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:!!this.parent&&this.parent.labelDisabled},checkboxSize(){return this.size?this.size:this.parent?this.parent.size:34},checkboxIconSize(){return this.iconSize?this.iconSize:this.parent?this.parent.iconSize:20},elActiveColor(){return this.activeColor?this.activeColor:this.parent?this.parent.activeColor:"primary"},elShape(){return this.shape?this.shape:this.parent?this.parent.shape:"square"},iconStyle(){let e={};return this.elActiveColor&&this.valueCom&&!this.isDisabled&&(e.borderColor=this.elActiveColor,e.backgroundColor=this.elActiveColor),e.width=this.$u.addUnit(this.checkboxSize),e.height=this.$u.addUnit(this.checkboxSize),e},iconColor(){return this.valueCom?"#ffffff":"transparent"},iconClass(){let e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),1==this.valueCom&&e.push("u-checkbox__icon-wrap--checked"),this.isDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.valueCom&&this.isDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e.join(" ")},checkboxStyle(){let e={};return this.parent&&this.parent.width&&(e.width=this.parent.width,e.flex=`0 0 ${this.parent.width}`),this.parent&&this.parent.wrap&&(e.width="100%",e.flex="0 0 100%"),e}},mounted(){this._emitEvent()},watch:{valueCom:{handler:function(e,t){this._emitEvent()}}},methods:{_emitEvent(){let e={value:this.valueCom,name:this.name};this.parent&&this.parent.emitEvent&&this.parent._emitEvent(e)},onClickLabel(){this.isLabelDisabled||this.isDisabled||this.setValue()},toggle(){this.isDisabled||this.setValue()},emitEvent(){let e={value:!this.valueCom,name:this.name};this.$emit("change",e),this.parent&&this.parent.emitEvent&&this.parent.emitEvent(e)},setValue(){let e=this.valueCom,t=0;if(this.parent&&this.parent.children&&this.parent.children.map((e=>{e.value&&t++})),1==e)this.emitEvent(),this.$emit("input",!e),this.$emit("update:modelValue",!e);else{if(this.parent&&t>=this.parent.max)return this.$u.toast(`最多可选${this.parent.max}`);this.emitEvent(),this.$emit("input",!e),this.$emit("update:modelValue",!e)}}}},[["render",function(u,p,d,b,m,v){const f=t(i("u-icon"),e),k=c;return a(),s(k,{class:"u-checkbox",style:r([v.checkboxStyle])},{default:l((()=>[h(k,{class:n(["u-checkbox__icon-wrap",[v.iconClass]]),onClick:v.toggle,style:r([v.iconStyle])},{default:l((()=>[h(f,{class:"u-checkbox__icon-wrap__icon",name:"checkbox-mark",size:v.checkboxIconSize,color:v.iconColor},null,8,["size","color"])])),_:1},8,["onClick","class","style"]),h(k,{class:"u-checkbox__label",onClick:v.onClickLabel,style:r({fontSize:u.$u.addUnit(d.labelSize)})},{default:l((()=>[o(u.$slots,"default",{},void 0,!0)])),_:3},8,["onClick","style"])])),_:3},8,["style"])}],["__scopeId","data-v-5a6bc387"]]);export{p as _};

View File

@ -1 +0,0 @@
.u-checkbox[data-v-5a6bc387]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:1.8}.u-checkbox__icon-wrap[data-v-5a6bc387]{color:#666;flex:none;display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;width:1.3125rem;height:1.3125rem;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-checkbox__icon-wrap--circle[data-v-5a6bc387]{border-radius:100%}.u-checkbox__icon-wrap--square[data-v-5a6bc387]{border-radius:.1875rem}.u-checkbox__icon-wrap--checked[data-v-5a6bc387]{color:#fff;background-color:#4173ff;border-color:#4173ff}.u-checkbox__icon-wrap--disabled[data-v-5a6bc387]{background-color:#ebedf0;border-color:#c8c9cc}.u-checkbox__icon-wrap--disabled--checked[data-v-5a6bc387]{color:#c8c9cc!important}.u-checkbox__label[data-v-5a6bc387]{word-wrap:break-word;margin-left:.3125rem;margin-right:.75rem;color:#666;font-size:.9375rem}.u-checkbox__label--disabled[data-v-5a6bc387]{color:#c8c9cc}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.u-input[data-v-40b2398e]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-40b2398e]{font-size:.9375rem;color:#333;flex:1}.u-input__textarea[data-v-40b2398e]{width:auto;font-size:.9375rem;color:#333;padding:.3125rem 0;line-height:normal;flex:1}.u-input--border[data-v-40b2398e]{border-radius:.1875rem;border-radius:4px;border:1px solid #e5e5e5}.u-input--error[data-v-40b2398e]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-40b2398e]{margin-left:.3125rem}.u-input__right-icon--select[data-v-40b2398e]{transition:transform .4s}.u-input__right-icon--select--reverse[data-v-40b2398e]{transform:rotate(-180deg)}.u-form-item[data-v-18d246b8]{display:flex;flex-direction:row;padding:.46875rem 0;font-size:.875rem;color:#333;box-sizing:border-box;line-height:1.875rem;flex-direction:column}.u-form-item__border-bottom--error[data-v-18d246b8]:after{border-color:#fa3534}.u-form-item__body[data-v-18d246b8]{display:flex;flex-direction:row}.u-form-item--left[data-v-18d246b8]{display:flex;flex-direction:row;align-items:center}.u-form-item--left__content[data-v-18d246b8]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:.3125rem;flex:1}.u-form-item--left__content__icon[data-v-18d246b8]{margin-right:.25rem}.u-form-item--left__content--required[data-v-18d246b8]{position:absolute;left:-.5rem;vertical-align:middle;color:#fa3534;padding-top:.1875rem}.u-form-item--left__content__label[data-v-18d246b8]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item--right[data-v-18d246b8]{flex:1}.u-form-item--right__content[data-v-18d246b8]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item--right__content__slot[data-v-18d246b8]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item--right__content__icon[data-v-18d246b8]{margin-left:.3125rem;color:#c0c4cc;font-size:.9375rem}.u-form-item__message[data-v-18d246b8]{font-size:.75rem;line-height:.75rem;color:#fa3534;margin-top:.375rem}

View File

@ -1 +0,0 @@
import{o as e,c as t,w as a,E as l,k as r}from"./index.26a6cf84.js";import{_ as s}from"./plugin-vue_export-helper.21dcd24c.js";var i=s({name:"u-form",props:{model:{type:Object,default:()=>({})},errorType:{type:Array,default:()=>["message","toast"]},borderBottom:{type:Boolean,default:!0},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:90},labelAlign:{type:String,default:"left"},labelStyle:{type:Object,default:()=>({})},inputAlign:{type:String,default:"left"},clearable:{type:Boolean,default:!0}},provide(){return{uForm:this}},data:()=>({rules:{}}),created(){this.fields=[]},methods:{setRules(e){this.rules=e},resetFields(){this.fields.map((e=>{e.resetField()}))},validate(e){return new Promise((t=>{let a=!0,l=0,r=[],s=[];this.fields.map((i=>{i.validation("",((i,o)=>{i&&(a=!1,r.push(i),s.push(o)),++l===this.fields.length&&(t(a,s[0]),-1===this.errorType.indexOf("none")&&this.errorType.indexOf("toast")>=0&&r.length&&this.$u.toast(r[0]),"function"==typeof e&&e(a,s[0]))}))}))}))}}},[["render",function(s,i,o,d,n,u){const f=r;return e(),t(f,{class:"u-form"},{default:a((()=>[l(s.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-0aa1ec35"]]);export{i as _};

View File

@ -1 +0,0 @@
import{o as t,c as i,w as e,x as s,s as o,h as l,l as n,t as a,n as c,y as r,k as u}from"./index.26a6cf84.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var d=h({name:"u-icon",emits:["click","touchstart"],props:{name:{type:String,default:""},color:{type:String,default:""},size:{type:[Number,String],default:"inherit"},bold:{type:Boolean,default:!1},index:{type:[Number,String],default:""},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"28"},labelColor:{type:String,default:"#606266"},marginLeft:{type:[String,Number],default:"6"},marginTop:{type:[String,Number],default:"6"},marginRight:{type:[String,Number],default:"6"},marginBottom:{type:[String,Number],default:"6"},imgMode:{type:String,default:"widthFix"},customStyle:{type:Object,default:()=>({})},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},showDecimalIcon:{type:Boolean,default:!1},inactiveColor:{type:String,default:"#ececec"},percent:{type:[Number,String],default:"50"}},computed:{customClass(){let t=[],{customPrefix:i,name:e}=this,s=e.indexOf("-icon-");return s>-1?(i=e.substring(0,s+5),t.push(e)):t.push(`${i}-${e}`),"uicon"===i?t.push("u-iconfont"):t.push(i),this.showDecimalIcon&&this.inactiveColor&&this.$u.config.type.includes(this.inactiveColor)?t.push("u-icon__icon--"+this.inactiveColor):this.color&&this.$u.config.type.includes(this.color)&&t.push("u-icon__icon--"+this.color),t},iconStyle(){let t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top)},this.showDecimalIcon&&this.inactiveColor&&!this.$u.config.type.includes(this.inactiveColor)?t.color=this.inactiveColor:this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let t={};return t.width=this.width?this.$u.addUnit(this.width):this.$u.addUnit(this.size),t.height=this.height?this.$u.addUnit(this.height):this.$u.addUnit(this.size),t},decimalIconStyle(){let t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top),width:this.percent+"%"},this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},decimalIconClass(){let t=[];return t.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?t.push("u-iconfont"):t.push(this.customPrefix),this.color&&this.$u.config.type.includes(this.color)?t.push("u-icon__icon--"+this.color):t.push("u-icon__icon--primary"),t}},methods:{click(){this.$emit("click",this.index)},touchstart(){this.$emit("touchstart",this.index)}}},[["render",function(h,d,m,p,g,f){const y=c,b=r,S=u;return t(),i(S,{style:s([m.customStyle]),class:o(["u-icon",["u-icon--"+m.labelPos]]),onClick:f.click},{default:e((()=>[f.isImg?(t(),i(y,{key:0,class:"u-icon__img",src:m.name,mode:m.imgMode,style:s([f.imgStyle])},null,8,["src","mode","style"])):(t(),i(S,{key:1,class:o(["u-icon__icon",f.customClass]),style:s([f.iconStyle]),"hover-class":m.hoverClass,onTouchstart:f.touchstart},{default:e((()=>[m.showDecimalIcon?(t(),i(b,{key:0,style:s([f.decimalIconStyle]),class:o([f.decimalIconClass,"u-icon__decimal"]),"hover-class":m.hoverClass},null,8,["style","class","hover-class"])):l("v-if",!0)])),_:1},8,["class","style","hover-class","onTouchstart"])),l(' 这里进行空字符串判断如果仅仅是v-if="label"可能会出现传递0的时候结果也无法显示微信小程序不传值默认为null故需要增加null的判断 '),""!==m.label&&null!==m.label?(t(),i(b,{key:2,class:"u-icon__label",style:s({color:m.labelColor,fontSize:h.$u.addUnit(m.labelSize),marginLeft:"right"==m.labelPos?h.$u.addUnit(m.marginLeft):0,marginTop:"bottom"==m.labelPos?h.$u.addUnit(m.marginTop):0,marginRight:"left"==m.labelPos?h.$u.addUnit(m.marginRight):0,marginBottom:"top"==m.labelPos?h.$u.addUnit(m.marginBottom):0})},{default:e((()=>[n(a(m.label),1)])),_:1},8,["style"])):l("v-if",!0)])),_:1},8,["style","onClick","class"])}],["__scopeId","data-v-7dbad9d8"]]);export{d as _};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.u-image[data-v-48a6dea4]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-48a6dea4]{width:100%;height:100%}.u-image__loading[data-v-48a6dea4],.u-image__error[data-v-48a6dea4]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#999;font-size:1.4375rem}

View File

@ -1 +0,0 @@
import{r as e,a as r,o as t,c as i,w as o,x as a,h as d,E as s,n as l,k as n}from"./index.26a6cf84.js";import{_ as u}from"./u-icon.7191c6e8.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var c=h({name:"u-image",emits:["click","error","load"],props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler(e){e?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle(){let e={};return e.width=this.$u.addUnit(this.width),e.height=this.$u.addUnit(this.height),e.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),e.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(e.opacity=this.opacity,e.transition=`opacity ${Number(this.durationTime)/1e3}s ease-in-out`),e}},methods:{onClick(){this.$emit("click")},onErrorHandler(e){this.loading=!1,this.isError=!0,this.$emit("error",e)},onLoadHandler(){if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((()=>{this.durationTime=this.duration,this.opacity=1,setTimeout((()=>{this.removeBgColor()}),this.durationTime)}),50)},removeBgColor(){this.backgroundStyle={backgroundColor:"transparent"}}}},[["render",function(h,c,g,y,p,m){const f=l,b=e(r("u-icon"),u),w=n;return t(),i(w,{class:"u-image",onClick:m.onClick,style:a([m.wrapStyle,p.backgroundStyle])},{default:o((()=>[p.isError?d("v-if",!0):(t(),i(f,{key:0,src:g.src,mode:g.mode,onError:m.onErrorHandler,onLoad:m.onLoadHandler,"lazy-load":g.lazyLoad,class:"u-image__image",style:a({borderRadius:"circle"==g.shape?"50%":h.$u.addUnit(g.borderRadius)})},null,8,["src","mode","onError","onLoad","lazy-load","style"])),g.showLoading&&p.loading?(t(),i(w,{key:1,class:"u-image__loading",style:a({borderRadius:"circle"==g.shape?"50%":h.$u.addUnit(g.borderRadius),backgroundColor:g.bgColor})},{default:o((()=>[h.$slots.loading?s(h.$slots,"loading",{key:0},void 0,!0):(t(),i(b,{key:1,name:g.loadingIcon,width:g.width,height:g.height},null,8,["name","width","height"]))])),_:3},8,["style"])):d("v-if",!0),g.showError&&p.isError&&!p.loading?(t(),i(w,{key:2,class:"u-image__error",style:a({borderRadius:"circle"==g.shape?"50%":h.$u.addUnit(g.borderRadius)})},{default:o((()=>[h.$slots.error?s(h.$slots,"error",{key:0},void 0,!0):(t(),i(b,{key:1,name:g.errorIcon,width:g.width,height:g.height},null,8,["name","width","height"]))])),_:3},8,["style"])):d("v-if",!0)])),_:3},8,["onClick","style"])}],["__scopeId","data-v-48a6dea4"]]);export{c as _};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
@keyframes _show-49097824{0%{opacity:0}to{opacity:1}}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.u-mask[data-v-c31b7b8a]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;transition:transform .3s}.u-mask-show[data-v-c31b7b8a]{opacity:1}.u-mask-zoom[data-v-c31b7b8a]{transform:scale(1.2)}.u-drawer[data-v-f309cd04]{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}.u-drawer-content[data-v-f309cd04]{display:block;position:absolute;z-index:1003;transition:all .25s linear}.u-drawer__scroll-view[data-v-f309cd04]{width:100%;height:100%}.u-drawer-left[data-v-f309cd04]{top:0;bottom:0;left:0;background-color:#fff}.u-drawer-right[data-v-f309cd04]{right:0;top:0;bottom:0;background-color:#fff}.u-drawer-top[data-v-f309cd04]{top:0;left:0;right:0;background-color:#fff}.u-drawer-bottom[data-v-f309cd04]{bottom:0;left:0;right:0;background-color:#fff}.u-drawer-center[data-v-f309cd04]{display:flex;flex-direction:row;flex-direction:column;bottom:0;left:0;right:0;top:0;justify-content:center;align-items:center;opacity:0;z-index:99999}.u-mode-center-box[data-v-f309cd04]{min-width:3.125rem;min-height:3.125rem;display:block;position:relative;background-color:#fff}.u-drawer-content-visible.u-drawer-center[data-v-f309cd04]{transform:scale(1);opacity:1}.u-animation-zoom[data-v-f309cd04]{transform:scale(1.15)}.u-drawer-content-visible[data-v-f309cd04]{transform:translateZ(0)!important}.u-close[data-v-f309cd04]{position:absolute;z-index:3}.u-close--top-left[data-v-f309cd04]{top:.9375rem;left:.9375rem}.u-close--top-right[data-v-f309cd04]{top:.9375rem;right:.9375rem}.u-close--bottom-left[data-v-f309cd04]{bottom:.9375rem;left:.9375rem}.u-close--bottom-right[data-v-f309cd04]{right:.9375rem;bottom:.9375rem}

View File

@ -1 +0,0 @@
.u-search[data-v-47eb8750]{display:flex;flex-direction:row;align-items:center;flex:1}.u-content[data-v-47eb8750]{display:flex;flex-direction:row;align-items:center;padding:0 .5625rem;flex:1}.u-clear-icon[data-v-47eb8750]{display:flex;flex-direction:row;align-items:center}.u-input[data-v-47eb8750]{flex:1;font-size:.875rem;line-height:1;margin:0 .3125rem;color:#999}.u-close-wrap[data-v-47eb8750]{width:1.25rem;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-47eb8750]{color:#999}.u-action[data-v-47eb8750]{font-size:.875rem;color:#333;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-47eb8750]{width:2.5rem;margin-left:.3125rem}

View File

@ -1 +0,0 @@
import{D as e,r as t,a as o,o as l,c as a,w as r,b as s,x as c,h as i,l as n,t as u,s as d,v as h,k as p,I as f}from"./index.26a6cf84.js";import{_ as y}from"./u-icon.7191c6e8.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var g=m({name:"u-search",emits:["update:modelValue","input","change","search","custom","clear","focus","blur"],props:{value:{type:String,default:""},modelValue:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:()=>({})},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:()=>({})},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e)},valueCom:{immediate:!0,handler(e){this.keyword=e}}},computed:{valueCom(){return this.modelValue},showActionBtn(){return!(this.animation||!this.showAction)},borderStyle(){return this.borderColor?`1px solid ${this.borderColor}`:"none"}},methods:{inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick((()=>{this.$emit("clear")}))},search(t){this.$emit("search",t.detail.value);try{e()}catch(o){}},custom(){this.$emit("custom",this.keyword);try{e()}catch(t){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout((()=>{this.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")}}},[["render",function(e,m,g,b,C,k){const w=t(o("u-icon"),y),S=p,x=f;return l(),a(S,{class:"u-search",onClick:k.clickHandler,style:c({margin:g.margin})},{default:r((()=>[s(S,{class:"u-content",style:c({backgroundColor:g.bgColor,borderRadius:"round"==g.shape?"100rpx":"10rpx",border:k.borderStyle,height:g.height+"rpx"})},{default:r((()=>[s(S,{class:"u-icon-wrap"},{default:r((()=>[s(w,{class:"u-clear-icon",size:30,name:g.searchIcon,color:g.searchIconColor?g.searchIconColor:g.color},null,8,["name","color"])])),_:1}),s(x,{"confirm-type":"search",onBlur:k.blur,value:k.valueCom,onConfirm:k.search,onInput:k.inputChange,disabled:g.disabled,onFocus:k.getFocus,focus:g.focus,maxlength:g.maxlength,"placeholder-class":"u-placeholder-class",placeholder:g.placeholder,"placeholder-style":`color: ${g.placeholderColor}`,class:"u-input",type:"text",style:c([{textAlign:g.inputAlign,color:g.color,backgroundColor:g.bgColor},g.inputStyle])},null,8,["onBlur","value","onConfirm","onInput","disabled","onFocus","focus","maxlength","placeholder","placeholder-style","style"]),C.keyword&&g.clearabled&&C.focused?(l(),a(S,{key:0,class:"u-close-wrap",onClick:k.clear},{default:r((()=>[s(w,{class:"u-clear-icon",name:"close-circle-fill",size:"34",color:"#c0c4cc"})])),_:1},8,["onClick"])):i("v-if",!0)])),_:1},8,["style"]),s(S,{style:c([g.actionStyle]),class:d(["u-action",[k.showActionBtn||C.show?"u-action-active":""]]),onClick:h(k.custom,["stop","prevent"])},{default:r((()=>[n(u(g.actionText),1)])),_:1},8,["style","class","onClick"])])),_:1},8,["onClick","style"])}],["__scopeId","data-v-47eb8750"]]);export{g as _};

View File

@ -1 +0,0 @@
import{Z as e,aq as t,ar as s,o as i,c as n,w as a,h,k as r}from"./index.26a6cf84.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";var u=c({name:"u-verification-code",emits:["start","end","change"],props:{seconds:{type:[String,Number],default:60},startText:{type:String,default:"获取验证码"},changeText:{type:String,default:"X秒重新获取"},endText:{type:String,default:"重新获取"},keepRunning:{type:Boolean,default:!1},uniqueKey:{type:String,default:""}},data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},methods:{checkKeepRunning(){let s=Number(e(this.uniqueKey+"_$uCountDownTimestamp"));if(!s)return this.changeEvent(this.startText);let i=Math.floor(+new Date/1e3);this.keepRunning&&s&&s>i?(this.secNum=s-i,t(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)}),1e3)},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);s({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeUnmount(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,s,c,u,m){const o=r;return i(),n(o,{class:"u-code-wrap"},{default:a((()=>[h(" 此组件功能由js完成无需写html逻辑 ")])),_:1})}],["__scopeId","data-v-1cef9d0f"]]);export{u as _};

View File

@ -1 +0,0 @@
.u-code-wrap[data-v-1cef9d0f]{width:0;height:0;position:fixed;z-index:-1}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{z as a}from"./index.26a6cf84.js";function t(t){const c=a(!1);return{isLock:c,lockFn:async(...a)=>{if(!c.value){c.value=!0;try{const n=await t(...a);return c.value=!1,n}catch(n){throw c.value=!1,n}}}}}export{t as u};

View File

@ -1 +0,0 @@
.user-info[data-v-4c42a4cc]{background:url(/mobile/assets/my_topbg.e2ef645f.png);height:7.1875rem;background-position:bottom;background-size:100% auto}

View File

@ -1 +0,0 @@
.u-datetime-picker[data-v-33a0737a]{position:relative;z-index:999}.u-picker-view[data-v-33a0737a]{height:100%;box-sizing:border-box}.u-picker-header[data-v-33a0737a]{width:100%;height:2.8125rem;padding:0 1.25rem;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;font-size:.9375rem;background:#fff;position:relative}.u-picker-header[data-v-33a0737a]:after{content:"";position:absolute;border-bottom:.03125rem solid #eaeef1;transform:scaleY(.5);bottom:0;right:0;left:0}.u-picker__title[data-v-33a0737a]{color:#666}.u-picker-body[data-v-33a0737a]{width:100%;height:15.625rem;overflow:hidden;background-color:#fff}.u-column-item[data-v-33a0737a]{display:flex;align-items:center;justify-content:center;font-size:1rem;color:#333;padding:0 .25rem}.u-text[data-v-33a0737a]{font-size:.75rem;padding-left:.25rem}.u-btn-picker[data-v-33a0737a]{padding:.5rem;box-sizing:border-box;text-align:center;text-decoration:none}.u-opacity[data-v-33a0737a]{opacity:.5}.u-btn-picker--primary[data-v-33a0737a]{color:#4173ff}.u-btn-picker--tips[data-v-33a0737a]{color:#999}.header[data-v-6cb69bea]{width:100%}.header uni-image[data-v-6cb69bea]{width:3.75rem;height:3.75rem;border-radius:50%}.item[data-v-6cb69bea]{margin-top:.0625rem;padding:.9375rem;background-color:#fff}.item .label[data-v-6cb69bea]{width:4.6875rem}.item .content[data-v-6cb69bea]{flex:1;width:80%}

View File

@ -1 +0,0 @@
.u-tips[data-v-72a4be36]{font-size:.8125rem;text-align:center;padding:1.0625rem 0;line-height:1.5;color:#999}.u-action-sheet-item[data-v-72a4be36]{display:flex;flex-direction:row;line-height:1;justify-content:center;align-items:center;font-size:1rem;padding:1.0625rem 0;flex-direction:column}.u-action-sheet-item__subtext[data-v-72a4be36]{font-size:.75rem;color:#999;margin-top:.625rem}.u-gab[data-v-72a4be36]{height:.375rem;background-color:#eaeaec}.u-actionsheet-cancel[data-v-72a4be36]{color:#333}.user-set .item[data-v-44350111]{padding:.9375rem}.user-set .btn-border[data-v-44350111]{border-bottom:.0625rem solid #f8f8f8}

View File

@ -1 +0,0 @@
uni-view[data-v-41960a88],uni-scroll-view[data-v-41960a88]{box-sizing:border-box}[data-v-41960a88]::-webkit-scrollbar,[data-v-41960a88]::-webkit-scrollbar,[data-v-41960a88]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.u-scroll-box[data-v-41960a88]{position:relative}uni-scroll-view[data-v-41960a88] ::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.u-scroll-view[data-v-41960a88]{width:100%;white-space:nowrap;position:relative}.u-tab-item[data-v-41960a88]{position:relative;display:inline-block;text-align:center;transition-property:background-color,color}.u-tab-bar[data-v-41960a88]{position:absolute;bottom:0}.u-tabs-scorll-flex[data-v-41960a88]{display:flex;flex-direction:row;justify-content:space-between}

View File

@ -1 +0,0 @@
import{G as e,H as n,J as t,K as o}from"./index.26a6cf84.js";const s=(n,t=!1,o)=>new Promise(((s,c)=>{let r=e();o&&(r=e().in(o)),r[t?"selectAll":"select"](n).boundingClientRect((function(e){return t&&Array.isArray(e)&&e.length||!t&&e?s(e):void c("找不到元素")})).exec()}));function c(e,s="navigateTo"){const c=e.query?`${e.path}?${function(e){let n="";for(const t of Object.keys(e)){const s=e[t],c=encodeURIComponent(t)+"=";if(!r(s))if(console.log(encodeURIComponent(t),o(s)),o(s)){for(const e of Object.keys(s))if(!r(s[e])){n+=encodeURIComponent(t+"["+e+"]")+"="+encodeURIComponent(s[e])+"&"}}else n+=c+encodeURIComponent(s)+"&"}return n.slice(0,-1)}(e.query)}`:e.path;"navigateTo"==s&&n({url:c}),"reLaunch"==s&&t({url:c})}const r=e=>null==e&&void 0===e;const a=(e,n="rpx")=>Object.is(Number(e),NaN)?e:`${e}${n}`;function i({price:e,take:n="all",prec:t}){let[o,s=""]=(e+"").split(".");if(void 0!==t){for(let e=t-s.length;e>0;--e)s+="0";s=s.substr(0,t)}switch(n){case"int":return o;case"dec":return s;case"all":return o+"."+s}}function l(...e){return function(){return new Promise(((n,t)=>{const o=e.values(),s=e=>{const c=o.next();c.done?n(e):Promise.resolve(c.value(e)).then(s).catch(t)};s()}))}}export{a,i as f,s as g,c as n,l as s};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,24 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/mobile/assets/uni.595f745f.css">
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title>加载中</title>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/mobile/assets/index.26a6cf84.js"></script>
<link rel="stylesheet" href="/mobile/assets/index.a360bc86.css">
</head>
<body>
<div id="app"><!--app-html--></div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Some files were not shown because too many files have changed in this diff Show More