Initial commit: queue workspace
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/presell/index"],{"1ac7":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(){return i}));var i={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"94dd"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.presellList.length),i=n?t.__map(t.presellList,(function(e,n){var i=t.__get_orig(e),a=e.store_label.length;return{$orig:i,g1:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},o=[]},3633:function(t,e,n){},3735:function(t,e,n){"use strict";var i=n("bf9f"),a=n.n(i);a.a},5993:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("b0fe"),a=n("4d38"),o=t.getWindowInfo().statusBarHeight,l={name:"presell",components:{emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("398a"))}.bind(null,n)).catch(n.oe)},NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("a7d8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{sysHeight:o,presellList:[],timeList:[{name:"未开始",key:0},{name:"正在进行",key:1},{name:"已结束",key:2}],active:1,page:1,limit:8,loading:!1,loadend:!1,loadTitle:"加载更多",picUrl:"",imgHost:a.HTTP_REQUEST_URL,pageScrollStatus:!1}},computed:{headerBg:function(){return"url("+this.imgHost+"/statics/images/product/product_presale_header.png)"},navBg:function(){return"url("+this.imgHost+"/statics/images/product/presell-bg-"+this.active+".png)"}},onPageScroll:function(e){e.scrollTop>130?this.pageScrollStatus=!0:e.scrollTop<130&&(this.pageScrollStatus=!1),t.$emit("scroll")},onLoad:function(){this.getPresellProductList()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{getPresellProductList:function(){var t=this,e={page:t.page,limit:t.limit,time_type:t.active+1};t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,i.getAdvancellList)(e).then((function(e){var n=e.data.list,i=n.length<t.limit;t.presellList=t.$util.SplitArray(n,t.presellList),t.$set(t,"presellList",t.presellList),t.loadend=i,t.loadTitle=i?"没有更多内容啦~":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))},settimeList:function(t){this.active=t,this.loadend=!1,this.page=1,this.presellList=[],this.getPresellProductList()},goDetails:function(e){t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(e.id,"&type=6")})},goBack:function(){t.navigateBack()}},onReachBottom:function(){this.getPresellProductList()},onShareAppMessage:function(){return{title:"尖货预售",path:"/pages/activity/presell/index?spid="+this.$store.state.app.uid,imageUrl:a.HTTP_REQUEST_URL+"/statics/images/product/product_presale_header.png"}},onShareTimeline:function(){return{title:"尖货预售",path:"/pages/activity/presell/index?spid="+ +this.$store.state.app.uid,imageUrl:a.HTTP_REQUEST_URL+"/statics/images/product/product_presale_header.png"}}};e.default=l}).call(this,n("df3c")["default"])},"71f7":function(t,e,n){"use strict";n.r(e);var i=n("1ac7"),a=n("d528");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("3735"),n("f221");var l=n("828b"),r=Object(l["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},bb30:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("f076");i(n("3240"));var a=i(n("71f7"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bf9f:function(t,e,n){},d528:function(t,e,n){"use strict";n.r(e);var i=n("5993"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f221:function(t,e,n){"use strict";var i=n("3633"),a=n.n(i);a.a}},[["bb30","common/runtime","common/vendor"]]]);
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "预售列表",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"easy-loadimage": "/components/easy-loadimage/easy-loadimage",
|
||||
"empty-page": "/components/emptyPage",
|
||||
"nav-bar": "/components/NavBar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view><view class="w-full bg-top h-518 relative" style="{{'background-image:'+(headerBg)+';'}}"><nav-bar vue-id="a1e96096-1" titleText="预售" textSize="34rpx" isScrolling="{{pageScrollStatus}}" iconColor="{{pageScrollStatus?'#333333':'#ffffff'}}" textColor="{{pageScrollStatus?'#333333':'#ffffff'}}" showBack="{{true}}" bind:__l="__l"></nav-bar></view><view class="px-20"><view class="bg--w111-fff rd-16rpx relative" style="top:-24rpx;"><view class="w-full h-112 bg-primary-light nav-bg" style="{{'background-image:'+(navBg)+';'}}"><view class="w-full flex-between-center pt-22 pl-76 pr-76"><block wx:for="{{timeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><text data-event-opts="{{[['tap',[['settimeList',['$0'],[[['timeList','',index,'key']]]]]]]}}" class="{{['fs-26','text--w111-666','lh-36rpx',active==index?'active':'']}}" bindtap="__e">{{item.name}}</text></block></view></view><block wx:if="{{$root.g0}}"><view class="w-full pl-20 pr-20 pb-40"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetails',['$0'],[[['presellList','',index]]]]]]]}}" class="w-full flex justify-between pro-item" bindtap="__e"><easy-loadimage vue-id="{{'a1e96096-2-'+index}}" image-src="{{item.$orig.image}}" width="240rpx" height="240rpx" borderRadius="16rpx" bind:__l="__l"></easy-loadimage><view class="flex-1 flex-col justify-between pl-20"><view class="w-full"><view class="w-full fs-28 h-80 lh-40rpx line2"><block wx:if="{{item.$orig.brand_name}}"><text class="brand-tag">{{item.$orig.brand_name}}</text></block>{{''+item.$orig.store_name}}</view><block wx:if="{{item.g1}}"><view class="w-full flex items-end flex-wrap mt-16"><block wx:for="{{item.$orig.store_label}}" wx:for-item="label" wx:for-index="idx" wx:key="idx"><base-tag vue-id="{{'a1e96096-3-'+index+'-'+idx}}" text="{{label.label_name}}" color="{{label.color}}" background="{{label.bg_color}}" borderColor="{{label.border_color}}" circle="{{label.border_color?true:false}}" imgSrc="{{label.icon}}" bind:__l="__l"></base-tag></block></view></block></view><view class="{{['flex','w-full','h-68','rd-8rpx','btn-bg','relative',active==2?'opacity':'']}}"><view class="flex-y-center pl-20 fs-22 btn-left"><base-money vue-id="{{'a1e96096-4-'+index}}" money="{{item.$orig.price}}" symbolSize="26" integerSize="40" decimalSize="26" weight="{{true}}" preFix="预售:" preFixSize="22" textColor="#e93323" color="#e93323" bind:__l="__l"></base-money></view><block wx:if="{{active==0}}"><image class="btn-right" src="../static/yushou1.png"></image></block><block wx:else><block wx:if="{{active==1}}"><image class="btn-right" src="../static/yushou2.png"></image></block><block wx:else><image class="btn-right" src="../static/yushou3.png"></image></block></block></view></view></view></block></view></block><block wx:else><view class="px-20"><empty-page vue-id="a1e96096-5" title="暂无预售商品,去看看其他商品吧~" src="/statics/images/noActivity.gif" bind:__l="__l"></empty-page></view></block></view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
page{background:linear-gradient(270deg,#6d4adc,#7033d7 98%)}.bg-top{background-size:100% 100%;background-repeat:no-repeat}.bg-primary-light{background-color:rgba(109,74,220,.1)}.nav-bg{background-size:100% 100%;background-repeat:no-repeat}.active{font-size:32rpx;font-weight:500;line-height:44rpx;color:#7033d7}.btn-bg{background:rgba(233,51,35,.1)}.btn-left{flex:1;border-radius:8rpx 0 0 8rpx}.btn-right{width:180rpx;height:68rpx}.shandian{width:42rpx;height:68rpx;position:absolute;-webkit-transform:scale(1.1);transform:scale(1.1);left:56%;top:1px}.pro-item ~ .pro-item{margin-top:32rpx}.border-label{display:inline-flex;display:flex;align-items:center;flex-wrap:nowrap;height:26rpx;padding:0 6rpx;border:1rpx solid #e93323;border-radius:6rpx;font-size:18rpx;color:#e93323}.empty-box{width:100%;height:280px}.opacity{opacity:.5}.brand-tag{background-color:#e93323!important}
|
||||
Reference in New Issue
Block a user