feat:初始提交uni-app项目

This commit is contained in:
2026-01-14 18:19:33 +08:00
commit 0dcbd340e6
515 changed files with 38560 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";const t=require("../utils/request.js");exports.apiDetailWall=function(e={}){return t.request({url:"/detailWall",data:e})},exports.apiGetBanner=function(){return t.request({url:"/homeBanner"})},exports.apiGetClassList=function(e={}){return t.request({url:"/wallList",data:e})},exports.apiGetClassify=function(e={}){return t.request({url:"/classify",data:e})},exports.apiGetDayRandom=function(){return t.request({url:"/randomWall"})},exports.apiGetHistoryList=function(e={}){return t.request({url:"/userWallList",data:e})},exports.apiGetNotice=function(e={}){return t.request({url:"/wallNewsList",data:e})},exports.apiGetSetScore=function(e={}){return t.request({url:"/setupScore",data:e})},exports.apiNoticeDetail=function(e={}){return t.request({url:"/wallNewsDetail",data:e})},exports.apiSearchData=function(e={}){return t.request({url:"/searchWall",data:e})},exports.apiUserInfo=function(e={}){return t.request({url:"/userInfo",data:e})},exports.apiWriteDownload=function(e={}){return t.request({url:"/downloadWall",data:e})};

1
unpackage/dist/build/mp-weixin/app.js vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./common/vendor.js");Math;const n={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};function e(){return{app:o.createSSRApp(n)}}e().app.mount("#app"),exports.createApp=e;

44
unpackage/dist/build/mp-weixin/app.json vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"pages": [
"pages/index/index",
"components/components",
"pages/classify/classify",
"pages/user/user",
"pages/classlist/classlist",
"pages/preview/preview",
"pages/notice/notice",
"pages/notice/detail",
"pages/search/search"
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "咸虾米壁纸",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#9799a5",
"selectedColor": "#28b389",
"list": [
{
"text": "推荐",
"pagePath": "pages/index/index",
"iconPath": "/static/images/tabBar/home.png",
"selectedIconPath": "/static/images/tabBar/home-h.png"
},
{
"text": "分类",
"pagePath": "pages/classify/classify",
"iconPath": "/static/images/tabBar/classify.png",
"selectedIconPath": "/static/images/tabBar/classify-h.png"
},
{
"text": "我的",
"pagePath": "pages/user/user",
"iconPath": "/static/images/tabBar/user.png",
"selectedIconPath": "/static/images/tabBar/user-h.png"
}
]
},
"usingComponents": {}
}

View File

@@ -0,0 +1,2 @@
view,swiper,swiper-item{box-sizing:border-box}.pageBg{background:linear-gradient(to bottom,transparent 0%,#fff 400rpx),linear-gradient(to right,#beecd8 20%,#f4e2d8);min-height:80vh}.loadingLayout{padding:30rpx 0}.safe-area-inset-bottom{height:env(safe-area-inset-bottom)}
page::after{position:fixed;content:'';left:-1000px;top:-1000px;-webkit-animation:shadow-preload .1s;-webkit-animation-delay:3s;animation:shadow-preload .1s;animation-delay:3s}@-webkit-keyframes shadow-preload{0%{background-image:url(https://cdn1.dcloud.net.cn/5130524452546b345269556c6433686b4d474e6b4d5459774e6d466a4e6d45784f544d32/img/shadow-grey.png)}100%{background-image:url(https://cdn1.dcloud.net.cn/5130524452546b345269556c6433686b4d474e6b4d5459774e6d466a4e6d45784f544d32/img/shadow-grey.png)}}@keyframes shadow-preload{0%{background-image:url(https://cdn1.dcloud.net.cn/5130524452546b345269556c6433686b4d474e6b4d5459774e6d466a4e6d45784f544d32/img/shadow-grey.png)}100%{background-image:url(https://cdn1.dcloud.net.cn/5130524452546b345269556c6433686b4d474e6b4d5459774e6d466a4e6d45784f544d32/img/shadow-grey.png)}}page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -0,0 +1 @@
"use strict";exports._imports_0="/static/images/xxmLogo.png",exports._imports_0$1="/assets/more.14a1a72b.jpg";

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";const e={};const n=require("../../common/vendor.js")._export_sfc(e,[["render",function(e,n){return{}}],["__scopeId","data-v-26691667"]]);wx.createComponent(n);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="content-title data-v-26691667"><view class="name data-v-26691667"><slot name="name"></slot></view><view class="custom data-v-26691667"><slot name="custom"></slot></view></view>

View File

@@ -0,0 +1 @@
.content-title.data-v-26691667{display:flex;justify-content:space-between;align-items:center;padding:0 30rpx}.content-title .name.data-v-26691667{font-size:40rpx}

View File

@@ -0,0 +1 @@
"use strict";const e={};const r=require("../common/vendor.js")._export_sfc(e,[["render",function(e,r){return{}}]]);wx.createPage(r);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../utils/system.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const r={__name:"custom-nav-bar",props:{title:{type:String,default:"壁纸"}},setup:r=>(s,o)=>({a:e.unref(t.getStatusBarHeight)()+"px",b:e.t(r.title),c:e.p({type:"search",size:"18",color:"#888"}),d:e.unref(t.getTitleBarHeight)()+"px",e:e.unref(t.getNavBarHeight)()+"px"})},s=e._export_sfc(r,[["__scopeId","data-v-d803e843"]]);wx.createComponent(s);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view class="layout data-v-d803e843"><view class="navbar data-v-d803e843"><view class="statusBar data-v-d803e843" style="{{'height:' + a}}"></view><view class="titleBar data-v-d803e843" style="{{'height:' + d}}"><view class="title data-v-d803e843">{{b}}</view><navigator url="/pages/search/search" class="search data-v-d803e843"><uni-icons wx:if="{{c}}" class="icon data-v-d803e843" u-i="d803e843-0" bind:__l="__l" u-p="{{c}}"></uni-icons><text class="text data-v-d803e843">搜索</text></navigator></view></view><view class="fill data-v-d803e843" style="{{'height:' + e}}"></view></view>

View File

@@ -0,0 +1 @@
.layout .navbar.data-v-d803e843{position:fixed;left:0;top:0;width:100%;z-index:10;background:linear-gradient(to bottom,transparent 0%,#fff 400rpx),linear-gradient(to right,#beecd8 20%,#f4e2d8)}.layout .navbar .titleBar.data-v-d803e843{display:flex;padding:0 30rpx;align-items:center}.layout .navbar .titleBar .title.data-v-d803e843{font-size:22px;font-weight:700;color:#000}.layout .navbar .titleBar .search.data-v-d803e843{width:200rpx;height:50rpx;border-radius:60rpx;background:rgba(255,255,255,.4);margin-left:30rpx;color:#999;font-size:28rpx;display:flex;align-items:center}.layout .navbar .titleBar .search .icon.data-v-d803e843{margin-left:5rpx}.layout .navbar .titleBar .search .text.data-v-d803e843{padding-left:10rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),m=require("../../utils/common.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const i={__name:"theme-item",props:{isMore:{type:Boolean,default:!1},item:{type:Object,default:()=>({name:"默认名称",picurl:"/common/images/classify1.jpg",updateTime:Date.now()})}},setup:i=>(s,o)=>e.e({a:!i.isMore},i.isMore?{g:t._imports_0$1,h:e.p({type:"more-filled",size:"34",color:"#fff"})}:e.e({b:i.item.picurl,c:e.t(i.item.name),d:e.unref(m.compareTimestamp)(i.item.updateTime)},e.unref(m.compareTimestamp)(i.item.updateTime)?{e:e.t(e.unref(m.compareTimestamp)(i.item.updateTime))}:{},{f:"/pages/classlist/classlist?id="+i.item._id+"&name="+i.item.name}))},s=e._export_sfc(i,[["__scopeId","data-v-8bd5680a"]]);wx.createComponent(s);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view class="themeItem data-v-8bd5680a"><navigator wx:if="{{a}}" url="{{f}}" class="box data-v-8bd5680a"><image class="pic data-v-8bd5680a" src="{{b}}" mode="aspectFill"></image><view class="mask data-v-8bd5680a">{{c}}</view><view wx:if="{{d}}" class="tab data-v-8bd5680a">{{e}}前更新</view></navigator><navigator wx:else url="/pages/classify/classify" open-type="reLaunch" class="box more data-v-8bd5680a"><image class="pic data-v-8bd5680a" src="{{g}}" mode="aspectFill"></image><view class="mask data-v-8bd5680a"><uni-icons wx:if="{{h}}" class="data-v-8bd5680a" u-i="8bd5680a-0" bind:__l="__l" u-p="{{h}}"></uni-icons><view class="text data-v-8bd5680a">更多</view></view></navigator></view>

View File

@@ -0,0 +1 @@
.themeItem .box.data-v-8bd5680a{height:340rpx;border-radius:10rpx;overflow:hidden;position:relative}.themeItem .box .pic.data-v-8bd5680a{width:100%;height:100%}.themeItem .box .mask.data-v-8bd5680a{width:100%;height:70rpx;position:absolute;font-size:40rpx;font-weight:600;bottom:0;left:0;background:rgba(0,0,0,.2);color:#fff;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(20rpx);backdrop-filter:blur(20rpx)}.themeItem .box .tab.data-v-8bd5680a{position:absolute;left:0;top:0;background:rgba(250,129,90,.7);-webkit-backdrop-filter:blur(20rpx);backdrop-filter:blur(20rpx);color:#fff;font-size:22rpx;border-radius:0 0 20rpx;padding:6rpx 12rpx;transform:scale(.8);transform-origin:left top}.themeItem .box.more .mask.data-v-8bd5680a{width:100%;height:100%;flex-direction:column}.themeItem .box.more .text.data-v-8bd5680a{font-size:28rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/apis.js");if(!Array){(e.resolveComponent("custom-nav-bar")+e.resolveComponent("theme-item"))()}Math||((()=>"../../components/custom-nav-bar/custom-nav-bar.js")+(()=>"../../components/theme-item/theme-item.js"))();const t={__name:"classify",setup(t){const s=e.ref([]);return(async()=>{let e=await a.apiGetClassify({pageSize:15});s.value=e.data})(),e.onShareAppMessage((e=>({title:"hzb壁纸,精选分类",path:"/pages/classfy/classfy"}))),e.onShareTimeline((()=>({title:"hzb壁纸,精选分类",imageUrl:"/static/images/logo2.jpg"}))),(a,t)=>({a:e.p({title:"分类"}),b:e.f(s.value,((a,t,s)=>({a:a._id,b:"05ae22c8-1-"+s,c:e.p({item:a})})))})}},s=e._export_sfc(t,[["__scopeId","data-v-05ae22c8"]]);t.__runtimeHooks=6,wx.createPage(s);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "分类",
"enablePullDownRefresh": true,
"navigationStyle": "custom",
"usingComponents": {
"custom-nav-bar": "../../components/custom-nav-bar/custom-nav-bar",
"theme-item": "../../components/theme-item/theme-item"
}
}

View File

@@ -0,0 +1 @@
<view class="classLayout pageBg data-v-05ae22c8"><custom-nav-bar wx:if="{{a}}" class="data-v-05ae22c8" u-i="05ae22c8-0" bind:__l="__l" u-p="{{a}}"></custom-nav-bar><view class="classify data-v-05ae22c8"><theme-item wx:for="{{b}}" wx:for-item="item" wx:key="a" class="data-v-05ae22c8" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></theme-item></view></view>

View File

@@ -0,0 +1 @@
.classLayout .classify.data-v-05ae22c8{padding:30rpx;display:grid;grid-template-columns:repeat(3,1fr);gap:15rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/apis.js");if(!Array){e.resolveComponent("uni-load-more")()}Math;const t={__name:"classlist",setup(t){const i=e.ref([]),l=e.ref(!1),s={pageNum:1,pageSize:12};let n;e.onLoad((a=>{let{id:t=null,name:i=null,type:l=null}=a;t&&(s.id=t),l&&(s.type=l),n=i,e.index.setNavigationBarTitle({title:i}),o()})),e.onUnload((()=>{e.index.removeStorageSync("storgClassList")})),e.onReachBottom((()=>{l.value||(s.pageNum++,o())}));const o=async()=>{let t;s.id&&(t=await a.apiGetClassList({classid:s.id,pageNum:s.pageNum,pageSize:s.pageSize})),s.type&&(t=await a.apiGetHistoryList({type:s.type,pageNum:s.pageNum,pageSize:s.pageSize})),i.value=[...i.value,...t.data],s.pageSize>t.data.length&&(l.value=!0),e.index.setStorageSync("storgClassList",i.value)};return e.onShareAppMessage((e=>({title:"hzb壁纸-"+n,path:"/pages/classlist/classlist?id="+s.id+"&name="+n}))),e.onShareTimeline((()=>({title:"hzb壁纸~~~",query:"id="+s.id+"&name="+n}))),(a,t)=>e.e({a:!i.value.length&&!l.value},i.value.length||l.value?{}:{b:e.p({status:"loading"})},{c:e.f(i.value,((e,a,t)=>({a:e.smallPicurl,b:"/pages/preview/preview?id="+e._id,c:e._id}))),d:i.value.length||l.value},i.value.length||l.value?{e:e.p({status:l.value?"noMore":"loading"})}:{})}},i=e._export_sfc(t,[["__scopeId","data-v-7266cc03"]]);t.__runtimeHooks=6,wx.createPage(i);

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "分类列表",
"usingComponents": {
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
}
}

View File

@@ -0,0 +1 @@
<view class="classlist data-v-7266cc03"><view wx:if="{{a}}" class="loadingLayout data-v-7266cc03"><uni-load-more wx:if="{{b}}" class="data-v-7266cc03" u-i="7266cc03-0" bind:__l="__l" u-p="{{b}}"></uni-load-more></view><view class="content data-v-7266cc03"><navigator wx:for="{{c}}" wx:for-item="item" wx:key="c" url="{{item.b}}" class="item data-v-7266cc03"><image class="data-v-7266cc03" src="{{item.a}}" mode="aspectFill"></image></navigator></view><view wx:if="{{d}}" class="loadingLayout bottom data-v-7266cc03"><uni-load-more wx:if="{{e}}" class="data-v-7266cc03" u-i="7266cc03-1" bind:__l="__l" u-p="{{e}}"></uni-load-more></view><view class="safe-area-inset-bottom data-v-7266cc03"></view></view>

View File

@@ -0,0 +1 @@
.classlist .content.data-v-7266cc03{display:grid;grid-template-columns:repeat(3,1fr);gap:5rpx;padding:5rpx}.classlist .content .item.data-v-7266cc03{height:440rpx}.classlist .content .item image.data-v-7266cc03{width:100%;height:100%;display:block}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/apis.js");if(!Array){(e.resolveComponent("custom-nav-bar")+e.resolveComponent("uni-icons")+e.resolveComponent("uni-dateformat")+e.resolveComponent("common-title")+e.resolveComponent("theme-item"))()}Math||((()=>"../../components/custom-nav-bar/custom-nav-bar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../components/common-title/common-title.js")+(()=>"../../components/theme-item/theme-item.js"))();const a={__name:"index",setup(a){const i=e.ref([]),o=e.ref([]),n=e.ref([]),s=e.ref([]);return e.onShareAppMessage((e=>({title:"hzb壁纸",path:"/pages/index/index"}))),e.onShareTimeline((()=>({title:"hzb壁纸~~~",imageUrl:"/static/images/logo2.jpg"}))),(async()=>{let e=await t.apiGetBanner();i.value=e.data})(),(async()=>{let e=await t.apiGetDayRandom();o.value=e.data})(),(async()=>{let e=await t.apiGetNotice({select:!0});n.value=e.data})(),(async()=>{let e=await t.apiGetClassify({select:!0});s.value=e.data})(),(t,a)=>({a:e.p({title:"推荐"}),b:e.f(i.value,((t,a,i)=>e.e({a:"miniProgram"==t.target},"miniProgram"==t.target?{b:t.picurl,c:t.url,d:t.appid}:{e:t.picurl,f:`/pages/classlist/classlist?${t.url}`},{g:t._id}))),c:e.p({type:"sound-filled",size:"20",color:"#28b389"}),d:e.f(n.value,((t,a,i)=>({a:e.t(t.title),b:"/pages/notice/detail?id="+t._id,c:t._id}))),e:e.p({type:"forward",size:"20",color:"#28b389"}),f:e.p({type:"calendar",size:"20",color:"#28b389"}),g:e.p({date:Date.now(),format:"dd日"}),h:e.f(o.value,((t,a,i)=>({a:t.smallPicurl,b:t._id,c:e.o((a=>{return i=t._id,e.index.setStorageSync("storgClassList",o.value),void e.index.navigateTo({url:"/pages/preview/preview?id="+i});var i}),t._id)}))),i:e.f(s.value,((t,a,i)=>({a:t._id,b:"4d5c657e-7-"+i,c:e.p({isMore:!1,item:t})}))),j:e.p({isMore:!0})})}},i=e._export_sfc(a,[["__scopeId","data-v-4d5c657e"]]);a.__runtimeHooks=6,wx.createPage(i);

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "uni-app",
"navigationStyle": "custom",
"usingComponents": {
"custom-nav-bar": "../../components/custom-nav-bar/custom-nav-bar",
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"common-title": "../../components/common-title/common-title",
"theme-item": "../../components/theme-item/theme-item"
}
}

View File

@@ -0,0 +1 @@
<view class="homeLayout pageBg data-v-4d5c657e"><custom-nav-bar wx:if="{{a}}" class="data-v-4d5c657e" u-i="4d5c657e-0" bind:__l="__l" u-p="{{a}}"></custom-nav-bar><view class="banner data-v-4d5c657e"><swiper class="data-v-4d5c657e" indicator-dots="{{true}}" circular="{{true}}" indicator-color="rgba(255,255,255,0.5)" indicator-active-color="#fff" autoplay="{{true}}"><swiper-item wx:for="{{b}}" wx:for-item="item" wx:key="g" class="data-v-4d5c657e"><navigator wx:if="{{item.a}}" class="like data-v-4d5c657e" url="{{item.c}}" target="miniProgram" app-id="{{item.d}}"><image class="data-v-4d5c657e" src="{{item.b}}" mode="aspectFill"></image></navigator><navigator wx:else url="{{item.f}}" class="like data-v-4d5c657e"><image class="data-v-4d5c657e" src="{{item.e}}" mode="aspectFill"></image></navigator></swiper-item></swiper></view><view class="notice data-v-4d5c657e"><view class="left data-v-4d5c657e"><uni-icons wx:if="{{c}}" class="data-v-4d5c657e" u-i="4d5c657e-1" bind:__l="__l" u-p="{{c}}"></uni-icons><text class="text data-v-4d5c657e">公告</text></view><view class="center data-v-4d5c657e"><swiper class="data-v-4d5c657e" vertical="{{true}}" autoplay="{{true}}" interval="1500" duration="300" circular="{{true}}"><swiper-item wx:for="{{d}}" wx:for-item="item" wx:key="c" class="data-v-4d5c657e"><navigator class="data-v-4d5c657e" url="{{item.b}}">{{item.a}}</navigator></swiper-item></swiper></view><view class="right data-v-4d5c657e"><uni-icons wx:if="{{e}}" class="data-v-4d5c657e" u-i="4d5c657e-2" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view><view class="select data-v-4d5c657e"><common-title class="data-v-4d5c657e" u-s="{{['name','custom']}}" u-i="4d5c657e-3" bind:__l="__l"><view slot="name">每日推荐</view><view class="date data-v-4d5c657e" slot="custom"><uni-icons wx:if="{{f}}" class="data-v-4d5c657e" u-i="4d5c657e-4,4d5c657e-3" bind:__l="__l" u-p="{{f}}"></uni-icons><view class="text data-v-4d5c657e"><uni-dateformat wx:if="{{g}}" class="data-v-4d5c657e" u-i="4d5c657e-5,4d5c657e-3" bind:__l="__l" u-p="{{g}}"></uni-dateformat></view></view></common-title><view class="content data-v-4d5c657e"><scroll-view class="data-v-4d5c657e" scroll-x="{{true}}"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="box data-v-4d5c657e" bindtap="{{item.c}}"><image class="data-v-4d5c657e" src="{{item.a}}" mode="aspectFill"></image></view></scroll-view></view></view><view class="theme data-v-4d5c657e"><common-title class="data-v-4d5c657e" u-s="{{['name','custom']}}" u-i="4d5c657e-6" bind:__l="__l"><view slot="name">专题精选</view><navigator url="/pages/classify/classify" class="more data-v-4d5c657e" open-type="reLaunch" slot="custom">More+</navigator></common-title><view class="content data-v-4d5c657e"><theme-item wx:for="{{i}}" wx:for-item="item" wx:key="a" class="data-v-4d5c657e" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></theme-item><theme-item wx:if="{{j}}" class="data-v-4d5c657e" u-i="4d5c657e-8" bind:__l="__l" u-p="{{j}}"></theme-item></view></view></view>

View File

@@ -0,0 +1 @@
.homeLayout .banner.data-v-4d5c657e{width:750rpx;padding:30rpx 0}.homeLayout .banner swiper.data-v-4d5c657e{width:750rpx;height:340rpx}.homeLayout .banner swiper swiper-item.data-v-4d5c657e{width:100%;height:100%;padding:0 30rpx}.homeLayout .banner swiper swiper-item .like.data-v-4d5c657e{width:100%;height:100%}.homeLayout .banner swiper swiper-item .like image.data-v-4d5c657e{width:100%;height:100%;border-radius:10rpx}.homeLayout .notice.data-v-4d5c657e{width:690rpx;margin:0 auto;height:80rpx;background:#f9f9f9;line-height:80rpx;border-radius:80rpx;display:flex}.homeLayout .notice .left.data-v-4d5c657e{width:140rpx;display:flex;align-items:center;justify-content:center}.homeLayout .notice .left .text.data-v-4d5c657e{color:#000;font-size:28rpx;font-weight:600}.homeLayout .notice .center.data-v-4d5c657e{flex:1}.homeLayout .notice .center swiper.data-v-4d5c657e{height:100%}.homeLayout .notice .center swiper swiper-item.data-v-4d5c657e{height:100%;font-size:30rpx;color:#666;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.homeLayout .notice .right.data-v-4d5c657e{width:70rpx;display:flex;align-items:center;justify-content:center}.homeLayout .select.data-v-4d5c657e{padding-top:50rpx}.homeLayout .select .date.data-v-4d5c657e{color:#28b389;display:flex;align-items:center}.homeLayout .select .content.data-v-4d5c657e{width:720rpx;margin-left:30rpx;margin-top:30rpx}.homeLayout .select .content scroll-view.data-v-4d5c657e{white-space:nowrap}.homeLayout .select .content scroll-view .box.data-v-4d5c657e{display:inline-block;width:200rpx;height:430rpx;margin-right:15rpx}.homeLayout .select .content scroll-view .box image.data-v-4d5c657e{width:100%;height:100%}.homeLayout .select .content scroll-view .box.data-v-4d5c657e:last-child{margin-right:30rpx}.homeLayout .theme.data-v-4d5c657e{padding:50rpx 0}.homeLayout .theme .more.data-v-4d5c657e{font-size:32rpx;color:#888}.homeLayout .theme .content.data-v-4d5c657e{margin-top:30rpx;padding:0 30rpx;display:grid;grid-template-columns:repeat(3,1fr);gap:15rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-tag")+e.resolveComponent("uni-dateformat")+e.resolveComponent("mp-html"))()}Math||((()=>"../../uni_modules/uni-tag/components/uni-tag/uni-tag.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js"))();const a={__name:"detail",setup(a){const o=e.ref({}),n=e.ref(""),l=e.ref("");e.onLoad((t=>{console.log(t),n.value=t.id,l.value=t.name,e.index.setNavigationBarTitle({title:l.value}),u()}));const u=async()=>{let e=await t.apiNoticeDetail({id:n.value});o.value=e.data,console.log(e)};return(t,a)=>e.e({a:o.value.select},o.value.select?{b:e.p({text:"置顶",inverted:!0,type:"error"})}:{},{c:e.t(o.value.title),d:e.t(o.value.author),e:e.p({date:o.value.publish_date,format:"yyyy-MM-dd hh:mm:ss"}),f:e.p({content:o.value.content}),g:e.t(o.value.view_count)})}},o=e._export_sfc(a,[["__scopeId","data-v-cb39523c"]]);wx.createPage(o);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "公告详情",
"usingComponents": {
"uni-tag": "../../uni_modules/uni-tag/components/uni-tag/uni-tag",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view class="noticeLayout data-v-cb39523c"><view class="title data-v-cb39523c"><view class="tag data-v-cb39523c"><uni-tag wx:if="{{a}}" class="data-v-cb39523c" u-i="cb39523c-0" bind:__l="__l" u-p="{{b}}"></uni-tag></view><view class="font data-v-cb39523c">{{c}}</view></view><view class="info data-v-cb39523c"><view class="item data-v-cb39523c">{{d}}</view><view class="item data-v-cb39523c"><uni-dateformat wx:if="{{e}}" class="data-v-cb39523c" u-i="cb39523c-1" bind:__l="__l" u-p="{{e}}"></uni-dateformat></view></view><view class="content data-v-cb39523c"><mp-html wx:if="{{f}}" class="data-v-cb39523c" u-i="cb39523c-2" bind:__l="__l" u-p="{{f}}"/></view><view class="count data-v-cb39523c"> 阅读数量:{{g}}</view></view>

View File

@@ -0,0 +1 @@
.noticeLayout.data-v-cb39523c{padding:30rpx}.noticeLayout .title.data-v-cb39523c{display:flex;align-items:center;font-size:40rpx;color:#111;line-height:1.6em;padding-bottom:30rpx}.noticeLayout .title .tag.data-v-cb39523c{transform:scale(.8);transform-origin:left center;flex-shrink:0}.noticeLayout .title .font.data-v-cb39523c{padding-left:4rpx}.noticeLayout .info.data-v-cb39523c{display:flex;align-items:center;color:#999;font-size:28rpx}.noticeLayout .info .item.data-v-cb39523c{padding-left:20rpx}.noticeLayout .content.data-v-cb39523c{padding:50rpx 0}.noticeLayout .count.data-v-cb39523c{color:#999;font-size:28rpx}

View File

@@ -0,0 +1 @@
"use strict";const e={};const r=require("../../common/vendor.js")._export_sfc(e,[["render",function(e,r){return{}}]]);wx.createPage(r);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "公告",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class=""></view>

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../utils/system.js"),l=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("uni-dateformat")+e.resolveComponent("uni-rate")+e.resolveComponent("uni-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/uni-rate/components/uni-rate/uni-rate.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const o={__name:"preview",setup(o){const i=e.ref(!0),t=e.ref(null),u=e.ref({}),n=e.ref(null),s=e.ref(0),r=e.ref(!1),c=e.ref([]),p=e.ref(null),d=e.ref(0),v=e.ref([]),m=e.index.getStorageSync("storgClassList")||[];c.value=m.map((e=>({...e,picurl:e.smallPicurl.replace("_small.webp",".jpg")}))),e.onLoad((async e=>{if(p.value=e.id,"share"==e.type){let e=await l.apiDetailWall({id:p.value});c.value=e.data.map((e=>({...e,picurl:e.smallPicurl.replace("_small.webp",".jpg")})))}d.value=c.value.findIndex((e=>e._id==p.value)),h(),u.value=c.value[d.value]}));const f=e=>{d.value=e.detail.current,h(),u.value=c.value[d.value]},h=()=>{v.value.push(d.value<=0?c.value.length-1:d.value-1,d.value,d.value>=c.value.length-1?0:d.value+1),v.value=[...new Set(v.value)]},g=()=>{t.value.open()},w=()=>{t.value.close()},x=()=>{u.value.userScore&&(r.value=!0,s.value=u.value.userScore),n.value.open()},y=()=>{n.value.close(),s.value=0,r.value=!1},b=async()=>{e.index.showLoading({title:"加载中..."});let{classid:a,_id:o}=u.value,i=await l.apiGetSetScore({classid:a,wallId:o,userScore:s.value});e.index.hideLoading(),0===i.errCode&&e.index.showToast({title:"评分成功",icon:"none"}),c.value[d.value].userScore=s.value,e.index.setStorageSync("storgClassList",c.value),y()},_=()=>{i.value=!i.value},S=()=>{e.index.navigateBack({success:()=>{},fail:a=>{e.index.reLaunch({url:"/pages/index/index"})}})},C=async()=>{try{e.index.showLoading({title:"下载中...",mask:!0});let{classid:a,_id:o}=u.value,i=await l.apiWriteDownload({classid:a,wallId:o});if(0!=i.errCode)throw i;e.index.getImageInfo({src:u.value.picurl,success:a=>{e.index.saveImageToPhotosAlbum({filePath:a.path,success:a=>{e.index.showToast({title:"保存成功,请到相册查看",icon:"none"})},fail:a=>{"saveImagePhotoAlbum:fail cancel"!=a.errMsg?e.index.showModal({title:"授权提示",content:"需要授权保存相册",success:a=>{a.confirm&&e.index.openSetting({success:a=>{console.log(a),a.authSetting["scope.writePhotosAlbum"]?e.index.showToast({title:"获取授权成功",icon:"none"}):e.index.showToast({title:"获取权限失败",icon:"none"})}})}}):e.index.showToast({title:"保存失败,请重新点击下载",icon:"none"})},complete:()=>{e.index.hideLoading()}})}})}catch(a){e.index.hideLoading()}};return e.onShareAppMessage((e=>({title:"hzb壁纸-",path:"/pages/preview/preview?id="+p.value+"&type=share"}))),e.onShareTimeline((()=>({title:"hzb壁纸~~~",query:"id="+p.value+"&type=share"}))),(l,o)=>({a:e.f(c.value,((a,l,o)=>e.e({a:v.value.includes(l)},v.value.includes(l)?{b:e.o(_,a._id),c:a.picurl}:{},{d:a._id}))),b:d.value,c:e.o(f),d:e.p({type:"back",color:"#fff",size:"20"}),e:e.o(S),f:e.unref(a.getPreviewBarHeight)()+"px",g:e.t(d.value+1),h:e.t(c.value.length),i:e.p({date:Date.now(),format:"hh:mm"}),j:e.p({date:Date.now(),format:"MM月dd日"}),k:e.p({type:"info",size:"23"}),l:e.o(g),m:e.p({type:"star",size:"23"}),n:e.t(u.value.score),o:e.o(x),p:e.p({type:"download",size:"23"}),q:e.o(C),r:i.value,s:e.p({type:"closeempty",size:"18",color:"#999"}),t:e.o(w),v:e.t(u.value._id),w:e.t(u.value.nickname),x:e.p({readonly:!0,touchable:!1,value:u.value.score,size:"16"}),y:e.t(u.value.score),z:e.t(u.value.description),A:e.f(u.value.tabs,((a,l,o)=>({a:e.t(a),b:a}))),B:e.sr(t,"d9b78fb0-6",{k:"infoPopup"}),C:e.p({type:"bottom"}),D:e.t(r.value?"已经评分过了~":"壁纸评分"),E:e.p({type:"closeempty",size:"18",color:"#999"}),F:e.o(y),G:e.o(l.onChange),H:e.o((e=>s.value=e)),I:e.p({disabled:r.value,"disabled-color":"#FFCA3E",allowHalf:!0,modelValue:s.value}),J:e.t(s.value),K:e.o(b),L:!s.value||r.value,M:e.sr(n,"d9b78fb0-9",{k:"scorePopup"}),N:e.p({"is-mask-click":!1})})}},i=e._export_sfc(o,[["__scopeId","data-v-d9b78fb0"]]);o.__runtimeHooks=6,wx.createPage(i);

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "预览",
"navigationStyle": "custom",
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"uni-rate": "../../uni_modules/uni-rate/components/uni-rate/uni-rate",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="preview data-v-d9b78fb0"><swiper class="data-v-d9b78fb0" circular="{{true}}" current="{{b}}" bindchange="{{c}}"><swiper-item wx:for="{{a}}" wx:for-item="item" wx:key="d" class="data-v-d9b78fb0"><image wx:if="{{item.a}}" class="data-v-d9b78fb0" bindtap="{{item.b}}" src="{{item.c}}" mode="aspectFill"></image></swiper-item></swiper><view class="mask data-v-d9b78fb0" hidden="{{!r}}"><view class="goBack data-v-d9b78fb0" bindtap="{{e}}" style="{{'top:' + f}}"><uni-icons wx:if="{{d}}" class="data-v-d9b78fb0" u-i="d9b78fb0-0" bind:__l="__l" u-p="{{d}}"></uni-icons></view><view class="count data-v-d9b78fb0">{{g}} / {{h}}</view><view class="time data-v-d9b78fb0"><uni-dateformat wx:if="{{i}}" class="data-v-d9b78fb0" u-i="d9b78fb0-1" bind:__l="__l" u-p="{{i}}"></uni-dateformat></view><view class="date data-v-d9b78fb0"><uni-dateformat wx:if="{{j}}" class="data-v-d9b78fb0" u-i="d9b78fb0-2" bind:__l="__l" u-p="{{j}}"></uni-dateformat></view><view class="footer data-v-d9b78fb0"><view class="box data-v-d9b78fb0" bindtap="{{l}}"><uni-icons wx:if="{{k}}" class="data-v-d9b78fb0" u-i="d9b78fb0-3" bind:__l="__l" u-p="{{k}}"></uni-icons><view class="text data-v-d9b78fb0">信息</view></view><view class="box data-v-d9b78fb0" bindtap="{{o}}"><uni-icons wx:if="{{m}}" class="data-v-d9b78fb0" u-i="d9b78fb0-4" bind:__l="__l" u-p="{{m}}"></uni-icons><view class="text data-v-d9b78fb0">{{n}}分</view></view><view class="box data-v-d9b78fb0" bindtap="{{q}}"><uni-icons wx:if="{{p}}" class="data-v-d9b78fb0" u-i="d9b78fb0-5" bind:__l="__l" u-p="{{p}}"></uni-icons><view class="text data-v-d9b78fb0">下载</view></view></view></view><uni-popup wx:if="{{C}}" class="r data-v-d9b78fb0" u-s="{{['d']}}" u-r="infoPopup" u-i="d9b78fb0-6" bind:__l="__l" u-p="{{C}}"><view class="infoPopup data-v-d9b78fb0"><view class="popHeader data-v-d9b78fb0"><view class="data-v-d9b78fb0"></view><view class="title data-v-d9b78fb0">壁纸信息</view><view class="close data-v-d9b78fb0" bindtap="{{t}}"><uni-icons wx:if="{{s}}" class="data-v-d9b78fb0" u-i="d9b78fb0-7,d9b78fb0-6" bind:__l="__l" u-p="{{s}}"></uni-icons></view></view><scroll-view class="data-v-d9b78fb0" scroll-y="{{true}}"><view class="content data-v-d9b78fb0"><view class="row data-v-d9b78fb0"><view class="label data-v-d9b78fb0">壁纸ID</view><text selectable class="value data-v-d9b78fb0">{{v}}</text></view><view class="row data-v-d9b78fb0"><view class="label data-v-d9b78fb0">发布者:</view><text class="value data-v-d9b78fb0">{{w}}</text></view><view class="row data-v-d9b78fb0"><text class="label data-v-d9b78fb0">评分:</text><view class="value roteBox data-v-d9b78fb0"><uni-rate wx:if="{{x}}" class="data-v-d9b78fb0" u-i="d9b78fb0-8,d9b78fb0-6" bind:__l="__l" u-p="{{x}}"/><text class="score data-v-d9b78fb0">{{y}}</text></view></view><view class="row data-v-d9b78fb0"><text class="label data-v-d9b78fb0">摘要:</text><view class="value data-v-d9b78fb0">{{z}}</view></view><view class="row data-v-d9b78fb0"><text class="label data-v-d9b78fb0">标签:</text><view class="value tabs data-v-d9b78fb0"><view wx:for="{{A}}" wx:for-item="tab" wx:key="b" class="tab data-v-d9b78fb0">{{tab.a}}</view></view></view><view class="copyright data-v-d9b78fb0"> 声明本图片来用户投稿非商业使用用于免费学习交流如侵犯了您的权益您可以拷贝壁纸ID举报至平台邮箱513894357@qq.com管理将删除侵权壁纸维护您的权益。 </view><view class="safe-area-inset-bottom data-v-d9b78fb0"></view></view></scroll-view></view></uni-popup><uni-popup wx:if="{{N}}" class="r data-v-d9b78fb0" u-s="{{['d']}}" u-r="scorePopup" u-i="d9b78fb0-9" bind:__l="__l" u-p="{{N}}"><view class="scorePopup data-v-d9b78fb0"><view class="popHeader data-v-d9b78fb0"><view class="data-v-d9b78fb0"></view><view class="title data-v-d9b78fb0">{{D}}</view><view class="close data-v-d9b78fb0" bindtap="{{F}}"><uni-icons wx:if="{{E}}" class="data-v-d9b78fb0" u-i="d9b78fb0-10,d9b78fb0-9" bind:__l="__l" u-p="{{E}}"></uni-icons></view></view><view class="content data-v-d9b78fb0"><uni-rate wx:if="{{I}}" class="data-v-d9b78fb0" bindchange="{{G}}" u-i="d9b78fb0-11,d9b78fb0-9" bind:__l="__l" bindupdateModelValue="{{H}}" u-p="{{I}}"/><text class="text data-v-d9b78fb0">{{J}}分</text></view><view class="footer data-v-d9b78fb0"><button class="data-v-d9b78fb0" bindtap="{{K}}" disabled="{{L}}" type="default" size="mini" plain>确认评分</button></view></view></uni-popup></view>

View File

@@ -0,0 +1 @@
.preview.data-v-d9b78fb0{width:100%;height:100vh;position:relative}.preview swiper.data-v-d9b78fb0{width:100%;height:100%}.preview swiper image.data-v-d9b78fb0{width:100%;height:100%}.preview .mask .goBack.data-v-d9b78fb0{position:absolute;left:0;right:0;width:-webkit-fit-content;width:fit-content;color:#fff;width:38px;height:38px;background:rgba(0,0,0,.5);left:30rpx;top:0;margin:auto auto auto 0;border-radius:100px;-webkit-backdrop-filter:blur(10rpx);backdrop-filter:blur(10rpx);border:1px solid rbga(255,255,255,.3);display:flex;justify-content:center;align-items:center}.preview .mask .count.data-v-d9b78fb0{position:absolute;top:10vh;left:0;right:0;margin:auto;width:-webkit-fit-content;width:fit-content;background:rgba(0,0,0,.3);font-size:28rpx;color:#fff;border-radius:40rpx;padding:8rpx 28rpx;-webkit-backdrop-filter:blur(20rpx);backdrop-filter:blur(20rpx)}.preview .mask .time.data-v-d9b78fb0{position:absolute;left:0;right:0;margin:auto;width:-webkit-fit-content;width:fit-content;color:#fff;top:calc(10vh + 80rpx);font-size:140rpx;font-weight:100rpx;line-height:1em;text-shadow:0 4rpx rgba(0,0,0,.3)}.preview .mask .date.data-v-d9b78fb0{position:absolute;left:0;right:0;margin:auto;width:-webkit-fit-content;width:fit-content;color:#fff;top:calc(10vh + 230rpx);font-size:34rpx;text-shadow:0 2rpx rgba(0,0,0,.3)}.preview .mask .footer.data-v-d9b78fb0{position:absolute;left:0;right:0;margin:auto;width:-webkit-fit-content;width:fit-content;color:#fff;background:rgba(255,255,255,.8);bottom:10vh;width:65vw;height:120rpx;border-radius:120rpx;color:#000;display:flex;justify-content:space-around;align-items:center;box-shadow:0 2rpx rgba(0,0,0,.1);-webkit-backdrop-filter:blur(20rpx);backdrop-filter:blur(20rpx)}.preview .mask .footer .box.data-v-d9b78fb0{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:2rpx 12rpx}.preview .mask .footer .box .text.data-v-d9b78fb0{font-size:26rpx;color:#676767}.preview .popHeader.data-v-d9b78fb0{display:flex;justify-content:space-between;align-items:center}.preview .popHeader .title.data-v-d9b78fb0{color:#676767;font-size:26rpx}.preview .popHeader .close.data-v-d9b78fb0{padding:6rpx}.preview .infoPopup.data-v-d9b78fb0{background:#fff;padding:30rpx;border-radius:30rpx 30rpx 0 0;overflow:hidden}.preview .infoPopup scroll-view.data-v-d9b78fb0{max-height:60vh}.preview .infoPopup scroll-view .content .row.data-v-d9b78fb0{display:flex;padding:16rpx 0;font-size:32rpx;line-height:1.7em}.preview .infoPopup scroll-view .content .row .label.data-v-d9b78fb0{color:#a7a7a7;width:140rpx;text-align:right;font-size:30rpx}.preview .infoPopup scroll-view .content .row .value.data-v-d9b78fb0{flex:1;width:0;font-size:30rpx}.preview .infoPopup scroll-view .content .row .roteBox.data-v-d9b78fb0{display:flex;align-items:center}.preview .infoPopup scroll-view .content .row .roteBox .score.data-v-d9b78fb0{font-size:26rpx;color:#676767;padding-left:10rpx}.preview .infoPopup scroll-view .content .row .tabs.data-v-d9b78fb0{display:flex;white-space:wrap}.preview .infoPopup scroll-view .content .row .tabs .tab.data-v-d9b78fb0{border:1px solid #28B389;color:#28b389;font-size:22rpx;padding:10rpx 30rpx;border-radius:40rpx;line-height:1em;margin:0 10rpx 10rpx 0}.preview .infoPopup scroll-view .content .row .class.data-v-d9b78fb0{color:#28b389}.preview .infoPopup scroll-view .content .copyright.data-v-d9b78fb0{font-size:28rpx;padding:20rpx;background:#f6f6f6;color:#666;border-radius:10rpx;margin:20rpx 0;line-height:1.5em}.preview .scorePopup.data-v-d9b78fb0{background:#fff;padding:30rpx;width:70vw;border-radius:30rpx;overflow:hidden}.preview .scorePopup .content.data-v-d9b78fb0{padding:30rpx 0;display:flex;justify-content:center;align-items:center}.preview .scorePopup .content .text.data-v-d9b78fb0{color:#ffca3e;padding-left:10rpx;width:80rpx;line-height:1em;text-align:right}.preview .scorePopup .footer.data-v-d9b78fb0{display:flex;justify-content:center;align-items:center}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-search-bar")+e.resolveComponent("uni-icons")+e.resolveComponent("uv-empty")+e.resolveComponent("uni-load-more"))()}Math||((()=>"../../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../uni_modules/uv-empty/components/uv-empty/uv-empty.js")+(()=>"../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js"))();const o={__name:"search",setup(o){const l=e.ref({pageNum:1,pageSize:12,keyword:""}),n=e.ref(e.index.getStorageSync("historySearch")||[]),u=e.ref(["美女","帅哥","宠物","卡通"]),r=e.ref(!1),t=e.ref(!1),s=e.ref([]),i=()=>{p()},v=e=>{p(e),d()},c=()=>{e.index.showModal({title:"是否清空历史搜索",success:a=>{a.confirm&&(e.index.removeStorageSync("historySearch"),n.value=[])}})},d=()=>{e.index.showLoading(),n.value=[...new Set([l.value.keyword,...n.value])].slice(0,10),e.index.setStorageSync("historySearch",n.value),p(l.value.keyword),m()},m=async()=>{try{let o=await a.apiSearchData(l.value);s.value=[...s.value,...o.data],e.index.setStorageSync("storgClassList",s.value),l.value.pageSize>o.data.length&&(r.value=!0),0==o.data.length&&0==s.value.length&&(t.value=!0)}finally{e.index.hideLoading()}},p=(e="")=>{s.value=[],r.value=!1,t.value=!1,l.value={pageNum:1,pageSize:12,keyword:e||""}};return e.onReachBottom((()=>{r.value||(l.value.pageNum++,m())})),e.onUnload((()=>{e.index.removeStorageSync("storgClassList",s.value)})),(a,o)=>e.e({a:e.o(d),b:e.o(i),c:e.o(i),d:e.o((e=>l.value.keyword=e)),e:e.p({focus:!0,placeholder:"搜索",modelValue:l.value.keyword}),f:!s.value.length||t.value},!s.value.length||t.value?e.e({g:n.value.length},n.value.length?{h:e.p({type:"trash",size:"25"}),i:e.o(c),j:e.f(n.value,((a,o,l)=>({a:e.t(a),b:a,c:e.o((e=>v(a)),a)})))}:{},{k:e.f(u.value,((a,o,l)=>({a:e.t(a),b:a,c:e.o((e=>v(a)),a)})))}):{},{l:t.value},t.value?{m:e.p({mode:"search"})}:e.e({n:e.f(s.value,((e,a,o)=>({a:e.smallPicurl,b:`/pages/preview/preview?id=${e._id}`,c:e._id}))),o:r.value||s.value.length},r.value||s.value.length?{p:e.p({status:r.value?"noMore":"loading"})}:{}))}},l=e._export_sfc(o,[["__scopeId","data-v-90835114"]]);wx.createPage(l);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "搜索",
"usingComponents": {
"uni-search-bar": "../../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar",
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uv-empty": "../../uni_modules/uv-empty/components/uv-empty/uv-empty",
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
}
}

View File

@@ -0,0 +1 @@
<view class="searchLayout data-v-90835114"><view class="search data-v-90835114"><uni-search-bar wx:if="{{e}}" class="data-v-90835114" bindconfirm="{{a}}" bindcancel="{{b}}" bindclear="{{c}}" u-i="90835114-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></uni-search-bar></view><view wx:if="{{f}}" class="data-v-90835114"><view wx:if="{{g}}" class="history data-v-90835114"><view class="topTitle data-v-90835114"><view class="text data-v-90835114">最近搜索</view><view class="icon data-v-90835114" bindtap="{{i}}"><uni-icons wx:if="{{h}}" class="data-v-90835114" u-i="90835114-1" bind:__l="__l" u-p="{{h}}"></uni-icons></view></view><view class="tabs data-v-90835114"><view wx:for="{{j}}" wx:for-item="tab" wx:key="b" class="tab data-v-90835114" bindtap="{{tab.c}}">{{tab.a}}</view></view></view><view class="recommend data-v-90835114"><view class="topTitle data-v-90835114"><view class="text data-v-90835114">热门搜索</view></view><view class="tabs data-v-90835114"><view wx:for="{{k}}" wx:for-item="tab" wx:key="b" class="tab data-v-90835114" bindtap="{{tab.c}}">{{tab.a}}</view></view></view></view><view wx:if="{{l}}" class="noSearch data-v-90835114"><uv-empty wx:if="{{m}}" class="data-v-90835114" u-i="90835114-2" bind:__l="__l" u-p="{{m}}"></uv-empty></view><view wx:else class="data-v-90835114"><view class="list data-v-90835114"><navigator wx:for="{{n}}" wx:for-item="item" wx:key="c" url="{{item.b}}" class="item data-v-90835114"><image class="data-v-90835114" src="{{item.a}}" mode="aspectFill"></image></navigator></view><view wx:if="{{o}}" class="loadingLayout data-v-90835114"><uni-load-more wx:if="{{p}}" class="data-v-90835114" u-i="90835114-3" bind:__l="__l" u-p="{{p}}"/></view></view></view>

View File

@@ -0,0 +1 @@
.searchLayout .search.data-v-90835114{padding:0 10rpx}.searchLayout .topTitle.data-v-90835114{display:flex;justify-content:space-between;align-items:center}.searchLayout .history.data-v-90835114,.searchLayout .recommend.data-v-90835114{padding:30rpx}.searchLayout .tabs.data-v-90835114{display:flex;align-items:center;flex-wrap:wrap;padding-top:20rpx}.searchLayout .tabs .tab.data-v-90835114{background:#f4f4f4;font-size:28rpx;color:#333;padding:10rpx 28rpx;border-radius:50rpx;margin-right:20rpx;margin-top:20rpx}.searchLayout .list.data-v-90835114{display:grid;grid-template-columns:repeat(3,1fr);gap:5rpx;padding:20rpx 5rpx}.searchLayout .list .item.data-v-90835114{height:440rpx}.searchLayout .list .item image.data-v-90835114{height:100%;width:100%;display:block}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),a=require("../../utils/system.js"),r=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("uni-load-more"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js"))();const i={__name:"user",setup(i){const l=e.ref(null);return(async()=>{let e=await r.apiUserInfo();l.value=e.data})(),(r,i)=>{var s,n,t,u,d,p;return e.e({a:l.value},l.value?{b:e.unref(a.getNavBarHeight)()+"px",c:o._imports_0,d:e.t(l.value.IP),e:e.t((null==(n=null==(s=l.value)?void 0:s.address)?void 0:n.city)||(null==(u=null==(t=l.value)?void 0:t.address)?void 0:u.province)||(null==(p=null==(d=l.value)?void 0:d.address)?void 0:p.country)||"中国"),f:e.p({type:"download-filled",size:"20",color:"#28b389"}),g:e.t(l.value.downloadSize),h:e.p({type:"forward",size:"15",color:"#aaa"}),i:e.p({type:"star-filled",size:"20",color:"#28b389"}),j:e.t(l.value.scoreSize),k:e.p({type:"forward",size:"15",color:"#aaa"}),l:e.p({type:"chatboxes-filled",size:"20",color:"#28b389"}),m:e.p({type:"forward",size:"15",color:"#aaa"}),n:e.p({type:"notification-filled",size:"20",color:"#28b389"}),o:e.p({type:"forward",size:"15",color:"#aaa"}),p:e.p({type:"flag-filled",size:"20",color:"#28b389"}),q:e.p({type:"forward",size:"15",color:"#aaa"})}:{r:e.unref(a.getNavBarHeight)()+"px",s:e.p({status:"loading"})})}}},l=e._export_sfc(i,[["__scopeId","data-v-71eb8033"]]);wx.createPage(l);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "我的",
"navigationStyle": "custom",
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
}
}

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="userLayout pageBg data-v-71eb8033"><view class="data-v-71eb8033" style="{{'height:' + b}}"></view><view class="userinfo data-v-71eb8033"><view class="avatar data-v-71eb8033"><image class="data-v-71eb8033" src="{{c}}" mode="aspectFill"></image></view><view class="ip data-v-71eb8033">{{d}}</view><view class="address data-v-71eb8033">来自于: {{e}}</view></view><view class="section data-v-71eb8033"><view class="list data-v-71eb8033"><navigator url="/pages/classlist/classlist?name=我的下载&type=download" class="row data-v-71eb8033"><view class="left data-v-71eb8033"><uni-icons wx:if="{{f}}" class="data-v-71eb8033" u-i="71eb8033-0" bind:__l="__l" u-p="{{f}}"></uni-icons><view class="text data-v-71eb8033">我的下载</view></view><view class="right data-v-71eb8033"><view class="text data-v-71eb8033">{{g}}</view><uni-icons wx:if="{{h}}" class="data-v-71eb8033" u-i="71eb8033-1" bind:__l="__l" u-p="{{h}}"></uni-icons></view></navigator><navigator url="/pages/classlist/classlist?name=我的评分&type=score" class="row data-v-71eb8033"><view class="left data-v-71eb8033"><uni-icons wx:if="{{i}}" class="data-v-71eb8033" u-i="71eb8033-2" bind:__l="__l" u-p="{{i}}"></uni-icons><view class="text data-v-71eb8033">我的评分</view></view><view class="right data-v-71eb8033"><view class="text data-v-71eb8033">{{j}}</view><uni-icons wx:if="{{k}}" class="data-v-71eb8033" u-i="71eb8033-3" bind:__l="__l" u-p="{{k}}"></uni-icons></view></navigator><view class="row data-v-71eb8033"><view class="left data-v-71eb8033"><uni-icons wx:if="{{l}}" class="data-v-71eb8033" u-i="71eb8033-4" bind:__l="__l" u-p="{{l}}"></uni-icons><view class="text data-v-71eb8033">联系客服</view></view><view class="right data-v-71eb8033"><view class="text data-v-71eb8033"></view><uni-icons wx:if="{{m}}" class="data-v-71eb8033" u-i="71eb8033-5" bind:__l="__l" u-p="{{m}}"></uni-icons></view><button open-type="contact" class="contact data-v-71eb8033">联系客服</button></view></view></view><view class="section data-v-71eb8033"><view class="list data-v-71eb8033"><navigator url="/pages/notice/detail?id=653507c6466d417a3718e94b&name=订阅更新" class="row data-v-71eb8033"><view class="left data-v-71eb8033"><uni-icons wx:if="{{n}}" class="data-v-71eb8033" u-i="71eb8033-6" bind:__l="__l" u-p="{{n}}"></uni-icons><view class="text data-v-71eb8033">订阅更新</view></view><view class="right data-v-71eb8033"><uni-icons wx:if="{{o}}" class="data-v-71eb8033" u-i="71eb8033-7" bind:__l="__l" u-p="{{o}}"></uni-icons></view></navigator><navigator url="/pages/notice/detail?id=6536358ce0ec19c8d67fbe82&name=常见问题" class="row data-v-71eb8033"><view class="left data-v-71eb8033"><uni-icons wx:if="{{p}}" class="data-v-71eb8033" u-i="71eb8033-8" bind:__l="__l" u-p="{{p}}"></uni-icons><view class="text data-v-71eb8033">常见问题</view></view><view class="right data-v-71eb8033"><uni-icons wx:if="{{q}}" class="data-v-71eb8033" u-i="71eb8033-9" bind:__l="__l" u-p="{{q}}"></uni-icons></view></navigator></view></view></view><view wx:else class="loadingLayout data-v-71eb8033"><view class="data-v-71eb8033" style="{{'height:' + r}}"></view><uni-load-more wx:if="{{s}}" class="data-v-71eb8033" u-i="71eb8033-10" bind:__l="__l" u-p="{{s}}"></uni-load-more></view>

View File

@@ -0,0 +1 @@
.userLayout .userinfo.data-v-71eb8033{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50rpx 0}.userLayout .userinfo .avatar.data-v-71eb8033{width:160rpx;height:160rpx;border-radius:50%;overflow:hidden}.userLayout .userinfo .avatar image.data-v-71eb8033{width:100%;height:100%}.userLayout .userinfo .ip.data-v-71eb8033{font-size:44rpx;color:#333;padding:20rpx 0 5rpx}.userLayout .userinfo .address.data-v-71eb8033{font-size:28rpx;color:#aaa}.userLayout .section.data-v-71eb8033{width:690rpx;margin:50rpx auto;border:1px solid #eee;border-radius:10rpx;box-shadow:0 0 30rpx rgba(0,0,0,.05)}.userLayout .section .list .row.data-v-71eb8033{display:flex;justify-content:space-between;align-items:center;padding:0 30rpx;height:100rpx;border-bottom:1px solid #eee;position:relative;background:#fff}.userLayout .section .list .row.data-v-71eb8033:last-child{border-bottom:0}.userLayout .section .list .row .left.data-v-71eb8033{display:flex;justify-content:center;align-items:center}.userLayout .section .list .row .left .text.data-v-71eb8033{padding-left:20rpx;color:#666}.userLayout .section .list .row .right.data-v-71eb8033{display:flex;justify-content:center;align-items:center}.userLayout .section .list .row .right .text.data-v-71eb8033{font-size:28rpx;color:#aaa}.userLayout .section .list .row button.data-v-71eb8033{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}

View File

@@ -0,0 +1,25 @@
{
"setting": {
"es6": true,
"postcss": true,
"minified": true,
"uglifyFileName": false,
"enhance": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerPlugins": false,
"minifyWXML": true
},
"compileType": "miniprogram",
"simulatorPluginLibVersion": {},
"packOptions": {
"ignore": [],
"include": []
},
"appid": "wxd0cd1606ac6a1936",
"editorSetting": {}
}

View File

@@ -0,0 +1,14 @@
{
"libVersion": "3.9.0",
"projectname": "wallpaper-kt",
"setting": {
"urlCheck": true,
"coverView": true,
"lazyloadPlaceholderEnable": false,
"skylineRenderEnable": false,
"preloadBackgroundData": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"compileHotReLoad": true
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t=require("./parser.js"),n=[],i={name:"mp-html",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgtap","linktap","play","error"],components:{node:()=>"./node/node.js"},watch:{content(e){this.setContent(e)}},created(){this.plugins=[];for(let e=n.length;e--;)this.plugins.push(new n[e](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy(){this._hook("onDetached")},methods:{in(e,t,n){e&&t&&n&&(this._in={page:e,selector:t,scrollTop:n})},navigateTo(t,n){return new Promise(((i,o)=>{if(!this.useAnchor)return void o(Error("Anchor is disabled"));n=n||parseInt(this.useAnchor)||0;let s=" ";s=">>>";const r=e.index.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(t?`>>>#${t}`:"")).boundingClientRect();this._in?r.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():r.selectViewport().scrollOffset(),r.exec((t=>{if(!t[0])return void o(Error("Label not found"));const s=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+n;this._in?this._in.page[this._in.scrollTop]=s:e.index.pageScrollTo({scrollTop:s,duration:300}),i()}))}))},getText(e){let t="";return function e(n){for(let i=0;i<n.length;i++){const o=n[i];if("text"===o.type)t+=o.text.replace(/&amp;/g,"&");else if("br"===o.name)t+="\n";else{const n="p"===o.name||"div"===o.name||"tr"===o.name||"li"===o.name||"h"===o.name[0]&&o.name[1]>"0"&&o.name[1]<"7";n&&t&&"\n"!==t[t.length-1]&&(t+="\n"),o.children&&e(o.children),n&&"\n"!==t[t.length-1]?t+="\n":"td"!==o.name&&"th"!==o.name||(t+="\t")}}}(e||this.nodes),t},getRect(){return new Promise(((t,n)=>{e.index.createSelectorQuery().in(this).select("#_root").boundingClientRect().exec((e=>e[0]?t(e[0]):n(Error("Root label not found"))))}))},pauseMedia(){for(let e=(this._videos||[]).length;e--;)this._videos[e].pause()},setPlaybackRate(e){this.playbackRate=e;for(let t=(this._videos||[]).length;t--;)this._videos[t].playbackRate(e)},setContent(e,n){n&&this.imgList||(this.imgList=[]);const i=new t.Parser(this).parse(e);if(this.$set(this,"nodes",n?(this.nodes||[]).concat(i):i),this._videos=[],this.$nextTick((()=>{this._hook("onLoad"),this.$emit("load")})),this.lazyLoad||this.imgList._unloadimgs<this.imgList.length/2){let e=0;const t=n=>{n&&n.height||(n={}),n.height===e?this.$emit("ready",n):(e=n.height,setTimeout((()=>{this.getRect().then(t).catch(t)}),350))};this.getRect().then(t).catch(t)}else this.imgList._unloadimgs||this.getRect().then((e=>{this.$emit("ready",e)})).catch((()=>{this.$emit("ready",{})}))},_hook(e){for(let t=n.length;t--;)this.plugins[t][e]&&this.plugins[t][e]()}}};if(!Array){e.resolveComponent("node")()}const o=e._export_sfc(i,[["render",function(t,n,i,o,s,r){return e.e({a:!s.nodes[0]},s.nodes[0]?{b:e.p({childs:s.nodes,opts:[i.lazyLoad,i.loadingImg,i.errorImg,i.showImgMenu,i.selectable],name:"span"})}:{},{c:e.n((i.selectable?"_select ":"")+"_root"),d:e.s(i.containerStyle)})}]]);wx.createComponent(o);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"node": "./node/node"
}
}

View File

@@ -0,0 +1 @@
<view id="_root" class="{{c}}" style="{{d}}"><slot wx:if="{{a}}"/><node wx:else u-i="5db0d42e-0" bind:__l="__l" u-p="{{b||''}}"/></view>

View File

@@ -0,0 +1 @@
._root{padding:1px 0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}._select{-webkit-user-select:text;user-select:text}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"node": "./node"
}
}

View File

@@ -0,0 +1,31 @@
<wxs module="handler">
// 行内标签列表
var inlineTags = {
abbr: true,
b: true,
big: true,
code: true,
del: true,
em: true,
i: true,
ins: true,
label: true,
q: true,
small: true,
span: true,
strong: true,
sub: true,
sup: true
}
/**
* @description 判断是否为行内标签
*/
module.exports = {
isInline: function (tagName, style) {
return inlineTags[tagName] || (style || '').indexOf('display:inline') !== -1
}
}
</wxs>
<view id="{{b}}" class="{{c}}" style="{{d}}"><block wx:for="{{a}}" wx:for-item="n" wx:key="aI"><image wx:if="{{n.a}}" class="_img" style="{{n.b}}" src="{{n.c}}" mode="widthFix"/><rich-text wx:if="{{n.d}}" style="{{n.e}}" nodes="{{n.f}}" data-i="{{n.g}}" catchtap="{{n.h}}"/><image wx:elif="{{n.i}}" id="{{n.j}}" class="{{n.k}}" style="{{n.l}}" src="{{n.m}}" mode="{{n.n}}" lazy-load="{{n.o}}" webp="{{n.p}}" show-menu-by-longpress="{{n.q}}" image-menu-prevent="{{n.r}}" data-i="{{n.s}}" bindload="{{n.t}}" binderror="{{n.v}}" catchtap="{{n.w}}" bindlongpress="{{n.x}}"/><text wx:elif="{{n.y}}" user-select="{{n.A}}" decode>{{n.z}}</text><text wx:elif="{{n.B}}">\n</text><view wx:elif="{{n.C}}" id="{{n.F}}" class="{{n.G}}" hover-class="_hover" style="{{n.H}}" data-i="{{n.I}}" catchtap="{{n.J}}"><node wx:if="{{n.E}}" style="display:inherit" u-i="{{n.D}}" bind:__l="__l" u-p="{{n.E}}"/></view><video wx:elif="{{n.K}}" id="{{n.L}}" class="{{n.M}}" style="{{n.N}}" autoplay="{{n.O}}" controls="{{n.P}}" loop="{{n.Q}}" muted="{{n.R}}" object-fit="{{n.S}}" poster="{{n.T}}" src="{{n.U}}" data-i="{{n.V}}" bindplay="{{n.W}}" binderror="{{n.X}}"/><audio wx:elif="{{n.Y}}" id="{{n.Z}}" class="{{n.aa}}" style="{{n.ab}}" author="{{n.ac}}" controls="{{n.ad}}" loop="{{n.ae}}" name="{{n.af}}" poster="{{n.ag}}" src="{{n.ah}}" data-i="{{n.ai}}" bindplay="{{n.aj}}" binderror="{{n.ak}}"/><view wx:elif="{{n.al}}" id="{{n.aq}}" class="{{n.ar}}" style="{{n.as}}"><node wx:if="{{n.am}}" u-i="{{n.an}}" bind:__l="__l" u-p="{{n.ao}}"/><block wx:else><view wx:for="{{n.ap}}" wx:for-item="tbody" wx:key="e" class="{{tbody.f}}" style="{{tbody.g}}"><node wx:if="{{tbody.a}}" u-i="{{tbody.b}}" bind:__l="__l" u-p="{{tbody.c}}"/><block wx:else><block wx:for="{{tbody.d}}" wx:for-item="tr" wx:key="i"><view wx:if="{{tr.a}}" class="{{tr.d}}" style="{{tr.e}}"><node wx:if="{{tr.c}}" u-i="{{tr.b}}" bind:__l="__l" u-p="{{tr.c}}"/></view><view wx:else class="{{tr.g}}" style="{{tr.h}}"><view wx:for="{{tr.f}}" wx:for-item="td" wx:key="c" class="{{td.d}}" style="{{td.e}}"><node wx:if="{{td.b}}" u-i="{{td.a}}" bind:__l="__l" u-p="{{td.b}}"/></view></view></block></block></view></block></view><rich-text wx:elif="{{n.at}}" id="{{n.av}}" style="{{n.aw}}" preview="{{false}}" selectable="{{n.ax}}" user-select="{{n.ay}}" nodes="{{n.az}}"/><view wx:elif="{{n.aA}}" id="{{n.aC}}" class="{{n.aD}}" style="{{n.aE}}"><node wx:for="{{n.aB}}" wx:for-item="n2" wx:key="a" style="{{n2.b}}" u-i="{{n2.c}}" bind:__l="__l" u-p="{{n2.d}}"/></view><node wx:else style="{{n.aF}}" u-i="{{n.aG}}" bind:__l="__l" u-p="{{n.aH||''}}"/></block></view>

View File

@@ -0,0 +1 @@
._a{padding:1.5px 0;color:#366092;word-break:break-all}._hover{text-decoration:underline;opacity:.7}._img{max-width:100%;-webkit-touch-callout:none}._block{display:block}._b,._strong{font-weight:700}._code{font-family:monospace}._del{text-decoration:line-through}._em,._i{font-style:italic}._h1{font-size:2em}._h2{font-size:1.5em}._h3{font-size:1.17em}._h5{font-size:.83em}._h6{font-size:.67em}._h1,._h2,._h3,._h4,._h5,._h6{display:block;font-weight:700}._image{height:1px}._ins{text-decoration:underline}._li{display:list-item}._ol{list-style-type:decimal}._ol,._ul{display:block;padding-left:40px;margin:1em 0}._q:before{content:'"'}._q:after{content:'"'}._sub{font-size:smaller;vertical-align:sub}._sup{font-size:smaller;vertical-align:super}._thead,._tbody,._tfoot{display:table-row-group}._tr{display:table-row}._td,._th{display:table-cell;vertical-align:middle}._th{font-weight:700;text-align:center}._ul{list-style-type:disc}._ul ._ul{margin:0;list-style-type:circle}._ul ._ul ._ul{list-style-type:square}._abbr,._b,._code,._del,._em,._i,._ins,._label,._q,._span,._strong,._sub,._sup{display:inline}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";function e(e,t=2){for(e+="";e.length<t;)e="0"+e;return e.slice(-t)}const t={yyyy:t=>e(t.year,4),yy:t=>e(t.year),MM:t=>e(t.month),M:e=>e.month,dd:t=>e(t.day),d:e=>e.day,hh:t=>e(t.hour),h:e=>e.hour,mm:t=>e(t.minute),m:e=>e.minute,ss:t=>e(t.second),s:e=>e.second,SSS:t=>e(t.millisecond,3),S:e=>e.millisecond};function n(e){return e instanceof Date?e:"string"==typeof e?e.indexOf("T")>-1?new Date(e):new Date(e.replace(/-/g,"/")):new Date(e)}exports.friendlyDate=function(e,{locale:o="zh",threshold:r=[6e4,36e5],format:a="yyyy/MM/dd hh:mm:ss"}){if("-"===e)return e;if(!e&&0!==e)return"";const s={zh:{year:"年",month:"月",day:"天",hour:"小时",minute:"分钟",second:"秒",ago:"前",later:"后",justNow:"刚刚",soon:"马上",template:"{num}{unit}{suffix}"},en:{year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",later:"later",justNow:"just now",soon:"soon",template:"{num} {unit} {suffix}"}},u=s[o]||s.zh;let i,h,l=n(e),c=l.getTime()-Date.now(),y=Math.abs(c);if(y<r[0])return c<0?u.justNow:u.soon;if(y>=r[1])return function(e,o="yyyy/MM/dd hh:mm:ss"){if(!e&&0!==e)return"";const r={year:(e=n(e)).getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()},a=/yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/;let s=!0,u=o;for(;s;)s=!1,u=u.replace(a,(function(e){return s=!0,t[e](r)}));return u}(l,a);let m=u.later;c<0&&(m=u.ago,c=-c);const d=Math.floor(c/1e3),f=Math.floor(d/60),M=Math.floor(f/60),g=Math.floor(M/24),S=Math.floor(g/30),p=Math.floor(S/12);switch(!0){case p>0:i=p,h=u.year;break;case S>0:i=S,h=u.month;break;case g>0:i=g,h=u.day;break;case M>0:i=M,h=u.hour;break;case f>0:i=f,h=u.minute;break;default:i=d,h=u.second}return"en"===o&&(1===i?i="a":h+="s"),u.template.replace(/{\s*num\s*}/g,i+"").replace(/{\s*unit\s*}/g,h).replace(/{\s*suffix\s*}/g,m)};

View File

@@ -0,0 +1 @@
"use strict";const e=require("./date-format.js"),t=require("../../../../common/vendor.js"),r={name:"uniDateformat",props:{date:{type:[Object,String,Number],default:()=>"-"},locale:{type:String,default:"zh"},threshold:{type:Array,default:()=>[0,0]},format:{type:String,default:"yyyy/MM/dd hh:mm:ss"},refreshRate:{type:[Number,String],default:0}},data:()=>({refreshMark:0}),computed:{dateShow(){return this.refreshMark,e.friendlyDate(this.date,{locale:this.locale,threshold:this.threshold,format:this.format})}},watch:{refreshRate:{handler(){this.setAutoRefresh()},immediate:!0}},methods:{refresh(){this.refreshMark++},setAutoRefresh(){clearInterval(this.refreshInterval),this.refreshRate&&(this.refreshInterval=setInterval((()=>{this.refresh()}),parseInt(this.refreshRate)))}}};const s=t._export_sfc(r,[["render",function(e,r,s,a,h,o){return{a:t.t(o.dateShow)}}]]);wx.createComponent(s);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<text>{{a}}</text>

View File

@@ -0,0 +1 @@
"use strict";const t=require("./uniicons_file_vue.js"),e=require("../../../../common/vendor.js"),i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:t.fontData}),computed:{unicode(){let t=this.icons.find((t=>t.font_class===this.type));return t?t.unicode:""},iconSize(){return"number"==typeof(t=this.size)||/^[0-9]*$/g.test(t)?t+"px":t;var t},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}};const n=e._export_sfc(i,[["render",function(t,i,n,o,s,r){return{a:e.s(r.styleObj),b:e.n("uniui-"+n.type),c:e.n(n.customPrefix),d:e.n(n.customPrefix?n.type:""),e:e.o(((...t)=>r._onClick&&r._onClick(...t)))}}]]);wx.createComponent(n);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<text style="{{a}}" class="{{['uni-icons', b, c, d]}}" bindtap="{{e}}"><slot></slot></text>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";const o={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};exports.messages=o;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="uni-load-more" bindtap="{{q}}"><view wx:if="{{a}}" style="{{'width:' + h + ';' + ('height:' + i)}}" class="uni-load-more__img uni-load-more__img--android-MP"><view class="uni-load-more__img-icon" style="{{'border-top-color:' + b + ';' + ('border-top-width:' + c)}}"></view><view class="uni-load-more__img-icon" style="{{'border-top-color:' + d + ';' + ('border-top-width:' + e)}}"></view><view class="uni-load-more__img-icon" style="{{'border-top-color:' + f + ';' + ('border-top-width:' + g)}}"></view></view><view wx:elif="{{j}}" style="{{'width:' + l + ';' + ('height:' + m)}}" class="uni-load-more__img uni-load-more__img--ios-H5"><image src="{{k}}" mode="widthFix"></image></view><text wx:if="{{n}}" class="uni-load-more__text" style="{{'color:' + p}}">{{o}}</text></view>

View File

@@ -0,0 +1 @@
.uni-load-more{display:flex;flex-direction:row;height:40px;align-items:center;justify-content:center}.uni-load-more__text{font-size:14px;margin-left:8px}.uni-load-more__img{width:24px;height:24px}.uni-load-more__img--nvue{color:#666}.uni-load-more__img--android,.uni-load-more__img--ios{width:24px;height:24px;transform:rotate(0)}.uni-load-more__img--android{animation:loading-ios 1s 0s linear infinite}.uni-load-more__img--ios-H5{position:relative;animation:loading-ios-H5 1s 0s step-end infinite}.uni-load-more__img--ios-H5 image{position:absolute;width:100%;height:100%;left:0;top:0}@keyframes loading-ios-H5{0%{transform:rotate(0)}8%{transform:rotate(30deg)}16%{transform:rotate(60deg)}24%{transform:rotate(90deg)}32%{transform:rotate(120deg)}40%{transform:rotate(150deg)}48%{transform:rotate(180deg)}56%{transform:rotate(210deg)}64%{transform:rotate(240deg)}73%{transform:rotate(270deg)}82%{transform:rotate(300deg)}91%{transform:rotate(330deg)}to{transform:rotate(360deg)}}.uni-load-more__img--android-MP{position:relative;width:24px;height:24px;transform:rotate(0);animation:loading-ios 1s 0s ease infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon{position:absolute;box-sizing:border-box;width:100%;height:100%;border-radius:50%;border:solid 2px transparent;border-top:solid 2px #777777;transform-origin:center}.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(1){animation:loading-android-MP-1 1s 0s linear infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(2){animation:loading-android-MP-2 1s 0s linear infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(3){animation:loading-android-MP-3 1s 0s linear infinite}@keyframes loading-android{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-1{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-2{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-3{0%{transform:rotate(0)}50%{transform:rotate(270deg)}to{transform:rotate(360deg)}}

View File

@@ -0,0 +1 @@
"use strict";const t=require("../../../../common/vendor.js"),s={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup(t){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let t={backgroundColor:this.bg};return this.borderRadius,t=Object.assign(t,{borderRadius:this.borderRadius}),t},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:s,windowHeight:i,windowTop:o,safeArea:e,screenHeight:a,safeAreaInsets:r}=t.index.getWindowInfo();this.popupWidth=s,this.popupHeight=i+(o||0),e&&this.safeArea?this.safeAreaInsets=a-e.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(t=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(t){t.stopPropagation(),this.clearPropagation=!0},open(t){if(this.showPopup)return;t&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(t)||(t=this.type),this.config[t]?(this[this.config[t]](),this.$emit("change",{show:!0,type:t})):console.error("缺少类型:",t)},close(t){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(t){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.showPoptrans(),this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},t||this.showPoptrans()},center(t){this.popupstyle="center",this.ani=["fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},t||this.showPoptrans()},left(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||this.showPoptrans()},right(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},t||this.showPoptrans()},showPoptrans(){this.$nextTick((()=>{this.showPopup=!0,this.showTrans=!0}))}}};if(!Array){t.resolveComponent("uni-transition")()}Math;const i=t._export_sfc(s,[["render",function(s,i,o,e,a,r){return t.e({a:a.showPopup},a.showPopup?t.e({b:a.maskShow},a.maskShow?{c:t.o(r.onTap),d:t.p({name:"mask","mode-class":"fade",styles:a.maskClass,duration:a.duration,show:a.showTrans})}:{},{e:t.s(r.getStyles),f:t.n(a.popupstyle),g:t.o(((...t)=>r.clear&&r.clear(...t))),h:t.o(r.onTap),i:t.p({"mode-class":a.ani,name:"content",styles:a.transClass,duration:a.duration,show:a.showTrans}),j:t.o(((...t)=>r.touchstart&&r.touchstart(...t))),k:t.n(a.popupstyle),l:t.n(r.isDesktop?"fixforpc-z-index":"")}):{})}]]);wx.createComponent(i);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-transition": "../../../uni-transition/components/uni-transition/uni-transition"
}
}

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['uni-popup', k, l]}}"><view bindtouchstart="{{j}}"><uni-transition wx:if="{{b}}" key="1" bindclick="{{c}}" u-i="8da8313a-0" bind:__l="__l" u-p="{{d}}"/><uni-transition wx:if="{{i}}" u-s="{{['d']}}" key="2" bindclick="{{h}}" u-i="8da8313a-1" bind:__l="__l" u-p="{{i}}"><view style="{{e}}" class="{{['uni-popup__wrapper', f]}}" bindtap="{{g}}"><slot/></view></uni-transition></view></view>

View File

@@ -0,0 +1 @@
.uni-popup{position:fixed;z-index:99}.uni-popup.top,.uni-popup.left,.uni-popup.right{top:0}.uni-popup .uni-popup__wrapper{display:block;position:relative}.uni-popup .uni-popup__wrapper.left,.uni-popup .uni-popup__wrapper.right{padding-top:0;flex:1}.fixforpc-z-index{z-index:999}.fixforpc-top{top:0}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t={name:"UniRate",props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},disabledColor:{type:String,default:"#c0c0c0"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},readonly:{type:[Boolean,String],default:!1},allowHalf:{type:[Boolean,String],default:!1},touchable:{type:[Boolean,String],default:!0}},data:()=>({valueSync:"",userMouseFristMove:!0,userRated:!1,userLastRate:1}),watch:{value(e){this.valueSync=Number(e)},modelValue(e){this.valueSync=Number(e)}},computed:{stars(){const e=this.valueSync?this.valueSync:0,t=[],a=Math.floor(e),i=Math.ceil(e);for(let o=0;o<this.max;o++)a>o?t.push({activeWitch:"100%"}):i-1===o?t.push({activeWitch:100*(e-a)+"%"}):t.push({activeWitch:"0"});return t},marginNumber(){return Number(this.margin)}},created(){this.valueSync=Number(this.value||this.modelValue),this._rateBoxLeft=0,this._oldValue=null},mounted(){setTimeout((()=>{this._getSize()}),100)},methods:{touchstart(e){if(this.readonly||this.disabled)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},touchmove(e){if(this.readonly||this.disabled||!this.touchable)return;const{clientX:t,screenX:a}=e.changedTouches[0];this._getRateCount(t||a)},mousedown(e){},mousemove(e){},mouseleave(e){},_getRateCount(e){this._getSize();const t=Number(this.size);if(isNaN(t))return new Error("size 属性只能设置为数字");const a=e-this._rateBoxLeft;let i=parseInt(a/(t+this.marginNumber));i=i<0?0:i,i=i>this.max?this.max:i;const o=parseInt(a-(t+this.marginNumber)*i);let s=0;(this._oldValue!==i||this.PC)&&(this._oldValue=i,s=this.allowHalf?o>t/2?i+1:i+.5:i+1,s=Math.max(.5,Math.min(s,this.max)),this.valueSync=s,this._onChange())},_onChange(){this.$emit("input",this.valueSync),this.$emit("update:modelValue",this.valueSync),this.$emit("change",{value:this.valueSync})},_getSize(){e.index.createSelectorQuery().in(this).select(".uni-rate").boundingClientRect().exec((e=>{e&&(this._rateBoxLeft=e[0].left)}))}}};if(!Array){e.resolveComponent("uni-icons")()}Math;const a=e._export_sfc(t,[["render",function(t,a,i,o,s,l){return{a:e.f(l.stars,((t,a,i)=>({a:"cad6776a-0-"+i,b:"cad6776a-1-"+i,c:t.activeWitch,d:a,e:e.o(((...e)=>l.touchstart&&l.touchstart(...e)),a),f:e.o(((...e)=>l.touchmove&&l.touchmove(...e)),a),g:e.o(((...e)=>l.mousedown&&l.mousedown(...e)),a),h:e.o(((...e)=>l.mousemove&&l.mousemove(...e)),a),i:e.o(((...e)=>l.mouseleave&&l.mouseleave(...e)),a)}))),b:e.p({color:i.color,size:i.size,type:i.isFill?"star-filled":"star"}),c:e.p({color:i.disabled?i.disabledColor:i.activeColor,size:i.size,type:"star-filled"}),d:i.disabled?1:"",e:l.marginNumber+"px"}}]]);wx.createComponent(a);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../../uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view><view ref="uni-rate" class="uni-rate"><view wx:for="{{a}}" wx:for-item="star" wx:key="d" class="{{['uni-rate__icon', d && 'uni-cursor-not-allowed']}}" style="{{'margin-right:' + e}}" catchtouchstart="{{star.e}}" catchtouchmove="{{star.f}}" catchmousedown="{{star.g}}" catchmousemove="{{star.h}}" bindmouseleave="{{star.i}}"><uni-icons wx:if="{{b}}" u-i="{{star.a}}" bind:__l="__l" u-p="{{b}}"/><view style="{{'width:' + star.c}}" class="uni-rate__icon-on"><uni-icons wx:if="{{c}}" u-i="{{star.b}}" bind:__l="__l" u-p="{{c}}"/></view></view></view></view>

View File

@@ -0,0 +1 @@
.uni-rate{display:flex;line-height:1;font-size:0;flex-direction:row}.uni-rate__icon{position:relative;line-height:1;font-size:0}.uni-rate__icon-on{overflow:hidden;position:absolute;top:0;left:0;line-height:1;text-align:left}

View File

@@ -0,0 +1 @@
"use strict";const e={en:{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"},"zh-Hans":{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"请输入搜索内容"},"zh-Hant":{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"請輸入搜索內容"}};exports.messages=e;

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t=require("./i18n/index.js"),{t:a}=e.initVueI18n(t.messages),l={name:"UniSearchBar",emits:["input","update:modelValue","clear","cancel","confirm","blur","focus"],props:{placeholder:{type:String,default:""},radius:{type:[Number,String],default:5},clearButton:{type:String,default:"auto"},cancelButton:{type:String,default:"auto"},cancelText:{type:String,default:""},bgColor:{type:String,default:"#F8F8F8"},textColor:{type:String,default:"#000000"},maxlength:{type:[Number,String],default:100},value:{type:[Number,String],default:""},modelValue:{type:[Number,String],default:""},focus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:()=>({show:!1,showSync:!1,searchVal:""}),computed:{cancelTextI18n(){return this.cancelText||a("uni-search-bar.cancel")},placeholderText(){return this.placeholder||a("uni-search-bar.placeholder")}},watch:{modelValue:{immediate:!0,handler(e){this.searchVal=e,e&&(this.show=!0)}},focus:{immediate:!0,handler(e){if(e){if(this.readonly)return;this.show=!0,this.$nextTick((()=>{this.showSync=!0}))}}},searchVal(e,t){this.$emit("input",e),this.$emit("update:modelValue",e)}},methods:{searchClick(){this.readonly||this.show||(this.show=!0,this.$nextTick((()=>{this.showSync=!0})))},clear(){this.searchVal="",this.$nextTick((()=>{this.$emit("clear",{value:""})}))},cancel(){this.readonly||(this.$emit("cancel",{value:this.searchVal}),this.searchVal="",this.show=!1,this.showSync=!1,e.index.hideKeyboard())},confirm(){e.index.hideKeyboard(),this.$emit("confirm",{value:this.searchVal})},blur(){e.index.hideKeyboard(),this.$emit("blur",{value:this.searchVal})},emitFocus(e){this.$emit("focus",e.detail)}}};if(!Array){e.resolveComponent("uni-icons")()}Math;const c=e._export_sfc(l,[["render",function(t,a,l,c,r,o){return e.e({a:e.p({color:"#c0c4cc",size:"18",type:"search"}),b:r.show||r.searchVal},r.show||r.searchVal?{c:r.showSync,d:l.readonly,e:o.placeholderText,f:l.maxlength,g:l.textColor,h:e.o(((...e)=>o.confirm&&o.confirm(...e))),i:e.o(((...e)=>o.blur&&o.blur(...e))),j:e.o(((...e)=>o.emitFocus&&o.emitFocus(...e))),k:r.searchVal,l:e.o((e=>r.searchVal=e.detail.value))}:{m:e.t(l.placeholder)},{n:r.show&&("always"===l.clearButton||"auto"===l.clearButton&&""!==r.searchVal)&&!l.readonly},r.show&&("always"===l.clearButton||"auto"===l.clearButton&&""!==r.searchVal)&&!l.readonly?{o:e.p({color:"#c0c4cc",size:"20",type:"clear"}),p:e.o(((...e)=>o.clear&&o.clear(...e)))}:{},{q:l.radius+"px",r:l.bgColor,s:e.o(((...e)=>o.searchClick&&o.searchClick(...e))),t:"always"===l.cancelButton||r.show&&"auto"===l.cancelButton},"always"===l.cancelButton||r.show&&"auto"===l.cancelButton?{v:e.t(o.cancelTextI18n),w:e.o(((...e)=>o.cancel&&o.cancel(...e)))}:{})}]]);wx.createComponent(c);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../../uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view class="uni-searchbar"><view style="{{'border-radius:' + q + ';' + ('background-color:' + r)}}" class="uni-searchbar__box" bindtap="{{s}}"><view class="uni-searchbar__box-icon-search"><block wx:if="{{$slots.searchIcon}}"><slot name="searchIcon"></slot></block><block wx:else><uni-icons wx:if="{{a}}" u-i="9ab89c86-0" bind:__l="__l" u-p="{{a}}"/></block></view><input wx:if="{{b}}" focus="{{c}}" disabled="{{d}}" placeholder="{{e}}" maxlength="{{f}}" class="uni-searchbar__box-search-input" confirm-type="search" type="text" style="{{'color:' + g}}" bindconfirm="{{h}}" bindblur="{{i}}" bindfocus="{{j}}" value="{{k}}" bindinput="{{l}}"/><text wx:else class="uni-searchbar__text-placeholder">{{m}}</text><view wx:if="{{n}}" class="uni-searchbar__box-icon-clear" bindtap="{{p}}"><block wx:if="{{$slots.clearIcon}}"><slot name="clearIcon"></slot></block><block wx:else><uni-icons wx:if="{{o}}" u-i="9ab89c86-1" bind:__l="__l" u-p="{{o}}"/></block></view></view><text wx:if="{{t}}" bindtap="{{w}}" class="uni-searchbar__cancel">{{v}}</text></view>

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