第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

View File

@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/plus/presale/list"],{"06b8":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.theme()||""),a=t.theme(),i=t.loading?null:t.__map(t.listData,(function(n,e){var a=t.__get_orig(n),i={startstamp:n.start_time,endstamp:n.end_time},o=(1*n.sku[0].product_price-1*n.sku[0].advance_price).toFixed(2);return{$orig:a,a0:i,g0:o}})),o=t.loading?null:0==t.listData.length&&!t.loading;t.$mp.data=Object.assign({},{$root:{m0:e,m1:a,l0:i,g1:o}})},i=[]},2949:function(t,n,e){},"91b6":function(t,n,e){"use strict";var a=e("2949"),i=e.n(a);i.a},aab0:function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("7d57");a(e("3240"));var i=a(e("ba58"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},ba58:function(t,n,e){"use strict";e.r(n);var a=e("06b8"),i=e("c939");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("91b6");var c=e("828b"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=r.exports},c939:function(t,n,e){"use strict";e.r(n);var a=e("eca5"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},eca5:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={components:{Countdown:function(){e.e("components/countdown/countdown-presale").then(function(){return resolve(e("a6d9"))}.bind(null,e)).catch(e.oe)}},data:function(){return{current:0,banner:[],phoneHeight:0,scrollviewHigh:0,activeList:[],type_active:0,currActive:{},listData:[],page:1,no_more:!1,detailData:{},loading:!0,countdownConfig:{startstamp:0,endstamp:0},searchForm:""}},computed:{},onLoad:function(){this.getData()},mounted:function(){this.init()},onPullDownRefresh:function(){},methods:{search:function(){this.listData=[],this.page=1,this.loading=!0,this.getData()},changeSwiper:function(t){this.current=t.detail.current},init:function(){var n=this;t.getSystemInfo({success:function(e){n.phoneHeight=e.windowHeight;var a=t.createSelectorQuery().select(".top-box");a.boundingClientRect((function(t){var e=n.phoneHeight-t.height;n.scrollviewHigh=e})).exec()}})},tabTypeFunc:function(t){this.type_active=t,this.currActive=this.activeList[t],this.getData()},goback:function(){t.navigateBack()},scrolltolowerFunc:function(){if(this.page++,this.loading=!0,this.page>this.last_page)return this.loading=!1,void(this.no_more=!0);this.getData()},getData:function(){var t=this;t.loading=!0,t._get("plus.advance.Product/index",{search:t.searchForm,page:t.page},(function(n){t.banner=n.data.setting.image,console.log(t.banner),t.loading=!1,t.listData=t.listData.concat(n.data.list.data),t.last_page=n.data.list.last_page,n.data.list.last_page<=1&&(t.no_more=!0)}))},gotoDetail:function(t){this.gotoPage("/pages/product/detail/detail?product_id="+t)},gotoSearch:function(){this.getData()},returnValFunc:function(t){}}};n.default=a}).call(this,e("df3c")["default"])}},[["aab0","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "预售列表",
"enablePullDownRefresh": false,
"usingComponents": {
"countdown": "/components/countdown/countdown-presale"
}
}

View File

@ -0,0 +1 @@
<view class="{{['presale-product-wrap',$root.m0]}}" data-theme="{{$root.m1}}"><view class="top-box"><view class="index-search-box d-b-c" id="searchBox"><view class="index-search t-c flex-1"><label class="icon iconfont icon-sousuo _span"></label><input class="flex-1 ml10 f30 gray3" type="text" value="{{searchForm}}" placeholder-class="f24 gray6" placeholder="输入你要的商品" confirm-type="search" data-event-opts="{{[['confirm',[['search']]],['input',[['__set_model',['','searchForm','$event',[]]]]]]}}" bindconfirm="__e" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['gotoPage',['/pages/order/myorder']]]]]}}" class="f26" bindtap="__e">我的预定</view></view></view><block wx:if="{{!loading}}"><view class="presale-list-wrap"><scroll-view class="scroll-Y" style="{{('height:'+scrollviewHigh+'px;')}}" scroll-y="true" lower-threshold="50" data-event-opts="{{[['scrolltolower',[['scrolltolowerFunc',['$event']]]]]}}" bindscrolltolower="__e"><view class="diy-banner-box pt20 mb20 pr square"><swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{500}}" data-event-opts="{{[['change',[['changeSwiper',['$event']]]]]}}" bindchange="__e"><block wx:for="{{banner}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item data-event-opts="{{[['tap',[['gotoPages',['$0'],[[['banner','',index]]]]]]]}}" bindtap="__e"><image src="{{item.file_path}}"></image></swiper-item></block></swiper><view class="swiper-dots ww100 d-s-c square"><block wx:for="{{banner}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{[current==index?'swiper-dot active':'swiper-dot']}}" style="{{(current==index?'background-color:#ffffff;':'')}}"></view></block></view></view><view class="list p-0-20"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item d-stretch"><view class="product-cover"><image src="{{item.$orig.product_image}}" mode="aspectFit"></image></view><view class="d-b-c d-c flex-1 ml26"><view class="product-title ww100">{{item.$orig.product.product_name}}</view><view class="d-s-c ww100"><countdown class="vue-ref-in-for" vue-id="{{'5b670997-1-'+index}}" color="#999999" timeSize="22rpx" config="{{item.a0}}" data-ref="countdown" data-event-opts="{{[['^returnVal',[['returnValFunc']]]]}}" bind:returnVal="__e" bind:__l="__l"></countdown></view><view class="ww100"><text class="dj-text">{{"定金:¥"+item.$orig.money}}</text><text class="ml20 gray6 f20">{{"尾款立减¥"+item.$orig.sku[0].advance_price}}</text></view><view class="slider-box ww100 d-b-c"><view><view class="f32 redF11"><text class="f16 fb">¥</text>{{item.g0+''}}</view><view class="f20 gray9">预估到手价</view></view><view class="right-btn ml30"><button type="primary" data-event-opts="{{[['tap',[['gotoDetail',['$0'],[[['listData','',index,'product.product_id']]]]]]]}}" bindtap="__e">抢购</button></view></view></view></view></block></view><block wx:if="{{$root.g1}}"><view class="d-c-c p30"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block></scroll-view></view></block></view>

View File

@ -0,0 +1,3 @@
page{background-color:#f2f2f2}.top-box{position:relative}.presale-product-wrap .tab-item{flex:0;padding:0 25rpx;font-size:33rpx;height:86rpx;display:flex;justify-content:center;align-items:center;flex-direction:column;white-space:nowrap;color:#333}.presale-product-wrap .logo{width:75rpx;height:69rpx;margin-right:18rpx;padding-left:24rpx;flex-shrink:0}.presale-product-wrap .logo image{width:75rpx;height:69rpx}.presale-product-wrap .tab-item .actab-title{font-size:30rpx;font-weight:700;color:#333}.presale-product-wrap .tab-item .actab-status{font-weight:700;color:#666;font-size:17rpx;height:30rpx;padding:0 18rpx;box-sizing:border-box;display:flex;justify-content:center;align-items:center;border-radius:15rpx}.presale-product-wrap .tab-item.active .actab-status{background:linear-gradient(140deg,#f11e0b,#f77737);color:#fff}.presale-product-wrap .tab-item.active{font-size:30rpx;opacity:1;position:relative;margin-bottom:0}.presale-product-wrap .tab-item.active::after{display:none}.presale-product-wrap .tab-item.active .status1{content:"";width:120rpx;height:4rpx;background:linear-gradient(140deg,#f11e0b,#f77737);border-radius:2rpx;position:absolute;border:30rpx}.presale-product-wrap .every-day-time text{padding:8rpx 16rpx;font-size:26rpx;color:#333;opacity:.5}.presale-product-wrap .ad-activity{position:relative;overflow:hidden}.presale-product-wrap .ad-activity image{width:750rpx;height:367rpx;border-radius:12rpx}.presale-list-wrap .list .item{padding:30rpx;display:flex;border-radius:16rpx;margin-bottom:20rpx;background:#fff}.presale-list-wrap .product-cover,
.presale-list-wrap .product-cover image{width:212rpx;height:212rpx;border-radius:10rpx}.active-top-tab .ad-datetime .box{height:40rpx;padding:4rpx;line-height:40rpx;text-align:center;border-radius:8rpx;font-size:28rpx;background:#f6220c;color:#fff}.active-top-tab .ad-datetime text{color:#333;font-size:28rpx}.presale-list-wrap .product-title{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:24rpx}.presale-list-wrap .already-sale{padding:4rpx 0;color:#8228eb;font-size:22rpx}.dj-text{height:31rpx;background-color:rgba(255,0,0,.2);font-size:20rpx;padding:0 18rpx;color:#f11e0b;border-radius:15rpx}.presale-list-wrap .right-btn button{background:linear-gradient(140deg,#f11e0b,#f77737);color:#fff;height:56rpx;border-radius:10rpx;display:flex;justify-content:center;align-items:center;padding:0 33rpx}.reg180{padding-right:20rpx;text-align:right;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);position:absolute;bottom:0}.icon-jiantou{color:#fff;font-size:30rpx}.head_top{position:absolute;top:0;z-index:20;padding-top:25px;height:30px;line-height:30px;color:#fff;font-size:28rpx}.tab-item.active::after{content:"";width:60%;height:4rpx;background:#f2f2f2;border-radius:2rpx;position:absolute;bottom:5rpx}.diy-banner-box{overflow:hidden}.diy-banner-box,
.diy-banner-box .swiper{width:750rpx}.diy-banner-box image{margin:0 auto;width:702rpx;height:300rpx;border-radius:12rpx}.diy-banner-box.square .swiper-dots{position:absolute;bottom:20rpx;left:44rpx;margin:auto}.swiper-dots.square .swiper-dot{width:28rpx;height:6rpx;border-radius:3rpx;margin:0 4rpx;background:#fff;opacity:.4}.swiper-dots.square .swiper-dot.active{opacity:.8}.index-search-box{background-color:#fff}.index-search-box .index-search{height:60rpx;background:#fff;border:1rpx solid #ddd;border-radius:30rpx;margin-right:15rpx}