(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["promotionpages/point/order_list/order_list"],{"24b9":function(e,t,n){"use strict";(function(e){n("6b76");o(n("66fd"));var t=o(n("d091"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"28fc":function(e,t,n){"use strict";var o={nsEmpty:function(){return n.e("components/ns-empty/ns-empty").then(n.bind(null,"211f"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"cd2f"))},nsShowToast:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-show-toast/ns-show-toast")]).then(n.bind(null,"f505"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$util.img("upload/uniapp/point/coupon.png")),o=e.$util.img("upload/uniapp/point/hongbao.png"),i=e.__map(e.orderList,(function(t,n){var o=e.$util.img(t.exchange_image),i=e.$util.img(t.exchange_image),r=e.$util.img(t.exchange_image),a=e.$util.img(t.exchange_image),s=e.$util.img(t.exchange_image);return{$orig:e.__get_orig(t),g0:o,g1:i,g3:r,g4:a,g6:s}})),r=e.$lang("emptyTips");e.$mp.data=Object.assign({},{$root:{g2:n,g5:o,l0:i,m0:r}})},r=[];n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}))},"311d":function(e,t,n){},"7e6a":function(e,t,n){"use strict";n.r(t);var o=n("aa4b"),i=n.n(o);for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},aa4b:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("4c22"));function i(e){return e&&e.__esModule?e:{default:e}}var r=function(){Promise.all([n.e("common/vendor"),n.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(n("f505"))}.bind(null,n)).catch(n.oe)},a={data:function(){return{orderList:[],showEmpty:!1}},components:{nsShowToast:r},onLoad:function(){},onShow:function(){this.$langConfig.refresh(),this.$refs.mescroll&&this.$refs.mescroll.refresh(),e.getStorageSync("token")||this.$util.redirectTo("/pages/login/login/login",{back:"/promotionpages/point/order_list/order_list"})},mixins:[o.default],methods:{getListData:function(e){var t=this;this.showEmpty=!1,this.$api.sendRequest({url:"/pointexchange/api/order/page",data:{page:e.num,page_size:e.size},success:function(n){t.showEmpty=!0;var o=[],i=n.message;0==n.code&&n.data?o=n.data.list:t.$util.showToast({title:i}),e.endSuccess(o.length),1==e.num&&(t.orderList=[]),t.orderList=t.orderList.concat(o),console.log(t.orderList),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(n){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},orderClose:function(t,n){var o=this;e.showModal({title:"提示",content:"确定关闭此次兑换？",success:function(e){e.confirm&&o.$api.sendRequest({url:"/pointexchange/api/order/close",data:{order_id:t},success:function(e){console.log(e),e.code>=0&&(o.orderList[n].order_status=-1,o.$util.showToast({title:"关闭成功"}),o.$forceUpdate())}})}})},orderPay:function(e){this.$util.redirectTo("/pages/pay/index/index",{code:e})},detail:function(e){this.$util.redirectTo("/pages/order/detail_point/detail_point",{order_id:e.order_id})},shopDetail:function(e){this.$util.redirectTo("/promotionpages/point/detail/detail",{id:e.exchange_id})},imageError:function(e){this.orderList[e].exchange_image=this.$util.getDefaultImage().default_goods_img,this.$forceUpdate()}}};t.default=a}).call(this,n("543d")["default"])},cd51:function(e,t,n){"use strict";var o=n("311d"),i=n.n(o);i.a},d091:function(e,t,n){"use strict";n.r(t);var o=n("28fc"),i=n("7e6a");for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("cd51");var a,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"3d5751f3",null,!1,o["a"],a);t["default"]=c.exports}},[["24b9","common/runtime","common/vendor"]]]);