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"),t=require("../../common/assets.js"),o=require("../../api/index.js"),s=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-swiper")+e.resolveComponent("mp-html"))()}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/mp-html/components/mp-html/mp-html.js"))();const a=e.defineComponent({__name:"goods",setup(a){const{navTo:n}=s.useNav(),r=e.ref(0);e.ref(["https://wot-ui.cn/assets/redpanda.jpg","https://wot-ui.cn/assets/capybara.jpg"]);const i=e.ref({});e.onLoad((e=>{o.api.goodsInfo({id:e.id}).then((e=>{i.value=e}))}));const d=()=>{n(`/pages/order/confirm?id=${i.value.id}`,!0)},p=()=>{e.index.navigateBack()};return(o,s)=>({a:e.o(p),b:e.p({fixed:!0,bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:e.w((({current:t,total:o},s,a)=>({a:e.t(t+1),b:e.t(o),c:a,d:s})),{name:"indicator",path:"c",vueId:"96d49b0d-1"}),d:e.t(i.value.sales),e:e.o((e=>r.value=e)),f:e.p({height:"750rpx",list:i.value.images,autoplay:!0,current:r.value}),g:e.t(i.value.name),h:e.t(i.value.stock),i:e.t(i.value.specs),j:e.t(i.value.currentPrice),k:e.p({content:i.value.detail}),l:t._imports_0$4,m:t._imports_1$2,n:e.o(d)})}}),n=e._export_sfc(a,[["__scopeId","data-v-96d49b0d"]]);wx.createPage(n);

View File

@@ -0,0 +1,9 @@
{
"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",
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view class="goods data-v-96d49b0d"><wd-navbar wx:if="{{b}}" class="data-v-96d49b0d" bindclickLeft="{{a}}" u-i="96d49b0d-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><wd-swiper wx:if="{{f}}" class="data-v-96d49b0d" u-s="{{['indicator']}}" u-i="96d49b0d-1" bind:__l="__l" bindupdateCurrent="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="v0" wx:key="c" slot="{{v0.d}}"><view class="custom-indicator data-v-96d49b0d">{{v0.a}}/{{v0.b}}</view><view class="goods_sals data-v-96d49b0d">销量{{d}}</view></view></wd-swiper><view class="data-v-96d49b0d" style="height:35rpx"></view><view class="goods_block data-v-96d49b0d"><view class="data-v-96d49b0d"><view class="goods_block_tit data-v-96d49b0d">{{g}}</view><view class="goods_block_stock data-v-96d49b0d">库存{{h}}</view></view><view class="data-v-96d49b0d" style="margin-top:20rpx"><view class="goods_block_spec data-v-96d49b0d">{{i}}</view><view class="goods_block_price data-v-96d49b0d">¥{{j}}</view></view></view><view class="data-v-96d49b0d" style="font-weight:bold;font-size:30rpx;color:#232323;margin:30rpx 0 25rpx;text-align:center">商品详情</view><view class="data-v-96d49b0d" style="background-color:#fff"><mp-html wx:if="{{k}}" class="data-v-96d49b0d" u-i="96d49b0d-2" bind:__l="__l" u-p="{{k}}"/></view><view class="data-v-96d49b0d" style="height:145rpx"></view><view class="data-v-96d49b0d" style="display:flex;align-items:center;justify-content:space-between;padding:35rpx 60rpx;position:fixed;bottom:0;left:0;background-color:#fff;border-radius:24rpx 24rpx 0 0;width:100%"><view class="data-v-96d49b0d" style="display:flex;align-items:center;font-size:24rpx"><button class="data-v-96d49b0d" style="margin-right:24rpx" open-type="share"><image class="data-v-96d49b0d" style="width:40rpx;height:40rpx" src="{{l}}"></image><view class="data-v-96d49b0d">分享</view></button><button class="data-v-96d49b0d" open-type="contact"><image class="data-v-96d49b0d" style="width:40rpx;height:40rpx" src="{{m}}"></image><view class="data-v-96d49b0d">客服</view></button></view><view class="data-v-96d49b0d" style="width:468rpx;height:70rpx;background:#ffffff;border-radius:12rpx;border:1rpx solid #5d7a4e;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:28rpx;color:#5d7a4e" bindtap="{{n}}"> 立即购买 </view></view></view>

View File

@@ -0,0 +1 @@
.goods.data-v-96d49b0d{--wot-swiper-radius: 0}.goods_sals.data-v-96d49b0d{width:166rpx;height:44rpx;background:#fff;border-radius:46rpx 0rpx 0rpx 46rpx;opacity:.5;position:absolute;bottom:30rpx;right:0;font-weight:400;font-size:24rpx;color:#232323;display:flex;align-items:center;justify-content:center}.goods_block.data-v-96d49b0d{margin:auto;width:690rpx;background:#fff;box-shadow:0 0 6rpx 2rpx rgba(22,22,23,.07);border-radius:8rpx;padding:24rpx}.goods_block view.data-v-96d49b0d{display:flex;align-items:center;justify-content:space-between}.goods_block_tit.data-v-96d49b0d{font-weight:700;font-size:32rpx;color:#232323}.goods_block_stock.data-v-96d49b0d{font-weight:400;font-size:24rpx;color:#999}.goods_block_spec.data-v-96d49b0d{font-weight:700;font-size:24rpx;color:#232323}.goods_block_price.data-v-96d49b0d{font-weight:700;font-size:38rpx;color:#ff2929}.custom-indicator.data-v-96d49b0d{width:52rpx;height:52rpx;background:#fff;border-radius:6rpx;opacity:.5;display:flex;align-items:center;justify-content:center;font-size:24rpx;color:#232323;position:absolute;top:170rpx;right:24rpx}button.data-v-96d49b0d{all:unset}button.data-v-96d49b0d:after{all:unset}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o=e.defineComponent({__name:"prefecture",setup(o){const n=e.ref(1),t=e.ref(""),r=e.ref(null),s=e.ref([]),i=e.ref([]);e.onLoad((()=>{a.api.noticeCatePage().then((e=>{i.value=e.list}))}));const p=(e,o)=>{a.api.goodsPage({pageNo:e,pageSize:o,type:n.value,categoryId:t.value,recommended:1}).then((e=>{r.value.complete(e.list)})).catch((e=>{r.value.complete(!1)}))},c=()=>{e.index.navigateBack()};return(a,o)=>({a:e.o(c),b:e.p({title:"进货专区",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.f(s.value,((a,o,n)=>({a:a.cover,b:e.t(a.name),c:e.t(a.specs),d:e.t(a.currentPrice),e:e.o((o=>{return n=a.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${n}`});var n}),o),f:o}))),d:e.sr(r,"7e4b6259-1",{k:"paging"}),e:e.o(p),f:e.o((e=>s.value=e)),g:e.p({"use-page-scroll":!0,modelValue:s.value})})}}),n=e._export_sfc(o,[["__scopeId","data-v-7e4b6259"]]);wx.createPage(n);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "进货专区",
"navigationStyle": "custom",
"usingComponents": {
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="notice data-v-7e4b6259"><wd-navbar wx:if="{{b}}" class="data-v-7e4b6259" bindclickLeft="{{a}}" u-i="7e4b6259-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><z-paging wx:if="{{g}}" class="r data-v-7e4b6259" u-s="{{['d']}}" u-r="paging" bindquery="{{e}}" u-i="7e4b6259-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><view class="p30 data-v-7e4b6259"><view wx:for="{{c}}" wx:for-item="item" wx:key="f" class="home_block data-v-7e4b6259" bindtap="{{item.e}}"><image class="home_block_left data-v-7e4b6259" src="{{item.a}}"></image><view class="home_block_right data-v-7e4b6259"><view class="home_block_right_title data-v-7e4b6259">{{item.b}}</view><view class="home_block_right_info data-v-7e4b6259">{{item.c}}</view><view class="data-v-7e4b6259" style="display:flex;justify-content:space-between;align-items:center;margin-top:25rpx"><view class="data-v-7e4b6259" style="font-size:36rpx;font-weight:bold;color:#ff2929">¥{{item.d}}</view><view class="home_block_right_button data-v-7e4b6259">下单</view></view></view></view></view></z-paging></view>

View File

@@ -0,0 +1 @@
.notice_block.data-v-7e4b6259{display:flex;align-items:center;justify-content:space-between;padding:0 35rpx;width:690rpx;height:106rpx;background:#fff;border-radius:16rpx;position:relative;font-weight:400;font-size:24rpx;color:#232323}.home_block.data-v-7e4b6259{width:690rpx;height:250rpx;background:#fff;border-radius:8rpx;display:flex;align-items:center;padding-right:25rpx;margin-bottom:25rpx}.home_block_left.data-v-7e4b6259{width:250rpx;height:250rpx;border-radius:8rpx;margin-right:25rpx}.home_block_right.data-v-7e4b6259{flex:1}.home_block_right_title.data-v-7e4b6259{font-weight:600;font-size:28rpx;color:#232323}.home_block_right_info.data-v-7e4b6259{font-weight:400;font-size:24rpx;color:#232323;margin-top:25rpx}.home_block_right_button.data-v-7e4b6259{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}