第一次提交

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/preview/list"],{"57b9":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("7d57");a(n("3240"));var o=a(n("cfd7"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"67b2":function(t,e,n){"use strict";var a=n("7a4b"),o=n.n(a);o.a},"72a7":function(t,e,n){"use strict";n.r(e);var a=n("c160"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"7a4b":function(t,e,n){},ae9f:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.theme()||""),a=t.theme(),o=t.__map(t.listData,(function(e,n){var a=t.__get_orig(e),o={startstamp:(new Date).valueOf()/1e3,endstamp:e.preview_time,title:" "};return{$orig:a,a0:o}})),i=0==t.listData.length&&!t.loading;t.$mp.data=Object.assign({},{$root:{m0:n,m1:a,l0:o,g0:i}})},o=[]},c160:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={components:{uniLoadMore:function(){n.e("components/uni-load-more").then(function(){return resolve(n("e5dd"))}.bind(null,n)).catch(n.oe)},Countdown:function(){n.e("components/countdown/countdown-act").then(function(){return resolve(n("acb8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{phoneHeight:0,scrollviewHigh:0,topRefresh:!1,loading:!0,no_more:!1,listData:[],page:1,list_rows:10,last_page:0}},computed:{loadingType:function(){return this.loading?1:0!=this.listData.length&&this.no_more?2:0}},onLoad:function(t){},mounted:function(){this.init(),this.getData()},onPullDownRefresh:function(){this.restoreData(),this.getData()},methods:{init:function(){var e=this;t.getSystemInfo({success:function(t){e.phoneHeight=t.windowHeight,e.scrollviewHigh=t.windowHeight}})},restoreData:function(){this.listData=[],this.no_more=!1,this.page=1},getData:function(){var t=this,e=t.page,n=t.list_rows;t.loading=!0,t._get("product.product/previewProduct",{page:e||1,list_rows:n},(function(e){t.loading=!1,t.listData=t.listData.concat(e.data.list.data),t.last_page=e.data.list.last_page,e.data.list.last_page<=1&&(t.no_more=!0)}))},gotoList:function(t){var e="pages/product/detail/detail?product_id="+t;this.gotoPage(e)},scrolltolowerFunc:function(){if(this.bottomRefresh=!0,this.page++,this.loading=!0,this.page>this.last_page)return this.loading=!1,void(this.no_more=!0);this.getData()},onShareAppMessage:function(){return{title:"全部分类",path:"/pages/product/category?"+this.getShareUrlParams()}}}};e.default=a}).call(this,n("df3c")["default"])},cfd7:function(t,e,n){"use strict";n.r(e);var a=n("ae9f"),o=n("72a7");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("67b2");var r=n("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=s.exports}},[["57b9","common/runtime","common/vendor"]]]);

View File

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "预告",
"enablePullDownRefresh": false,
"usingComponents": {
"uni-load-more": "/components/uni-load-more",
"countdown": "/components/countdown/countdown-act"
}
}

View File

@ -0,0 +1 @@
<view class="{{[$root.m0]}}" data-theme="{{$root.m1}}"><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="shop_body"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['gotoList',['$0'],[[['listData','',index,'product_id']]]]]]]}}" class="product-item" bindtap="__e"><view><image src="{{item.$orig.product_image}}" mode></image></view><view class="product-info"><view><view class="product-name gray3 f24 mb10">{{item.$orig.product_name}}</view><countdown class="vue-ref-in-for" vue-id="{{'915cb316-1-'+index}}" config="{{item.a0}}" start_name="距开始仅剩" end_name="距开始仅剩" data-ref="countdown" bind:__l="__l"></countdown></view><view class="d-b-c pb10"><view class="product-price"><view class="f24 theme-price">¥<text class="f32 fb">{{item.$orig.product_price}}</text></view><view class="f20 gray9 old-price">{{"¥"+item.$orig.product_sku.line_price}}</view></view><view class="dis-btn">未开始</view></view></view></view></block></view><block wx:if="{{$root.g0}}"><view class="d-c-c p30"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block><block wx:else><uni-load-more vue-id="915cb316-2" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></scroll-view></view>

View File

@ -0,0 +1 @@
.shop_body{width:100%;padding:22rpx;box-sizing:border-box}.product-item{margin:0 auto;background-color:#fff;border-radius:5rpx;display:flex;padding:25rpx 20rpx;box-sizing:border-box;margin-bottom:26rpx}.product-item image{width:212rpx;height:212rpx;border-radius:10rpx;background-color:rgba(0,0,0,.1)}.product-info{flex:1;display:flex;justify-content:space-between;flex-direction:column;padding-left:20rpx;box-sizing:border-box}.product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;-webkit-box-orient:vertical;word-wrap:break-word;word-break:break-all;overflow:hidden}.product-price view{margin-right:15rpx}.product-item .product-info .box{padding:0;font-size:20rpx;background:none}.product-item .product-info .daybox{padding:0;font-size:20rpx;background:none}.product-item .product-info .countdown{border:none;padding:0;font-size:20rpx;white-space:nowrap;color:#999}.old-price{text-decoration:line-through}.dis-btn{background:#ccc;color:#fff;padding:16rpx 21rpx;border-radius:10rpx;font-size:24rpx}