You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.0 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabBar/myHome/reservation/reservation"],{"24e4":function(e,t,o){"use strict";o.r(t);var r=o("fefd"),n=o("3472");for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("a594");var a,s=o("f0c5"),c=Object(s["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=c.exports},3472:function(e,t,o){"use strict";o.r(t);var r=o("70f2"),n=o.n(r);for(var i in r)"default"!==i&&function(e){o.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},"3aad":function(e,t,o){},"70f2":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{reservationForm:{},cardStoreProjectList:[],pageInfo2:{total:0,experiencelist:[]},pageInfo3:{total:0,allStoreProjectList:[]},pageInfo4:{total:0,subscribeList:[]},userInfo:null,dotStyle:!1,cardCur:1,TabCur:1,swiperList:[{id:1,type:"image",url:"../../../../static/image/title.png"}]}},methods:{cardSwiper:function(e){this.cardCur=e.detail.current},tabSelect:function(e){this.TabCur=1*e.currentTarget.dataset.id,this.projectPage()},setTitle:function(){},projectPage:function(){var e=this,t={storeId:this.userInfo.storeId,pageNum:1,pageSize:100,directConsumption:1,state:1},o={storeId:e.userInfo.storeId,memberId:e.userInfo.id},r={storeId:e.userInfo.storeId,pageNum:1,pageSize:100,state:1,type:1};1==this.TabCur&&e.$api.couAccountlist(o).then((function(t){"000000"==t.code&&(t.rows.forEach((function(e){e.projectName=e.courseProjectName,e.priceMember=e.courseProjectMoney})),e.cardStoreProjectList=t.rows)})),2==this.TabCur&&e.$api.projectPage(r).then((function(t){"000000"==t.code&&(t.pageInfo.experiencelist=t.pageInfo.list,e.pageInfo2=t.pageInfo)})),3==this.TabCur&&e.$api.projectPage(t).then((function(t){"000000"==t.code&&(t.pageInfo.allStoreProjectList=t.pageInfo.list,e.pageInfo3=t.pageInfo)})),4==this.TabCur&&this.orderPage()},ondel:function(t,o){var r=this,n={id:t.id};this.$api.deleteOrder(n).then((function(t){"000000"==t.code?r.orderPage():"510002"==t.code||"502001"==t.code||e.showModal({title:"提示",content:t.message,showCancel:!1,success:function(e){}})}))},orderPage:function(){var t=this,o={memberId:this.userInfo.id,storeId:this.userInfo.storeId,pageNum:1,pageSize:50};this.$api.orderPage(o).then((function(o){"000000"==o.code?(o.pageInfo.list.forEach((function(e){e.editOrder=!0})),o.pageInfo.subscribeList=o.pageInfo.list,t.pageInfo4=o.pageInfo):"510002"==o.code||"502001"==o.code||e.showModal({title:"提示",content:o.message,showCancel:!1,success:function(e){}})}))}},onLoad:function(e){if(void 0!=e.item){var t=JSON.parse(e.item);this.reservationForm=t}},onShow:function(){this.userInfo=e.getStorageSync("userInfo"),this.projectPage(),this.swiperList.reverse()},onPullDownRefresh:function(){setTimeout((function(){e.redirectTo({url:"./reservation"}),e.showToast({title:"刷新成功",icon:"success",duration:2e3}),e.stopPullDownRefresh()}),1e3)}};t.default=o}).call(this,o("543d")["default"])},"8e30":function(e,t,o){"use strict";(function(e){o("32df");r(o("66fd"));var t=r(o("24e4"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=o,e(t.default)}).call(this,o("543d")["createPage"])},a594:function(e,t,o){"use strict";var r=o("3aad"),n=o.n(r);n.a},fefd:function(e,t,o){"use strict";var r;o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return r}));var n=function(){var e=this,t=e.$createElement,o=(e._self._c,e.__map(e.cardStoreProjectList,(function(t,o){var r=e.__get_orig(t),n=JSON.stringify(t);return{$orig:r,g0:n}}))),r=e.__map(e.pageInfo2.experiencelist,(function(t,o){var r=e.__get_orig(t),n=JSON.stringify(t);return{$orig:r,g1:n}})),n=e.__map(e.pageInfo3.allStoreProjectList,(function(t,o){var r=e.__get_orig(t),n=JSON.stringify(t);return{$orig:r,g2:n}})),i=e.__map(e.pageInfo4.subscribeList,(function(t,o){var r=e.__get_orig(t),n=JSON.stringify(t);return{$orig:r,g3:n}}));e.$mp.data=Object.assign({},{$root:{l0:o,l1:r,l2:n,l3:i}})},i=[]}},[["8e30","common/runtime","common/vendor"]]]);