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 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}