(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/integral/index"],{348:function(t,n,e){"use strict";(function(t){e(5);o(e(4));var n=o(e(349));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e(1)["createPage"])},349:function(t,n,e){"use strict";e.r(n);var o=e(350),r=e(352);for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e(354);var a,c=e(11),u=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"10fc0cd4",null,!1,o["components"],a);u.options.__file="my/integral/index.vue",n["default"]=u.exports},350:function(t,n,e){"use strict";e.r(n);var o=e(351);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},351:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return i})),e.d(n,"components",(function(){return o}));try{o={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,508))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var t=this,n=t.$createElement;t._self._c},i=!1,a=[];r._withStripped=!0},352:function(t,n,e){"use strict";e.r(n);var o=e(353),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},353:function(t,n,e){"use strict";(function(t){function e(t){return a(t)||i(t)||r(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,n){if(t){if("string"===typeof t)return c(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,n):void 0}}function i(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function a(t){if(Array.isArray(t))return c(t)}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={data:function(){return{btnnum:0,page:1,limit:10,dataList:[],integralNum:0}},onLoad:function(){this.getIntegral(),this.getData()},methods:{exchange:function(n){var e=this;t.showModal({title:"提示",content:"确定兑换"+n.couponName+"吗?",success:function(o){o.confirm?(console.log("用户点击确定"),e.$Request.post("/app/coupon/buyCoupon",{couponId:n.couponId}).then((function(n){0==n.code?(t.showToast({title:"兑换成功"}),e.getIntegral()):t.showToast({title:n.msg,icon:"none"})}))):o.cancel&&console.log("用户点击取消")}})},goDet:function(n){t.navigateTo({url:"/my/integral/integralDet?classify="+n})},change:function(t){this.btnnum=t,console.log(this.btnnum)},getIntegral:function(){var t=this;this.$Request.get("/app/userintegral/selectUserIntegral").then((function(n){0==n.code&&(t.integralNum=n.data.integralNum)}))},getData:function(){var t=this,n={page:this.page,limit:this.limit,shopId:0};this.$Request.get("/app/coupon/selectCouponList",n).then((function(n){0==n.code&&(1==t.page?t.dataList=n.data.list:t.dataList=[].concat(e(t.dataList),e(n.data.list)))}))}},onReachBottom:function(){this.page=this.page+1,this.getData()}};n.default=u}).call(this,e(1)["default"])},354:function(t,n,e){"use strict";e.r(n);var o=e(355),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},355:function(t,n,e){}},[[348,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/integral/index.js.map