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.7 KiB
1 lines
3.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/coupon-details/coupon-details"],{"22ef":function(e,t,o){"use strict";var n=o("3734"),a=o.n(n);a.a},"285c":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("b528"),a=getApp(),i={data:function(){return{couDesId:"",imageUrl:a.globalData.imgUrl,couponDesInfo:[],storeList:[],oneTime:"",twoTime:"",threeTime:""}},onLoad:function(e){this.couDesId=e.id,this.getUserCouponDetail(),this.getStoreListByCoupon()},filters:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",o=new Date(e),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(t).concat(a).concat(t).concat(i," ").concat(u,":").concat(r,":").concat(c)}},onReachBottom:function(){this.getStoreListByCoupon()},methods:{getUserCouponDetail:function(){var t=this;e.showLoading({title:"加载中..."});var o={couponId:this.couDesId};(0,n.getUserCouponDetail)(o).then((function(o){"000000"==o.return_code?(t.couponDesInfo=o.return_data,t.oneTime=o.return_data.couponCodeInfo.receiveTime,t.twoTime=o.return_data.couponCodeInfo.salesEndTime,t.threeTime=o.return_data.couponCodeInfo.consumeTime,e.hideLoading()):e.hideLoading()}))},seeloaction:function(t){e.openLocation({latitude:Number(t.latitude),longitude:Number(t.longitude),name:t.storeName,address:t.address})},getStoreListByCoupon:function(){var t=this;e.showLoading({title:"加载中..."});var o={couponId:this.couDesId,longitude:a.globalData.longitude,latitude:a.globalData.latitude};(0,n.getStoreListByCoupon)(o).then((function(o){"000000"==o.return_code&&""!=o.return_data.list?(e.hideLoading(),t.storeList=o.return_data):(t.storeList=[],e.hideLoading())}))},againReceiveCoupon:function(){var t=this;e.showLoading({title:"领取中..."});var o={couponId:this.couponDesInfo.couponInfo.id};(0,n.againReceiveCoupon)(o).then((function(o){"000000"==o.return_code?(e.hideLoading(),e.showToast({icon:"none",title:"领取成功",duration:2e3}),t.couponDesInfo=o.return_data,t.oneTime=o.return_data.couponCodeInfo.receiveTime,t.twoTime=o.return_data.couponCodeInfo.salesEndTime,t.threeTime=o.return_data.couponCodeInfo.consumeTime):(e.hideLoading(),e.showToast({icon:"none",title:o.return_msg,duration:2e3}))}))},scan:function(){e.scanCode({success:function(e){console.log("条码类型:"+e.scanType),console.log("条码内容:"+e.result)}})}}};t.default=i}).call(this,o("543d")["default"])},3734:function(e,t,o){},"478b":function(e,t,o){"use strict";(function(e){o("eba6");n(o("66fd"));var t=n(o("6697"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},6697:function(e,t,o){"use strict";o.r(t);var n=o("b48d"),a=o("9e78");for(var i in a)"default"!==i&&function(e){o.d(t,e,(function(){return a[e]}))}(i);o("22ef");var u,r=o("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);t["default"]=c.exports},"9e78":function(e,t,o){"use strict";o.r(t);var n=o("285c"),a=o.n(n);for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},b48d:function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,o=(e._self._c,e.oneTime?e._f("formatDate")(e.oneTime,"-"):null),n=e.twoTime?e._f("formatDate")(e.twoTime,"-"):null,a=e.threeTime?e._f("formatDate")(e.threeTime,"-"):null;e.$mp.data=Object.assign({},{$root:{f0:o,f1:n,f2:a}})},i=[]}},[["478b","common/runtime","common/vendor"]]]); |