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.1 KiB
1 lines
3.1 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/coupon-details/coupon-details"],{"22ef":function(t,e,o){"use strict";var n=o("3734"),a=o.n(n);a.a},"285c":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.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(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(),c=o.getMinutes(),r=o.getSeconds();return a=a>10?a:"0"+a,i=i>10?i:"0"+i,u=u>10?u:"0"+u,c=c>10?c:"0"+c,r=r>10?r:"0"+r,"".concat(n).concat(e).concat(a).concat(e).concat(i," ").concat(u,":").concat(c,":").concat(r)}},onReachBottom:function(){this.getStoreListByCoupon()},methods:{getUserCouponDetail:function(){var e=this;t.showLoading({title:"加载中..."});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;t.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?(t.hideLoading(),e.storeList=o.return_data):(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"])},3734:function(t,e,o){},"478b":function(t,e,o){"use strict";(function(t){o("eba6");n(o("66fd"));var e=n(o("6697"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,o("543d")["createPage"])},6697:function(t,e,o){"use strict";o.r(e);var n=o("9c79"),a=o("9e78");for(var i in a)"default"!==i&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("22ef");var u,c=o("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);e["default"]=r.exports},"9c79":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=[]},"9e78":function(t,e,o){"use strict";o.r(e);var n=o("285c"),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}},[["478b","common/runtime","common/vendor"]]]); |