{"size": 16964, "ext": "js", "max_stars_repo_path": "public/h5/static/js/pages-user-my-bargain-my-bargain.81532af7.js", "max_stars_repo_name": "oemsoft2020/oemshop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/h5/static/js/pages-user-my-bargain-my-bargain.81532af7.js", "max_issues_repo_name": "oemsoft2020/oemshop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/h5/static/js/pages-user-my-bargain-my-bargain.81532af7.js", "max_forks_repo_name": "oemsoft2020/oemshop", "max_forks_repo_forks_event_min_datetime": "2021-09-28T07:54:57.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-28T07:54:57.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 16964.0, "max_line_length": 16964, "alphanum_fraction": 0.6906979486}
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-my-bargain-my-bargain"],{"070a":function(t,a,i){"use strict";var n=i("9b5e"),e=i.n(n);e.a},"0931":function(t,a,i){"use strict";var n=i("17de"),e=i.n(n);e.a},"0db7":function(t,a,i){var n=i("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.one-product .pro-info[data-v-073bb861]{padding:0 %?30?%;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:%?28?%;color:#666}.total-count .count[data-v-073bb861]{padding-top:%?10?%;color:#666;font-size:%?28?%}.product-list .total-count[data-v-073bb861]{position:absolute;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.9)}.product-list .total-count .left-shadow[data-v-073bb861]{position:absolute;top:0;bottom:0;left:%?-24?%;width:%?24?%;overflow:hidden}.product-list .total-count .left-shadow[data-v-073bb861]::after{position:absolute;top:0;bottom:0;width:%?24?%;right:%?-12?%;display:block;content:"";background-image:-webkit-radial-gradient(rgba(0,0,0,.2) 10%,rgba(0,0,0,.1) 40%,transparent 80%);background-image:radial-gradient(rgba(0,0,0,.2) 10%,rgba(0,0,0,.1) 40%,transparent 80%)}.buy-checkout[data-v-073bb861]{width:100%}.buy-checkout .item[data-v-073bb861]{min-height:%?50?%;line-height:%?50?%;padding:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:%?28?%}.buy-checkout .iconfont.icon-weixin[data-v-073bb861]{color:#04be01;font-size:%?50?%}.buy-checkout .iconfont.icon-yue[data-v-073bb861]{color:#f0de7c;font-size:%?50?%}.buy-checkout .item.active .iconfont.icon-xuanze[data-v-073bb861]{color:#04be01}.my-bargaing-list .item[data-v-073bb861]{margin-top:%?30?%;padding:%?30?%;background:#fff}.my-bargaing-list .surplus-time[data-v-073bb861]{padding:%?4?% %?16?%;border-radius:%?4?%;background:#666;color:#fff}.my-bargaing-list .cover[data-v-073bb861],\r\n.my-bargaing-list .cover uni-image[data-v-073bb861]{width:%?160?%;height:%?160?%}.more-bargaining[data-v-073bb861]{position:fixed;padding:%?20?%;right:0;bottom:0;left:0;background:#fff}.more-bargaining uni-button[data-v-073bb861]{height:%?88?%;line-height:%?80?%;border-radius:%?40?%}',""]),t.exports=a},"17de":function(t,a,i){var n=i("500b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var e=i("4f06").default;e("bc29ca5a",n,!0,{sourceMap:!1,shadowMode:!1})},"18ec":function(t,a,i){"use strict";var n;i.d(a,"b",(function(){return e})),i.d(a,"c",(function(){return o})),i.d(a,"a",(function(){return n}));var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"load-more"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.loadingType&&t.showImage,expression:"loadingType === 1 && showImage"}],staticClass:"loading-img"},[i("v-uni-view",{staticClass:"load1"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load2"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1),i("v-uni-view",{staticClass:"load3"},[i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}}),i("v-uni-view",{style:{background:t.color}})],1)],1),i("v-uni-text",{staticClass:"loading-text",style:{color:t.color}},[t._v(t._s(0===t.loadingType?t.contentText.contentdown:1===t.loadingType?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},"1ae7":function(t,a,i){"use strict";i.r(a);var n=i("c6f4"),e=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(a,t,(function(){return n[t]}))}(o);a["default"]=e.a},"33d8":function(t,a,i){"use strict";var n;i.d(a,"b",(function(){return e})),i.d(a,"c",(function(){return o})),i.d(a,"a",(function(){return n}));var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"countdown"},[null==t.config.type?[0==t.status?i("v-uni-text",[t._v(t._s(t.title))]):t._e(),1==t.status?i("v-uni-text",[t._v("活动开始时间：")]):t._e(),2==t.status?i("v-uni-text",[t._v("活动结束时间：")]):t._e(),i("v-uni-text",{staticClass:"box"},[t._v(t._s(t.day))]),i("v-uni-text",{staticClass:"p-0-10"},[t._v("天")]),i("v-uni-text",{staticClass:"box"},[t._v(t._s(t.hour))]),i("v-uni-text",{staticClass:"p-0-10"},[t._v("时")]),i("v-uni-text",{staticClass:"box"},[t._v(t._s(t.minute))]),i("v-uni-text",{staticClass:"p-0-10"},[t._v("分")]),i("v-uni-text",{staticClass:"box"},[t._v(t._s(t.second))]),i("v-uni-text",{staticClass:"p-0-10"},[t._v("秒")])]:t._e(),"text"===t.config.type?[t._v(t._s(t.title)+t._s(parseInt(24*t.day)+parseInt(t.hour))+":"+t._s(t.minute)+":"+t._s(t.second))]:t._e()],2)},o=[]},"385e":function(t,a,i){"use strict";i("e25e"),i("ac1f"),i("5319"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={data:function(){return{status:0,day:"0",hour:"0",minute:"0",second:"0",timer:null,totalSeconds:0,title:"活动剩余："}},props:{config:{type:Object,default:function(){return{type:"all"}}}},created:function(){},watch:{config:{deep:!0,handler:function(t,a){t!=a&&0!=t.endstamp&&(t.title&&"undefined"!=typeof t.title&&(this.title=t.title),this.setTime())},immediate:!0}},methods:{setTime:function(){var t=this;t.timer=setInterval((function(){t.init()}),1e3)},init:function(){var t=Date.now()/1e3;t<this.config.startstamp?(this.status=1,this.totalSeconds=parseInt(this.config.startstamp-t),this.countDown()):t>this.config.endstamp?this.status=2:(this.totalSeconds=parseInt(this.config.endstamp-t),this.status=0,this.countDown()),this.$emit("returnVal",this.status)},countDown:function(){var t=this.totalSeconds,a=Math.floor(t/86400),i=t%86400,n=Math.floor(i/3600);i%=3600;var e=Math.floor(i/60),o=i%60;this.day=this.convertTwo(a),this.hour=this.convertTwo(n),this.minute=this.convertTwo(e),this.second=this.convertTwo(o),this.totalSeconds--},convertTwo:function(t){var a="";return a=t<10?"0"+t:t,a},getLocalTime:function(t){return new Date(1e3*parseInt(t)).toLocaleString().replace(/:\d{1,2}$/," ")}},destroyed:function(){clearInterval(this.timer)}};a.default=n},"3f69":function(t,a,i){"use strict";var n;i.d(a,"b",(function(){return e})),i.d(a,"c",(function(){return o})),i.d(a,"a",(function(){return n}));var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",[i("v-uni-view",{staticClass:"top-tabbar"},[i("v-uni-view",{class:0==t.status?"tab-item active":"tab-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.stateFunc(0)}}},[t._v("进行中")]),i("v-uni-view",{class:1==t.status?"tab-item active":"tab-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.stateFunc(1)}}},[t._v("砍价成功")]),i("v-uni-view",{class:2==t.status?"tab-item active":"tab-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.stateFunc(2)}}},[t._v("砍价失败")])],1),i("v-uni-scroll-view",{staticClass:"scroll-Y",style:"height:"+t.scrollviewHigh+"px;",attrs:{"scroll-y":"true","lower-threshold":"50"},on:{scrolltolower:function(a){arguments[0]=a=t.$handleEvent(a),t.scrolltolowerFunc.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"my-bargaing-list"},[t._l(t.listData,(function(a,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"datetime d-b-c"},[i("v-uni-text",{staticClass:"f28"},[t._v(t._s(a.create_time))]),0==t.status?i("v-uni-view",{staticClass:"surplus-time"},[i("Countdown",{attrs:{config:t.rturnObjec(a)}})],1):t._e()],1),i("v-uni-view",{staticClass:"product d-s-s mt30"},[i("v-uni-view",{staticClass:"cover"},[i("v-uni-image",{attrs:{src:a.file_path,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"info flex-1 ml20 f28"},[i("v-uni-text",{staticClass:"f30 text-ellipsis-2"},[t._v(t._s(a.product_name))]),i("v-uni-view",{staticClass:"mt20"},[i("v-uni-text",{staticClass:"gray9"},[t._v("砍价享：")]),i("v-uni-text",{staticClass:"red"},[t._v("￥"+t._s(a.bargain_price))]),i("v-uni-text",{staticClass:"ml10 gray9 text-l-t f24"},[t._v("原价："+t._s(a.product_price))])],1),i("v-uni-view",{staticClass:"d-s-c mt10"},[i("v-uni-text",{staticClass:"gray9"},[t._v("完成度：")]),i("v-uni-view",{staticClass:"progress"}),i("v-uni-text",{staticClass:"red"},[t._v(t._s(t.progressReturn(a))+"%")])],1)],1)],1),i("v-uni-view",{staticClass:"btns mt30 d-b-c"},[0==a.status?[i("v-uni-text",{staticClass:"gray3"},[t._v("进行中")])]:t._e(),1==a.status?[i("v-uni-text",{staticClass:"green"},[t._v("砍价成功")])]:t._e(),2==a.status?[i("v-uni-text",{staticClass:"gray"},[t._v("砍价失败")])]:t._e(),i("v-uni-button",{staticClass:"btn-red",attrs:{type:"primary"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.gotoDetail(a.bargain_task_id)}}},[t._v("查看详情")])],2)],1)})),0!=t.listData.length||t.loading?i("uni-load-more",{attrs:{loadingType:t.loadingType}}):i("v-uni-view",{staticClass:"d-c-c p30"},[i("v-uni-text",{staticClass:"iconfont icon-wushuju"}),i("v-uni-text",{staticClass:"cont"},[t._v("亲，暂无相关记录哦")])],1)],2)],1),i("v-uni-view",{staticClass:"more-bargaining"},[i("v-uni-button",{staticClass:"btn-red",attrs:{type:"primary"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.gotoMore.apply(void 0,arguments)}}},[t._v("更多活动")])],1)],1)},o=[]},"500b":function(t,a,i){var n=i("24fb");a=n(!1),a.push([t.i,".countdown[data-v-dd879278]{font-size:%?20?%}.countdown .box[data-v-dd879278]{display:inline-block;padding:%?4?%;width:%?34?%;border-radius:%?8?%;background:#000;text-align:center;color:#fff}",""]),t.exports=a},5413:function(t,a,i){"use strict";i.r(a);var n=i("33d8"),e=i("c2cb");for(var o in e)"default"!==o&&function(t){i.d(a,t,(function(){return e[t]}))}(o);i("0931");var s,r=i("f0c5"),c=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"dd879278",null,!1,n["a"],s);a["default"]=c.exports},"79b9":function(t,a,i){"use strict";i.r(a);var n=i("3f69"),e=i("1ae7");for(var o in e)"default"!==o&&function(t){i.d(a,t,(function(){return e[t]}))}(o);i("070a");var s,r=i("f0c5"),c=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"073bb861",null,!1,n["a"],s);a["default"]=c.exports},"7ad4":function(t,a,i){"use strict";i("a9e3"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n={name:"load-more",props:{loadingType:{type:Number,default:0},showImage:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};a.default=n},"80f5":function(t,a,i){"use strict";var n=i("87c8"),e=i.n(n);e.a},"87c8":function(t,a,i){var n=i("c7dc");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var e=i("4f06").default;e("6821b5fb",n,!0,{sourceMap:!1,shadowMode:!1})},"9b5e":function(t,a,i){var n=i("0db7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var e=i("4f06").default;e("82bb4b40",n,!0,{sourceMap:!1,shadowMode:!1})},c2cb:function(t,a,i){"use strict";i.r(a);var n=i("385e"),e=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(a,t,(function(){return n[t]}))}(o);a["default"]=e.a},c6f4:function(t,a,i){"use strict";(function(t){var n=i("4ea4");i("99af"),i("ac1f"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=n(i("ef1a")),o=n(i("5413")),s={components:{uniLoadMore:e.default,Countdown:o.default},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 t=this;uni.getSystemInfo({success:function(a){t.phoneHeight=a.windowHeight;var i=uni.createSelectorQuery().select(".top-tabbar");i.boundingClientRect((function(a){var i=t.phoneHeight-a.height,n=uni.createSelectorQuery().select(".more-bargaining");n.boundingClientRect((function(a){var n=i-a.height;t.scrollviewHigh=n})).exec()})).exec()}})},stateFunc:function(t){var a=this;a.status!=t&&(a.listData=[],a.page=1,a.status=t,a.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(a){if(t.loading=!1,t.listData=t.listData.concat(a.data.list.data),t.last_page=a.data.list.last_page,a.data.list.last_page<=1)return t.no_more=!0,!1}))},scrolltolowerFunc:function(){var t=this;t.no_more||(t.page++,t.page<=t.last_page?t.getData():t.no_more=!0)},gotoDetail:function(t){uni.navigateTo({url:"/pages/plus/bargain/haggle/haggle?bargain_task_id="+t})},gotoMore:function(){uni.navigateTo({url:"/pages/plus/bargain/list/list"})},returnValFunc:function(a,i){t("log",a,i," at pages/user/my-bargain/my-bargain.vue:228")}}};a.default=s}).call(this,i("0de9")["log"])},c7dc:function(t,a,i){var n=i("24fb");a=n(!1),a.push([t.i,".load-more[data-v-3fb1f804]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.loading-img[data-v-3fb1f804]{height:24px;width:24px;margin-right:10px}.loading-text[data-v-3fb1f804]{font-size:%?28?%;color:#777}.loading-img>uni-view[data-v-3fb1f804]{position:absolute}.load1[data-v-3fb1f804],\n.load2[data-v-3fb1f804],\n.load3[data-v-3fb1f804]{height:24px;width:24px}.load2[data-v-3fb1f804]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-3fb1f804]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loading-img>uni-view uni-view[data-v-3fb1f804]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#777;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-3fb1f804 1.56s ease infinite}.loading-img>uni-view uni-view[data-v-3fb1f804]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.loading-img>uni-view uni-view[data-v-3fb1f804]:nth-child(2){-webkit-transform:rotate(180deg);top:11px;right:0}.loading-img>uni-view uni-view[data-v-3fb1f804]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.loading-img>uni-view uni-view[data-v-3fb1f804]:nth-child(4){top:11px;left:0}.load1 uni-view[data-v-3fb1f804]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-3fb1f804]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-3fb1f804]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-3fb1f804]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-3fb1f804]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-3fb1f804]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-3fb1f804]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-3fb1f804]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-3fb1f804]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-3fb1f804]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-3fb1f804]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-3fb1f804]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-3fb1f804{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=a},ef1a:function(t,a,i){"use strict";i.r(a);var n=i("18ec"),e=i("fbec");for(var o in e)"default"!==o&&function(t){i.d(a,t,(function(){return e[t]}))}(o);i("80f5");var s,r=i("f0c5"),c=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"3fb1f804",null,!1,n["a"],s);a["default"]=c.exports},fbec:function(t,a,i){"use strict";i.r(a);var n=i("7ad4"),e=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(a,t,(function(){return n[t]}))}(o);a["default"]=e.a}}]);