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"],{1843:function(e,t,o){"use strict";(function(e){o("e5b1");n(o("66fd"));var t=n(o("b5cb"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},ac22: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=[]},b5cb:function(e,t,o){"use strict";o.r(t);var n=o("ac22"),a=o("eee2");for(var i in a)"default"!==i&&function(e){o.d(t,e,(function(){return a[e]}))}(i);o("e13c");var u,c=o("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);t["default"]=r.exports},e13c:function(e,t,o){"use strict";var n=o("fcae"),a=o.n(n);a.a},e33c:function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("53e0"),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(),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(t).concat(a).concat(t).concat(i," ").concat(u,":").concat(c,":").concat(r)}},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())}))},scan:function(){e.scanCode({success:function(e){console.log("条码类型:"+e.scanType),console.log("条码内容:"+e.result)}})}}};t.default=i}).call(this,o("543d")["default"])},eee2:function(e,t,o){"use strict";o.r(t);var n=o("e33c"),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},fcae:function(e,t,o){}},[["1843","common/runtime","common/vendor"]]]); |