You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
15 KiB
1 line
15 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-qianggou-productDetails"],{"0402":function(t,e,r){var n=r("23e7"),i=r("da84"),o=r("2cf4").set;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==o},{setImmediate:o})},"130f":function(t,e,r){r("e20c"),r("0402")},"21bf":function(t,e,r){var n=r("ec62");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("4f06").default;i("2d7ff1ba",n,!0,{sourceMap:!1,shadowMode:!1})},2698:function(t,e,r){"use strict";r.r(e);var n=r("6a4f"),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},2861:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uParse:r("8104").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"page",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isMore=!1}}},[r("v-uni-view",{staticClass:"banner-title"},[r("v-uni-view",{staticClass:"banner"},[r("v-uni-swiper",{staticClass:"screen-swiper round-dot",attrs:{"indicator-dots":"true",circular:"true",autoplay:"true",interval:"5000",duration:"500"}},t._l(t.swiperList,(function(t,e){return r("v-uni-swiper-item",{key:e},[r("v-uni-image",{attrs:{src:t.url,mode:"aspectFill"}})],1)})),1)],1),r("v-uni-view",{staticClass:"price-info"},[r("v-uni-view",{staticClass:"price"},[r("v-uni-text",{staticClass:"min"},[t._v("¥")]),r("v-uni-text",{staticClass:"max"},[t._v(t._s(t.detailsObj.price))])],1),r("v-uni-view",{staticClass:"person"},[t._v("藏品归属人:"+t._s(t.detailsObj.owner?t.detailsObj.owner.nickname:"-"))])],1)],1),r("v-uni-view",{staticClass:"goods-title"},[r("v-uni-text",[t._v(t._s(t.detailsObj.name))])],1),r("v-uni-view",{ref:"products",staticClass:"products-introduction",staticStyle:{"text-align":"center"}},[r("v-uni-view",{staticClass:"title"},[r("v-uni-text",[t._v("图文详情")])],1),r("v-uni-view",{staticClass:"parseContent"},[r("u-parse",{attrs:{content:t.detailsObj.content}})],1)],1),t.isDeadLine?r("v-uni-view",{staticClass:"page-footer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buyHandle.apply(void 0,arguments)}}},[t._v("立即抢购")]):t._e(),t.isDeadLine?t._e():r("v-uni-view",{staticClass:"page-footer"},[t._v("还剩"+t._s(t.finalSecondNum)+"抢购")])],1)},o=[]},2966:function(t,e,r){"use strict";var n=r("21bf"),i=r.n(n);i.a},"6a4f":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("130f"),r("e25e"),r("14d9");var n=r("78d1"),i={data:function(){return{swiperList:[],detailsObj:{content:"",createtime:null,goods_form:null,goods_type:null,id:null,image:null,name:null,off_time:null,on_time:null,owner_id:null,price:null,status:null,updatetime:null,warehouse_id:null},secondNum:"",isDeadLine:!0,finalSecondNum:"",timer:null}},onLoad:function(t){this.getDetailsHandle(t.id)},beforeDestroy:function(){clearImmediate(this.timer),this.timer=null},watch:{secondNum:function(t){t<=0&&(clearImmediate(this.timer),this.timer=null,this.isDeadLine=!0)}},methods:{dateDifference:function(t){var e=Date.parse(new Date);return e/=1e3,t=parseInt(t/1e3),t-e},formatSeconds:function(t){var e=parseInt(t),r=0,n=0;e>60&&(r=parseInt(e/60),e=parseInt(e%60),r>60&&(n=parseInt(r/60),r=parseInt(r%60)));var i=parseInt(e)+"秒";return i=r>0?parseInt(r)+"分"+i:"00时00分"+i,i=n>0?parseInt(n)+"时"+i:"00时"+i,i},timestampToTime:function(t){var e=new Date,r=e.getFullYear()+"-",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",i=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",a=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t?r+n+i+o+a+s:r+n+i},getDetailsHandle:function(t){var e=this;(0,n.getgoodsDetail)({id:t,custom:{auth:!0}}).then((function(t){e.swiperList.push({url:t.data.image});var r=t.data.warehouse.start,n=e.timestampToTime()+r+":00",i=e.dateDifference(ne
|