(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shop-gift-record/shop-gift-record"],{"15c9":function(t,n,e){"use strict";e.r(n);var a=e("16c5"),c=e("4d0f");for(var i in c)"default"!==i&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("c793"),e("3426");var o,r=e("f0c5"),u=Object(r["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);n["default"]=u.exports},"16c5":function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return a}));var c=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n,e,a){var c=arguments[arguments.length-1].currentTarget.dataset,i=c.eventParams||c["event-params"];e=i.item,a=i.idx;0==e.type&&t.cancelExchange(e.id,a,e.gift.integral,e.num)},t.e1=function(n){t.hintShow=!1})},i=[]},"238a":function(t,n,e){"use strict";(function(t){e("fdf4");a(e("66fd"));var n=a(e("15c9"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},3426:function(t,n,e){"use strict";var a=e("3700"),c=e.n(a);c.a},3700:function(t,n,e){},"4d0f":function(t,n,e){"use strict";e.r(n);var a=e("e065"),c=e.n(a);for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=c.a},6482:function(t,n,e){},c793:function(t,n,e){"use strict";var a=e("6482"),c=e.n(a);c.a},e065:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("057a"),c={data:function(){return{params:{page_index:1,page_size:10},totalPage:0,recordList:[],hintShow:!1,hintCon:"",cancelId:"",cancelIdx:""}},onShow:function(){this.getRecored()},onReachBottom:function(){this.getMore()},methods:{cancelExchange:function(t,n,e,a){this.hintShow=!0,this.hintCon="您确定取消本次兑换订单吗？取消之后会退还给您".concat(e*a,"积分"),this.cancelId=t,this.cancelIdx=n},cancel:function(){var n=this;this.hintShow=!1,t.showLoading({title:"取消中..."}),(0,a.cancelExchange)({id:this.cancelId}).then((function(e){200==e.code?(n.recordList[n.cancelIdx].type=1,t.showToast({title:"取消成功",duration:2e3})):t.showModal({content:e.data||"取消兑换失败",showCancel:!1}),t.hideLoading()})).catch((function(n){t.hideLoading()}))},getRecored:function(n){var e=this,c=this.params;t.showLoading({title:"加载中..."}),(0,a.myExchange)(c).then((function(a){if(200==a.code){var c=a.data,i=c.list,o=c.total;e.totalPage=Math.ceil(o/e.params.page_size),e.recordList=n?e.recordList.concat(i):i}else t.showModal({content:a.data||"获取记录失败",showCancel:!1});t.hideLoading()})).catch((function(n){t.hideLoading()}))},getMore:function(){if(this.params.page_index>=this.totalPage)return t.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getRecored(!0)}}};n.default=c}).call(this,e("543d")["default"])}},[["238a","common/runtime","common/vendor"]]]);