(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/store/huodong"],{380:function(t,n,e){"use strict";(function(t){e(5);o(e(4));var n=o(e(381));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"])},381:function(t,n,e){"use strict";e.r(n);var o=e(382),i=e(384);for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e(386);var a,u=e(11),c=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);c.options.__file="my/store/huodong.vue",n["default"]=c.exports},382:function(t,n,e){"use strict";e.r(n);var o=e(383);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"]}))},383:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));try{o={uLoadmore:function(){return e.e("uview-ui/components/u-loadmore/u-loadmore").then(e.bind(null,598))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.huodongList,(function(n,e){var o=t.__get_orig(n),i="是"!=n.no?n.activityImage.split(","):null;return{$orig:o,g0:i}})));t._isMounted||(t.e0=function(n,e){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];e=i.item;"是"!=e.se&&t.gotoinfo(e.activityId)}),t.$mp.data=Object.assign({},{$root:{l0:e}})},r=!1,a=[];i._withStripped=!0},384:function(t,n,e){"use strict";e.r(n);var o=e(385),i=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},385:function(t,n,e){"use strict";(function(t){function e(t){return a(t)||r(t)||i(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 i(t,n){if(t){if("string"===typeof t)return u(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)?u(t,n):void 0}}function r(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function a(t){if(Array.isArray(t))return u(t)}function u(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 c={data:function(){return{myhd:[],page:1,limit:10,huodongList:[],total:1,status:"loadmore",iconType:"flower",activityId:"",loadText:{loadmore:"上拉加载更多",loading:"努力加载中",nomore:"实在没有了"}}},onLoad:function(){this.getMyHuoDong(),this.getHuoDongList()},onShow:function(){this.getMyHuoDong(),this.getHuoDongList()},onReachBottom:function(){this.page<this.total&&(this.page+=1,this.status="loading",this.getHuoDongList())},onPullDownRefresh:function(){this.page=1,this.getHuoDongList(),this.getMyHuoDong()},methods:{joinHd:function(n){var e=this,o={activityId:n,shopId:t.getStorageSync("shopId")};this.$Request.get("/app/activityManage/shopJoinActivity",o).then((function(n){0==n.code?t.showModal({title:"提示",content:"加入该活动将自动退出当前活动,确定加入该活动？",complete:function(n){n.confirm&&(t.showToast({title:"加入成功"}),e.getMyHuoDong(),e.getHuoDongList())}}):t.showToast({title:n.msg,icon:"none"})}))},gotoinfo:function(n){t.navigateTo({url:"./hdInfo?activityId="+n})},getMyHuoDong:function(){var n=this,e={shopId:t.getStorageSync("shopId")};this.$Request.get("/app/goods/getShopActivity",e).then((function(t){0==t.code&&(n.activityId=t.data.activityId,n.myhd=t.data.activityImage.split(","))}))},getHuoDongList:function(){var n=this,o={page:this.page,limit:this.limit};this.$Request.getT("/app/activityManage/getActivityList",o).then((function(o){t.stopPullDownRefresh(),0==o.code&&(o.data.records.map((function(t){14==t.activityId&&(t.no="是"),t.activityId==n.activityId?t.se="是":t.se="否"})),n.total=o.data.pages,1==n.page?n.huodongList=o.data.records:n.huodongList=[].concat(e(n.huodongList),e(o.data.records)),n.page==n.total?n.status="nomore":n.status="loadmore")}))}}};n.default=c}).call(this,e(1)["default"])},386:function(t,n,e){"use strict";e.r(n);var o=e(387),i=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},387:function(t,n,e){}},[[380,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/store/huodong.js.map