first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:27:25 +08:00
commit 85b89ccea7
1694 changed files with 168292 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"0737":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var i={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,"3e43"))},uSwiper:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-swiper/u-swiper")]).then(t.bind(null,"57aa"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"15bf"))},"u-Image":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--image/u--image")]).then(t.bind(null,"eae0"))},uLine:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-line/u-line")]).then(t.bind(null,"7c3ce"))}},a=function(){var e=this.$createElement;this._self._c},o=[]},"1c58":function(e,n,t){"use strict";(function(e,n){var i=t("47a9");t("4233");i(t("3240"));var a=i(t("96a5"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"4d30":function(e,n,t){},"5a69":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{banner:[],tab_list:[{img:"/static/home/tab2.png",name:"资产包",url:"/pages/resourceBundle/resourceBundle"},{img:"/static/home/tab4.png",name:"账单",url:"/pages/wallet/list"},{img:"/static/home/tab3.png",name:"团队",url:"/pages/team/index"}],articleItems:[],goodsItems:[]}},onLoad:function(){this.getAds(),this.aryicleList(),this.getGoodsItems()},methods:{getGoodsItems:function(){var e=this;this.$http.get("/shop/v10/goods/items").then((function(n){var t=n.data;e.goodsItems=t}))},bannerChange:function(n){this.banner[n].path&&e.navigateTo({url:this.banner[n].path})},getAds:function(){var e=this;this.$http.get("/shop/v10/ads/items").then((function(n){var t=n.data;e.banner=t}))},aryicleList:function(){var e=this;this.$http.get("/shop/v10/article/items",{page:1,cid:1}).then((function(n){var t=n.data,i=n.success;i&&(e.articleItems=t.data)}))},changeTab:function(){e.switchTab({url:"/pages/article/index"})}}};n.default=t}).call(this,t("df3c")["default"])},"96a5":function(e,n,t){"use strict";t.r(n);var i=t("0737"),a=t("d095");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);t("fe2b");var u=t("828b"),r=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},d095:function(e,n,t){"use strict";t.r(n);var i=t("5a69"),a=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=a.a},fe2b:function(e,n,t){"use strict";var i=t("4d30"),a=t.n(i);a.a}},[["1c58","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,12 @@
{
"navigationBarTitleText": "首页",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"usingComponents": {
"u-navbar": "/node-modules/uview-ui/components/u-navbar/u-navbar",
"u-swiper": "/node-modules/uview-ui/components/u-swiper/u-swiper",
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon",
"u--image": "/node-modules/uview-ui/components/u--image/u--image",
"u-line": "/node-modules/uview-ui/components/u-line/u-line"
}
}

View File

@@ -0,0 +1 @@
<view><u-navbar vue-id="8dd740cc-1" fixed="{{false}}" title="首页" leftIcon=" " autoBack="{{false}}" bind:__l="__l"></u-navbar><view class="p-30"><u-swiper vue-id="8dd740cc-2" list="{{banner}}" keyName="cover" height="300rpx" autoplay="{{false}}" radius="5" bgColor="#ffffff" indicator="{{true}}" indicatorMode="line" circular="{{true}}" data-event-opts="{{[['^click',[['bannerChange']]]]}}" bind:click="__e" bind:__l="__l"></u-swiper></view><view class="home_tab"><block wx:for="{{tab_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><navigator class="home_tab_view" url="{{item.url}}"><image class="shadow_img" src="{{item.img}}"></image><view>{{item.name}}</view></navigator></block></view><view class="home_notice"><view class="home_notice_title"><view>系统公告</view><view data-event-opts="{{[['tap',[['changeTab',['$event']]]]]}}" style="font-size:28rpx;display:flex;align-items:center;" bindtap="__e">更多<u-icon vue-id="8dd740cc-3" name="arrow-right" color="#333" size="14" bind:__l="__l"></u-icon></view></view><block wx:for="{{articleItems}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{index<=2}}"><navigator class="home_notice_view" url="{{'/pages/article/detail?id='+item.id}}"><view>{{item.title}}</view></navigator></block></block></view><view style="height:20rpx;"></view><view class="u-flex u-flex-x-center"><u--image vue-id="8dd740cc-4" showLoading="{{true}}" src="/static/img/goods_hot_icon.png" width="308rpx" height="44rpx" bind:__l="__l"></u--image></view><view style="height:20rpx;"></view><view class="u-flex u-flex-wrap u-flex-between p-30"><block wx:for="{{goodsItems}}" wx:for-item="item" wx:for-index="index" wx:key="index"><navigator style="background-color:#ffffff;width:335rpx;margin-bottom:30rpx;border-radius:10rpx;" url="{{'/pages/goods/detail?id='+item.id}}"><u--image vue-id="{{'8dd740cc-5-'+index}}" width="335rpx" height="335rpx" src="{{item.cover[0]}}" radius="6rpx" bind:__l="__l"></u--image><u-line vue-id="{{'8dd740cc-6-'+index}}" bind:__l="__l"></u-line><view style="padding:20rpx;"><view style="color:#232323;font-size:28rpx;">{{item.name}}</view><view style="height:10rpx;"></view><view class="u-flex u-flex-between u-flex-y-center"><view style="color:#ff1a1a;font-size:28rpx;">{{"¥"+item.current_price}}</view></view></view></navigator></block></view></view>

View File

@@ -0,0 +1 @@
.grid_flex{display:flex;flex-direction:column;align-items:center}.home_tab{display:flex;align-items:center;justify-content:space-between;align-items:center;padding:30rpx 80rpx}.home_tab_view{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:28rpx;letter-spacing:10rpx;text-indent:10rpx;text-align:center}.home_tab_view image{width:98rpx;height:98rpx;margin-bottom:10rpx}.home_tab_view view{width:100%}.home_notice{background-color:#fff;border-radius:25rpx;padding:30rpx 40rpx;margin:0 30rpx 15rpx}.home_notice_title{font-size:32rpx;font-weight:700;color:#1d65aa;text-align:center;margin-bottom:30rpx;display:flex;align-items:center;justify-content:space-between}.home_notice_view{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;padding-bottom:20rpx;padding-top:20rpx;border-bottom:1rpx solid #f0f0f0}.home_notice_view view{max-width:600rpx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}