bztang-admin/addons/yun_shop/static/app/js/chunk-4c4ab9dc.d1fa658b.js

1 line
6.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c4ab9dc"],{1946:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page"},[i("c-title",{attrs:{hide:!1,text:"限时优惠"}}),i("div",{staticClass:"listData"},[i("d-list",{attrs:{finished:!t.isLoadMore,loading:t.loading,showStatusText:!1},on:{load:t.getMoreData}},t._l(t.listData,(function(e){return i("div",{key:e.id,staticClass:"goods"},[i("div",{staticClass:"face"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"container"},[i("div",{staticClass:"goods-name"},[t._v(t._s(e.title))]),i("div",{staticClass:"time"},[t._v(" 活动仅剩 "),i("van-count-down",{staticClass:"bottom_time",attrs:{time:t.fun.getTimeDifference(e.end_time),format:"DD天HH时mm分ss秒"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.days<10?"0"+e.days:e.days))]),i("b",[t._v(t._s(t.$i18n.t("天")))]),t._v(" "),i("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.hours<10?"0"+e.hours:e.hours))]),i("b",[t._v("时")]),t._v(" "),i("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.minutes<10?"0"+e.minutes:e.minutes))]),i("b",[t._v("分")]),i("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[t._v(t._s(e.seconds<10?"0"+e.seconds:e.seconds))])]}}],null,!0)})],1),i("div",{staticClass:"desc"},[i("div",{staticClass:"prices"},[i("div",{staticClass:"present_price"},[t._v("¥"+t._s(e.price))]),1*e.market_price>1*e.price?i("div",{staticClass:"marke_price"},[t._v("¥"+t._s(e.market_price))]):t._e()]),i("div",{staticClass:"btn",on:{click:function(i){return t.gotoTimeGood(e)}}},[t._v("立即抢")])])])])})),0)],1)],1)},s=[],o=(i("99af"),i("94b4")),n={data:function(){return{loading:!1,listData:[],page:1,isLoadMore:!0,total_page:0}},components:{DList:o["a"]},created:function(){this.getList()},methods:{gotoTimeGood:function(t){this.$router.push(this.fun.getUrl("goods",{id:t.id}))},getList:function(){var t=this;$http.get("goods.goods.get-limit-buy-goods",{page_size:10},"加载中").then((function(e){if(1!=e.result)return t.$toast(e.msg);t.listData=e.data.data,t.total_page=e.data.last_page,t.total_page<=0&&(t.total_page=1),t.total_page<=t.page&&(t.loading=!0,t.isLoadMore=!1)}))},getMoreData:function(){var t=this;if(!0!==this.loading&&!1!==this.isLoadMore)if(this.loading=!0,this.page>=this.total_page)this.isLoadMore=!1;else{this.page+=1;var e={page:this.page,page_size:10};$http.get("goods.goods.get-limit-buy-goods",e,"...").then((function(e){if(t.loading=!1,1==e.result){var i=e.data.data;t.listData=t.listData.concat(i)}else t.page=t.page-1})).catch((function(t){}))}}}},l=n,d=(i("49fd"),i("2877")),r=Object(d["a"])(l,a,s,!1,null,"f43171b8",null);e["default"]=r.exports},"49fd":function(t,e,i){"use strict";i("647b")},"647b":function(t,e,i){var a=i("77e2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("6c01985a",a,!0,{sourceMap:!1,shadowMode:!1})},"77e2":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".listData[data-v-f43171b8]{padding:.3rem .938rem;background:#fff}.listData .goods[data-v-f43171b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.78rem 0;text-align:left}.listData .goods .face[data-v-f43171b8]{background-color:#9d9d9d}.listData .goods .face[data-v-f43171b8],.listData .goods .face img[data-v-f43171b8]{width:5.938rem;height:5.938rem;border-radius:.313rem}.listData .goods .container[data-v-f43171b8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-left:.625rem}.listData .goods .container .goods-name[data-v-f43171b8]{font-size:14px;font-weight:700;color:#2c2c2c;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.listData .goods .container .time[data-v-f43171b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:12px;color:#333}.listData .goods .container .time .bottom_time[data-v-f43171b8]{margin-left:.2rem}.listData .goods .container .time .bottom_time em[data-v-f43171b8]{margin-left:.206rem;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:.938rem;height:.938rem;padding:0 .25rem;color:#fff;font-size:11px;background-color:#fe5e56;border-radius:.063rem}.listData .goods .container .time .bottom_time b[data-v-f43171b8]{margin-left:.206rem;color:#333;font-size:12px;font-weight:400}.listData .goods .container .desc[data-v-f43171b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.listData .goods .container .desc .prices[data-v-f43171b8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.listData .goods .container .desc .prices .present_price[data-v-f43171b8]{font-size:14px;color:#fe5e56}.listData .goods .container .desc .prices .marke_price[data-v-f43171b8]{font-size:11px;color:#565656;text-decoration:line-through}.listData .goods .container .desc .btn[data-v-f43171b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:4.063rem;height:1.688rem;font-size:12px;color:#fff;background-color:#fe5e56;border-radius:.844rem}",""]),t.exports=e}}]);