h5登录调试
This commit is contained in:
parent
2abccd483e
commit
486deb6150
|
|
@ -289,6 +289,7 @@ const loginHandle = async (data: any) => {
|
|||
}
|
||||
})
|
||||
} else if (cache.get(BACK_URL)) {
|
||||
console.log(BACK_URL)
|
||||
uni.redirectTo({ url: cache.get(BACK_URL) })
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
|
|
@ -331,6 +332,7 @@ watch(
|
|||
onShow(async () => {
|
||||
try {
|
||||
if (userStore.isLogin) {
|
||||
console.log('hasLogin1')
|
||||
uni.showLoading({
|
||||
title: '请稍后...'
|
||||
})
|
||||
|
|
@ -346,18 +348,20 @@ onShow(async () => {
|
|||
onLoad(async (options) => {
|
||||
if (userStore.isLogin) {
|
||||
// 已经登录 => 首页
|
||||
|
||||
console.log('hasLogin2')
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// #ifdef H5
|
||||
const { code } = options
|
||||
if (code) {
|
||||
uni.showLoading({
|
||||
title: '请稍后...'
|
||||
})
|
||||
// #ifdef H5
|
||||
|
||||
try {
|
||||
const data = await wechatOa.authLogin(code)
|
||||
loginHandle(data)
|
||||
|
|
@ -365,8 +369,8 @@ onLoad(async (options) => {
|
|||
uni.hideLoading()
|
||||
throw new Error(error)
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
// #endif
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -2156,7 +2156,7 @@ fresh@0.5.2:
|
|||
resolved "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz"
|
||||
integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
|
||||
|
||||
fs-extra@^10.0.0:
|
||||
fs-extra@^10.0.0, fs-extra@^10.1.0:
|
||||
version "10.1.0"
|
||||
resolved "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.1.0.tgz"
|
||||
integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
|
||||
|
|
@ -2165,15 +2165,6 @@ fs-extra@^10.0.0:
|
|||
jsonfile "^6.0.1"
|
||||
universalify "^2.0.0"
|
||||
|
||||
fs-extra@^10.1.0:
|
||||
version "10.1.0"
|
||||
resolved "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
|
||||
integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
|
||||
dependencies:
|
||||
graceful-fs "^4.2.0"
|
||||
jsonfile "^6.0.1"
|
||||
universalify "^2.0.0"
|
||||
|
||||
fs.realpath@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
import{C as n}from"./appEnums.a2ba827b.js";import{D as t}from"./index.6523cb5b.js";const r=()=>/MicroMessenger/i.test(navigator.userAgent);function o(){const n=navigator.userAgent;return n.indexOf("Android")>-1||n.indexOf("Adr")>-1}const a=(({MP_WEIXIN:n,OA_WEIXIN:t,H5:o,IOS:a,ANDROID:e,OTHER:i})=>r()?t():o())({MP_WEIXIN:()=>n.MP_WEIXIN,OA_WEIXIN:()=>n.OA_WEIXIN,H5:()=>n.H5,IOS:()=>n.IOS,ANDROID:()=>n.ANDROID,OTHER:()=>null});function e(n){return t.post({url:"/login/check",data:{...n,client:a}})}function i(n){return t.post({url:"/login/register",data:{...n,client:a}})}function s(n){return t.post({url:"/login/forgotPassword",data:n})}function u(){return t.get({url:"/login/codeUrl",data:{url:location.href}})}function l(n){return t.get({url:"/login/oaLogin",data:n})}export{l as O,r as a,s as f,u as g,o as i,e as l,i as r};
|
||||
import{C as n}from"./appEnums.a2ba827b.js";import{D as t}from"./index.18669c64.js";const r=()=>/MicroMessenger/i.test(navigator.userAgent);function o(){const n=navigator.userAgent;return n.indexOf("Android")>-1||n.indexOf("Adr")>-1}const a=(({MP_WEIXIN:n,OA_WEIXIN:t,H5:o,IOS:a,ANDROID:e,OTHER:i})=>r()?t():o())({MP_WEIXIN:()=>n.MP_WEIXIN,OA_WEIXIN:()=>n.OA_WEIXIN,H5:()=>n.H5,IOS:()=>n.IOS,ANDROID:()=>n.ANDROID,OTHER:()=>null});function e(n){return t.post({url:"/login/check",data:{...n,client:a}})}function i(n){return t.post({url:"/login/register",data:{...n,client:a}})}function s(n){return t.post({url:"/login/forgotPassword",data:n})}function u(){return t.get({url:"/login/codeUrl",data:{url:location.href}})}function l(n){return t.get({url:"/login/oaLogin",data:n})}export{l as O,r as a,s as f,u as g,o as i,e as l,i as r};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
.u-divider[data-v-ba53c472]{width:100%;position:relative;text-align:center;display:flex;justify-content:center;align-items:center;overflow:hidden;flex-direction:row}.u-divider-line[data-v-ba53c472]{border-bottom:1px solid #e5e5e5;transform:scaleY(.5);transform-origin:center}.u-divider-line--bordercolor--primary[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--success[data-v-ba53c472]{border-color:#19be6b}.u-divider-line--bordercolor--error[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--info[data-v-ba53c472]{border-color:#909399}.u-divider-line--bordercolor--warning[data-v-ba53c472]{border-color:#f90}.u-divider-text[data-v-ba53c472]{white-space:nowrap;padding:0 .5rem;display:inline-flex}uni-page-body[data-v-6474646f]{height:100%}
|
||||
.u-divider[data-v-ba53c472]{width:100%;position:relative;text-align:center;display:flex;justify-content:center;align-items:center;overflow:hidden;flex-direction:row}.u-divider-line[data-v-ba53c472]{border-bottom:1px solid #e5e5e5;transform:scaleY(.5);transform-origin:center}.u-divider-line--bordercolor--primary[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--success[data-v-ba53c472]{border-color:#19be6b}.u-divider-line--bordercolor--error[data-v-ba53c472]{border-color:#4173ff}.u-divider-line--bordercolor--info[data-v-ba53c472]{border-color:#909399}.u-divider-line--bordercolor--warning[data-v-ba53c472]{border-color:#f90}.u-divider-text[data-v-ba53c472]{white-space:nowrap;padding:0 .5rem;display:inline-flex}uni-page-body[data-v-5230e0d1]{height:100%}
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-image.7bffe717.js";import{d as t,r as s,a,o as l,c as r,w as i,b as d,h as f,l as c,t as m,k as n,n as u,i as x}from"./index.6523cb5b.js";import{_ as p}from"./icon_visit.5f8ba9a3.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})):f("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((()=>[c(m(t.item.title),1)])),_:1}),d(g,{class:"news-card-content-intro text-gray-400 text-sm mt-[16rpx]"},{default:i((()=>[c(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((()=>[c(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((()=>[c(m(t.item.visit),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["url"])}}),[["__scopeId","data-v-125d567f"]]);export{_};
|
||||
import{_ as e}from"./u-image.ed329ee7.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.18669c64.js";import{_ as p}from"./icon_visit.5f8ba9a3.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,j=x;return l(),r(j,{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{_};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as t}from"./index.6523cb5b.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/addCollect",data:r},{isAuth:!0})}function l(r){return t.post({url:"/article/cancelCollect",data:r},{isAuth:!0})}function n(){return t.get({url:"/article/collect"})}export{r as a,e as b,l as c,c as d,n as e,a as g};
|
||||
import{D as t}from"./index.18669c64.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/addCollect",data:r},{isAuth:!0})}function l(r){return t.post({url:"/article/cancelCollect",data:r},{isAuth:!0})}function n(){return t.get({url:"/article/collect"})}export{r as a,e as b,l as c,c as d,n as e,a as g};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,A as s,Y as e,o as t,c as r,w as n,b as o,ax as l,aq as c,r as p,a as u,k as m}from"./index.18669c64.js";import{_ as i}from"./u-parse.b66c2014.js";import"./plugin-vue_export-helper.21dcd24c.js";const d=a({__name:"agreement",setup(a){let d=s("");const _=s("");return e((a=>{a.type&&(d=a.type,(async a=>{const s=await l({type:a});console.log(s,"res"),_.value=s.content,c({title:s.name})})(d))})),(a,s)=>{const e=p(u("u-parse"),i),l=m;return t(),r(l,{class:""},{default:n((()=>[o(e,{html:_.value},null,8,["html"])])),_:1})}}});export{d as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{d as a,A as e,Y as s,o as t,c as r,w as n,b as o,ax as l,aq as c,r as p,a as u,k as m}from"./index.6523cb5b.js";import{_ as d}from"./u-parse.cfade651.js";import"./plugin-vue_export-helper.21dcd24c.js";const i=a({__name:"agreement",setup(a){let i=e("");const f=e("");return s((a=>{a.type&&(i=a.type,(async a=>{const e=await l({type:a});console.log(e,"res"),f.value=e.content,c({title:e.name})})(i))})),(a,e)=>{const s=p(u("u-parse"),d),l=m;return t(),r(l,{class:""},{default:n((()=>[o(s,{html:f.value},null,8,["html"])])),_:1})}}});export{i as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as s,u as e,o as a,c as t,w as o,b as c,g as r,l,t as n,n as u,k as d}from"./index.6523cb5b.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((()=>[c(i,{src:r(f).config.website.logo,mode:"",class:"img"},null,8,["src"]),c(m,{class:"text-content mt-[20rpx]"},{default:o((()=>[l("当前版本"+n(r(f).config.version),1)])),_:1})])),_:1})}}}),[["__scopeId","data-v-31e0ee28"]]);export{i as default};
|
||||
import{d as s,u as e,o as a,c as t,w as o,b as c,g as r,l,t as n,n as u,k as d}from"./index.18669c64.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((()=>[c(i,{src:r(f).config.website.logo,mode:"",class:"img"},null,8,["src"]),c(m,{class:"text-content mt-[20rpx]"},{default:o((()=>[l("当前版本"+n(r(f).config.version),1)])),_:1})])),_:1})}}}),[["__scopeId","data-v-31e0ee28"]]);export{i as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as e,ac as a,A as o,a9 as l,m as t,o as r,c as s,w as u,b as d,l as i,t as m,af as n,aC as c,ae as b,r as f,a as p,k as _}from"./index.6523cb5b.js";import{_ as x,a as v}from"./u-form-item.a08a5b1b.js";import{_ as h}from"./u-verification-code.97d57e8f.js";import{_ as j}from"./u-form.42d8e9e8.js";import{_ as g}from"./u-button.cfcb6205.js";import{S as k}from"./appEnums.a2ba827b.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8872894f.js";var y=w(e({__name:"bind_mobile",setup(e){const w=a(),y=o(""),C=l(),V=e=>{y.value=e},B=t({type:"bind",mobile:"",code:""}),$=async()=>{var e,a;if(!B.mobile)return uni.$u.toast("请输入手机号码");(null==(e=w.value)?void 0:e.canGetCode)&&(await n({scene:k.BIND_MOBILE,mobile:B.mobile}),uni.$u.toast("发送成功"),null==(a=w.value)||a.start())},I=async()=>B.mobile?B.code?(await c(B,{token:C.temToken}),uni.$u.toast("绑定成功"),C.login(C.temToken),void b()):uni.$u.toast("请输入验证码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=f(p("u-input"),x),l=f(p("u-form-item"),v),t=f(p("u-verification-code"),h),n=_,c=f(p("u-form"),j),b=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:B.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>B.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(l,{label:"验证码",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",modelValue:B.code,"onUpdate:modelValue":a[1]||(a[1]=e=>B.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:V,"change-text":"x秒"},null,512),i(" "+m(y.value),1)])),_:1})])),_:1})])),_:1}),d(n,{class:"mt-[40rpx]"},{default:u((()=>[d(b,{type:"primary",shape:"circle",onClick:I},{default:u((()=>[i(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-3b29402b"]]);export{y as default};
|
||||
import{d as e,ac as a,A as o,a9 as l,m as t,o as r,c as s,w as u,b as d,l as i,t as m,af as n,aC as c,ae as f,r as b,a as p,k as _}from"./index.18669c64.js";import{_ as x,a as v}from"./u-form-item.b703be58.js";import{_ as h}from"./u-verification-code.7640b7be.js";import{_ as j}from"./u-form.7e573d59.js";import{_ as g}from"./u-button.5f44fee7.js";import{S as k}from"./appEnums.a2ba827b.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.68f989af.js";var y=w(e({__name:"bind_mobile",setup(e){const w=a(),y=o(""),C=l(),V=e=>{y.value=e},B=t({type:"bind",mobile:"",code:""}),$=async()=>{var e,a;if(!B.mobile)return uni.$u.toast("请输入手机号码");(null==(e=w.value)?void 0:e.canGetCode)&&(await n({scene:k.BIND_MOBILE,mobile:B.mobile}),uni.$u.toast("发送成功"),null==(a=w.value)||a.start())},I=async()=>B.mobile?B.code?(await c(B,{token:C.temToken}),uni.$u.toast("绑定成功"),C.login(C.temToken),void f()):uni.$u.toast("请输入验证码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=b(p("u-input"),x),l=b(p("u-form-item"),v),t=b(p("u-verification-code"),h),n=_,c=b(p("u-form"),j),f=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((()=>[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:B.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>B.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(l,{label:"验证码",borderBottom:""},{default:u((()=>[d(o,{class:"flex-1",modelValue:B.code,"onUpdate:modelValue":a[1]||(a[1]=e=>B.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:V,"change-text":"x秒"},null,512),i(" "+m(y.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-3b29402b"]]);export{y as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{d as a,m as o,o as s,c as e,w as l,b as r,l as t,ay as d,ae as u,k as p,r as m,a as f}from"./index.6523cb5b.js";import{_ as i,a as n}from"./u-form-item.a08a5b1b.js";import{_ as c}from"./u-form.42d8e9e8.js";import{_ as b}from"./u-button.cfcb6205.js";import{_ as w}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8872894f.js";var _=w(a({__name:"change_password",setup(a){const w=o({oldPassword:"",password:"",password2:""}),_=async()=>w.oldPassword?w.password?w.password2?w.password!=w.password2?uni.$u.toast("两次输入的密码不一致"):(await d(w),uni.$u.toast("操作成功"),void u()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入原来的密码");return(a,o)=>{const d=p,u=m(f("u-input"),i),x=m(f("u-form-item"),n),h=m(f("u-form"),c),V=m(f("u-button"),b);return s(),e(d,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:l((()=>[r(d,{class:"w-full"},{default:l((()=>[r(d,{class:"text-2xl font-medium mb-[60rpx]"},{default:l((()=>[t("修改登录密码")])),_:1}),r(h,{borderBottom:"","label-width":150},{default:l((()=>[r(x,{label:"原密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",modelValue:w.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=a=>w.oldPassword=a),border:!1,placeholder:"请输入原来的密码"},null,8,["modelValue"])])),_:1}),r(x,{label:"新密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",type:"password",modelValue:w.password,"onUpdate:modelValue":o[1]||(o[1]=a=>w.password=a),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),r(x,{label:"确认密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",type:"password",modelValue:w.password2,"onUpdate:modelValue":o[2]||(o[2]=a=>w.password2=a),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),r(d,{class:"mt-[100rpx]"},{default:l((()=>[r(V,{type:"primary",shape:"circle",onClick:_},{default:l((()=>[t(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-6d4b2648"]]);export{_ as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,m as e,o,c as s,w as l,b as r,l as t,ay as d,ae as u,k as p,r as m,a as f}from"./index.18669c64.js";import{_ as i,a as n}from"./u-form-item.b703be58.js";import{_ as c}from"./u-form.7e573d59.js";import{_ as w}from"./u-button.5f44fee7.js";import{_ as b}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.68f989af.js";var _=b(a({__name:"change_password",setup(a){const b=e({oldPassword:"",password:"",password2:""}),_=async()=>b.oldPassword?b.password?b.password2?b.password!=b.password2?uni.$u.toast("两次输入的密码不一致"):(await d(b),uni.$u.toast("操作成功"),void u()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入原来的密码");return(a,e)=>{const d=p,u=m(f("u-input"),i),x=m(f("u-form-item"),n),h=m(f("u-form"),c),V=m(f("u-button"),w);return o(),s(d,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:l((()=>[r(d,{class:"w-full"},{default:l((()=>[r(d,{class:"text-2xl font-medium mb-[60rpx]"},{default:l((()=>[t("修改登录密码")])),_:1}),r(h,{borderBottom:"","label-width":150},{default:l((()=>[r(x,{label:"原密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",modelValue:b.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=a=>b.oldPassword=a),border:!1,placeholder:"请输入原来的密码"},null,8,["modelValue"])])),_:1}),r(x,{label:"新密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",type:"password",modelValue:b.password,"onUpdate:modelValue":e[1]||(e[1]=a=>b.password=a),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),r(x,{label:"确认密码",borderBottom:""},{default:l((()=>[r(u,{class:"flex-1",type:"password",modelValue:b.password2,"onUpdate:modelValue":e[2]||(e[2]=a=>b.password2=a),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),r(d,{class:"mt-[100rpx]"},{default:l((()=>[r(V,{type:"primary",shape:"circle",onClick:_},{default:l((()=>[t(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-6d4b2648"]]);export{_ as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as t}from"./news-card.f2421cac.js";import{T as e,au as s,o as i,c as a,w as o,b as n,q as l,y as h,G as c,e as d,f as r,l as u,t as m,F as p,h as f,k as v,av as b,aw as w,d as y,ac as g,m as k,A as x,r as C,a as W}from"./index.6523cb5b.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as X}from"./z-paging.3b02b0cd.js";import{e as B,c as $}from"./news.95dffcb5.js";import"./u-image.7bffe717.js";import"./u-icon.8872894f.js";import"./icon_visit.5f8ba9a3.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,y,g,k){const x=v,C=b,W=w;return i(),a(x,{class:""},{default:o((()=>[n(W,{class:"u-swipe-action",style:l({backgroundColor:s.bgColor})},{default:o((()=>[n(C,{class:"u-swipe-view",onChange:k.change,onTouchend:k.touchend,onTouchstart:k.touchstart,direction:"horizontal",disabled:s.disabled,x:g.moveX,style:l({width:k.movableViewWidth?k.movableViewWidth:"100%"})},{default:o((()=>[n(x,{class:"u-swipe-content",onClick:h(k.contentClick,["stop"])},{default:o((()=>[c(t.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"]),g.showBtn?(i(!0),d(p,{key:0},r(s.options,((t,e)=>(i(),a(x,{class:"u-swipe-del",onClick:h((t=>k.btnClick(e)),["stop"]),style:l([k.btnStyle(t.style)]),key:e},{default:o((()=>[n(x,{class:"u-btn-text"},{default:o((()=>[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=y({__name:"collection",setup(e){const s=g(),l=k([{text:"取消收藏",style:{color:"#FFFFFF",backgroundColor:"#FF2C3C"}}]),h=x([]),c=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}),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(),a(b,{ref_key:"paging",ref:s,modelValue:h.value,"onUpdate:modelValue":m[0]||(m[0]=t=>h.value=t),onQuery:c,fixed:!1,height:"100%","use-page-scroll":""},{default:o((()=>[(i(!0),d(p,null,r(h.value,((t,e)=>(i(),a(v,{show:t.show,index:e,key:t.id,onClick:u,options:l,"btn-width":"120"},{default:o((()=>[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.0aa896b7.js";import{T as e,au as s,o as i,c as a,w as o,b as n,q as l,y as h,G as d,e as c,f as r,l as u,t as m,F as p,h as f,k as v,av as b,aw as w,d as y,ac as g,m as k,A as x,r as C,a as W}from"./index.18669c64.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as X}from"./z-paging.b22b38b7.js";import{e as B,c as $}from"./news.9b6ab843.js";import"./u-image.ed329ee7.js";import"./u-icon.68f989af.js";import"./icon_visit.5f8ba9a3.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,y,g,k){const x=v,C=b,W=w;return i(),a(x,{class:""},{default:o((()=>[n(W,{class:"u-swipe-action",style:l({backgroundColor:s.bgColor})},{default:o((()=>[n(C,{class:"u-swipe-view",onChange:k.change,onTouchend:k.touchend,onTouchstart:k.touchstart,direction:"horizontal",disabled:s.disabled,x:g.moveX,style:l({width:k.movableViewWidth?k.movableViewWidth:"100%"})},{default:o((()=>[n(x,{class:"u-swipe-content",onClick:h(k.contentClick,["stop"])},{default:o((()=>[d(t.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"]),g.showBtn?(i(!0),c(p,{key:0},r(s.options,((t,e)=>(i(),a(x,{class:"u-swipe-del",onClick:h((t=>k.btnClick(e)),["stop"]),style:l([k.btnStyle(t.style)]),key:e},{default:o((()=>[n(x,{class:"u-btn-text"},{default:o((()=>[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=y({__name:"collection",setup(e){const s=g(),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}),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(),a(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:o((()=>[(i(!0),c(p,null,r(h.value,((t,e)=>(i(),a(v,{show:t.show,index:e,key:t.id,onClick:u,options:l,"btn-width":"120"},{default:o((()=>[n(f,{item:t,newsId:t.articleId},null,8,["item","newsId"])])),_:2},1032,["show","index","options"])))),128))])),_:1},8,["modelValue"])}}});export{j as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{an as t,ao as e,ap as s,d as a,u as n,r as c,a as r,o,c as l,w as i,b as u,g as m,l as p,t as f,h as d,a8 as x,k as y,m as _,e as b,f as g,F as h}from"./index.6523cb5b.js";import{_ as v}from"./u-image.7bffe717.js";import{_ as j}from"./u-button.cfcb6205.js";import{a as w}from"./shop.a1b88dfa.js";import"./u-icon.8872894f.js";import"./plugin-vue_export-helper.21dcd24c.js";async function k(a){if(!a)return uni.$u.$toast("图片不存在");uni.$u.$toast("长按图片保存");try{const n=await t({url:a,timeout:1e4});await e({filePath:n.tempFilePath}),s({title:"保存成功",icon:"success"})}catch(n){s({title:n.errMsg||"保存失败",icon:"none"})}}const $=a({__name:"customer-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const{getImageUrl:e}=n();return(s,a)=>{const n=c(r("u-image"),v),_=y,b=c(r("u-button"),j);return o(),l(_,{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:i((()=>[u(n,{width:"280",height:"280",src:m(e)(t.content.qrcode)},null,8,["src"]),t.content.title?(o(),l(_,{key:0,class:"text-lg mt-[14rpx] font-medium"},{default:i((()=>[p(f(t.content.title),1)])),_:1})):d("v-if",!0),t.content.time?(o(),l(_,{key:1,class:"text-content mt-[40rpx]"},{default:i((()=>[p("服务时间:"+f(t.content.time),1)])),_:1})):d("v-if",!0),t.content.mobile?(o(),l(_,{key:2,class:"text-content mt-[14rpx] flex flex-wrap"},{default:i((()=>[p(" 客服电话:"+f(t.content.mobile)+" ",1),x("a",{class:"ml-[10rpx] phone text-muted underline",href:"tel:"+t.content.mobile}," 拨打 ",8,["href"])])),_:1})):d("v-if",!0),u(_,{class:"mt-[100rpx] w-full"},{default:i((()=>[u(b,{type:"primary",shape:"circle",onClick:a[0]||(a[0]=e=>m(k)(t.content.qrcode))},{default:i((()=>[p(" 保存二维码图片 ")])),_:1})])),_:1})])),_:1})}}}),O=a({__name:"customer_service",setup(t){const e=_({pages:[]});return(async()=>{const t=await w({id:3});e.pages=JSON.parse(t.pages)})(),(t,s)=>{const a=c(r("w-customer-service"),$),n=y;return o(),l(n,{class:"customer-service"},{default:i((()=>[(o(!0),b(h,null,g(e.pages,((t,e)=>(o(),l(n,{key:e},{default:i((()=>["customer-service"==t.name?(o(),l(a,{key:0,content:t.content,styles:t.styles},null,8,["content","styles"])):d("v-if",!0)])),_:2},1024)))),128))])),_:1})}}});export{O as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{an as e,ao as t,ap as s,d as a,u as n,r as c,a as r,o,c as l,w as i,b as u,g as m,l as p,t as f,h as d,a8 as x,k as y,m as _,e as g,f as h,F as b}from"./index.18669c64.js";import{_ as v}from"./u-image.ed329ee7.js";import{_ as j}from"./u-button.5f44fee7.js";import{a as w}from"./shop.77e170b3.js";import"./u-icon.68f989af.js";import"./plugin-vue_export-helper.21dcd24c.js";async function k(a){if(!a)return uni.$u.$toast("图片不存在");uni.$u.$toast("长按图片保存");try{const n=await e({url:a,timeout:1e4});await t({filePath:n.tempFilePath}),s({title:"保存成功",icon:"success"})}catch(n){s({title:n.errMsg||"保存失败",icon:"none"})}}const $=a({__name:"customer-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=n();return(s,a)=>{const n=c(r("u-image"),v),_=y,g=c(r("u-button"),j);return o(),l(_,{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:i((()=>[u(n,{width:"280",height:"280",src:m(t)(e.content.qrcode)},null,8,["src"]),e.content.title?(o(),l(_,{key:0,class:"text-lg mt-[14rpx] font-medium"},{default:i((()=>[p(f(e.content.title),1)])),_:1})):d("v-if",!0),e.content.time?(o(),l(_,{key:1,class:"text-content mt-[40rpx]"},{default:i((()=>[p("服务时间:"+f(e.content.time),1)])),_:1})):d("v-if",!0),e.content.mobile?(o(),l(_,{key:2,class:"text-content mt-[14rpx] flex flex-wrap"},{default:i((()=>[p(" 客服电话:"+f(e.content.mobile)+" ",1),x("a",{class:"ml-[10rpx] phone text-muted underline",href:"tel:"+e.content.mobile}," 拨打 ",8,["href"])])),_:1})):d("v-if",!0),u(_,{class:"mt-[100rpx] w-full"},{default:i((()=>[u(g,{type:"primary",shape:"circle",onClick:a[0]||(a[0]=t=>m(k)(e.content.qrcode))},{default:i((()=>[p(" 保存二维码图片 ")])),_:1})])),_:1})])),_:1})}}}),O=a({__name:"customer_service",setup(e){const t=_({pages:[]});return(async()=>{const e=await w({id:3});t.pages=JSON.parse(e.pages)})(),(e,s)=>{const a=c(r("w-customer-service"),$),n=y;return o(),l(n,{class:"customer-service"},{default:i((()=>[(o(!0),g(b,null,h(t.pages,((e,t)=>(o(),l(n,{key:t},{default:i((()=>["customer-service"==e.name?(o(),l(a,{key:0,content:e.content,styles:e.styles},null,8,["content","styles"])):d("v-if",!0)])),_:2},1024)))),128))])),_:1})}}});export{O as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{o as r,e}from"./index.6523cb5b.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};
|
||||
import{o as r,e}from"./index.18669c64.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,ac as a,A as o,m as l,o as s,c as r,w as t,b as d,l as u,t as m,af as i,ae as p,k as n,r as c,a as f}from"./index.6523cb5b.js";import{_ as b,a as _}from"./u-form-item.a08a5b1b.js";import{_ as x}from"./u-verification-code.97d57e8f.js";import{_ as w}from"./u-form.42d8e9e8.js";import{_ as h}from"./u-button.cfcb6205.js";import{f as v}from"./account.2252b993.js";import{S as V}from"./appEnums.a2ba827b.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8872894f.js";var g=j(e({__name:"forget_pwd",setup(e){const j=a(),g=o(""),y=l({mobile:"",code:"",password:"",password2:""}),$=e=>{g.value=e},B=async()=>{var e,a;if(!y.mobile)return uni.$u.toast("请输入手机号码");(null==(e=j.value)?void 0:e.canGetCode)&&(await i({scene:V.FIND_PASSWORD,mobile:y.mobile}),uni.$u.toast("发送成功"),null==(a=j.value)||a.start())},C=async()=>y.mobile?y.password?y.password2?y.password!=y.password2?uni.$u.toast("两次输入的密码不一致"):(await v(y),uni.$u.toast("操作成功"),void p()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=n,l=c(f("u-input"),b),i=c(f("u-form-item"),_),p=c(f("u-verification-code"),x),v=c(f("u-form"),w),V=c(f("u-button"),h);return s(),r(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:t((()=>[d(o,{class:"w-full"},{default:t((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:t((()=>[u("忘记登录密码")])),_:1}),d(v,{borderBottom:"","label-width":150},{default:t((()=>[d(i,{label:"手机号",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:y.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>y.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(i,{label:"验证码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:y.code,"onUpdate:modelValue":a[1]||(a[1]=e=>y.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:B},{default:t((()=>[d(p,{ref_key:"uCodeRef",ref:j,seconds:60,onChange:$,"change-text":"x秒"},null,512),u(" "+m(g.value),1)])),_:1})])),_:1}),d(i,{label:"新密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:y.password,"onUpdate:modelValue":a[2]||(a[2]=e=>y.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(i,{label:"确认密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:y.password2,"onUpdate:modelValue":a[3]||(a[3]=e=>y.password2=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:t((()=>[d(V,{type:"primary",shape:"circle",onClick:C},{default:t((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-0cfd532e"]]);export{g as default};
|
||||
import{d as e,ac as a,A as o,m as l,o as s,c as r,w as t,b as d,l as u,t as m,af as i,ae as p,k as n,r as f,a as c}from"./index.18669c64.js";import{_ as b,a as _}from"./u-form-item.b703be58.js";import{_ as x}from"./u-verification-code.7640b7be.js";import{_ as w}from"./u-form.7e573d59.js";import{_ as h}from"./u-button.5f44fee7.js";import{f as v}from"./account.d3bb872b.js";import{S as V}from"./appEnums.a2ba827b.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.68f989af.js";var g=j(e({__name:"forget_pwd",setup(e){const j=a(),g=o(""),y=l({mobile:"",code:"",password:"",password2:""}),$=e=>{g.value=e},B=async()=>{var e,a;if(!y.mobile)return uni.$u.toast("请输入手机号码");(null==(e=j.value)?void 0:e.canGetCode)&&(await i({scene:V.FIND_PASSWORD,mobile:y.mobile}),uni.$u.toast("发送成功"),null==(a=j.value)||a.start())},C=async()=>y.mobile?y.password?y.password2?y.password!=y.password2?uni.$u.toast("两次输入的密码不一致"):(await v(y),uni.$u.toast("操作成功"),void p()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入手机号码");return(e,a)=>{const o=n,l=f(c("u-input"),b),i=f(c("u-form-item"),_),p=f(c("u-verification-code"),x),v=f(c("u-form"),w),V=f(c("u-button"),h);return s(),r(o,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[100rpx] box-border"},{default:t((()=>[d(o,{class:"w-full"},{default:t((()=>[d(o,{class:"text-2xl font-medium mb-[60rpx]"},{default:t((()=>[u("忘记登录密码")])),_:1}),d(v,{borderBottom:"","label-width":150},{default:t((()=>[d(i,{label:"手机号",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:y.mobile,"onUpdate:modelValue":a[0]||(a[0]=e=>y.mobile=e),border:!1,placeholder:"请输入手机号码"},null,8,["modelValue"])])),_:1}),d(i,{label:"验证码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",modelValue:y.code,"onUpdate:modelValue":a[1]||(a[1]=e=>y.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:B},{default:t((()=>[d(p,{ref_key:"uCodeRef",ref:j,seconds:60,onChange:$,"change-text":"x秒"},null,512),u(" "+m(g.value),1)])),_:1})])),_:1}),d(i,{label:"新密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:y.password,"onUpdate:modelValue":a[2]||(a[2]=e=>y.password=e),placeholder:"6-20位数字+字母或符号组合",border:!1},null,8,["modelValue"])])),_:1}),d(i,{label:"确认密码",borderBottom:""},{default:t((()=>[d(l,{class:"flex-1",type:"password",modelValue:y.password2,"onUpdate:modelValue":a[3]||(a[3]=e=>y.password2=e),placeholder:"再次输入新密码",border:!1},null,8,["modelValue"])])),_:1})])),_:1}),d(o,{class:"mt-[100rpx]"},{default:t((()=>[d(V,{type:"primary",shape:"circle",onClick:C},{default:t((()=>[u(" 确定 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-0cfd532e"]]);export{g as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-search.7b11822d.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 _,t as g,m as x}from"./index.6523cb5b.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as w}from"./u-image.7bffe717.js";import{n as k}from"./util.abc6df9d.js";import{_ as j}from"./news-card.f2421cac.js";import{_ as O}from"./tabbar.3072dbb1.js";import{g as C}from"./shop.a1b88dfa.js";import"./u-icon.8872894f.js";import"./icon_visit.5f8ba9a3.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 _=t(a("u-image"),w),g=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(g,{key:t,onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(_,{mode:"aspectFit",width:"100%",height:"100%",src:p(c)(e.image)},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):m("v-if",!0)}}}),S=i({__name:"nav",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:c}=o();return(i,o)=>{const 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,g=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((()=>[_(" 最新资讯 ")])),_:1}),(s(!0),d(f,null,u(c.article,(e=>(s(),n(g,{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.21767035.js";import{r as t,a,o as s,c as n,w as l,b as r,i as c,d as i,u as o,e as d,f as u,g as p,F as f,h as m,S as y,j as b,k as h,l as _,t as g,m as x}from"./index.18669c64.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as w}from"./u-image.ed329ee7.js";import{n as k}from"./util.5a6b8a6a.js";import{_ as j}from"./news-card.0aa896b7.js";import{_ as O}from"./tabbar.637322bb.js";import{g as C}from"./shop.77e170b3.js";import"./u-icon.68f989af.js";import"./icon_visit.5f8ba9a3.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 _=t(a("u-image"),w),g=y,x=b,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(g,{key:t,onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(_,{mode:"aspectFit",width:"100%",height:"100%",src:p(c)(e.image)},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):m("v-if",!0)}}}),S=i({__name:"nav",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:c}=o();return(i,o)=>{const y=t(a("u-image"),w),b=h;return e.content.data.length&&e.content.enabled?(s(),n(b,{key:0,class:"nav pt-[30rpx] pb-[16rpx] bg-white"},{default:l((()=>[r(b,{class:"nav-item flex flex-wrap"},{default:l((()=>[(s(!0),d(f,null,u(e.content.data,((e,t)=>(s(),n(b,{key:t,class:"flex flex-col items-center w-1/5 mb-[30rpx]",onClick:t=>{return a=e.link,void k(a);var a}},{default:l((()=>[r(y,{width:"41px",height:"41px",src:p(c)(e.image),alt:""},null,8,["src"]),r(b,{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),y=t(a("w-nav"),S),b=h,g=t(a("news-card"),j),x=t(a("tabbar"),O);return s(),n(b,{class:"index"},{default:l((()=>[(s(!0),d(f,null,u(c.pages,((e,t)=>(s(),n(b,{key:t},{default:l((()=>["search"==e.name?(s(),n(o,{key:0,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0),"banner"==e.name?(s(),n(p,{key:1,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0),"nav"==e.name?(s(),n(y,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):m("v-if",!0)])),_:2},1024)))),128)),c.article.length?(s(),n(b,{key:0,class:"article"},{default:l((()=>[r(b,{class:"flex items-center article-title mx-[20rpx] my-[30rpx] text-2xl font-medium"},{default:l((()=>[_(" 最新资讯 ")])),_:1}),(s(!0),d(f,null,u(c.article,(e=>(s(),n(g,{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};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,A as e,Y as s,o as t,c as l,w as r,h as c,b as u,l as i,t as m,k as d,n as f,r as p,a as n,z as o}from"./index.6523cb5b.js";import{_ as x}from"./u-parse.cfade651.js";import{_}from"./u-icon.8872894f.js";import{_ as v}from"./icon_visit.5f8ba9a3.js";import{b as w,c as h,d as b}from"./news.95dffcb5.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 g=async a=>{y.value=await w({id:a})};return s((a=>{j=a.id,g(j)})),(a,e)=>{const s=d,w=f,k=p(n("u-parse"),x),I=p(n("u-icon"),_),z=o;return t(),l(s,{class:"news-detail bg-white"},{default:r((()=>[c(" 标题信心 "),u(s,{class:"news-detail-header py-[20rpx] px-[30rpx]"},{default:r((()=>[u(s,{class:"text-3xl font-medium"},{default:r((()=>[i(m(y.value.title),1)])),_:1}),u(s,{class:"flex mt-[20rpx] text-xs"},{default:r((()=>[y.value.author?(t(),l(s,{key:0,class:"mr-[40rpx]"},{default:r((()=>[i("作者: "+m(y.value.author),1)])),_:1})):c("v-if",!0),u(s,{class:"text-muted mr-[40rpx]"},{default:r((()=>[i(m(y.value.createTime),1)])),_:1}),u(s,{class:"flex items-center text-muted"},{default:r((()=>[u(w,{src:v,class:"w-[30rpx] h-[30rpx]"}),u(s,{class:"ml-[10rpx]"},{default:r((()=>[i(m(y.value.visit),1)])),_:1})])),_:1})])),_:1})])),_:1}),c(" 咨询内容 "),u(s,{class:"news-detail-section bg-white p-[20rpx]"},{default:r((()=>[c(" 摘要 "),y.value.summary?(t(),l(s,{key:0,class:"summary p-[20rpx] text-base"},{default:r((()=>[i(" 摘要: "+m(y.value.summary),1)])),_:1})):c("v-if",!0),c(" 封面 "),y.value.image?(t(),l(s,{key:1,class:"mt-[20rpx]"},{default:r((()=>[u(w,{class:"w-full",src:y.value.image,mode:"widthFix"},null,8,["src"])])),_:1})):c("v-if",!0),c(" 内容 "),u(s,{class:"mt-[20rpx]"},{default:r((()=>[u(k,{html:y.value.content},null,8,["html"])])),_:1})])),_:1}),u(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}):await b({articleId:a}),g(j)}catch(e){}})(y.value.id))},{default:r((()=>[u(I,{name:y.value.collect?"star-fill":"star",size:"36"},null,8,["name"]),u(z,{class:"ml-[10rpx]"},{default:r((()=>[i("收藏")])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-3e7e0c12"]]);export{j as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,A as e,Y as s,o as t,c as l,w as r,h as u,b as c,l as i,t as m,k as d,n as p,r as f,a as n,z as o}from"./index.18669c64.js";import{_ as x}from"./u-parse.b66c2014.js";import{_}from"./u-icon.68f989af.js";import{_ as v}from"./icon_visit.5f8ba9a3.js";import{b as w,c as h,d as b}from"./news.9b6ab843.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 g=async a=>{y.value=await w({id:a})};return s((a=>{j=a.id,g(j)})),(a,e)=>{const s=d,w=p,k=f(n("u-parse"),x),I=f(n("u-icon"),_),z=o;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(m(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("作者: "+m(y.value.author),1)])),_:1})):u("v-if",!0),c(s,{class:"text-muted mr-[40rpx]"},{default:r((()=>[i(m(y.value.createTime),1)])),_:1}),c(s,{class:"flex items-center text-muted"},{default:r((()=>[c(w,{src:v,class:"w-[30rpx] h-[30rpx]"}),c(s,{class:"ml-[10rpx]"},{default:r((()=>[i(m(y.value.visit),1)])),_:1})])),_:1})])),_:1})])),_:1}),u(" 咨询内容 "),c(s,{class:"news-detail-section bg-white p-[20rpx]"},{default:r((()=>[u(" 摘要 "),y.value.summary?(t(),l(s,{key:0,class:"summary p-[20rpx] text-base"},{default:r((()=>[i(" 摘要: "+m(y.value.summary),1)])),_:1})):u("v-if",!0),u(" 封面 "),y.value.image?(t(),l(s,{key:1,class:"mt-[20rpx]"},{default:r((()=>[c(w,{class:"w-full",src:y.value.image,mode:"widthFix"},null,8,["src"])])),_:1})):u("v-if",!0),u(" 内容 "),c(s,{class:"mt-[20rpx]"},{default:r((()=>[c(k,{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}):await b({articleId:a}),g(j)}catch(e){}})(y.value.id))},{default:r((()=>[c(I,{name:y.value.collect?"star-fill":"star",size:"36"},null,8,["name"]),c(z,{class:"ml-[10rpx]"},{default:r((()=>[i("收藏")])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-3e7e0c12"]]);export{j as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as e,A as a,u as s,B as o,m as l,o as r,c as t,w as u,b as d,g as p,l as m,y as n,h as c,ae as i,r as f,a as b,i as _,k as x}from"./index.6523cb5b.js";import{_ as w,a as g}from"./u-form-item.a08a5b1b.js";import{_ as h}from"./u-form.42d8e9e8.js";import{_ as v}from"./u-checkbox.58a953b4.js";import{_ as y}from"./u-button.cfcb6205.js";import{r as V}from"./account.2252b993.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.8872894f.js";import"./appEnums.a2ba827b.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 V(B),uni.$u.toast("注册成功"),void i()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入账号");return(e,a)=>{const s=f(b("u-input"),w),o=f(b("u-form-item"),g),l=f(b("u-form"),h),i=_,V=x,k=f(b("u-checkbox"),v),U=f(b("u-button"),y);return r(),t(V,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[40rpx] box-border"},{default:u((()=>[d(V,{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:"请输入字母+数字组合的密码",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}),p($)?(r(),t(V,{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(V,{class:"text-xs flex"},{default:u((()=>[m(" 已阅读并同意 "),d(i,{onClick:a[3]||(a[3]=n((()=>{}),["stop"])),class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=service"},{default:u((()=>[m(" 《服务协议》 ")])),_:1}),m(" 和"),d(i,{onClick:a[4]||(a[4]=n((()=>{}),["stop"])),class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=privacy"},{default:u((()=>[m(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})):c("v-if",!0),d(V,{class:"mt-[60rpx]"},{default:u((()=>[d(U,{type:"primary",shape:"circle",onClick:C},{default:u((()=>[m(" 注册 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-0e6c2b86"]]);export{k as default};
|
||||
import{d as e,A as a,u as s,B as o,m as l,o as r,c as t,w as u,b as d,g as p,l as m,y as n,h as c,ae as i,r as f,a as b,i as _,k as x}from"./index.18669c64.js";import{_ as w,a as g}from"./u-form-item.b703be58.js";import{_ as h}from"./u-form.7e573d59.js";import{_ as v}from"./u-checkbox.2ec3e2d5.js";import{_ as y}from"./u-button.5f44fee7.js";import{r as V}from"./account.d3bb872b.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";import"./u-icon.68f989af.js";import"./appEnums.a2ba827b.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 V(B),uni.$u.toast("注册成功"),void i()):uni.$u.toast("请输入确认密码"):uni.$u.toast("请输入密码"):uni.$u.toast("请输入账号");return(e,a)=>{const s=f(b("u-input"),w),o=f(b("u-form-item"),g),l=f(b("u-form"),h),i=_,V=x,k=f(b("u-checkbox"),v),U=f(b("u-button"),y);return r(),t(V,{class:"register bg-white min-h-full flex flex-col items-center px-[40rpx] pt-[40rpx] box-border"},{default:u((()=>[d(V,{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:"请输入字母+数字组合的密码",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}),p($)?(r(),t(V,{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(V,{class:"text-xs flex"},{default:u((()=>[m(" 已阅读并同意 "),d(i,{onClick:a[3]||(a[3]=n((()=>{}),["stop"])),class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=service"},{default:u((()=>[m(" 《服务协议》 ")])),_:1}),m(" 和"),d(i,{onClick:a[4]||(a[4]=n((()=>{}),["stop"])),class:"text-primary","hover-class":"none",url:"/pages/agreement/agreement?type=privacy"},{default:u((()=>[m(" 《隐私协议》 ")])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1})):c("v-if",!0),d(V,{class:"mt-[60rpx]"},{default:u((()=>[d(U,{type:"primary",shape:"circle",onClick:C},{default:u((()=>[m(" 注册 ")])),_:1})])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-0e6c2b86"]]);export{k as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{d as e,o as a,c as s,w as t,h as r,b as l,l as c,e as o,f as h,t as i,F as u,k as n,m as d,A as p,ac as _,ag as f,aE as m,aF as g,aG as x,at as b,r as v,a as y}from"./index.6523cb5b.js";import{_ as w}from"./u-search.7b11822d.js";import{_ as k}from"./news-card.f2421cac.js";import{_ as j}from"./z-paging.3b02b0cd.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";import{b as V,c as I}from"./shop.a1b88dfa.js";import"./u-icon.8872894f.js";import"./u-image.7bffe717.js";import"./icon_visit.5f8ba9a3.js";var z=C(e({__name:"suggest",props:{hot_search:{default:[]},his_search:{default:[]}},emits:["search","clear"],setup(e,{emit:d}){const p=e=>{d("search",e)};return(_,f)=>{const m=n;return a(),s(m,{class:"suggest bg-white"},{default:t((()=>[r(" 热门搜索 "),e.hot_search.length?(a(),s(m,{key:0,class:"hot"},{default:t((()=>[l(m,{class:"text-base font-medium pl-[24rpx] pt-[26rpx] pb-[6rpx]"},{default:t((()=>[c("热门搜索")])),_:1}),l(m,{class:"w-full pl-[24rpx] pr-[8rpx]"},{default:t((()=>[(a(!0),o(u,null,h(e.hot_search,(e=>(a(),s(m,{class:"keyword",onClick:a=>p(e)},{default:t((()=>[c(i(e),1)])),_:2},1032,["onClick"])))),256))])),_:1})])),_:1})):r("v-if",!0),e.hot_search.length&&e.his_search.length?(a(),s(m,{key:1,class:"mx-[24rpx] my-[40rpx] border-b border-solid border-0 border-light"})):r("v-if",!0),r(" 历史搜索 "),e.his_search.length?(a(),s(m,{key:2,class:"history"},{default:t((()=>[l(m,{class:"flex justify-between px-[24rpx] pb-[6rpx]"},{default:t((()=>[l(m,{class:"text-base font-medium"},{default:t((()=>[c("历史搜索")])),_:1}),l(m,{class:"text-xs text-muted",onClick:f[0]||(f[0]=()=>d("clear"))},{default:t((()=>[c("清空")])),_:1})])),_:1}),l(m,{class:"w-full pl-[24rpx] pr-[8rpx]"},{default:t((()=>[(a(!0),o(u,null,h(e.his_search,(e=>(a(),s(m,{class:"keyword",onClick:a=>p(e)},{default:t((()=>[c(i(e),1)])),_:2},1032,["onClick"])))),256))])),_:1})])),_:1})):r("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-60191c7a"]]);var S=C(e({__name:"search",setup(e){const c=d({hot_search:[],his_search:[],result:[],searching:!1}),i=p(""),C=_(),S=e=>{i.value=e,i.value&&(c.his_search.includes(i.value)||(c.his_search.unshift(i.value),f.set(m,c.his_search))),C.value.reload(),c.searching=!0},F=async()=>{(await b({title:"温馨提示",content:"是否清空历史记录?"})).confirm&&(f.set(m,""),c.his_search=[])},U=async(e,a)=>{try{const{lists:s}=await I({keyword:i.value,pageNo:e,pageSize:a});C.value.complete(s)}catch(s){console.log("报错=>",s),C.value.complete(!1)}};return(async()=>{try{c.hot_search=await V()}catch(e){console.log("获取热门搜索失败=>",e)}})(),c.his_search=f.get(m)||[],(e,d)=>{const p=v(y("u-search"),w),_=n,f=v(y("news-card"),k),m=v(y("z-paging"),j);return a(),s(_,{class:"search"},{default:t((()=>[r(" 搜索框 "),l(_,{class:"px-[24rpx] py-[14rpx] bg-white"},{default:t((()=>[l(p,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=e=>i.value=e),placeholder:"请输入关键词搜索",height:"72",onSearch:S,onCustom:S,onClear:d[1]||(d[1]=e=>c.searching=!1)},null,8,["modelValue"])])),_:1}),r(" 搜索 "),l(_,{class:"search-content"},{default:t((()=>[r(" "),g(l(z,{onSearch:S,onClear:F,hot_search:c.hot_search,his_search:c.his_search},null,8,["hot_search","his_search"]),[[x,!c.searching]]),r(" "),g(l(_,{class:"search-content-s pt-[20rpx]"},{default:t((()=>[l(m,{ref_key:"paging",ref:C,modelValue:c.result,"onUpdate:modelValue":d[2]||(d[2]=e=>c.result=e),onQuery:U,fixed:!1,height:"100%"},{default:t((()=>[(a(!0),o(u,null,h(c.result,((e,t)=>(a(),s(f,{key:e.id,item:e,newsId:e.id},null,8,["item","newsId"])))),128))])),_:1},8,["modelValue"])])),_:1},512),[[x,c.searching]])])),_:1})])),_:1})}}}),[["__scopeId","data-v-629a231d"]]);export{S as default};
|
||||
import{d as e,o as a,c as s,w as t,h as r,b as l,l as c,e as o,f as h,t as i,F as u,k as n,m as d,A as p,ac as _,ag as f,aE as m,aF as g,aG as x,at as b,r as v,a as y}from"./index.18669c64.js";import{_ as w}from"./u-search.21767035.js";import{_ as k}from"./news-card.0aa896b7.js";import{_ as j}from"./z-paging.b22b38b7.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";import{b as V,c as I}from"./shop.77e170b3.js";import"./u-icon.68f989af.js";import"./u-image.ed329ee7.js";import"./icon_visit.5f8ba9a3.js";var z=C(e({__name:"suggest",props:{hot_search:{default:[]},his_search:{default:[]}},emits:["search","clear"],setup(e,{emit:d}){const p=e=>{d("search",e)};return(_,f)=>{const m=n;return a(),s(m,{class:"suggest bg-white"},{default:t((()=>[r(" 热门搜索 "),e.hot_search.length?(a(),s(m,{key:0,class:"hot"},{default:t((()=>[l(m,{class:"text-base font-medium pl-[24rpx] pt-[26rpx] pb-[6rpx]"},{default:t((()=>[c("热门搜索")])),_:1}),l(m,{class:"w-full pl-[24rpx] pr-[8rpx]"},{default:t((()=>[(a(!0),o(u,null,h(e.hot_search,(e=>(a(),s(m,{class:"keyword",onClick:a=>p(e)},{default:t((()=>[c(i(e),1)])),_:2},1032,["onClick"])))),256))])),_:1})])),_:1})):r("v-if",!0),e.hot_search.length&&e.his_search.length?(a(),s(m,{key:1,class:"mx-[24rpx] my-[40rpx] border-b border-solid border-0 border-light"})):r("v-if",!0),r(" 历史搜索 "),e.his_search.length?(a(),s(m,{key:2,class:"history"},{default:t((()=>[l(m,{class:"flex justify-between px-[24rpx] pb-[6rpx]"},{default:t((()=>[l(m,{class:"text-base font-medium"},{default:t((()=>[c("历史搜索")])),_:1}),l(m,{class:"text-xs text-muted",onClick:f[0]||(f[0]=()=>d("clear"))},{default:t((()=>[c("清空")])),_:1})])),_:1}),l(m,{class:"w-full pl-[24rpx] pr-[8rpx]"},{default:t((()=>[(a(!0),o(u,null,h(e.his_search,(e=>(a(),s(m,{class:"keyword",onClick:a=>p(e)},{default:t((()=>[c(i(e),1)])),_:2},1032,["onClick"])))),256))])),_:1})])),_:1})):r("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-60191c7a"]]);var S=C(e({__name:"search",setup(e){const c=d({hot_search:[],his_search:[],result:[],searching:!1}),i=p(""),C=_(),S=e=>{i.value=e,i.value&&(c.his_search.includes(i.value)||(c.his_search.unshift(i.value),f.set(m,c.his_search))),C.value.reload(),c.searching=!0},F=async()=>{(await b({title:"温馨提示",content:"是否清空历史记录?"})).confirm&&(f.set(m,""),c.his_search=[])},U=async(e,a)=>{try{const{lists:s}=await I({keyword:i.value,pageNo:e,pageSize:a});C.value.complete(s)}catch(s){console.log("报错=>",s),C.value.complete(!1)}};return(async()=>{try{c.hot_search=await V()}catch(e){console.log("获取热门搜索失败=>",e)}})(),c.his_search=f.get(m)||[],(e,d)=>{const p=v(y("u-search"),w),_=n,f=v(y("news-card"),k),m=v(y("z-paging"),j);return a(),s(_,{class:"search"},{default:t((()=>[r(" 搜索框 "),l(_,{class:"px-[24rpx] py-[14rpx] bg-white"},{default:t((()=>[l(p,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=e=>i.value=e),placeholder:"请输入关键词搜索",height:"72",onSearch:S,onCustom:S,onClear:d[1]||(d[1]=e=>c.searching=!1)},null,8,["modelValue"])])),_:1}),r(" 搜索 "),l(_,{class:"search-content"},{default:t((()=>[r(" "),g(l(z,{onSearch:S,onClear:F,hot_search:c.hot_search,his_search:c.his_search},null,8,["hot_search","his_search"]),[[x,!c.searching]]),r(" "),g(l(_,{class:"search-content-s pt-[20rpx]"},{default:t((()=>[l(m,{ref_key:"paging",ref:C,modelValue:c.result,"onUpdate:modelValue":d[2]||(d[2]=e=>c.result=e),onQuery:U,fixed:!1,height:"100%"},{default:t((()=>[(a(!0),o(u,null,h(c.result,((e,t)=>(a(),s(f,{key:e.id,item:e,newsId:e.id},null,8,["item","newsId"])))),128))])),_:1},8,["modelValue"])])),_:1},512),[[x,c.searching]])])),_:1})])),_:1})}}}),[["__scopeId","data-v-629a231d"]]);export{S as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./u-avatar.6928e28d.js";import{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,h as u,k as d,i as p,u as f,e as m,a8 as y,F as x,f as g,g as b,S as v,j as _,m as h,a9 as k,aa as j,ab as w}from"./index.6523cb5b.js";import{_ as O}from"./u-icon.8872894f.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as I}from"./u-image.7bffe717.js";import{n as L}from"./util.abc6df9d.js";import{_ as z}from"./tabbar.3072dbb1.js";import{a as U}from"./shop.a1b88dfa.js";var F=C(t({__name:"user-info",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},user:{type:Object,default:()=>({})},isLogin:{type:Boolean}},setup:t=>(f,m)=>{const y=s(a("u-avatar"),e),x=d,g=p,b=s(a("u-icon"),O);return r(),n(x,{class:"user-info flex px-[50rpx] justify-between py-[50rpx]"},{default:l((()=>[t.isLogin?(r(),n(g,{key:0,class:"flex items-center","hover-class":"none",url:"/pages/user_data/user_data"},{default:l((()=>[i(y,{src:t.user.avatar,size:120},null,8,["src"]),i(x,{class:"text-white ml-[20rpx]"},{default:l((()=>[i(x,{class:"text-2xl"},{default:l((()=>[o(c(t.user.nickname),1)])),_:1}),i(x,{class:"text-xs mt-[18rpx]"},{default:l((()=>[o("账号:"+c(t.user.username),1)])),_:1})])),_:1})])),_:1})):(r(),n(g,{key:1,class:"flex items-center","hover-class":"none",url:"/pages/login/login"},{default:l((()=>[i(y,{src:"/static/images/user/default_avatar.png",size:120}),i(x,{class:"text-white text-3xl ml-[20rpx]"},{default:l((()=>[o("未登录")])),_:1})])),_:1})),t.isLogin?(r(),n(g,{key:2,"hover-class":"none",url:"/pages/user_set/user_set"},{default:l((()=>[i(b,{name:"setting",color:"#fff",size:58})])),_:1})):u("v-if",!0)])),_:1})}}),[["__scopeId","data-v-8892eef4"]]);const S=t({__name:"my-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=f(),n=e=>{L(e)};return(l,o)=>{const d=s(a("u-image"),I),p=s(a("u-icon"),O);return r(),m("div",{class:"my-service bg-white mx-[20rpx] mt-[20rpx] rounded-lg"},[e.content.title?(r(),m("div",{key:0,class:"title px-[30rpx] py-[20rpx] border-light border-solid border-0 border-b"},[y("div",null,c(e.content.title),1)])):u("v-if",!0),1==e.content.style?(r(),m("div",{key:1,class:"flex flex-wrap pt-[40rpx] pb-[20rpx]"},[(r(!0),m(x,null,g(e.content.data,((e,s)=>(r(),m("div",{key:s,class:"flex flex-col items-center w-1/4 mb-[15px]",onClick:t=>n(e.link)},[i(d,{width:"52",height:"52",src:b(t)(e.image),alt:""},null,8,["src"]),y("div",{class:"mt-[7px]"},c(e.name),1)],8,["onClick"])))),128))])):u("v-if",!0),2==e.content.style?(r(),m("div",{key:2},[(r(!0),m(x,null,g(e.content.data,((e,s)=>(r(),m("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(d,{width:"48",height:"48",src:b(t)(e.image),alt:""},null,8,["src"]),y("div",{class:"ml-[20rpx] flex-1"},c(e.name),1),y("div",{class:"text-muted"},[i(p,{name:"arrow-right"})])],8,["onClick"])))),128))])):u("v-if",!0)])}}}),B=t({__name:"user-banner",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=f();return(o,c)=>{const p=s(a("u-image"),I),f=v,y=_,h=d;return e.content.data.length&&e.content.enabled?(r(),n(h,{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),m(x,null,g(e.content.data,((e,s)=>(r(),n(f,{key:s,onClick:t=>{return s=e.limk,void L(s);var s}},{default:l((()=>[i(p,{mode:"aspectFit",width:"100%",height:"100%",src:b(t)(e.image),"border-radius":14},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):u("v-if",!0)}}}),J=t({__name:"user",setup(e){const t=h({pages:[]}),o=k(),{userInfo:c,isLogin:p}=j(o);return w((()=>{o.getUser()})),(async()=>{const e=await U({id:2});t.pages=JSON.parse(e.pages)})(),(e,o)=>{const f=s(a("w-user-info"),F),y=s(a("w-my-service"),S),v=s(a("w-user-banner"),B),_=d,h=s(a("tabbar"),z);return r(),n(_,{class:"user"},{default:l((()=>[(r(!0),m(x,null,g(t.pages,((e,t)=>(r(),n(_,{key:t},{default:l((()=>["user-info"==e.name?(r(),n(f,{key:0,content:e.content,styles:e.styles,user:b(c),"is-login":b(p)},null,8,["content","styles","user","is-login"])):u("v-if",!0),"my-service"==e.name?(r(),n(y,{key:1,content:e.content,styles:e.styles},null,8,["content","styles"])):u("v-if",!0),"user-banner"==e.name?(r(),n(v,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):u("v-if",!0)])),_:2},1024)))),128)),i(h)])),_:1})}}});export{J as default};
|
||||
import{_ as e}from"./u-avatar.2ff630b5.js";import{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,h as u,k as d,i as p,u as f,e as m,a8 as y,F as x,f as g,g as b,S as v,j as _,m as h,a9 as k,aa as j,ab as w}from"./index.18669c64.js";import{_ as O}from"./u-icon.68f989af.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as I}from"./u-image.ed329ee7.js";import{n as L}from"./util.5a6b8a6a.js";import{_ as z}from"./tabbar.637322bb.js";import{a as U}from"./shop.77e170b3.js";var F=C(t({__name:"user-info",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},user:{type:Object,default:()=>({})},isLogin:{type:Boolean}},setup:t=>(f,m)=>{const y=s(a("u-avatar"),e),x=d,g=p,b=s(a("u-icon"),O);return r(),n(x,{class:"user-info flex px-[50rpx] justify-between py-[50rpx]"},{default:l((()=>[t.isLogin?(r(),n(g,{key:0,class:"flex items-center","hover-class":"none",url:"/pages/user_data/user_data"},{default:l((()=>[i(y,{src:t.user.avatar,size:120},null,8,["src"]),i(x,{class:"text-white ml-[20rpx]"},{default:l((()=>[i(x,{class:"text-2xl"},{default:l((()=>[o(c(t.user.nickname),1)])),_:1}),i(x,{class:"text-xs mt-[18rpx]"},{default:l((()=>[o("账号:"+c(t.user.username),1)])),_:1})])),_:1})])),_:1})):(r(),n(g,{key:1,class:"flex items-center","hover-class":"none",url:"/pages/login/login"},{default:l((()=>[i(y,{src:"/static/images/user/default_avatar.png",size:120}),i(x,{class:"text-white text-3xl ml-[20rpx]"},{default:l((()=>[o("未登录")])),_:1})])),_:1})),t.isLogin?(r(),n(g,{key:2,"hover-class":"none",url:"/pages/user_set/user_set"},{default:l((()=>[i(b,{name:"setting",color:"#fff",size:58})])),_:1})):u("v-if",!0)])),_:1})}}),[["__scopeId","data-v-8892eef4"]]);const S=t({__name:"my-service",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=f(),n=e=>{L(e)};return(l,o)=>{const d=s(a("u-image"),I),p=s(a("u-icon"),O);return r(),m("div",{class:"my-service bg-white mx-[20rpx] mt-[20rpx] rounded-lg"},[e.content.title?(r(),m("div",{key:0,class:"title px-[30rpx] py-[20rpx] border-light border-solid border-0 border-b"},[y("div",null,c(e.content.title),1)])):u("v-if",!0),1==e.content.style?(r(),m("div",{key:1,class:"flex flex-wrap pt-[40rpx] pb-[20rpx]"},[(r(!0),m(x,null,g(e.content.data,((e,s)=>(r(),m("div",{key:s,class:"flex flex-col items-center w-1/4 mb-[15px]",onClick:t=>n(e.link)},[i(d,{width:"52",height:"52",src:b(t)(e.image),alt:""},null,8,["src"]),y("div",{class:"mt-[7px]"},c(e.name),1)],8,["onClick"])))),128))])):u("v-if",!0),2==e.content.style?(r(),m("div",{key:2},[(r(!0),m(x,null,g(e.content.data,((e,s)=>(r(),m("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(d,{width:"48",height:"48",src:b(t)(e.image),alt:""},null,8,["src"]),y("div",{class:"ml-[20rpx] flex-1"},c(e.name),1),y("div",{class:"text-muted"},[i(p,{name:"arrow-right"})])],8,["onClick"])))),128))])):u("v-if",!0)])}}}),B=t({__name:"user-banner",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const{getImageUrl:t}=f();return(o,c)=>{const p=s(a("u-image"),I),f=v,y=_,h=d;return e.content.data.length&&e.content.enabled?(r(),n(h,{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),m(x,null,g(e.content.data,((e,s)=>(r(),n(f,{key:s,onClick:t=>{return s=e.limk,void L(s);var s}},{default:l((()=>[i(p,{mode:"aspectFit",width:"100%",height:"100%",src:b(t)(e.image),"border-radius":14},null,8,["src"])])),_:2},1032,["onClick"])))),128))])),_:1},8,["indicator-dots"])])),_:1})):u("v-if",!0)}}}),J=t({__name:"user",setup(e){const t=h({pages:[]}),o=k(),{userInfo:c,isLogin:p}=j(o);return w((()=>{o.getUser()})),(async()=>{const e=await U({id:2});t.pages=JSON.parse(e.pages)})(),(e,o)=>{const f=s(a("w-user-info"),F),y=s(a("w-my-service"),S),v=s(a("w-user-banner"),B),_=d,h=s(a("tabbar"),z);return r(),n(_,{class:"user"},{default:l((()=>[(r(!0),m(x,null,g(t.pages,((e,t)=>(r(),n(_,{key:t},{default:l((()=>["user-info"==e.name?(r(),n(f,{key:0,content:e.content,styles:e.styles,user:b(c),"is-login":b(p)},null,8,["content","styles","user","is-login"])):u("v-if",!0),"my-service"==e.name?(r(),n(y,{key:1,content:e.content,styles:e.styles},null,8,["content","styles"])):u("v-if",!0),"user-banner"==e.name?(r(),n(v,{key:2,content:e.content,styles:e.styles},null,8,["content","styles"])):u("v-if",!0)])),_:2},1024)))),128)),i(h)])),_:1})}}});export{J 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 +0,0 @@
|
|||
import{d as s,A as a,Y as e,o as r,c as t,aH as n}from"./index.6523cb5b.js";const u=s({__name:"webview",setup(s){const u=a("");return e((s=>{u.value=s.url})),(s,a)=>{const e=n;return r(),t(e,{src:u.value},null,8,["src"])}}});export{u as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as s,A as a,Y as e,o as r,c as t,aH as n}from"./index.18669c64.js";const u=s({__name:"webview",setup(s){const u=a("");return e((s=>{u.value=s.url})),(s,a)=>{const e=n;return r(),t(e,{src:u.value},null,8,["src"])}}});export{u as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as r}from"./index.6523cb5b.js";function t(){return r.get({url:"/index"})}function e(t){return r.get({url:"/decorate",data:t})}function n(){return r.get({url:"/hotSearch"})}function a(t){return r.get({url:"/search",data:t})}export{e as a,n as b,a as c,t as g};
|
||||
import{D as r}from"./index.18669c64.js";function t(){return r.get({url:"/index"})}function e(t){return r.get({url:"/decorate",data:t})}function n(){return r.get({url:"/hotSearch"})}function a(t){return r.get({url:"/search",data:t})}export{e as a,n as b,a as c,t 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{K as e,o as t,c as i,w as a,G as r,p as s,q as n,h as o,y as p,k as l,am as d}from"./index.6523cb5b.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{K as e,o as t,c as i,w as a,G as r,p as s,q as n,h as o,y as p,k as l,am as d}from"./index.18669c64.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.8872894f.js";import{r as t,a as i,o as a,c as s,w as l,b as h,p as n,q as r,G as o,k as c}from"./index.6523cb5b.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.68f989af.js";import{r as t,a as i,o as a,c as s,w as l,b as h,p as n,q as r,G as o,k as c}from"./index.18669c64.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,G as a,k as r}from"./index.6523cb5b.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,G as a,k as r}from"./index.18669c64.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 _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{o as t,c as i,w as e,q as s,p as o,h as l,l as n,t as a,n as c,z as r,k as u}from"./index.6523cb5b.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,q as s,p as o,h as l,l as n,t as a,n as c,z as r,k as u}from"./index.18669c64.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 _};
|
||||
|
|
@ -1 +1 @@
|
|||
import{r as e,a as r,o as t,c as i,w as o,q as a,h as d,G as s,n as l,k as n}from"./index.6523cb5b.js";import{_ as u}from"./u-icon.8872894f.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,q as a,h as d,G as s,n as l,k as n}from"./index.18669c64.js";import{_ as u}from"./u-icon.68f989af.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{E as e,r as t,a as o,o as l,c as a,w as r,b as s,q as c,h as i,l as n,t as u,p as d,y as h,k as p,I as y}from"./index.6523cb5b.js";import{_ as f}from"./u-icon.8872894f.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"),f),S=p,x=y;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{E as e,r as t,a as o,o as l,c as a,w as r,b as s,q as c,h as i,l as n,t as u,p as d,y as h,k as p,I as f}from"./index.18669c64.js";import{_ as y}from"./u-icon.68f989af.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{a0 as e,ak as t,al as s,o as i,c as n,w as a,h,k as r}from"./index.6523cb5b.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";var u=c({name:"u-verification-code",emits:["start","end","change"],props:{seconds:{type:[String,Number],default:60},startText:{type:String,default:"获取验证码"},changeText:{type:String,default:"X秒重新获取"},endText:{type:String,default:"重新获取"},keepRunning:{type:Boolean,default:!1},uniqueKey:{type:String,default:""}},data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},methods:{checkKeepRunning(){let s=Number(e(this.uniqueKey+"_$uCountDownTimestamp"));if(!s)return this.changeEvent(this.startText);let i=Math.floor(+new Date/1e3);this.keepRunning&&s&&s>i?(this.secNum=s-i,t(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)}),1e3)},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);s({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeUnmount(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,s,c,u,m){const o=r;return i(),n(o,{class:"u-code-wrap"},{default:a((()=>[h(" 此组件功能由js完成,无需写html逻辑 ")])),_:1})}],["__scopeId","data-v-1cef9d0f"]]);export{u as _};
|
||||
import{a0 as e,ak as t,al as s,o as i,c as n,w as a,h,k as r}from"./index.18669c64.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";var u=c({name:"u-verification-code",emits:["start","end","change"],props:{seconds:{type:[String,Number],default:60},startText:{type:String,default:"获取验证码"},changeText:{type:String,default:"X秒重新获取"},endText:{type:String,default:"重新获取"},keepRunning:{type:Boolean,default:!1},uniqueKey:{type:String,default:""}},data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},methods:{checkKeepRunning(){let s=Number(e(this.uniqueKey+"_$uCountDownTimestamp"));if(!s)return this.changeEvent(this.startText);let i=Math.floor(+new Date/1e3);this.keepRunning&&s&&s>i?(this.secNum=s-i,t(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)}),1e3)},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);s({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeUnmount(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,s,c,u,m){const o=r;return i(),n(o,{class:"u-code-wrap"},{default:a((()=>[h(" 此组件功能由js完成,无需写html逻辑 ")])),_:1})}],["__scopeId","data-v-1cef9d0f"]]);export{u as _};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{H as e,J as o,v as n,K as t,L as c,M as s,N as a}from"./index.6523cb5b.js";const l=(e,o=!1,n)=>new Promise(((c,s)=>{let a=t();n&&(a=t().in(n)),a[o?"selectAll":"select"](e).boundingClientRect((function(e){return o&&Array.isArray(e)&&e.length||!o&&e?c(e):void s("找不到元素")})).exec()}));function i(){const e=n();return e[e.length-1]||{}}function r(e,o="navigateTo"){const n=e.query?`${e.path}?${function(e){let o="";for(const n of Object.keys(e)){const t=e[n],c=encodeURIComponent(n)+"=";if(!u(t))if(console.log(encodeURIComponent(n),a(t)),a(t)){for(const e of Object.keys(t))if(!u(t[e])){o+=encodeURIComponent(n+"["+e+"]")+"="+encodeURIComponent(t[e])+"&"}}else console.log(c+encodeURIComponent(t),"####"),o+=c+encodeURIComponent(t)+"&"}return o.slice(0,-1)}(e.query)}`:e.path;"navigateTo"==o&&c({url:n}),"reLaunch"==o&&s({url:n})}const u=e=>null==e&&void 0===e;function d(n){return new Promise(((t,c)=>{const s=e();o({url:"/api/upload/image",filePath:n,name:"file",header:{token:s},fileType:"image",success:e=>{console.log("uploadFile res ==> ",e);const o=JSON.parse(e.data);console.log("data.code",o.code),200==o.code?t(o.data):c()},fail:e=>{console.log(e),c()}})}))}export{i as c,l as g,r as n,d as u};
|
||||
import{H as e,J as o,v as n,K as t,L as c,M as s,N as a}from"./index.18669c64.js";const l=(e,o=!1,n)=>new Promise(((c,s)=>{let a=t();n&&(a=t().in(n)),a[o?"selectAll":"select"](e).boundingClientRect((function(e){return o&&Array.isArray(e)&&e.length||!o&&e?c(e):void s("找不到元素")})).exec()}));function i(){const e=n();return e[e.length-1]||{}}function r(e,o="navigateTo"){const n=e.query?`${e.path}?${function(e){let o="";for(const n of Object.keys(e)){const t=e[n],c=encodeURIComponent(n)+"=";if(!u(t))if(console.log(encodeURIComponent(n),a(t)),a(t)){for(const e of Object.keys(t))if(!u(t[e])){o+=encodeURIComponent(n+"["+e+"]")+"="+encodeURIComponent(t[e])+"&"}}else console.log(c+encodeURIComponent(t),"####"),o+=c+encodeURIComponent(t)+"&"}return o.slice(0,-1)}(e.query)}`:e.path;"navigateTo"==o&&c({url:n}),"reLaunch"==o&&s({url:n})}const u=e=>null==e&&void 0===e;function d(n){return new Promise(((t,c)=>{const s=e();o({url:"/api/upload/image",filePath:n,name:"file",header:{token:s},fileType:"image",success:e=>{console.log("uploadFile res ==> ",e);const o=JSON.parse(e.data);console.log("data.code",o.code),200==o.code?t(o.data):c()},fail:e=>{console.log(e),c()}})}))}export{i as c,l as g,r as n,d as u};
|
||||
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="/assets/uni.e24a0fcc.css">
|
||||
<link rel="stylesheet" href="/assets/uni.010a0a4b.css">
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
<title>加载中</title>
|
||||
<!--preload-links-->
|
||||
<!--app-context-->
|
||||
<script type="module" crossorigin src="/assets/index.6523cb5b.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.18669c64.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.fee70b76.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue