pt-square-index.5b62b7a8.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pt-square-index"],{2290:function(t,e,o){"use strict";var n=o("f40b"),a=o.n(n);a.a},"22f9":function(t,e,o){var n=o("33ce");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=o("967d").default;a("4da49f08",n,!0,{sourceMap:!1,shadowMode:!1})},"33ce":function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-5378afbc] .u-form-item--right__content__slot > uni-view,[data-v-5378afbc] .u-form-item--right__content__slot > div,[data-v-5378afbc] .u-form-item--right__content__slot > span,[data-v-5378afbc] .u-form-item--right__content__slot > uni-text{width:100%}.square[data-v-5378afbc]{padding:%?24?%;min-height:100vh;background:#f2f2f2;padding-bottom:env(safe-area-inset-bottom)}.square .goods[data-v-5378afbc]{background:#fff;display:flex;padding:%?32?% %?24?%;margin-bottom:%?24?%;border-radius:%?20?%}.square .goods > uni-image[data-v-5378afbc]{width:%?220?%;height:%?220?%;border-radius:%?10?%}.square .goods .goods-content[data-v-5378afbc]{flex:1;width:0;margin-left:%?20?%}.square .goods .goods-content .user-date[data-v-5378afbc]{border-radius:%?20?%;display:flex;align-items:center;background:#fee5e5;padding-right:%?14?%;font-size:%?22?%;color:#f0250e}.square .goods .goods-content .user-date > uni-image[data-v-5378afbc]{margin-right:%?4?%;height:%?32?%;width:%?32?%;border-radius:50%}.square .goods .goods-content .price-bt[data-v-5378afbc]{display:flex;align-items:flex-end}.square .goods .goods-content .price-bt .pt-price[data-v-5378afbc]{flex:1;width:0;color:#f0250e;font-size:%?24?%}.square .goods .goods-content .price-bt .pt-bt[data-v-5378afbc]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?160?%;height:%?78?%;background:linear-gradient(180deg,#f22407,#f84d17);box-shadow:%?0?% %?6?% %?12?% rgba(240,37,14,.2);border-radius:%?20?%;font-size:%?18?%;color:#fff}',""]),t.exports=e},"3ed8":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={uCountDown:o("6c3b").default,uLoadmore:o("c9bb").default,uEmpty:o("4991").default},a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"square"},[t.list.length?o("div",{staticClass:"list"},[t._l(t.list,(function(e,n){return o("div",{key:n,staticClass:"item"},[o("div",{staticClass:"goods",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.$utils.toUrl("/goods/goods/goods?is_pt=true&id="+e.goods_id)}}},[o("v-uni-image",{attrs:{src:e.pic,mode:"aspectFill"}}),o("div",{staticClass:"goods-content"},[o("div",{staticClass:"u-line-2 u-m-b-10 font-w-600"},[t._v(t._s(e.goods_name))]),o("div",{staticClass:"u-flex u-m-b-20"},[o("div",{staticClass:"user-date"},[o("v-uni-image",{attrs:{src:e.avatar}}),o("v-uni-text",[t._v("正在拼团")]),o("u-count-down",{staticClass:"u-m-l-10",attrs:{timestamp:e.end_time,"font-size":"20","separator-size":"20",color:"#F0250E","separator-color":"#F0250E","bg-color":"transparent"}})],1)]),o("div",{staticClass:"price-bt"},[o("div",{staticClass:"pt-price"},[o("v-uni-text",{staticStyle:{}},[t._v("¥"),o("v-uni-text",{staticClass:"u-font-36"},[t._v(t._s(t._f("priceBeforeZero")(e.pt_price)))]),t._v(t._s(t._f("priceAfterZero")(e.pt_price)))],1),o("v-uni-text",{staticClass:"u-m-l-4"},[t._v("拼团价")])],1),o("div",{staticClass:"pt-bt"},[o("div",[t._v("拼团中")]),o("div",{staticClass:"u-font-24"},[t._v("参与拼团")])])])])],1)])})),o("div",{staticClass:"u-p-b-24"},[o("u-loadmore",{attrs:{status:"loadmoreStatus"}})],1)],2):o("div",[o("u-empty",{attrs:{mode:"data"}})],1)])},i=[]},"3f43":function(t,e,o){"use strict";o.r(e);var n=o("c5d0"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"4d83":function(t,e,o){"use strict";o.r(e);var n=o("dd9e"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"6c3b":function(t,e,o){"use strict";o.r(e);var n=o("7286"),a=o("3f43");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("2290");var r=o("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"ee56cd42",null,!1,n["a"],void 0);e["default"]=s.exports},"6d81":function(t,e,o){"use strict";var n=o("22f9"),a=o.n(n);a.a},7286:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"u-countdown"},[t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?o("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[o("v-uni-view",{staticClass:"u-countdown-time",style:[t.letterStyle]},[t._v(t._s(t.d))])],1):t._e(),t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?o("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v(t._s("colon"==t.separator?":":"天"))]):t._e(),t.showHours?o("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[o("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.h))])],1):t._e(),t.showHours?o("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v(t._s("colon"==t.separator?":":"时"))]):t._e(),t.showMinutes?o("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[o("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.i))])],1):t._e(),t.showMinutes?o("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v(t._s("colon"==t.separator?":":"分"))]):t._e(),t.showSeconds?o("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[o("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.s))])],1):t._e(),t.showSeconds&&"zh"==t.separator?o("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v("秒")]):t._e()],1)},a=[]},ae27:function(t,e,o){"use strict";o.r(e);var n=o("3ed8"),a=o("4d83");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("6d81");var r=o("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"5378afbc",null,!1,n["a"],void 0);e["default"]=s.exports},bcfb:function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-ee56cd42] .u-form-item--right__content__slot > uni-view,[data-v-ee56cd42] .u-form-item--right__content__slot > div,[data-v-ee56cd42] .u-form-item--right__content__slot > span,[data-v-ee56cd42] .u-form-item--right__content__slot > uni-text{width:100%}.u-countdown[data-v-ee56cd42]{display:inline-flex;align-items:center}.u-countdown-item[data-v-ee56cd42]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:%?2?%;border-radius:%?6?%;white-space:nowrap;-webkit-transform:translateZ(0);transform:translateZ(0)}.u-countdown-time[data-v-ee56cd42]{margin:0;padding:0;line-height:1}.u-countdown-colon[data-v-ee56cd42]{display:flex;flex-direction:row;justify-content:center;padding:0 %?5?%;line-height:1;align-items:center;padding-bottom:%?4?%}.u-countdown-scale[data-v-ee56cd42]{-webkit-transform:scale(.9);transform:scale(.9);-webkit-transform-origin:center center;transform-origin:center center}',""]),t.exports=e},c5d0:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var n={name:"u-count-down",props:{timestamp:{type:[Number,String],default:0},autoplay:{type:Boolean,default:!0},separator:{type:String,default:"colon"},separatorSize:{type:[Number,String],default:30},separatorColor:{type:String,default:"#303133"},color:{type:String,default:"#303133"},fontSize:{type:[Number,String],default:30},bgColor:{type:String,default:"#fff"},height:{type:[Number,String],default:"auto"},showBorder:{type:Boolean,default:!1},borderColor:{type:String,default:"#303133"},showSeconds:{type:Boolean,default:!0},showMinutes:{type:Boolean,default:!0},showHours:{type:Boolean,default:!0},showDays:{type:Boolean,default:!0},hideZeroDay:{type:Boolean,default:!1}},watch:{timestamp:function(t,e){this.clearTimer(),this.start()}},data:function(){return{d:"00",h:"00",i:"00",s:"00",timer:null,seconds:0}},computed:{itemStyle:function(){var t={};return this.height&&(t.height=this.height+"rpx",t.width=this.height+"rpx"),this.showBorder&&(t.borderStyle="solid",t.borderColor=this.borderColor,t.borderWidth="1px"),this.bgColor&&(t.backgroundColor=this.bgColor),t},letterStyle:function(){var t={};return this.fontSize&&(t.fontSize=this.fontSize+"rpx"),this.color&&(t.color=this.color),t}},mounted:function(){this.autoplay&&this.timestamp&&this.start()},methods:{start:function(){var t=this;this.clearTimer(),this.timestamp<=0||(this.seconds=Number(this.timestamp),this.formatTime(this.seconds),this.timer=setInterval((function(){if(t.seconds--,t.$emit("change",t.seconds),t.seconds<0)return t.end();t.formatTime(t.seconds)}),1e3))},formatTime:function(t){t<=0&&this.end();var e,o=0,n=0,a=0;o=Math.floor(t/86400),e=Math.floor(t/3600)-24*o;var i=null;i=this.showDays?e:Math.floor(t/3600),n=Math.floor(t/60)-60*e-24*o*60,a=Math.floor(t)-24*o*60*60-60*e*60-60*n,i=i<10?"0"+i:i,n=n<10?"0"+n:n,a=a<10?"0"+a:a,o=o<10?"0"+o:o,this.d=o,this.h=i,this.i=n,this.s=a},end:function(){this.clearTimer(),this.$emit("end",{})},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}};e.default=n},dd9e:function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("aa9c"),o("5ef2");var a=n(o("2634")),i=n(o("b7c7")),r=n(o("9b1b")),s=n(o("2fdc")),d={data:function(){return{loadmoreStatus:"loadmore",list:[],current:0,page:{pageNo:1,pageSize:10}}},onLoad:function(){this.getList()},methods:{getList:function(t,e){var o=this;return(0,s.default)((0,a.default)().mark((function n(){var s,d,u,c,l,f;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t&&(d=o.$options.data(),u=d.list,c=d.page,l=d.loadmoreStatus,o.list=u,o.page=c,o.loadmoreStatus=l),"nomore"!=o.loadmoreStatus){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,o.$allrequest.pt.getPtSquare((0,r.default)({},o.page));case 5:f=n.sent,o.page.pageNo++,(s=o.list).push.apply(s,(0,i.default)(f.data.list)),o.loadmoreStatus=o.list.length>=f.data.totalCount?"nomore":"loadmore",e&&e();case 10:case"end":return n.stop()}}),n)})))()},tabsChange:function(t){this.current=t}},onPullDownRefresh:function(){this.getList(!0,(function(){uni.stopPullDownRefresh()}))},filters:{priceBeforeZero:function(t){return t.indexOf(".")<0?"".concat(t,"."):t.substr(0,t.indexOf("."))},priceAfterZero:function(t){return t.indexOf(".")<0?"00":t.substr(t.indexOf("."),t.length)}}};e.default=d},f40b:function(t,e,o){var n=o("bcfb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=o("967d").default;a("77a96c17",n,!0,{sourceMap:!1,shadowMode:!1})}}]);