调试h5支付
This commit is contained in:
parent
e889caf07c
commit
d2ff42dd32
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-image.15c7ce71.js";import{d as t,r as s,a,o as l,c as r,w as i,b as d,h as c,l as m,t as n,k as f,n as u,i as x}from"./index.108434b2.js";import{_ as p}from"./icon_visit.9ad00ab7.js";import{_ as o}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=f,h=u,b=x;return l(),r(b,{url:`/pages/news_detail/news_detail?id=${t.newsId}`},{default:i((()=>[d(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((()=>[d(w,{src:t.item.image,width:"240",height:"180"},null,8,["src"])])),_:1})):c("v-if",!0),d(g,{class:"news-card-content flex flex-col justify-between flex-1"},{default:i((()=>[d(g,{class:"news-card-content-title text-lg font-medium"},{default:i((()=>[m(n(t.item.title),1)])),_:1}),d(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[m(n(t.item.intro),1)])),_:1}),d(g,{class:"text-muted text-xs w-full flex justify-between mt-[12rpx]"},{default:i((()=>[d(g,null,{default:i((()=>[m(n(t.item.createTime),1)])),_:1}),d(g,{class:"flex items-center"},{default:i((()=>[d(h,{src:p,class:"w-[30rpx] h-[30rpx]"}),d(g,{class:"ml-[10rpx]"},{default:i((()=>[m(n(t.item.visit),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-125d567f"]]);export{_};
|
||||
import{_ as e}from"./u-image.ec130548.js";import{d as t,r as s,a,o as l,c as r,w as i,b as d,h as c,l as f,t as m,k as n,n as u,i as x}from"./index.89b9ffeb.js";import{_ as p}from"./icon_visit.9ad00ab7.js";import{_ as o}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,b=u,h=x;return l(),r(h,{url:`/pages/news_detail/news_detail?id=${t.newsId}`},{default:i((()=>[d(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((()=>[d(w,{src:t.item.image,width:"240",height:"180"},null,8,["src"])])),_:1})):c("v-if",!0),d(g,{class:"news-card-content flex flex-col justify-between flex-1"},{default:i((()=>[d(g,{class:"news-card-content-title text-lg font-medium"},{default:i((()=>[f(m(t.item.title),1)])),_:1}),d(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[f(m(t.item.intro),1)])),_:1}),d(g,{class:"text-muted text-xs w-full flex justify-between mt-[12rpx]"},{default:i((()=>[d(g,null,{default:i((()=>[f(m(t.item.createTime),1)])),_:1}),d(g,{class:"flex items-center"},{default:i((()=>[d(b,{src:p,class:"w-[30rpx] h-[30rpx]"}),d(g,{class:"ml-[10rpx]"},{default:i((()=>[f(m(t.item.visit),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-125d567f"]]);export{_};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{C as t}from"./index.89b9ffeb.js";function r(){return t.get({url:"/article/category"})}function e(r){return t.get({url:"/article/list",data:r})}function a(r){return t.get({url:"/article/detail",data:r})}function c(r){return t.post({url:"/article/collectAdd",data:r},{isAuth:!0})}function l(r){return t.post({url:"/article/collectCancel",data:r},{isAuth:!0})}function n(){return t.get({url:"/article/collectList"})}export{r as a,a as b,l as c,c as d,n as e,e as g};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{C as t}from"./index.108434b2.js";function r(){return t.get({url:"/article/category"})}function a(r){return t.get({url:"/article/list",data:r})}function e(r){return t.get({url:"/article/detail",data:r})}function c(r){return t.post({url:"/article/collectAdd",data:r},{isAuth:!0})}function l(r){return t.post({url:"/article/collectCancel",data:r},{isAuth:!0})}function n(){return t.get({url:"/article/collectList"})}export{r as a,e as b,l as c,c as d,n as e,a as g};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
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 i,a as m,l as n,t as f}from"./index.108434b2.js";import{_ as g}from"./z-paging.fbd5ffc1.js";import{b as _}from"./recharge.1ec07aad.js";import"./plugin-vue_export-helper.21dcd24c.js";const b=e({__name:"recharge_record",setup(e){const b=a(),x=s([]),h=async(e,a)=>{try{const s=await _({page_no:e,page_size:a});b.value.complete(s.lists)}catch(s){b.value.complete(!1)}};return(e,a)=>{const s=p,_=i(m("z-paging"),g);return t(),r(_,{ref_key:"paging",ref:b,modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=e=>x.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(x.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((()=>[n(f(e.tips),1)])),_:2},1024),o(s,{class:"text-lg text-primary"},{default:l((()=>[n(" +"+f(e.orderAmount),1)])),_:2},1024)])),_:2},1024),o(s,{class:"text-sm text-muted mr-1"},{default:l((()=>[n(f(e.createTime),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["modelValue"])}}});export{b as default};
|
||||
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 p,k as c,r as i,a as m,l as n,t as f}from"./index.89b9ffeb.js";import{_ as g}from"./z-paging.64eb059e.js";import{b as _}from"./recharge.435a56ea.js";import"./plugin-vue_export-helper.21dcd24c.js";const b=e({__name:"recharge_record",setup(e){const b=a(),x=s([]),h=async(e,a)=>{try{const s=await _({page_no:e,page_size:a});b.value.complete(s.lists)}catch(s){b.value.complete(!1)}};return(e,a)=>{const s=c,_=i(m("z-paging"),g);return t(),r(_,{ref_key:"paging",ref:b,modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=e=>x.value=e),onQuery:h,"show-loading-more-when-reload":!0},{default:l((()=>[o(s,{class:"pt-2.5"},{default:l((()=>[(t(!0),d(p,null,u(x.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((()=>[n(f(e.tips),1)])),_:2},1024),o(s,{class:"text-lg text-primary"},{default:l((()=>[n(" +"+f(e.orderAmount),1)])),_:2},1024)])),_:2},1024),o(s,{class:"text-sm text-muted mr-1"},{default:l((()=>[n(f(e.createTime),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["modelValue"])}}});export{b as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,z as s,W as e,o as t,c as r,w as n,b as o,aE as l,ax as p,r as u,a as c,k as m}from"./index.108434b2.js";import{_ as d}from"./u-parse.a6d58323.js";import"./plugin-vue_export-helper.21dcd24c.js";const i=a({__name:"agreement",setup(a){let i=s("");const _=s("");return e((a=>{a.type&&(i=a.type,(async a=>{const s=await l({type:a});console.log(s,"res"),_.value=s.content,p({title:s.name})})(i))})),(a,s)=>{const e=u(c("u-parse"),d),l=m;return t(),r(l,{class:""},{default:n((()=>[o(e,{html:_.value},null,8,["html"])])),_:1})}}});export{i as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,z as e,W as s,o as t,c as r,w as n,b as o,aE as l,ax as p,r as c,a as u,k as m}from"./index.89b9ffeb.js";import{_ as i}from"./u-parse.c0959570.js";import"./plugin-vue_export-helper.21dcd24c.js";const d=a({__name:"agreement",setup(a){let d=e("");const f=e("");return s((a=>{a.type&&(d=a.type,(async a=>{const e=await l({type:a});console.log(e,"res"),f.value=e.content,p({title:e.name})})(d))})),(a,e)=>{const s=c(u("u-parse"),i),l=m;return t(),r(l,{class:""},{default:n((()=>[o(s,{html:f.value},null,8,["html"])])),_:1})}}});export{d as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
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 f,k as u}from"./index.89b9ffeb.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=f,m=u;return a(),t(m,{class:"as-us flex flex-1 flex-col items-center"},{default:o((()=>[r(i,{src:c(d).config.website.logo,mode:"",class:"img"},null,8,["src"]),r(m,{class:"text-content mt-[20rpx]"},{default:o((()=>[l("当前版本"+n(c(d).config.version),1)])),_:1})])),_:1})}}}),[["__scopeId","data-v-31e0ee28"]]);export{i as default};
|
||||
|
|
@ -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 d}from"./index.108434b2.js";import{_ as f}from"./plugin-vue_export-helper.21dcd24c.js";var i=f(s({__name:"as_us",setup(s){const f=e();return(s,e)=>{const i=u,m=d;return a(),t(m,{class:"as-us flex flex-1 flex-col items-center"},{default:o((()=>[r(i,{src:c(f).config.website.logo,mode:"",class:"img"},null,8,["src"]),r(m,{class:"text-content mt-[20rpx]"},{default:o((()=>[l("当前版本"+n(c(f).config.version),1)])),_:1})])),_:1})}}}),[["__scopeId","data-v-31e0ee28"]]);export{i as default};
|
||||
|
|
@ -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 i,l as d,t as m,ak as n,al as c,aL as b,ai as f,r as p,a as _,k as x}from"./index.108434b2.js";import{a as v,_ as h}from"./u-form-item.2645af33.js";import{_ as j}from"./u-verification-code.21271a23.js";import{_ as k}from"./u-form.a1c88ea3.js";import{_ as g}from"./u-button.b8216aa1.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.cfc830b8.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 b(C,{token:y.temToken}),uni.$u.toast("绑定成功"),y.login(y.temToken),void setTimeout((()=>{f()}),1e3)):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"),k),b=p(_("u-button"),g);return r(),s(n,{class:"bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[40rpx] box-border"},{default:u((()=>[i(n,{class:"w-full"},{default:u((()=>[i(c,{borderBottom:"","label-width":150},{default:u((()=>[i(l,{label:"手机号",borderBottom:""},{default:u((()=>[i(o,{class:"flex-1",modelValue:C.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>C.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),i(l,{label:"验证码",borderBottom:""},{default:u((()=>[i(o,{class:"flex-1",modelValue:C.code,"onUpdate:modelValue":a[1]||(a[1]=e=>C.code=e),placeholder:"请输入验证码",border:!1},null,8,["modelValue"]),i(n,{class:"border-l border-solid border-0 border-light pl-3 text-muted leading-4 ml-3 w-[180rpx]",onClick:$},{default:u((()=>[i(t,{ref_key:"uCodeRef",ref:w,seconds:60,onChange:B,"change-text":"x秒"},null,512),d(" "+m(V.value),1)])),_:1})])),_:1})])),_:1}),i(n,{class:"mt-[40rpx]"},{default:u((()=>[i(b,{type:"primary",shape:"circle",onClick:I},{default:u((()=>[d(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-91bee10a"]]);export{V as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
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,ak as n,al as c,aL as f,ai as b,r as p,a as _,k as x}from"./index.89b9ffeb.js";import{a as v,_ as h}from"./u-form-item.49cd52ad.js";import{_ as j}from"./u-verification-code.1b6452b2.js";import{_ as k}from"./u-form.aa077dfc.js";import{_ as g}from"./u-button.0006fe1c.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8066fd79.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()}),1e3)):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"),k),f=p(_("u-button"),g);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-91bee10a"]]);export{V as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as a,z as e,m as s,W as o,ax as l,o as t,c as r,w as d,b as u,l as p,t as m,h as i,aF as f,ai as n,k as c,r as b,a as w}from"./index.108434b2.js";import{a as _,_ as x}from"./u-form-item.2645af33.js";import{_ as h}from"./u-form.a1c88ea3.js";import{_ as v}from"./u-button.b8216aa1.js";import{_ as V}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.cfc830b8.js";import"./emitter.5b880544.js";var y=V(a({__name:"change_password",setup(a){const V=e(""),y=s({password:"",password2:""}),j=async()=>y.oldPassword||"set"==V.value?y.password?y.password2?y.password!=y.password2?uni.$u.toast("两次输入的密码不一致"):(await f(y),uni.$u.toast("操作成功"),void setTimeout((()=>{n()}),1e3)):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=c,o=b(w("u-input"),_),l=b(w("u-form-item"),x),f=b(w("u-form"),h),n=b(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.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=a=>y.oldPassword=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.password2,"onUpdate:modelValue":e[2]||(e[2]=a=>y.password2=a),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),u(s,{class:"mt-[100rpx]"},{default:d((()=>[u(n,{type:"primary",shape:"circle",onClick:j},{default:d((()=>[p(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-14e4bd27"]]);export{y as default};
|
||||
import{d as a,z as e,m as s,W as o,ax as l,o as t,c as r,w as d,b as u,l as p,t as m,h as i,aF as f,ai as n,k as c,r as b,a as w}from"./index.89b9ffeb.js";import{a as _,_ as x}from"./u-form-item.49cd52ad.js";import{_ as h}from"./u-form.aa077dfc.js";import{_ as v}from"./u-button.0006fe1c.js";import{_ as V}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8066fd79.js";import"./emitter.5b880544.js";var y=V(a({__name:"change_password",setup(a){const V=e(""),y=s({password:"",password2:""}),j=async()=>y.oldPassword||"set"==V.value?y.password?y.password2?y.password!=y.password2?uni.$u.toast("两次输入的密码不一致"):(await f(y),uni.$u.toast("操作成功"),void setTimeout((()=>{n()}),1e3)):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=c,o=b(w("u-input"),_),l=b(w("u-form-item"),x),f=b(w("u-form"),h),n=b(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.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=a=>y.oldPassword=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.password2,"onUpdate:modelValue":e[2]||(e[2]=a=>y.password2=a),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),u(s,{class:"mt-[100rpx]"},{default:d((()=>[u(n,{type:"primary",shape:"circle",onClick:j},{default:d((()=>[p(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-14e4bd27"]]);export{y as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as t}from"./news-card.8d1c1617.js";import{P as e,aB 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 r,l as u,t as m,F as p,h as f,k as v,aC as b,aD as w,d as g,V as y,m as k,z as x,r as C,a as W}from"./index.108434b2.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as X}from"./z-paging.fbd5ffc1.js";import{e as B,c as $}from"./news.d18d7830.js";import"./u-image.15c7ce71.js";import"./u-icon.cfc830b8.js";import"./icon_visit.9ad00ab7.js";var F=_({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=w;return i(),o(x,{class:""},{default:a((()=>[n(W,{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},r(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((()=>[u(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)},u=async t=>{try{const e=h.value[t].articleId;await $({articleId:e}),uni.$u.toast("已取消收藏"),s.value.reload()}catch(e){console.log("取消收藏报错=>",e)}};return(e,m)=>{const f=C(W("news-card"),t),v=C(W("u-swipe-action"),F),b=C(W("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,r(h.value,((t,e)=>(i(),o(v,{show:t.show,index:e,key:t.id,onClick:u,options:l,"btn-width":"120"},{default:a((()=>[n(f,{item:t,newsId:t.articleId},null,8,["item","newsId"])])),_:2},1032,["show","index","options"])))),128))])),_:1},8,["modelValue"])}}});export{j as default};
|
||||
import{_ as t}from"./news-card.59f3bbfb.js";import{P as e,aB 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 r,l as u,t as m,F as p,h as f,k as v,aC as b,aD as w,d as g,V as y,m as k,z as x,r as C,a as W}from"./index.89b9ffeb.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as X}from"./z-paging.64eb059e.js";import{e as B,c as $}from"./news.2b909ff2.js";import"./u-image.ec130548.js";import"./u-icon.8066fd79.js";import"./icon_visit.9ad00ab7.js";var F=_({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=w;return i(),o(x,{class:""},{default:a((()=>[n(W,{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},r(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((()=>[u(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)},u=async t=>{try{const e=h.value[t].articleId;await $({articleId:e}),uni.$u.toast("已取消收藏"),s.value.reload()}catch(e){console.log("取消收藏报错=>",e)}};return(e,m)=>{const f=C(W("news-card"),t),v=C(W("u-swipe-action"),F),b=C(W("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,r(h.value,((t,e)=>(i(),o(v,{show:t.show,index:e,key:t.id,onClick:u,options:l,"btn-width":"120"},{default:a((()=>[n(f,{item:t,newsId:t.articleId},null,8,["item","newsId"])])),_:2},1032,["show","index","options"])))),128))])),_:1},8,["modelValue"])}}});export{j as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as e,u as t,r as s,a as n,o as a,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.89b9ffeb.js";import{_ as g}from"./u-image.ec130548.js";import{_ as b}from"./u-button.0006fe1c.js";import{a as h}from"./shop.e647efef.js";import"./u-icon.8066fd79.js";import"./plugin-vue_export-helper.21dcd24c.js";async function v(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(n("u-image"),g),_=f,h=s(n("u-button"),b);return a(),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?(a(),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?(a(),r(_,{key:1,class:"text-content mt-[40rpx]"},{default:c((()=>[u("服务时间:"+i(e.content.time),1)])),_:1})):m("v-if",!0),e.content.mobile?(a(),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(h,{type:"primary",shape:"circle",onClick:x[0]||(x[0]=t=>l(v)(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 h({id:3});t.pages=JSON.parse(e.pages)})(),(e,o)=>{const l=s(n("w-customer-service"),j),u=f;return a(),r(u,{class:"customer-service"},{default:c((()=>[(a(!0),x(_,null,y(t.pages,((e,t)=>(a(),r(u,{key:t},{default:c((()=>["customer-service"==e.name?(a(),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};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{d as e,u as t,r as s,a,o as n,c,w as r,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.108434b2.js";import{_ as b}from"./u-image.15c7ce71.js";import{_ as g}from"./u-button.b8216aa1.js";import{a as h}from"./shop.4ae43f9b.js";import"./u-icon.cfc830b8.js";import"./plugin-vue_export-helper.21dcd24c.js";async function v(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"),b),_=f,h=s(a("u-button"),g);return n(),c(_,{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:r((()=>[o(y,{width:"280",height:"280",src:l(d)(e.content.qrcode)},null,8,["src"]),e.content.title?(n(),c(_,{key:0,class:"text-lg mt-[14rpx] font-medium"},{default:r((()=>[u(i(e.content.title),1)])),_:1})):m("v-if",!0),e.content.time?(n(),c(_,{key:1,class:"text-content mt-[40rpx]"},{default:r((()=>[u("服务时间:"+i(e.content.time),1)])),_:1})):m("v-if",!0),e.content.mobile?(n(),c(_,{key:2,class:"text-content mt-[14rpx] flex flex-wrap"},{default:r((()=>[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:r((()=>[o(h,{type:"primary",shape:"circle",onClick:x[0]||(x[0]=t=>l(v)(l(d)(e.content.qrcode)))},{default:r((()=>[u(" 保存二维码图片 ")])),_:1})])),_:1})])),_:1})}}}),k=e({__name:"customer_service",setup(e){const t=d({pages:[]});return(async()=>{const e=await h({id:3});t.pages=JSON.parse(e.pages)})(),(e,o)=>{const l=s(a("w-customer-service"),j),u=f;return n(),c(u,{class:"customer-service"},{default:r((()=>[(n(!0),x(_,null,y(t.pages,((e,t)=>(n(),c(u,{key:t},{default:r((()=>["customer-service"==e.name?(n(),c(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};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{o as e,e as r}from"./index.89b9ffeb.js";import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";var t=o({},[["render",function(o,t){return e(),r("div")}]]);export{t as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{o as r,e}from"./index.108434b2.js";import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";var t=o({},[["render",function(o,t){return r(),e("div")}]]);export{t as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as e,V as a,z as o,m as l,o as s,c as t,w as r,b as d,l as u,s as m,t as i,ak as p,al as c,aw as n,ai as f,k as b,r as _,a as x,y as w}from"./index.108434b2.js";import{a as V,_ as h}from"./u-form-item.2645af33.js";import{_ as v}from"./u-verification-code.21271a23.js";import{_ as y}from"./u-form.a1c88ea3.js";import{_ as g}from"./u-button.b8216aa1.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.cfc830b8.js";import"./emitter.5b880544.js";var $=j(e({__name:"forget_pwd",setup(e){const j=a(),$=o(""),k=l({mobile:"",code:"",password:"",password2:""}),B=e=>{$.value=e},C=async()=>{var e,a;k.mobile&&(null==(e=j.value)?void 0:e.canGetCode)&&(await p({scene:c.FIND_PASSWORD,mobile:k.mobile}),uni.$u.toast("发送成功"),null==(a=j.value)||a.start())},U=async()=>k.mobile?k.password?k.password2?k.password!=k.password2?uni.$u.toast("两次输入的密码不一致"):(await n(k),uni.$u.toast("操作成功"),void setTimeout((()=>{f()}),1e3)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=b,l=_(x("u-input"),V),p=_(x("u-form-item"),h),c=_(x("u-verification-code"),v),n=w,f=_(x("u-form"),y),D=_(x("u-button"),g);return s(),t(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:r((()=>[d(o,{class:"w-full"},{default:r((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:r((()=>[u("忘记登录密码")])),_:1}),d(f,{borderBottom:"","label-width":150},{default:r((()=>[d(p,{label:"手机号",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",modelValue:k.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>k.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(p,{label:"验证码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",modelValue:k.code,"onUpdate:modelValue":a[1]||(a[1]=e=>k.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:C},{default:r((()=>[d(c,{ref_key:"uCodeRef",ref:j,seconds:60,onChange:B,"change-text":"x秒"},null,512),d(n,{class:m(k.mobile?"text-primary":"text-muted")},{default:r((()=>[u(i($.value),1)])),_:1},8,["class"])])),_:1})])),_:1}),d(p,{label:"新密码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",type:"password",modelValue:k.password,"onUpdate:modelValue":a[2]||(a[2]=e=>k.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(p,{label:"确认密码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",type:"password",modelValue:k.password2,"onUpdate:modelValue":a[3]||(a[3]=e=>k.password2=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:r((()=>[d(D,{type:"primary",shape:"circle",onClick:U},{default:r((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-d7bacc08"]]);export{$ as default};
|
||||
import{d as e,V as a,z as o,m as l,o as s,c as t,w as r,b as d,l as u,s as m,t as i,ak as p,al as c,aw as n,ai as f,k as b,r as _,a as x,y as w}from"./index.89b9ffeb.js";import{a as V,_ as h}from"./u-form-item.49cd52ad.js";import{_ as v}from"./u-verification-code.1b6452b2.js";import{_ as y}from"./u-form.aa077dfc.js";import{_ as g}from"./u-button.0006fe1c.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8066fd79.js";import"./emitter.5b880544.js";var $=j(e({__name:"forget_pwd",setup(e){const j=a(),$=o(""),k=l({mobile:"",code:"",password:"",password2:""}),B=e=>{$.value=e},C=async()=>{var e,a;k.mobile&&(null==(e=j.value)?void 0:e.canGetCode)&&(await p({scene:c.FIND_PASSWORD,mobile:k.mobile}),uni.$u.toast("发送成功"),null==(a=j.value)||a.start())},U=async()=>k.mobile?k.password?k.password2?k.password!=k.password2?uni.$u.toast("两次输入的密码不一致"):(await n(k),uni.$u.toast("操作成功"),void setTimeout((()=>{f()}),1e3)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=b,l=_(x("u-input"),V),p=_(x("u-form-item"),h),c=_(x("u-verification-code"),v),n=w,f=_(x("u-form"),y),D=_(x("u-button"),g);return s(),t(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:r((()=>[d(o,{class:"w-full"},{default:r((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:r((()=>[u("忘记登录密码")])),_:1}),d(f,{borderBottom:"","label-width":150},{default:r((()=>[d(p,{label:"手机号",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",modelValue:k.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>k.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(p,{label:"验证码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",modelValue:k.code,"onUpdate:modelValue":a[1]||(a[1]=e=>k.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:C},{default:r((()=>[d(c,{ref_key:"uCodeRef",ref:j,seconds:60,onChange:B,"change-text":"x秒"},null,512),d(n,{class:m(k.mobile?"text-primary":"text-muted")},{default:r((()=>[u(i($.value),1)])),_:1},8,["class"])])),_:1})])),_:1}),d(p,{label:"新密码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",type:"password",modelValue:k.password,"onUpdate:modelValue":a[2]||(a[2]=e=>k.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(p,{label:"确认密码",borderBottom:""},{default:r((()=>[d(l,{class:"flex-1",type:"password",modelValue:k.password2,"onUpdate:modelValue":a[3]||(a[3]=e=>k.password2=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:r((()=>[d(D,{type:"primary",shape:"circle",onClick:U},{default:r((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-d7bacc08"]]);export{$ as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-search.591efcb4.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 b,j as y,k as h,l as g,t as _,m as x}from"./index.108434b2.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as w}from"./u-image.15c7ce71.js";import{n as k}from"./util.1e6bafdc.js";import{_ as j}from"./news-card.8d1c1617.js";import{_ as O}from"./tabbar.aec1b48c.js";import{g as C}from"./shop.4ae43f9b.js";import"./u-icon.cfc830b8.js";import"./icon_visit.9ad00ab7.js";import"./u-badge.ab84b3c2.js";var I=v({},[["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 g=t(a("u-image"),w),_=b,x=y,v=h;return e.content.data.length&&e.content.enabled?(s(),n(v,{key:0,class:"banner h-[340rpx] bg-white translate-y-0"},{default:l((()=>[r(x,{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(_,{key:t,onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(g,{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 b=t(a("u-image"),w),y=h;return e.content.data.length&&e.content.enabled?(s(),n(y,{key:0,class:"nav pt-[30rpx] pb-[16rpx] bg-white"},{default:l((()=>[r(y,{class:"nav-item flex flex-wrap"},{default:l((()=>[(s(!0),d(f,null,u(e.content.data,((e,t)=>(s(),n(y,{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(b,{width:"41px",height:"41px",src:p(c)(e.image),alt:""},null,8,["src"]),r(y,{class:"mt-[14rpx]"},{default:l((()=>[g(_(e.name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):m("v-if",!0)}}});var U=v(i({__name:"index",setup(e){const c=x({pages:[],article:[]});return(async()=>{const e=await C();c.pages=JSON.parse(e.pages),c.article=e.article})(),(e,i)=>{const o=t(a("w-search"),I),p=t(a("w-banner"),F),b=t(a("w-nav"),S),y=h,_=t(a("news-card"),j),x=t(a("tabbar"),O);return s(),n(y,{class:"index"},{default:l((()=>[(s(!0),d(f,null,u(c.pages,((e,t)=>(s(),n(y,{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(b,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0)])),_:2},1024)))),128)),c.article.length?(s(),n(y,{key:0,class:"article"},{default:l((()=>[r(y,{class:"flex items-center article-title mx-[20rpx] my-[30rpx] text-2xl font-medium"},{default:l((()=>[g(" 最新资讯 ")])),_:1}),(s(!0),d(f,null,u(c.article,(e=>(s(),n(_,{key:e.id,"news-id":e.id,item:e},null,8,["news-id","item"])))),128))])),_:1})):m("v-if",!0),r(x)])),_:1})}}}),[["__scopeId","data-v-2e305e2b"]]);export{U as default};
|
||||
import{_ as e}from"./u-search.6c43b978.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 b,j as y,k as h,l as g,t as _,m as x}from"./index.89b9ffeb.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as w}from"./u-image.ec130548.js";import{n as k}from"./util.8f3b5f91.js";import{_ as j}from"./news-card.59f3bbfb.js";import{_ as O}from"./tabbar.00b134a2.js";import{g as C}from"./shop.e647efef.js";import"./u-icon.8066fd79.js";import"./icon_visit.9ad00ab7.js";import"./u-badge.bba604d3.js";var I=v({},[["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 g=t(a("u-image"),w),_=b,x=y,v=h;return e.content.data.length&&e.content.enabled?(s(),n(v,{key:0,class:"banner h-[340rpx] bg-white translate-y-0"},{default:l((()=>[r(x,{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(_,{key:t,onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(g,{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 b=t(a("u-image"),w),y=h;return e.content.data.length&&e.content.enabled?(s(),n(y,{key:0,class:"nav pt-[30rpx] pb-[16rpx] bg-white"},{default:l((()=>[r(y,{class:"nav-item flex flex-wrap"},{default:l((()=>[(s(!0),d(f,null,u(e.content.data,((e,t)=>(s(),n(y,{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(b,{width:"41px",height:"41px",src:p(c)(e.image),alt:""},null,8,["src"]),r(y,{class:"mt-[14rpx]"},{default:l((()=>[g(_(e.name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):m("v-if",!0)}}});var U=v(i({__name:"index",setup(e){const c=x({pages:[],article:[]});return(async()=>{const e=await C();c.pages=JSON.parse(e.pages),c.article=e.article})(),(e,i)=>{const o=t(a("w-search"),I),p=t(a("w-banner"),F),b=t(a("w-nav"),S),y=h,_=t(a("news-card"),j),x=t(a("tabbar"),O);return s(),n(y,{class:"index"},{default:l((()=>[(s(!0),d(f,null,u(c.pages,((e,t)=>(s(),n(y,{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(b,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0)])),_:2},1024)))),128)),c.article.length?(s(),n(y,{key:0,class:"article"},{default:l((()=>[r(y,{class:"flex items-center article-title mx-[20rpx] my-[30rpx] text-2xl font-medium"},{default:l((()=>[g(" 最新资讯 ")])),_:1}),(s(!0),d(f,null,u(c.article,(e=>(s(),n(_,{key:e.id,"news-id":e.id,item:e},null,8,["news-id","item"])))),128))])),_:1})):m("v-if",!0),r(x)])),_:1})}}}),[["__scopeId","data-v-2e305e2b"]]);export{U as default};
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import{o as n,c as t,w as r,b as e,s as u,x as i,E as o,h as a,k as f,d as c,a8 as l,A as s,a3 as p,ab as h,a4 as v,r as _,a as d,a7 as g,l as y,g as m,H as b,a1 as w,ac as x,ad as j,n as k,ae as A,z as C,t as S,af as O,y as I,I as z,ag as E,ah as R,u as L,V as W,m as B,N as U,aa as T,ai as $,W as V,J as N,aj as F,e as D,F as M,v as q,ak as P,al as Z,q as K,am as G,an as H,ao as J,ap as Y,i as Q,aq as X,ar as nn}from"./index.108434b2.js";import{_ as tn}from"./u-image.15c7ce71.js";import{_ as rn}from"./u-icon.cfc830b8.js";import{_ as en,a as un}from"./u-form-item.2645af33.js";import{_ as on}from"./u-verification-code.21271a23.js";import{_ as an}from"./u-form.a1c88ea3.js";import{_ as fn}from"./u-checkbox.30b8abbd.js";import{_ as cn}from"./u-button.b8216aa1.js";import{_ as ln}from"./plugin-vue_export-helper.21dcd24c.js";import{a as sn}from"./util.1e6bafdc.js";import{_ as pn}from"./u-popup.bf9bf777.js";import{u as hn}from"./useLockFn.3f54fe3a.js";import"./emitter.5b880544.js";var vn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var _n,dn,gn=ln({name:"u-divider",props:{halfWidth:{type:[Number,String],default:150},borderColor:{type:String,default:"#dcdfe6"},type:{type:String,default:"primary"},color:{type:String,default:"#909399"},fontSize:{type:[Number,String],default:26},bgColor:{type:String,default:"#ffffff"},height:{type:[Number,String],default:"auto"},marginTop:{type:[String,Number],default:0},marginBottom:{type:[String,Number],default:0},useSlot:{type:Boolean,default:!0}},computed:{lineStyle(){let n={};return-1!=String(this.halfWidth).indexOf("%")?n.width=this.halfWidth:n.width=this.halfWidth+"rpx",this.borderColor&&(n.borderColor=this.borderColor),n}},methods:{click(){this.$emit("click")}}},[["render",function(c,l,s,p,h,v){const _=f;return n(),t(_,{class:"u-divider",style:i({height:"auto"==s.height?"auto":s.height+"rpx",backgroundColor:s.bgColor,marginBottom:s.marginBottom+"rpx",marginTop:s.marginTop+"rpx"}),onClick:v.click},{default:r((()=>[e(_,{class:u(["u-divider-line",[s.type?"u-divider-line--bordercolor--"+s.type:""]]),style:i([v.lineStyle])},null,8,["class","style"]),s.useSlot?(n(),t(_,{key:0,class:"u-divider-text",style:i({color:s.color,fontSize:s.fontSize+"rpx"})},{default:r((()=>[o(c.$slots,"default",{},void 0,!0)])),_:3},8,["style"])):a("v-if",!0),e(_,{class:u(["u-divider-line",[s.type?"u-divider-line--bordercolor--"+s.type:""]]),style:i([v.lineStyle])},null,8,["class","style"])])),_:3},8,["style","onClick"])}],["__scopeId","data-v-ba53c472"]]),yn={exports:{}};
|
||||
import{o as n,c as t,w as r,b as e,s as u,x as i,E as o,h as a,k as f,d as c,a8 as l,A as s,a3 as p,ab as h,a4 as v,r as _,a as d,a7 as g,l as y,g as m,H as b,a1 as w,ac as x,ad as j,n as k,ae as A,z as C,t as S,af as O,y as I,I as z,ag as E,ah as R,u as L,V as W,m as B,N as U,aa as T,ai as $,W as V,J as N,aj as F,e as D,F as M,v as q,ak as P,al as Z,q as K,am as G,an as H,ao as J,ap as Y,i as Q,aq as X,ar as nn}from"./index.89b9ffeb.js";import{_ as tn}from"./u-image.ec130548.js";import{_ as rn}from"./u-icon.8066fd79.js";import{_ as en,a as un}from"./u-form-item.49cd52ad.js";import{_ as on}from"./u-verification-code.1b6452b2.js";import{_ as an}from"./u-form.aa077dfc.js";import{_ as fn}from"./u-checkbox.04c74c8a.js";import{_ as cn}from"./u-button.0006fe1c.js";import{_ as ln}from"./plugin-vue_export-helper.21dcd24c.js";import{a as sn}from"./util.8f3b5f91.js";import{_ as pn}from"./u-popup.c9684e46.js";import{u as hn}from"./useLockFn.3193fbd0.js";import"./emitter.5b880544.js";var vn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var _n,dn,gn=ln({name:"u-divider",props:{halfWidth:{type:[Number,String],default:150},borderColor:{type:String,default:"#dcdfe6"},type:{type:String,default:"primary"},color:{type:String,default:"#909399"},fontSize:{type:[Number,String],default:26},bgColor:{type:String,default:"#ffffff"},height:{type:[Number,String],default:"auto"},marginTop:{type:[String,Number],default:0},marginBottom:{type:[String,Number],default:0},useSlot:{type:Boolean,default:!0}},computed:{lineStyle(){let n={};return-1!=String(this.halfWidth).indexOf("%")?n.width=this.halfWidth:n.width=this.halfWidth+"rpx",this.borderColor&&(n.borderColor=this.borderColor),n}},methods:{click(){this.$emit("click")}}},[["render",function(c,l,s,p,h,v){const _=f;return n(),t(_,{class:"u-divider",style:i({height:"auto"==s.height?"auto":s.height+"rpx",backgroundColor:s.bgColor,marginBottom:s.marginBottom+"rpx",marginTop:s.marginTop+"rpx"}),onClick:v.click},{default:r((()=>[e(_,{class:u(["u-divider-line",[s.type?"u-divider-line--bordercolor--"+s.type:""]]),style:i([v.lineStyle])},null,8,["class","style"]),s.useSlot?(n(),t(_,{key:0,class:"u-divider-text",style:i({color:s.color,fontSize:s.fontSize+"rpx"})},{default:r((()=>[o(c.$slots,"default",{},void 0,!0)])),_:3},8,["style"])):a("v-if",!0),e(_,{class:u(["u-divider-line",[s.type?"u-divider-line--bordercolor--"+s.type:""]]),style:i([v.lineStyle])},null,8,["class","style"])])),_:3},8,["style","onClick"])}],["__scopeId","data-v-ba53c472"]]),yn={exports:{}};
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,z as e,W as s,o as t,c as l,w as r,h as u,b as c,l as i,t as d,k as o,n as m,y as n,r as p,a as f}from"./index.108434b2.js";import{_ as x}from"./u-parse.a6d58323.js";import{_}from"./u-icon.cfc830b8.js";import{_ as v}from"./icon_visit.9ad00ab7.js";import{b as w,c as h,d as y}from"./news.d18d7830.js";import{_ as b}from"./plugin-vue_export-helper.21dcd24c.js";var j=b(a({__name:"news_detail",setup(a){const b=e({});let j="";const k=async a=>{b.value=await w({id:a})};return s((a=>{j=a.id,k(j)})),(a,e)=>{const s=o,w=m,g=n,I=p(f("u-parse"),x),z=p(f("u-icon"),_);return t(),l(s,{class:"news-detail bg-white"},{default:r((()=>[u(" 标题信心 "),c(s,{class:"news-detail-header py-[20rpx] px-[30rpx]"},{default:r((()=>[c(s,{class:"text-3xl font-medium"},{default:r((()=>[i(d(b.value.title),1)])),_:1}),c(s,{class:"flex mt-[20rpx] text-xs"},{default:r((()=>[b.value.author?(t(),l(s,{key:0,class:"mr-[40rpx]"},{default:r((()=>[i("作者: "+d(b.value.author),1)])),_:1})):u("v-if",!0),c(s,{class:"text-muted mr-[40rpx] flex-1"},{default:r((()=>[i(d(b.value.createTime),1)])),_:1}),c(s,{class:"flex items-center text-muted flex-none"},{default:r((()=>[c(w,{src:v,class:"w-[30rpx] h-[30rpx]"}),c(s,{class:"ml-[10rpx]"},{default:r((()=>[i(d(b.value.visit),1)])),_:1})])),_:1})])),_:1})])),_:1}),u(" 咨询内容 "),c(s,{class:"news-detail-section bg-white p-[24rpx]"},{default:r((()=>[u(" 摘要 "),b.value.summary?(t(),l(s,{key:0,class:"summary p-[20rpx] text-base"},{default:r((()=>[c(g,{class:"font-medium"},{default:r((()=>[i("摘要: ")])),_:1}),i(" "+d(b.value.summary),1)])),_:1})):u("v-if",!0),u(" 内容 "),c(s,{class:"mt-[20rpx]"},{default:r((()=>[c(I,{html:b.value.content},null,8,["html"])])),_:1})])),_:1}),c(s,{class:"panel-btn flex items-center px-[34rpx]",onClick:e[0]||(e[0]=a=>(async a=>{try{b.value.collect?(await h({articleId:a}),uni.$u.toast("已取消收藏")):(await y({articleId:a}),uni.$u.toast("收藏成功")),k(j)}catch(e){}})(b.value.id))},{default:r((()=>[c(z,{name:b.value.collect?"star-fill":"star",size:"40",color:b.value.collect?"#F7BA47":"#333"},null,8,["name","color"]),c(g,{class:"ml-[10rpx]"},{default:r((()=>[i("收藏")])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-3a16a61e"]]);export{j as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,z as e,W as s,o as t,c as l,w as r,h as u,b as c,l as i,t as o,k as d,n as m,y as n,r as f,a as p}from"./index.89b9ffeb.js";import{_ as x}from"./u-parse.c0959570.js";import{_}from"./u-icon.8066fd79.js";import{_ as v}from"./icon_visit.9ad00ab7.js";import{b as w,c as h,d as b}from"./news.2b909ff2.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 s((a=>{j=a.id,k(j)})),(a,e)=>{const s=d,w=m,g=n,I=f(p("u-parse"),x),z=f(p("u-icon"),_);return t(),l(s,{class:"news-detail bg-white"},{default:r((()=>[u(" 标题信心 "),c(s,{class:"news-detail-header py-[20rpx] px-[30rpx]"},{default:r((()=>[c(s,{class:"text-3xl font-medium"},{default:r((()=>[i(o(y.value.title),1)])),_:1}),c(s,{class:"flex mt-[20rpx] text-xs"},{default:r((()=>[y.value.author?(t(),l(s,{key:0,class:"mr-[40rpx]"},{default:r((()=>[i("作者: "+o(y.value.author),1)])),_:1})):u("v-if",!0),c(s,{class:"text-muted mr-[40rpx] flex-1"},{default:r((()=>[i(o(y.value.createTime),1)])),_:1}),c(s,{class:"flex items-center text-muted flex-none"},{default:r((()=>[c(w,{src:v,class:"w-[30rpx] h-[30rpx]"}),c(s,{class:"ml-[10rpx]"},{default:r((()=>[i(o(y.value.visit),1)])),_:1})])),_:1})])),_:1})])),_:1}),u(" 咨询内容 "),c(s,{class:"news-detail-section bg-white p-[24rpx]"},{default:r((()=>[u(" 摘要 "),y.value.summary?(t(),l(s,{key:0,class:"summary p-[20rpx] text-base"},{default:r((()=>[c(g,{class:"font-medium"},{default:r((()=>[i("摘要: ")])),_:1}),i(" "+o(y.value.summary),1)])),_:1})):u("v-if",!0),u(" 内容 "),c(s,{class:"mt-[20rpx]"},{default:r((()=>[c(I,{html:y.value.content},null,8,["html"])])),_:1})])),_:1}),c(s,{class:"panel-btn flex items-center px-[34rpx]",onClick:e[0]||(e[0]=a=>(async a=>{try{y.value.collect?(await h({articleId:a}),uni.$u.toast("已取消收藏")):(await b({articleId:a}),uni.$u.toast("收藏成功")),k(j)}catch(e){}})(y.value.id))},{default:r((()=>[c(z,{name:y.value.collect?"star-fill":"star",size:"40",color:y.value.collect?"#F7BA47":"#333"},null,8,["name","color"]),c(g,{class:"ml-[10rpx]"},{default:r((()=>[i("收藏")])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-3a16a61e"]]);export{j as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as a,z as e,aR as t,m as s,A as r,W as l,o as u,e as i,h as o,b as c,w as d,g as n,l as m,t as _,c as f,F as p,J as g,ai as x,r as y,a as h,y as v,k as b}from"./index.108434b2.js";import{g as w,_ as j,a as k}from"./pay.006dac2e.js";import{_ as R}from"./u-image.15c7ce71.js";import{_ as O}from"./u-button.b8216aa1.js";import{_ as A}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.cfc830b8.js";var C=A(a({__name:"payment_result",setup(a){const A={succeed:{text:"支付成功",image:"/static/images/payment/icon_succeed.png"},waiting:{text:"等待支付",image:"/static/images/payment/icon_waiting.png"}},C=e(t.LOADING),E=e({id:"",from:""}),I=s({order:{}}),L=r((()=>{const a=!!I.pay_status;return A[a?"succeed":"waiting"]})),N=()=>{g({url:"/pages/index/index"})},z=()=>{if("recharge"===E.value.from)x()};return l((async a=>{try{if(!a.id)throw new Error("订单不存在");E.value=a,await new Promise(((a,e)=>{w({order_id:E.value.id,from:E.value.from}).then((e=>{Object.assign(I,e),a(e)})).catch((a=>{e(a)}))})),C.value=t.NORMAL}catch(e){console.log(e),C.value=t.ERROR}})),(a,e)=>{const t=y(h("u-empty"),j),s=y(h("u-image"),R),r=v,l=b,g=y(h("u-button"),O),x=y(h("page-status"),k);return u(),i(p,null,[o(" 页面状态 "),c(x,{status:C.value},{error:d((()=>[c(t,{text:"订单不存在",mode:"order"})])),default:d((()=>[c(l,{class:"payment-result p-[20rpx]"},{default:d((()=>[c(l,{class:"result bg-white p-[20rpx] rounded-md"},{default:d((()=>[c(l,{class:"flex flex-col items-center my-[40rpx]"},{default:d((()=>[o(" 支付状态图片 "),c(s,{class:"status-image",src:n(L).image,width:"100",height:"100",shape:"circle"},null,8,["src"]),o(" 支付状态文字 "),c(r,{class:"text-2xl font-medium mt-[20rpx]"},{default:d((()=>[m(_(n(L).text),1)])),_:1}),c(l,{class:"text-3xl font-medium mt-[20rpx]"},{default:d((()=>[m(" ¥ "+_(I.order.order_amount),1)])),_:1})])),_:1}),o(" 支付信息 "),c(l,{class:"result-info"},{default:d((()=>[c(l,{class:"result-info__item"},{default:d((()=>[c(r,null,{default:d((()=>[m("订单编号")])),_:1}),c(r,null,{default:d((()=>[m(_(I.order.order_sn),1)])),_:1})])),_:1}),c(l,{class:"result-info__item"},{default:d((()=>[c(r,null,{default:d((()=>[m("付款时间")])),_:1}),c(r,null,{default:d((()=>[m(_(I.order.pay_time),1)])),_:1})])),_:1}),c(l,{class:"result-info__item"},{default:d((()=>[c(r,null,{default:d((()=>[m("支付方式")])),_:1}),I.pay_status?(u(),f(r,{key:0},{default:d((()=>[m(_(I.order.pay_way||"-"),1)])),_:1})):(u(),f(r,{key:1},{default:d((()=>[m("未支付")])),_:1}))])),_:1})])),_:1})])),_:1}),c(l,{class:"mt-[40rpx]"},{default:d((()=>[c(l,{class:"mb-[20rpx]"},{default:d((()=>["recharge"==E.value.from?(u(),f(g,{key:0,type:"primary",shape:"circle","hover-class":"none",onClick:z},{default:d((()=>[m(" 继续充值 ")])),_:1})):o("v-if",!0)])),_:1}),c(l,{class:"mb-[20rpx]"},{default:d((()=>[c(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-424b78a4"]]);export{C as default};
|
||||
import{d as e,z as a,aR as t,m as s,A as r,W as l,o as u,e as i,h as o,b as c,w as d,g as n,l as m,t as f,c as _,F as p,J as g,ai as x,r as y,a as h,y as v,k as w}from"./index.89b9ffeb.js";import{g as b,_ as j,a as k}from"./pay.88510640.js";import{_ as R}from"./u-image.ec130548.js";import{_ as O}from"./u-button.0006fe1c.js";import{_ as A}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8066fd79.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(t.LOADING),E=a({id:"",from:""}),I=s({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()};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=t.NORMAL}catch(a){console.log(a),C.value=t.ERROR}})),(e,a)=>{const t=y(h("u-empty"),j),s=y(h("u-image"),R),r=v,l=w,g=y(h("u-button"),O),x=y(h("page-status"),k);return u(),i(p,null,[o(" 页面状态 "),c(x,{status:C.value},{error:d((()=>[c(t,{text:"订单不存在",mode:"order"})])),default:d((()=>[c(l,{class:"payment-result p-[20rpx]"},{default:d((()=>[c(l,{class:"result bg-white p-[20rpx] rounded-md"},{default:d((()=>[c(l,{class:"flex flex-col items-center my-[40rpx]"},{default:d((()=>[o(" 支付状态图片 "),c(s,{class:"status-image",src:n(L).image,width:"100",height:"100",shape:"circle"},null,8,["src"]),o(" 支付状态文字 "),c(r,{class:"text-2xl font-medium mt-[20rpx]"},{default:d((()=>[m(f(n(L).text),1)])),_:1}),c(l,{class:"text-3xl font-medium mt-[20rpx]"},{default:d((()=>[m(" ¥ "+f(I.order.order_amount),1)])),_:1})])),_:1}),o(" 支付信息 "),c(l,{class:"result-info"},{default:d((()=>[c(l,{class:"result-info__item"},{default:d((()=>[c(r,null,{default:d((()=>[m("订单编号")])),_:1}),c(r,null,{default:d((()=>[m(f(I.order.order_sn),1)])),_:1})])),_:1}),c(l,{class:"result-info__item"},{default:d((()=>[c(r,null,{default:d((()=>[m("付款时间")])),_:1}),c(r,null,{default:d((()=>[m(f(I.order.pay_time),1)])),_:1})])),_:1}),c(l,{class:"result-info__item"},{default:d((()=>[c(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}),c(l,{class:"mt-[40rpx]"},{default:d((()=>[c(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})):o("v-if",!0)])),_:1}),c(l,{class:"mb-[20rpx]"},{default:d((()=>[c(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-424b78a4"]]);export{C as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as e,z as a,u as s,A as o,m as l,o as t,c as r,w as u,b as d,g as m,l as p,v as n,h as i,av as c,ai as f,r as b,a as _,i as x,k as w}from"./index.108434b2.js";import{a as g,_ as v}from"./u-form-item.2645af33.js";import{_ as h}from"./u-form.a1c88ea3.js";import{_ as V}from"./u-checkbox.30b8abbd.js";import{_ as y}from"./u-button.b8216aa1.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.cfc830b8.js";import"./emitter.5b880544.js";var k=j(e({__name:"register",setup(e){const j=a(!1),k=s(),$=o((()=>1==k.getLoginConfig.openAgreement)),B=l({username:"",password:"",password2:""}),C=async()=>!j.value&&$.value?uni.$u.toast("请勾选已阅读并同意《服务协议》和《隐私协议》"):B.username?B.password?B.password2?B.password!=B.password2?uni.$u.toast("两次输入的密码不一致"):(await c(B),uni.$u.toast("注册成功"),void setTimeout((()=>{f()}),1e3)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入账号");return(e,a)=>{const s=b(_("u-input"),g),o=b(_("u-form-item"),v),l=b(_("u-form"),h),c=x,f=w,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(o,{label:"创建账号",borderBottom:""},{default:u((()=>[d(s,{class:"flex-1",modelValue:B.username,"onUpdate:modelValue":a[0]||(a[0]=e=>B.username=e),border:!1,placeholder:"请输入账号"},null,8,["modelValue"])])),_:1}),d(o,{label:"设置密码",borderBottom:""},{default:u((()=>[d(s,{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(o,{label:"确认密码",borderBottom:""},{default:u((()=>[d(s,{class:"flex-1",type:"password",modelValue:B.password2,"onUpdate:modelValue":a[2]||(a[2]=e=>B.password2=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]=n((()=>{}),["stop"]))},{default:u((()=>[d(c,{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]=n((()=>{}),["stop"]))},{default:u((()=>[d(c,{class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=privacy"},{default:u((()=>[p(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})):i("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-5a57eecc"]]);export{k as default};
|
||||
import{d as e,z as a,u as s,A as o,m as l,o as t,c as r,w as u,b as d,g as m,l as p,v as n,h as c,av as i,ai as f,r as _,a as b,i as x,k as w}from"./index.89b9ffeb.js";import{a as g,_ as v}from"./u-form-item.49cd52ad.js";import{_ as h}from"./u-form.aa077dfc.js";import{_ as V}from"./u-checkbox.04c74c8a.js";import{_ as y}from"./u-button.0006fe1c.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8066fd79.js";import"./emitter.5b880544.js";var k=j(e({__name:"register",setup(e){const j=a(!1),k=s(),$=o((()=>1==k.getLoginConfig.openAgreement)),B=l({username:"",password:"",password2:""}),C=async()=>!j.value&&$.value?uni.$u.toast("请勾选已阅读并同意《服务协议》和《隐私协议》"):B.username?B.password?B.password2?B.password!=B.password2?uni.$u.toast("两次输入的密码不一致"):(await i(B),uni.$u.toast("注册成功"),void setTimeout((()=>{f()}),1e3)):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入账号");return(e,a)=>{const s=_(b("u-input"),g),o=_(b("u-form-item"),v),l=_(b("u-form"),h),i=x,f=w,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(o,{label:"创建账号",borderBottom:""},{default:u((()=>[d(s,{class:"flex-1",modelValue:B.username,"onUpdate:modelValue":a[0]||(a[0]=e=>B.username=e),border:!1,placeholder:"请输入账号"},null,8,["modelValue"])])),_:1}),d(o,{label:"设置密码",borderBottom:""},{default:u((()=>[d(s,{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(o,{label:"确认密码",borderBottom:""},{default:u((()=>[d(s,{class:"flex-1",type:"password",modelValue:B.password2,"onUpdate:modelValue":a[2]||(a[2]=e=>B.password2=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]=n((()=>{}),["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]=n((()=>{}),["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})):c("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-5a57eecc"]]);export{k as default};
|
||||
|
|
@ -1 +1 @@
|
|||
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 i,f as u,t as n,F as d,k as p,m as f,z as _,V as m,am as g,aN as x,aO as y,aP as b,aA as v,r as w,a as k}from"./index.108434b2.js";import{_ as j}from"./u-search.591efcb4.js";import{_ as C}from"./news-card.8d1c1617.js";import{_ as V}from"./z-paging.fbd5ffc1.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{b as I}from"./shop.4ae43f9b.js";import{g as S}from"./news.d18d7830.js";import"./u-icon.cfc830b8.js";import"./u-image.15c7ce71.js";import"./icon_visit.9ad00ab7.js";var A=z(e({__name:"suggest",props:{hot_search:{default:()=>[]},his_search:{default:()=>[]}},emits:["search","clear"],setup(e,{emit:f}){const _=e,m=a((()=>_.hot_search.filter((e=>e)))),g=e=>{f("search",e)};return(a,_)=>{const x=p;return s(),t(x,{class:"suggest bg-white"},{default:l((()=>[r(" 热门搜索 "),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),i(d,null,u(c(m),((e,a)=>(s(),t(x,{key:a,class:"keyword truncate max-w-full",onClick:a=>g(e)},{default:l((()=>[h(n(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0),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:_[0]||(_[0]=()=>f("clear"))},{default:l((()=>[h("清空")])),_:1})])),_:1}),o(x,{class:"w-full px-[24rpx]"},{default:l((()=>[(s(!0),i(d,null,u(e.his_search,((e,a)=>(s(),t(x,{key:a,class:"keyword truncate",onClick:a=>g(e)},{default:l((()=>[h(n(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-6b91f383"]]);var N=z(e({__name:"search",setup(e){const a=f({hot_search:[],his_search:[],result:[],searching:!1}),c=_(""),h=m(),n=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 v({title:"温馨提示",content:"是否清空历史记录?"})).confirm&&(g.set(x,""),a.his_search=[])},N=async(e,a)=>{try{const{lists:s}=await S({keyword:c.value,pageNo:e,pageSize: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,f)=>{const _=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(_,{modelValue:c.value,"onUpdate:modelValue":f[0]||(f[0]=e=>c.value=e),placeholder:"请输入关键词搜索",height:"72",onSearch:n,onCustom:n,onClear:f[1]||(f[1]=e=>a.searching=!1)},null,8,["modelValue"])])),_:1}),r(" 搜索 "),o(m,{class:"search-content"},{default:l((()=>[r(" "),y(o(A,{onSearch:n,onClear:z,hot_search:a.hot_search,his_search:a.his_search},null,8,["hot_search","his_search"]),[[b,!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":f[2]||(f[2]=e=>a.result=e),onQuery:N,fixed:!1,height:"100%"},{default:l((()=>[(s(!0),i(d,null,u(a.result,((e,a)=>(s(),t(g,{key:e.id,item:e,newsId:e.id},null,8,["item","newsId"])))),128))])),_:1},8,["modelValue"])])),_:1},512),[[b,a.searching]])])),_:1})])),_:1})}}}),[["__scopeId","data-v-0a13322f"]]);export{N as default};
|
||||
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 i,f as u,t as n,F as d,k as p,m as f,z as _,V as m,am as g,aN as x,aO as b,aP as y,aA as v,r as w,a as k}from"./index.89b9ffeb.js";import{_ as j}from"./u-search.6c43b978.js";import{_ as C}from"./news-card.59f3bbfb.js";import{_ as V}from"./z-paging.64eb059e.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{b as I}from"./shop.e647efef.js";import{g as S}from"./news.2b909ff2.js";import"./u-icon.8066fd79.js";import"./u-image.ec130548.js";import"./icon_visit.9ad00ab7.js";var A=z(e({__name:"suggest",props:{hot_search:{default:()=>[]},his_search:{default:()=>[]}},emits:["search","clear"],setup(e,{emit:f}){const _=e,m=a((()=>_.hot_search.filter((e=>e)))),g=e=>{f("search",e)};return(a,_)=>{const x=p;return s(),t(x,{class:"suggest bg-white"},{default:l((()=>[r(" 热门搜索 "),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),i(d,null,u(c(m),((e,a)=>(s(),t(x,{key:a,class:"keyword truncate max-w-full",onClick:a=>g(e)},{default:l((()=>[h(n(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0),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:_[0]||(_[0]=()=>f("clear"))},{default:l((()=>[h("清空")])),_:1})])),_:1}),o(x,{class:"w-full px-[24rpx]"},{default:l((()=>[(s(!0),i(d,null,u(e.his_search,((e,a)=>(s(),t(x,{key:a,class:"keyword truncate",onClick:a=>g(e)},{default:l((()=>[h(n(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):r("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-6b91f383"]]);var N=z(e({__name:"search",setup(e){const a=f({hot_search:[],his_search:[],result:[],searching:!1}),c=_(""),h=m(),n=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 v({title:"温馨提示",content:"是否清空历史记录?"})).confirm&&(g.set(x,""),a.his_search=[])},N=async(e,a)=>{try{const{lists:s}=await S({keyword:c.value,pageNo:e,pageSize: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,f)=>{const _=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(_,{modelValue:c.value,"onUpdate:modelValue":f[0]||(f[0]=e=>c.value=e),placeholder:"请输入关键词搜索",height:"72",onSearch:n,onCustom:n,onClear:f[1]||(f[1]=e=>a.searching=!1)},null,8,["modelValue"])])),_:1}),r(" 搜索 "),o(m,{class:"search-content"},{default:l((()=>[r(" "),b(o(A,{onSearch:n,onClear:z,hot_search:a.hot_search,his_search:a.his_search},null,8,["hot_search","his_search"]),[[y,!a.searching]]),r(" "),b(o(m,{class:"search-content-s pt-[20rpx]"},{default:l((()=>[o(x,{ref_key:"paging",ref:h,modelValue:a.result,"onUpdate:modelValue":f[2]||(f[2]=e=>a.result=e),onQuery:N,fixed:!1,height:"100%"},{default:l((()=>[(s(!0),i(d,null,u(a.result,((e,a)=>(s(),t(g,{key:e.id,item:e,newsId:e.id},null,8,["item","newsId"])))),128))])),_:1},8,["modelValue"])])),_:1},512),[[y,a.searching]])])),_:1})])),_:1})}}}),[["__scopeId","data-v-0a13322f"]]);export{N as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{a6 as e,d as t,r as s,a,o as r,c as n,w as l,b as i,l as o,t as c,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.108434b2.js";import{_ as I}from"./u-avatar.09a40fd1.js";import{_ as L}from"./u-icon.cfc830b8.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as S}from"./u-image.15c7ce71.js";import{n as U}from"./util.1e6bafdc.js";import{_ as F}from"./tabbar.aec1b48c.js";import{a as B}from"./shop.4ae43f9b.js";import"./u-badge.ab84b3c2.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((()=>[i(b,{src:t.user.avatar,size:120},null,8,["src"]),i(v,{class:"text-white ml-[20rpx]"},{default:l((()=>[i(v,{class:"text-2xl"},{default:l((()=>[o(c(t.user.nickname),1)])),_:1}),i(v,{class:"text-xs mt-[18rpx]",onClick:g[0]||(g[0]=u((e=>d(x)(t.user.username)),["stop"]))},{default:l((()=>[o(" 账号:"+c(t.user.username),1)])),_:1})])),_:1})])),_:1})):(r(),n(_,{key:1,class:"flex items-center","hover-class":"none",url:"/pages/login/login"},{default:l((()=>[i(b,{src:"/static/images/user/default_avatar.png",size:120}),i(v,{class:"text-white text-3xl ml-[20rpx]"},{default:l((()=>[o("未登录")])),_:1})])),_:1})),t.isLogin?(r(),n(_,{key:2,"hover-class":"none",url:"/pages/user_set/user_set"},{default:l((()=>[i(k,{name:"setting",color:"#fff",size:48})])),_:1})):p("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-c945b380"]]);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,o)=>{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,c(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)},[i(u,{width:"52",height:"52",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"mt-[7px]"},c(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)},[i(u,{width:"48",height:"48",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"ml-[20rpx] flex-1"},c(e.name),1),b("div",{class:"text-muted"},[i(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(o,c)=>{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((()=>[i(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((()=>[i(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:[]}),o=w(),{userInfo:c,isLogin:u}=C(o);return O((()=>{o.getUser()})),(async()=>{const e=await B({id:2});t.pages=JSON.parse(e.pages)})(),(e,o)=>{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(c),"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)),i(k)])),_:1})}}});export{q as default};
|
||||
import{a6 as e,d as t,r as s,a,o as r,c as n,w as l,b as i,l as o,t as c,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.89b9ffeb.js";import{_ as I}from"./u-avatar.3216882d.js";import{_ as L}from"./u-icon.8066fd79.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as S}from"./u-image.ec130548.js";import{n as U}from"./util.8f3b5f91.js";import{_ as F}from"./tabbar.00b134a2.js";import{a as B}from"./shop.e647efef.js";import"./u-badge.bba604d3.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((()=>[i(b,{src:t.user.avatar,size:120},null,8,["src"]),i(v,{class:"text-white ml-[20rpx]"},{default:l((()=>[i(v,{class:"text-2xl"},{default:l((()=>[o(c(t.user.nickname),1)])),_:1}),i(v,{class:"text-xs mt-[18rpx]",onClick:g[0]||(g[0]=u((e=>d(x)(t.user.username)),["stop"]))},{default:l((()=>[o(" 账号:"+c(t.user.username),1)])),_:1})])),_:1})])),_:1})):(r(),n(_,{key:1,class:"flex items-center","hover-class":"none",url:"/pages/login/login"},{default:l((()=>[i(b,{src:"/static/images/user/default_avatar.png",size:120}),i(v,{class:"text-white text-3xl ml-[20rpx]"},{default:l((()=>[o("未登录")])),_:1})])),_:1})),t.isLogin?(r(),n(_,{key:2,"hover-class":"none",url:"/pages/user_set/user_set"},{default:l((()=>[i(k,{name:"setting",color:"#fff",size:48})])),_:1})):p("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-c945b380"]]);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,o)=>{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,c(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)},[i(u,{width:"52",height:"52",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"mt-[7px]"},c(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)},[i(u,{width:"48",height:"48",src:d(t)(e.image),alt:""},null,8,["src"]),b("div",{class:"ml-[20rpx] flex-1"},c(e.name),1),b("div",{class:"text-muted"},[i(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(o,c)=>{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((()=>[i(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((()=>[i(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:[]}),o=w(),{userInfo:c,isLogin:u}=C(o);return O((()=>{o.getUser()})),(async()=>{const e=await B({id:2});t.pages=JSON.parse(e.pages)})(),(e,o)=>{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(c),"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)),i(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
|
|
@ -1 +1 @@
|
|||
import{d as e,z as s,W as a,o as n,c as o,aQ as r}from"./index.108434b2.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};
|
||||
import{d as e,z as s,W as a,o as n,c as o,aQ as r}from"./index.89b9ffeb.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};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-icon.cfc830b8.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,aR as y,g as f,C as m}from"./index.108434b2.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),b=n;return y.show?(s(),o(b,{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(b,{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 b=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 h=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"),b),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 _,h as a,v as b,x as g,_ as p};
|
||||
import{_ as e}from"./u-icon.8066fd79.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,aR as y,g as f,C as m}from"./index.89b9ffeb.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),b=n;return y.show?(s(),o(b,{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(b,{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 b=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 h=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"),b),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 _,h as a,v as b,x as g,_ as p};
|
||||
|
|
@ -1 +1 @@
|
|||
import{C as r}from"./index.108434b2.js";function e(e){return r.post({url:"/recharge/placeOrder",data:e},{isAuth:!0})}function t(e){return r.get({url:"/recharge/record",data:e},{isAuth:!0})}function a(){return r.get({url:"/recharge/config"},{isAuth:!0})}export{e as a,t as b,a as r};
|
||||
import{C as r}from"./index.89b9ffeb.js";function e(e){return r.post({url:"/recharge/placeOrder",data:e},{isAuth:!0})}function t(e){return r.get({url:"/recharge/record",data:e},{isAuth:!0})}function a(){return r.get({url:"/recharge/config"},{isAuth:!0})}export{e as a,t as b,a as r};
|
||||
|
|
@ -1 +1 @@
|
|||
.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-d3d67590]{display:inline-flex;flex-wrap:wrap}.u-radio-group.flex-end[data-v-d3d67590]{display:inline-flex;justify-content:flex-end;flex-wrap:wrap}.payway-lists .payway-item[data-v-62872442]{border-bottom:1px solid;--tw-border-opacity: 1;border-color:rgb(246 246 246 / var(--tw-border-opacity))}
|
||||
.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-d3d67590]{display:inline-flex;flex-wrap:wrap}.u-radio-group.flex-end[data-v-d3d67590]{display:inline-flex;justify-content:flex-end;flex-wrap:wrap}.payway-lists .payway-item[data-v-06869896]{border-bottom:1px solid;--tw-border-opacity: 1;border-color:rgb(246 246 246 / var(--tw-border-opacity))}
|
||||
|
|
@ -1 +1 @@
|
|||
import{C as e}from"./index.108434b2.js";function n(){return e.get({url:"/index/index"})}function r(n){return e.get({url:"/index/decorate",data:n})}function t(){return e.get({url:"/index/hotSearch"})}export{r as a,t as b,n as g};
|
||||
import{C as e}from"./index.89b9ffeb.js";function n(){return e.get({url:"/index/index"})}function r(n){return e.get({url:"/index/decorate",data:n})}function t(){return e.get({url:"/index/hotSearch"})}export{r as a,t as b,n as g};
|
||||
|
|
@ -1 +1 @@
|
|||
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 b,t as p,F as m,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.108434b2.js";import{_ as w}from"./u-icon.cfc830b8.js";import{_ as x}from"./u-badge.ab84b3c2.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";import{n as T}from"./util.1e6bafdc.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(m,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((()=>[b(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=>{const e=JSON.parse(t.link);return{iconPath:t.unselected,selectedIconPath:t.selected,text:t.name,link:e,pagePath:e.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.selectedColor,inactiveColor:n.getStyleConfig.defaultColor}))),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 _};
|
||||
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 b,t as p,F as m,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.89b9ffeb.js";import{_ as w}from"./u-icon.8066fd79.js";import{_ as x}from"./u-badge.bba604d3.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";import{n as T}from"./util.8f3b5f91.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(m,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((()=>[b(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=>{const e=JSON.parse(t.link);return{iconPath:t.unselected,selectedIconPath:t.selected,text:t.name,link:e,pagePath:e.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.selectedColor,inactiveColor:n.getStyleConfig.defaultColor}))),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 _};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
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.108434b2.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 _};
|
||||
import{o as t,c as e,w as o,l as r,t as s,s as a,x as f,h as i,k as n}from"./index.89b9ffeb.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 b=n;return y.show?(t(),e(b,{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:f([{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"])):i("v-if",!0)}],["__scopeId","data-v-11d03f21"]]);export{u as _};
|
||||
|
|
@ -1 +1 @@
|
|||
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,ae as d}from"./index.108434b2.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 y=l,c=d;return t(),i(c,{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(y,{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-76533376"]]);export{u as _};
|
||||
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,ae as d}from"./index.89b9ffeb.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 y=l,c=d;return t(),i(c,{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(y,{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-76533376"]]);export{u as _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-icon.cfc830b8.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.108434b2.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 _};
|
||||
import{_ as e}from"./u-icon.8066fd79.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.89b9ffeb.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 _};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{o as e,c as t,w as l,E as a,k as r}from"./index.108434b2.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 l=!0,a=0,r=[],s=[];this.fields.map((i=>{i.validation("",((i,o)=>{i&&(l=!1,r.push(i),s.push(o)),++a===this.fields.length&&(t(l,s[0]),-1===this.errorType.indexOf("none")&&this.errorType.indexOf("toast")>=0&&r.length&&this.$u.toast(r[0]),"function"==typeof e&&e(l,s[0]))}))}))}))}}},[["render",function(s,i,o,d,n,u){const p=r;return e(),t(p,{class:"u-form"},{default:l((()=>[a(s.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-0aa1ec35"]]);export{i as _};
|
||||
import{o as e,c as t,w as l,E as a,k as r}from"./index.89b9ffeb.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 l=!0,a=0,r=[],s=[];this.fields.map((i=>{i.validation("",((i,o)=>{i&&(l=!1,r.push(i),s.push(o)),++a===this.fields.length&&(t(l,s[0]),-1===this.errorType.indexOf("none")&&this.errorType.indexOf("toast")>=0&&r.length&&this.$u.toast(r[0]),"function"==typeof e&&e(l,s[0]))}))}))}))}}},[["render",function(s,i,o,d,n,f){const u=r;return e(),t(u,{class:"u-form"},{default:l((()=>[a(s.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-0aa1ec35"]]);export{i as _};
|
||||
|
|
@ -1 +1 @@
|
|||
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.108434b2.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 _};
|
||||
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.89b9ffeb.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,f,g){const y=c,b=r,S=u;return t(),i(S,{style:s([m.customStyle]),class:o(["u-icon",["u-icon--"+m.labelPos]]),onClick:g.click},{default:e((()=>[g.isImg?(t(),i(y,{key:0,class:"u-icon__img",src:m.name,mode:m.imgMode,style:s([g.imgStyle])},null,8,["src","mode","style"])):(t(),i(S,{key:1,class:o(["u-icon__icon",g.customClass]),style:s([g.iconStyle]),"hover-class":m.hoverClass,onTouchstart:g.touchstart},{default:e((()=>[m.showDecimalIcon?(t(),i(b,{key:0,style:s([g.decimalIconStyle]),class:o([g.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 _};
|
||||
|
|
@ -1 +1 @@
|
|||
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.108434b2.js";import{_ as u}from"./u-icon.cfc830b8.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 _};
|
||||
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.89b9ffeb.js";import{_ as u}from"./u-icon.8066fd79.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
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
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.108434b2.js";import{_ as y}from"./u-icon.cfc830b8.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 _};
|
||||
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.89b9ffeb.js";import{_ as y}from"./u-icon.8066fd79.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 _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{Z as e,at as t,au as s,o as i,c as n,w as a,h,k as r}from"./index.108434b2.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";var c=u({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,u,c,m){const o=r;return i(),n(o,{class:"u-code-wrap"},{default:a((()=>[h(" 此组件功能由js完成,无需写html逻辑 ")])),_:1})}],["__scopeId","data-v-1cef9d0f"]]);export{c as _};
|
||||
import{Z as e,at as t,au as s,o as i,c as n,w as a,h,k as r}from"./index.89b9ffeb.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";var c=u({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,u,c,m){const o=r;return i(),n(o,{class:"u-code-wrap"},{default:a((()=>[h(" 此组件功能由js完成,无需写html逻辑 ")])),_:1})}],["__scopeId","data-v-1cef9d0f"]]);export{c as _};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
import{z as t}from"./index.89b9ffeb.js";function a(a){const e=t(!1);return{isLock:e,lockFn:async(...t)=>{if(!e.value){e.value=!0;try{const n=await a(...t);return e.value=!1,n}catch(n){throw e.value=!1,n}}}}}export{a as u};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{z as t}from"./index.108434b2.js";function a(a){const n=t(!1);return{isLock:n,lockFn:async(...t)=>{if(!n.value){n.value=!0;try{const o=await a(...t);return n.value=!1,o}catch(o){throw n.value=!1,o}}}}}export{a as u};
|
||||
|
|
@ -1 +1 @@
|
|||
import{G as e,H as n,J as t,K as o}from"./index.108434b2.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;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 a(...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()}))}}const l=(e,n="rpx")=>Object.is(Number(e),NaN)?e:`${e}${n}`;export{l as a,i as f,s as g,c as n,a as s};
|
||||
import{G as e,H as n,J as t,K as o}from"./index.89b9ffeb.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;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 a(...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()}))}}const l=(e,n="rpx")=>Object.is(Number(e),NaN)?e:`${e}${n}`;export{l as a,i as f,s as g,c as n,a as s};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="stylesheet" href="/mobile/assets/uni.464e3f41.css">
|
||||
<link rel="stylesheet" href="/mobile/assets/uni.1c829256.css">
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
<title>加载中</title>
|
||||
<!--preload-links-->
|
||||
<!--app-context-->
|
||||
<script type="module" crossorigin src="/mobile/assets/index.108434b2.js"></script>
|
||||
<script type="module" crossorigin src="/mobile/assets/index.89b9ffeb.js"></script>
|
||||
<link rel="stylesheet" href="/mobile/assets/index.0dd79c62.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue