初始化仓库

This commit is contained in:
wangxiaowei
2025-04-30 13:59:26 +08:00
commit f3990f76ef
1034 changed files with 133104 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/cate-one/cate-one"],{"19fe":function(e,n,t){"use strict";var u=t("ab30"),o=t.n(u);o.a},"31be":function(e,n,t){"use strict";(function(e){var u=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(t("7eb4")),c=u(t("ee10")),i={name:"cate-one",props:{list:{type:Array,default:function(){return[]}}},data:function(){return{selectIndex:0,cateList:[],cateName:"",numberVal:1,showCart:!1,showSpec:!1}},methods:{changeActive:function(e){var n=this.cateList;this.selectIndex=e,this.cateName=n[e].name},getGoodsSearchFun:function(){return(0,c.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},changeNumber:function(){},toShop:function(){e.navigateTo({url:"/pages/shop/shop"})}},watch:{list:{handler:function(e){if(e.length){var n=e.findIndex((function(e){return 1==e.type}));this.selectIndex=-1==n?0:n,this.cateName=e[this.selectIndex].name,this.cateList=e,this.cateTwoList=e[this.selectIndex]?e[this.selectIndex].sons:[],this.getGoodsSearchFun()}}}}};n.default=i}).call(this,t("df3c")["default"])},ab30:function(e,n,t){},af58:function(e,n,t){"use strict";t.r(n);var u=t("31be"),o=t.n(u);for(var c in u)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(c);n["default"]=o.a},e8c4:function(e,n,t){"use strict";t.r(n);var u=t("e905"),o=t("af58");for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);t("19fe");var i=t("828b"),a=Object(i["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=a.exports},e905:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return u}));var u={uImage:function(){return t.e("components/uview-ui/components/u-image/u-image").then(t.bind(null,"8127"))},priceFormat:function(){return t.e("components/price-format/price-format").then(t.bind(null,"70de"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"9e59"))},uBadge:function(){return t.e("components/uview-ui/components/u-badge/u-badge").then(t.bind(null,"0eb6"))},uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"69ae"))},uNumberBox:function(){return t.e("components/uview-ui/components/u-number-box/u-number-box").then(t.bind(null,"8aee"))},shopSpec:function(){return t.e("components/shop-spec/shop-spec").then(t.bind(null,"2aa3"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.showSpec=!1})},c=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/cate-one/cate-one-create-component',
{
'components/cate-one/cate-one-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("e8c4"))
})
},
[['components/cate-one/cate-one-create-component']]
]);

View File

@ -0,0 +1,12 @@
{
"usingComponents": {
"u-image": "/components/uview-ui/components/u-image/u-image",
"price-format": "/components/price-format/price-format",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
"u-badge": "/components/uview-ui/components/u-badge/u-badge",
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"u-number-box": "/components/uview-ui/components/u-number-box/u-number-box",
"shop-spec": "/components/shop-spec/shop-spec"
},
"component": true
}

View File

@ -0,0 +1 @@
<view class="cate"><view class="cate-one row"><view class="aside"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true"><view style="padding-bottom:200rpx;"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['changeActive',[index]]]]]}}" class="{{['one-item sm '+(index==selectIndex?'active bg-white':'')]}}" bindtap="__e"><text class="name">{{item.name}}</text><block wx:if="{{index==selectIndex}}"><view class="active-line bg-default"></view></block></view></block></block></view></scroll-view></view><view class="main"><scroll-view style="height:100%;" scroll-y="true" scroll-with-animation="true" data-event-opts="{{[['scrolltolower',[['getGoodsSearchFun',['$event']]]]]}}" bindscrolltolower="__e"><view class="main-wrap"><view class="goods"><view class="u-m-t-32 bold-600">{{cateName}}</view><view class="u-m-t-32"><block wx:for="{{10}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toShop']]]]}}" class="bg-white br16 row u-col-top u-m-b-24" bindtap="__e"><view><u-image vue-id="{{'0565d282-1-'+index}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" bind:__l="__l"></u-image></view><view class="info"><view><view class="u-line-2 u-p-t-10">葱烩海鲜卷边披萨</view><view class="u-p-t-44 row-between"><view class="row"><view class="primary"><price-format vue-id="{{'0565d282-2-'+index}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view class="u-m-l-8"><price-format vue-id="{{'0565d282-3-'+index}}" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" price="{{16.9}}" bind:__l="__l"></price-format></view></view></view></view><view class="column-end"><u-icon vue-id="{{'0565d282-4-'+index}}" name="plus-circle-fill" color="#254062" size="48" bind:__l="__l"></u-icon></view></view></view></block></view></view></view></scroll-view></view></view><view class="buy mx40 px40 br60 row-between"><view class="row"><view class="u-relative"><u-image vue-id="0565d282-5" src="{{cloudPath+'img/icon_cart.png'}}" width="56" height="56" bind:__l="__l"></u-image><u-badge vue-id="0565d282-6" type="error" count="7" absolute="{{true}}" offset="[0, 0]" bind:__l="__l"></u-badge></view><view class="text-fff u-m-l-32">未选购商品</view></view><view class="text-999">去结算</view></view><u-popup bind:input="__e" vue-id="0565d282-7" mode="bottom" border-radius="{{16}}" value="{{showCart}}" data-event-opts="{{[['^input',[['__set_model',['','showCart','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view style="max-height:800rpx;"><view class="px20 text-999 mt20">温馨提示:请适量点餐</view><view><scroll-view style="height:700rpx;" scroll-y="true" scroll-with-animation="true"><block wx:for="{{20}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="row-start u-row-between u-p-t-20 u-padding-bottom-20 px20"><view class="row-start"><view><u-image vue-id="{{('0565d282-8-'+index)+','+('0565d282-7')}}" src="{{cloudPath+'img/banner.png'}}" width="136" height="136" border-radius="16" bind:__l="__l"></u-image></view><view class="ml20"><view class="u-line-2 u-p-t-10">葱烩海鲜卷边披萨</view><view class="primary u-p-t-40"><price-format vue-id="{{('0565d282-9-'+index)+','+('0565d282-7')}}" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view></view></view><view><view class="u-text-right"><u-icon class="u-p-t-10" vue-id="{{('0565d282-10-'+index)+','+('0565d282-7')}}" name="trash" size="32" bind:__l="__l"></u-icon></view><view class="u-p-t-30"><u-number-box vue-id="{{('0565d282-11-'+index)+','+('0565d282-7')}}" min="1" value="{{numberVal}}" data-event-opts="{{[['^change',[['changeNumber']]],['^input',[['__set_model',['','numberVal','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-number-box></view></view></view></block></scroll-view></view></view></u-popup><shop-spec bind:close="__e" bind:input="__e" vue-id="0565d282-12" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:__l="__l"></shop-spec></view>

View File

@ -0,0 +1 @@
page{padding-bottom:0}.cate{position:relative}.cate-one{height:100vh}.cate-one .aside{width:180rpx;flex:none;height:100%;background-color:#f7f8fa}.cate-one .aside .one-item{position:relative;text-align:center;height:108rpx;line-height:108rpx}.cate-one .aside .one-item.active{color:#254062;font-size:26rpx;font-weight:700}.cate-one .aside .one-item .active-line{position:absolute;width:6rpx;height:30rpx;left:4rpx;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cate-one .main{background-color:#fffafb;height:100%;flex:1}.cate-one .main .main-wrap{position:relative;padding:0 20rpx}.cate-one .main .main-wrap .goods{padding-bottom:200rpx}.cate-one .main .main-wrap .goods .info{width:100%;display:flex;justify-content:space-between;margin:0 16rpx}.buy{position:fixed;left:0;right:0;bottom:env(safe-area-inset-bottom);height:100rpx;background-color:#212526}