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.
 
 
 
 
high-mini/unpackage/dist/build/mp-weixin/pages/pay/success/success.js

1 lines
3.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/pay/success/success"],{"4c1f":function(t,e,o){"use strict";var n=o("9b134"),a=o.n(n);a.a},"51fb":function(t,e,o){"use strict";o.r(e);var n=o("e32e"),a=o("ffb3");for(var u in a)"default"!==u&&function(t){o.d(e,t,(function(){return a[t]}))}(u);o("4c1f");var i,r=o("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],i);e["default"]=c.exports},9867:function(t,e,o){"use strict";(function(t){o("eba6");n(o("66fd"));var e=n(o("51fb"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,o("543d")["createPage"])},"9b134":function(t,e,o){},beb1:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("b528"),a=getApp(),u={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,u=o.getDate(),i=o.getHours(),r=o.getMinutes(),c=o.getSeconds();return a=a>10?a:"0"+a,u=u>10?u:"0"+u,i=i>10?i:"0"+i,r=r>10?r:"0"+r,c=c>10?c:"0"+c,"".concat(n).concat(e).concat(a).concat(e).concat(u," ").concat(i,":").concat(r,":").concat(c)}},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())}))},toUser:function(){t.switchTab({url:"/pages/tabBar/user/user"})},scan:function(){t.scanCode({success:function(t){console.log("条码类型:"+t.scanType),console.log("条码内容:"+t.result)}})}}};e.default=u}).call(this,o("543d")["default"])},e32e:function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return u})),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}})},u=[]},ffb3:function(t,e,o){"use strict";o.r(e);var n=o("beb1"),a=o.n(n);for(var u in n)"default"!==u&&function(t){o.d(e,t,(function(){return n[t]}))}(u);e["default"]=a.a}},[["9867","common/runtime","common/vendor"]]]);