first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),n=require("../../store/index.js"),t=require("../../utils/fun.js"),s=require("../../api/index.js"),r=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-swiper")+e.resolveComponent("wd-notice-bar")+e.resolveComponent("z-paging")+e.resolveComponent("uni-popup"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-notice-bar/wd-notice-bar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const a=e.defineComponent({__name:"index",setup(a){const i=n.Store(),p=e.computed((()=>i.userInfo||{})),u=e.ref(),l=e.ref(0);e.ref(!1);const c=e.ref([]),d=e.ref({content:""});e.ref([]);const m=e.ref(null),v=e.ref([]),{navTo:g}=r.useNav(),f=(e,o)=>{s.api.goodsPage({pageNo:e,pageSize:o,recommended:1}).then((e=>{m.value.complete(e.list)})).catch((e=>{m.value.complete(!1)}))};e.onLoad((()=>{s.api.banner({imageAddress:1}).then((e=>{c.value=e.list})),s.api.noticePage({type:1}).then((e=>{0!=e.list&&(d.value=e.list[0])}))}));const _=async()=>{await i.usersGetInfo(),u.value.open()},b=()=>{e.index.navigateTo({url:"/pages/goods/prefecture"})},w=()=>{e.index.navigateTo({url:"/pages/notice/notice"})};return(n,s)=>({a:o._imports_0,b:o._imports_1,c:e.p({bordered:!1,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),d:e.o((e=>l.value=e)),e:e.p({customItemClass:"bannerRadius",height:"292rpx",list:["/static/homeY.png"],autoplay:!0,current:l.value}),f:e.o(b),g:o._imports_2,h:e.o((o=>e.unref(g)("/pages/equity/equity",!0))),i:o._imports_3,j:e.o(_),k:e.o((e=>l.value=e)),l:e.p({list:c.value,"value-key":"image",autoplay:!0,current:l.value}),m:o._imports_4,n:e.t(d.value.content),o:e.p({color:"#90B77B","background-color":"#E2ECDC"}),p:e.o(w),q:e.f(v.value,((o,n,t)=>({a:o.cover,b:e.t(o.name),c:e.t(o.specs),d:e.t(o.currentPrice),e:e.o((n=>{return t=o.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${t}`});var t}),n),f:n}))),r:e.sr(m,"b7f702fb-4",{k:"paging"}),s:e.o(f),t:e.o((e=>v.value=e)),v:e.p({"use-page-scroll":!0,modelValue:v.value}),w:e.o((e=>n.$refs.popup.close())),x:o._imports_9,y:p.value.inviteCodeImg,z:e.t(p.value.inviteCode),A:e.o((o=>e.unref(t.copy)(p.value.inviteCode))),B:e.sr(u,"b7f702fb-5",{k:"popup"}),C:e.p({type:"center","border-radius":"16rpx"})})}}),i=e._export_sfc(a,[["__scopeId","data-v-b7f702fb"]]);wx.createPage(i);

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "首页",
"navigationStyle": "custom",
"usingComponents": {
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
"wd-swiper": "../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper",
"wd-notice-bar": "../../uni_modules/wot-design-uni/components/wd-notice-bar/wd-notice-bar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="home data-v-b7f702fb"><view style="width:100%;height:582rpx" class="home_top data-v-b7f702fb"><image class="data-v-b7f702fb" src="{{a}}" style="width:750rpx;height:582rpx;position:absolute;top:0;left:0;z-index:-1"></image><wd-navbar wx:if="{{c}}" class="data-v-b7f702fb" u-s="{{['left']}}" u-i="b7f702fb-0" bind:__l="__l" u-p="{{c}}"><view class="data-v-b7f702fb" style="display:flex;align-items:center" slot="left"><image class="data-v-b7f702fb" src="{{b}}" style="width:96rpx;height:96rpx;margin-right:25rpx;background-color:rgba(255, 255, 255, 0.3);border-radius:50%"></image><view class="data-v-b7f702fb" style="color:#fff;font-size:40rpx;font-weight:bold">苗草古方</view></view></wd-navbar><view class="p30 data-v-b7f702fb" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-b7f702fb" style="background-color:#fff;width:324rpx;border-radius:20rpx;overflow:hidden" bindtap="{{f}}"><wd-swiper wx:if="{{e}}" class="data-v-b7f702fb" u-i="b7f702fb-1" bind:__l="__l" bindupdateCurrent="{{d}}" u-p="{{e}}"></wd-swiper><view class="data-v-b7f702fb" style="height:72rpx;display:flex;align-items:center;padding:20rpx;font-size:28rpx;font-weight:bold">进货专区</view></view><view class="home_top_block data-v-b7f702fb"><view class="home_top_block_view data-v-b7f702fb" style="color:#776926" bindtap="{{h}}"><image class="data-v-b7f702fb" src="{{g}}"></image><view class="data-v-b7f702fb"><view class="data-v-b7f702fb" style="font-size:32rpx;font-weight:bold">权益包</view><view class="data-v-b7f702fb" style="font-size:24rpx;margin-top:10rpx">购买权益包</view><view class="data-v-b7f702fb" style="font-size:24rpx">至高享七折优惠</view></view></view><view class="home_top_block_view data-v-b7f702fb" style="background:#eef4f1;color:#175b39" bindtap="{{j}}"><image class="data-v-b7f702fb" src="{{i}}"></image><view class="data-v-b7f702fb"><view class="data-v-b7f702fb" style="font-size:32rpx;font-weight:bold">推荐好友</view><view class="data-v-b7f702fb" style="font-size:24rpx;margin-top:10rpx">推荐好友加盟</view><view class="data-v-b7f702fb" style="font-size:24rpx">边拿奖励边赚钱</view></view></view></view></view></view><view class="p30 data-v-b7f702fb"><wd-swiper wx:if="{{l}}" class="data-v-b7f702fb" u-i="b7f702fb-2" bind:__l="__l" bindupdateCurrent="{{k}}" u-p="{{l}}"></wd-swiper><view class="mt30 data-v-b7f702fb" bindtap="{{p}}"><wd-notice-bar wx:if="{{o}}" class="data-v-b7f702fb" u-s="{{['d']}}" u-i="b7f702fb-3" bind:__l="__l" u-p="{{o}}"><view class="data-v-b7f702fb" slot="prefix"><image class="data-v-b7f702fb" src="{{m}}" style="width:60rpx;height:60rpx"></image></view><view class="data-v-b7f702fb" style="font-size:28rpx">{{n}}</view></wd-notice-bar></view><z-paging wx:if="{{v}}" class="r data-v-b7f702fb" u-s="{{['d']}}" u-r="paging" bindquery="{{s}}" u-i="b7f702fb-4" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"><view wx:for="{{q}}" wx:for-item="item" wx:key="f" class="home_block mt30 data-v-b7f702fb" bindtap="{{item.e}}"><image class="home_block_left data-v-b7f702fb" src="{{item.a}}"></image><view class="home_block_right data-v-b7f702fb"><view class="home_block_right_title data-v-b7f702fb">{{item.b}}</view><view class="home_block_right_info data-v-b7f702fb">{{item.c}}</view><view class="data-v-b7f702fb" style="display:flex;justify-content:space-between;align-items:center;margin-top:25rpx"><view class="data-v-b7f702fb" style="font-size:36rpx;font-weight:bold;color:#ff2929">¥{{item.d}}</view><view class="home_block_right_button data-v-b7f702fb">下单</view></view></view></view></z-paging></view><uni-popup wx:if="{{C}}" class="r data-v-b7f702fb" u-s="{{['d']}}" u-r="popup" u-i="b7f702fb-5" bind:__l="__l" u-p="{{C}}"><view class="shareBlock data-v-b7f702fb"><view class="data-v-b7f702fb" style="width:100%;text-align:right"><image bindtap="{{w}}" src="{{x}}" class="shareBlock_close data-v-b7f702fb"></image></view><image class="shareBlock_code data-v-b7f702fb" src="{{y}}"></image><view class="shareBlock_info data-v-b7f702fb">打开微信扫描二维码,注册时输入邀请码</view><view class="shareBlock_codeInfo data-v-b7f702fb"><view class="shareBlock_codeInfo_left data-v-b7f702fb"> 邀请码: <text class="data-v-b7f702fb" style="text-decoration:underline">{{z}}</text></view><view class="shareBlock_codeInfo_right data-v-b7f702fb" bindtap="{{A}}">点击复制</view></view></view></uni-popup></view>

View File

@@ -0,0 +1 @@
.home_top.data-v-b7f702fb{--wot-swiper-radius: 0}.home_top_block.data-v-b7f702fb{height:364rpx;display:flex;flex-direction:column;justify-content:space-between}.home_top_block_view.data-v-b7f702fb{width:346rpx;height:170rpx;background:#f7f4e5;border-radius:30rpx;padding:25rpx;display:flex;align-items:center}.home_top_block_view image.data-v-b7f702fb{width:100rpx;height:100rpx;margin-right:24rpx}.home_block.data-v-b7f702fb{width:690rpx;height:250rpx;background:#fff;border-radius:8rpx;display:flex;align-items:center;padding-right:25rpx}.home_block_left.data-v-b7f702fb{width:250rpx;height:250rpx;border-radius:8rpx;margin-right:25rpx}.home_block_right.data-v-b7f702fb{flex:1}.home_block_right_title.data-v-b7f702fb{font-weight:600;font-size:28rpx;color:#232323}.home_block_right_info.data-v-b7f702fb{font-weight:400;font-size:24rpx;color:#232323;margin-top:25rpx}.home_block_right_button.data-v-b7f702fb{width:128rpx;height:48rpx;background:#ff2a2a;box-shadow:0 2rpx 4rpx 2rpx #dbdbdb;border-radius:10rpx;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20rpx;color:#fff}.shareBlock.data-v-b7f702fb{margin:auto;width:650rpx;height:688rpx;background:#fff;border-radius:16rpx;padding:20rpx;display:flex;flex-direction:column;align-items:center}.shareBlock_close.data-v-b7f702fb{width:68rpx;height:68rpx}.shareBlock_code.data-v-b7f702fb{width:392rpx;height:392rpx}.shareBlock_info.data-v-b7f702fb{font-size:24rpx;color:#ccc;margin:24rpx 0}.shareBlock_codeInfo.data-v-b7f702fb{display:flex;align-items:center}.shareBlock_codeInfo_left.data-v-b7f702fb{font-weight:700;font-size:32rpx;color:#232323}.shareBlock_codeInfo_right.data-v-b7f702fb{margin-left:20rpx;font-size:24rpx;color:#999}