You can not 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
3.6 KiB
1 line
3.6 KiB
5 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/choose-time"],{"18ab":function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7043");r(n("3240"));var a=r(n("c156"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"4ad0":function(e,t,n){"use strict";n.r(t);var r=n("836d"),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},"7e23":function(e,t,n){"use strict";var r=n("8b07"),a=n.n(r);a.a},"836d":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("7eb4")),o=r(n("ee10")),c=n("8f59"),i={data:function(){return{options:{},storeDay:[],storeTime:[],loading:!1,scrollNav:"scrollNav1",scrollInd:0,checkInd:-1}},computed:(0,c.mapState)({commonOptions:function(e){return e.user.commonOptions},primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor}}),onLoad:function(e){var t=this;return(0,o.default)(a.default.mark((function n(){var r,o,c;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.index,o=void 0===r?-1:r,o&&o.includes("_")&&(c=o.split("_"),t.scrollInd=c[0],t.checkInd=c[1]),t.options=e,t.$util.showLoading(),n.next=6,t.getStoreDay();case 6:t.$util.setNavigationBarColor({bg:t.primaryColor});case 7:case"end":return n.stop()}}),n)})))()},methods:{getStoreDay:function(){var e=this;return(0,o.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.order.dayText();case 2:return e.storeDay=t.sent,t.next=5,e.getStoreTime();case 5:e.loading=!1,e.$util.hideAll();case 7:case"end":return t.stop()}}),t)})))()},getStoreTime:function(){var e=this;return(0,o.default)(a.default.mark((function t(){var n,r,o;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.options.id,r=e.scrollInd,!(r<0)){t.next=4;break}return t.abrupt("return");case 4:return o=e.storeDay[r].dat_str,t.next=7,e.$api.order.timeText({coach_id:n,day:o});case 7:e.storeTime=t.sent,e.loading=!1,e.$util.hideAll();case 10:case"end":return t.stop()}}),t)})))()},onChangeNav:function(e){var t=arguments,n=this;return(0,o.default)(a.default.mark((function r(){var o,c,i,u,s;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:1,c=1==o?"storeDay":"storeTime",1!=o){r.next=10;break}return n.checkInd=n.scrollInd==e?n.checkInd:-1,n.scrollInd=e,n.scrollNav="scrollNav".concat(e),r.next=8,n.getStoreTime();case 8:r.next=19;break;case 10:if(i=n[c][e].status,1==i){r.next=13;break}return r.abrupt("return");case 13:n.checkInd=e,u=n[c][e],u.time="".concat(n.storeDay[n.scrollInd].dat_text," ").concat(u.time_text),s={time_index:"".concat(n.scrollInd,"_").concat(e),time:u},n.$util.getPage(-1).send_info=s,n.$util.goUrl({url:1,openType:"navigateBack"});case 19:case"end":return r.stop()}}),r)})))()}}};t.default=i},"8b07":function(e,t,n){},a636:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=(this._self._c,!this.loading&&this.storeTime.length<=0);this.$mp.data=Object.assign({},{$root:{g0:t}})},a=[]},c156:function(e,t,n){"use strict";n.r(t);var r=n("a636"),a=n("4ad0");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("7e23");var c=n("828b"),i=Object(c["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=i.exports}},[["18ab","common/runtime","common/vendor"]]]);
|