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 lines
3.4 KiB
1 lines
3.4 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/coupon-details/coupon-details"],{"31a2":function(t,e,o){"use strict";o.r(e);var n=o("856c"),a=o.n(n);for(var i in n)"default"!==i&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},7342:function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,o=(t._self._c,t.oneTime?t._f("formatDate")(t.oneTime,"-"):null),n=t.twoTime?t._f("formatDate")(t.twoTime,"-"):null,a=t.threeTime?t._f("formatDate")(t.threeTime,"-"):null;t.$mp.data=Object.assign({},{$root:{f0:o,f1:n,f2:a}})},i=[]},"76b9":function(t,e,o){"use strict";o.r(e);var n=o("7342"),a=o("31a2");for(var i in a)"default"!==i&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("e879");var u,r=o("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);e["default"]=c.exports},"856c":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("524d"),a=getApp(),i={data:function(){return{couDesId:"",imageUrl:a.globalData.imgUrl,couponDesInfo:[],storeList:[],oneTime:"",twoTime:"",threeTime:"",pageNum:1,pageSize:10,isNoMoreData:!1,loadingText:""}},onLoad:function(t){this.couDesId=t.id,this.getUserCouponDetail(),this.getStoreListByCoupon()},filters:{formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",o=new Date(t),n=o.getFullYear(),a=o.getMonth()+1,i=o.getDate(),u=o.getHours(),r=o.getMinutes(),c=o.getSeconds();return a=a>10?a:"0"+a,i=i>10?i:"0"+i,u=u>10?u:"0"+u,r=r>10?r:"0"+r,c=c>10?c:"0"+c,"".concat(n).concat(e).concat(a).concat(e).concat(i," ").concat(u,":").concat(r,":").concat(c)}},onReachBottom:function(){this.getStoreListByCoupon()},methods:{getUserCouponDetail:function(){var e=this;t.showLoading({title:"加载中..."}),t.showLoading({});var o={couponId:this.couDesId};(0,n.getUserCouponDetail)(o).then((function(o){"000000"==o.return_code?(e.couponDesInfo=o.return_data,e.oneTime=o.return_data.couponCodeInfo.receiveTime,e.twoTime=o.return_data.couponCodeInfo.salesEndTime,e.threeTime=o.return_data.couponCodeInfo.consumeTime,t.hideLoading()):t.hideLoading()}))},seeloaction:function(e){t.openLocation({latitude:Number(e.latitude),longitude:Number(e.longitude),name:e.storeName,address:e.address})},getStoreListByCoupon:function(){var e=this;if(t.showLoading({title:"加载中..."}),this.isNoMoreData)return t.hideLoading(),this.loadingText="到底了",!1;var o=this.pageNum,a={pageNum:o,couponId:this.couDesId,pageSize:this.pageSize};(0,n.getStoreListByCoupon)(a).then((function(n){"000000"==n.return_code&&""!=n.return_data.list?(t.hideLoading(),e.isNoMoreData=n.return_data.list.length!=e.pageSize,e.pageNum=n.return_data.list.length==e.pageSize?++o:o,e.storeList=e.storeList.concat(n.return_data.list)):(e.storeList=[],t.hideLoading())}))},scan:function(){t.scanCode({success:function(t){console.log("条码类型:"+t.scanType),console.log("条码内容:"+t.result)}})}}};e.default=i}).call(this,o("543d")["default"])},bc39:function(t,e,o){"use strict";(function(t){o("185d");n(o("66fd"));var e=n(o("76b9"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,o("543d")["createPage"])},cc65:function(t,e,o){},e879:function(t,e,o){"use strict";var n=o("cc65"),a=o.n(n);a.a}},[["bc39","common/runtime","common/vendor"]]]); |