第一次提交
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/my-bargain/my-bargain"],{"3bea":function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("7d57");a(e("3240"));var o=a(e("b46c"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},5981:function(t,n,e){"use strict";var a=e("95ec"),o=e.n(a);o.a},6926:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.topBarTop()),a=t.topBarHeight(),o=0!=a?t.topBarHeight():null,i=t.__map(t.listData,(function(n,e){var a=t.__get_orig(n),o=0==t.status?t.rturnObjec(n):null,i=t.progressReturn(n),r=t.progressReturn(n);return{$orig:a,m3:o,m4:i,m5:r}})),r=0==t.listData.length&&!t.loading;t.$mp.data=Object.assign({},{$root:{m0:e,m1:a,m2:o,l0:i,g0:r}})},o=[]},"7be8":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={components:{uniLoadMore:function(){e.e("components/uni-load-more").then(function(){return resolve(e("e5dd"))}.bind(null,e)).catch(e.oe)},Countdown:function(){e.e("components/countdown/countdown").then(function(){return resolve(e("6d72"))}.bind(null,e)).catch(e.oe)}},data:function(){return{loading:!0,phoneHeight:0,scrollviewHigh:0,status:0,topRefresh:!1,page:1,list_rows:20,listData:[],no_more:!1,countdownConfig:{startstamp:0,endstamp:0,type:"text",title:"剩余:"}}},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()},methods:{rturnObjec:function(t){return{type:"text",startstamp:0,endstamp:t.end_time,title:"剩余"}},progressReturn:function(t){return 1==t.is_floor?100:t.bargain_rate},init:function(){var n=this;t.getSystemInfo({success:function(e){n.phoneHeight=e.windowHeight;var a=t.createSelectorQuery().select(".top-tabbar");a.boundingClientRect((function(e){var a=n.phoneHeight-e.height,o=t.createSelectorQuery().select(".more-bargaining");o.boundingClientRect((function(t){var e=a-t.height;n.scrollviewHigh=e})).exec()})).exec()}})},stateFunc:function(t){this.status!=t&&(this.listData=[],this.page=1,this.status=t,this.getData())},getData:function(){var t=this;t.loading=!0,t._get("user.bargain/lists",{page:t.page,list_rows:t.list_rows,status:t.status},(function(n){if(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)return t.no_more=!0,!1}))},scrolltolowerFunc:function(){this.no_more||(this.page++,this.page<=this.last_page?this.getData():this.no_more=!0)},gotoDetail:function(t){this.gotoPage("/pages/plus/bargain/haggle/haggle?bargain_task_id="+t)},goback:function(){t.navigateBack({})},gotoMore:function(){this.gotoPage("/pages/plus/bargain/list/list")},returnValFunc:function(t,n){console.log(t,n)}}};n.default=a}).call(this,e("df3c")["default"])},"95ec":function(t,n,e){},b3fa:function(t,n,e){"use strict";e.r(n);var a=e("7be8"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},b46c:function(t,n,e){"use strict";e.r(n);var a=e("6926"),o=e("b3fa");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("5981");var r=e("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=s.exports}},[["3bea","common/runtime","common/vendor"]]]);
|
||||
8
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "我的砍价",
|
||||
"usingComponents": {
|
||||
"uni-load-more": "/components/uni-load-more",
|
||||
"countdown": "/components/countdown/countdown"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view><view class="ww100" style="{{'background-color:#5508BE;'+('height:'+$root.m0+'px;')}}"></view><view class="tc head_top" style="{{'background-color:#5508BE;'+($root.m1==0?'':'height:'+$root.m2+'px;')}}"><view data-event-opts="{{[['tap',[['goback',['$event']]]]]}}" class="reg180" bindtap="__e"><text class="icon iconfont icon-jiantou"></text></view><view class="fb">我的砍价</view></view><view class="top-tabbar"><view data-event-opts="{{[['tap',[['stateFunc',[0]]]]]}}" class="{{[status==0?'tab-item active':'tab-item']}}" bindtap="__e">进行中</view><view data-event-opts="{{[['tap',[['stateFunc',[1]]]]]}}" class="{{[status==1?'tab-item active':'tab-item']}}" bindtap="__e">砍价成功</view><view data-event-opts="{{[['tap',[['stateFunc',[2]]]]]}}" class="{{[status==2?'tab-item active':'tab-item']}}" bindtap="__e">砍价失败</view></view><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="my-bargaing-list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['gotoDetail',['$0'],[[['listData','',index,'bargain_task_id']]]]]]]}}" class="item" bindtap="__e"><view class="datetime d-b-c"><text class="f28">{{item.$orig.create_time}}</text><block wx:if="{{status==0}}"><view class="surplus-time"><countdown vue-id="{{'d220cb7c-1-'+index}}" config="{{item.m3}}" bind:__l="__l"></countdown></view></block></view><view class="product d-s-s mt30"><view class="cover"><image src="{{item.$orig.file_path}}" mode="aspectFill"></image></view><view class="info flex-1 ml20 f28"><text class="f26 text-ellipsis-2">{{item.$orig.product_name}}</text><view class="mt20"><text class="redF6 f26">砍到底价:</text><text class="redF6 f20">¥</text><text class="redF6 f32">{{item.$orig.bargain_price}}</text><text class="ml10 gray9 text-l-t f26">{{item.$orig.product_price}}</text></view><view class="d-b-c mt10 f24"><view><text class="gray3">完成度:</text><text class="gray3">{{item.m4+"%"}}</text></view><view class="progress-box"><view class="progress-box-active" style="{{('width:'+item.m5+'%;')}}"></view></view></view></view></view></view></block><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="d220cb7c-2" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></view></scroll-view><view class="more-bargaining"><button class="btn-red" type="primary" data-event-opts="{{[['tap',[['gotoMore',['$event']]]]]}}" bindtap="__e">更多活动</button></view></view>
|
||||
2
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.wxss
vendored
Normal file
2
unpackage/dist/build/mp-weixin/pages/user/my-bargain/my-bargain.wxss
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.one-product .pro-info{padding:0 30rpx;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:28rpx;color:#666}.total-count .count{padding-top:10rpx;color:#666;font-size:28rpx}.product-list .total-count{position:absolute;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.9)}.product-list .total-count .left-shadow{position:absolute;top:0;bottom:0;left:-24rpx;width:24rpx;overflow:hidden}.product-list .total-count .left-shadow::after{position:absolute;top:0;bottom:0;width:24rpx;right:-12rpx;display:block;content:"";background-image:radial-gradient(rgba(0,0,0,.2) 10%,rgba(0,0,0,.1) 40%,transparent 80%)}.buy-checkout{width:100%}.buy-checkout .item{min-height:50rpx;line-height:50rpx;padding:20rpx;display:flex;justify-content:space-between;font-size:28rpx}.buy-checkout .iconfont.icon-weixin{color:#04be01;font-size:50rpx}.buy-checkout .iconfont.icon-yue{color:#f0de7c;font-size:50rpx}.buy-checkout .item.active .iconfont.icon-xuanze{color:#04be01}.my-bargaing-list .item{margin-top:30rpx;padding:30rpx;background:#fff}.my-bargaing-list .surplus-time{padding:4rpx 16rpx;border-radius:4rpx;font-size:26rpx;background:#fff;color:#333}.my-bargaing-list .cover,
|
||||
.my-bargaing-list .cover image{width:160rpx;height:160rpx}.more-bargaining{position:fixed;padding:20rpx;right:0;bottom:0;left:0;background:#fff}.more-bargaining button{font-size:32rpx;height:88rpx;line-height:80rpx;border-radius:40rpx;background:#8d60ff;border:none}.progress-box{width:50%;height:8rpx;background:#ece4ff;border-radius:4rpx;overflow:hidden}.progress-box-active{height:8rpx;border-radius:4rpx;background:linear-gradient(90deg,#cebbff,#723bff)}.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:relative;height:30px;line-height:30px;color:#fff;font-size:32rpx}.bg_topimg{position:absolute;top:0;background-color:#5508be;width:100%;height:320rpx;z-index:-1}.top-tabbar{background-color:#5508be;border-bottom:none;padding-bottom:20rpx}.tab-item{color:#fff;font-size:32rpx}.tab-item.active{font-weight:700;color:#fff;position:relative}.tab-item.active::after{content:"";width:80rpx;height:4rpx;background:#e8e8e8;border-radius:2rpx;bottom:0}.my-bargaing-list{margin:0 20rpx}.my-bargaing-list .item{border-radius:12px}
|
||||
Reference in New Issue
Block a user