BookingSet.53e2c4f1.js 7.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["BookingSet"],{"1bd0":function(t,e,n){"use strict";var a=n("cda8"),i=n.n(a);i.a},"38f0":function(t,e,n){"use strict";var a=n("5b7e"),i=n.n(a);i.a},"5b7e":function(t,e,n){},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},i=[],r=n("a34a"),o=n.n(r),s=n("ddf4");function c(t,e,n,a,i,r,o){try{var s=t[r](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(a,i)}function l(t){return function(){var e=this,n=arguments;return new Promise(function(a,i){var r=t.apply(e,n);function o(t){c(r,a,i,o,s,"next",t)}function s(t){c(r,a,i,o,s,"throw",t)}o(void 0)})}}var u={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=l(o.a.mark(function t(){var e,n,a=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),n=sessionStorage.getItem("titleHeight"),!e||!n){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:n+"px",lineHeight:n+"px"},t.next=9;break;case 7:return t.next=9,Object(s["b"])({api:"getNavHeight"},function(t){var e=t.content,n={},i=e.dpi||2;if(e.navHeight){var r=e.navHeight/i;sessionStorage.setItem("navHeight",r),a.navBarHeight=r,n={paddingTop:r+"px"}}if(e.titleHeight){var o=e.titleHeight/i;sessionStorage.setItem("titleHeight",o),a.titleHeight=o,n.height=o+"px",n.lineHeight=o+"px"}a.headStyle=n});case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(s["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},f=u,p=(n("38f0"),n("2877")),v=Object(p["a"])(f,a,i,!1,null,"6a74717c",null);e["a"]=v.exports},cda8:function(t,e,n){},ddf4:function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return v});var a=n("ff51");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var c=function(){},l={},u=Object(a["b"])();u.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===s(t.data)?t.data:JSON.parse(t.data):{},n=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(h){}if(!n){var a=Object.keys(l).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,o=void 0;try{for(var u,f=a[Symbol.iterator]();!(i=(u=f.next()).done);i=!0){var p=u.value,v=l[p]||c;v(e)}}catch(b){r=!0,o=b}finally{try{i||null==f.return||f.return()}finally{if(r)throw o}}return}var d=l[e.content.uuid||e.uuid||e.api+e.uuid]||c;d(e)}catch(h){console.error("通信消息解析错误",h)}});var f=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,p=function(t,e){if(u.isApp){var n=Object(a["g"])();l[n]=e||c,t.content=t.content?r({},t.content,{uuid:n}):{uuid:n},f.postMessage(JSON.stringify(t))}},v=function(t,e){if(u.isApp){var n=t+Object(a["g"])();l[n]=e||c}}},fd8f:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bookingset"},[n("m-header"),n("div",{staticClass:"book-title"},[t._v("课程信息")]),n("van-cell-group",{staticClass:"search"},[n("van-field",{attrs:{type:"text",label:"课程班名称","input-align":"right",placeholder:"请输入班级名称"}}),n("van-cell",{attrs:{title:"科目名称",value:t.setList.courseText,readonly:"","is-link":"",clickable:""},on:{click:function(e){t.endShow=!0}}}),n("van-cell",{attrs:{title:"每课时长",value:t.setList.dealText,readonly:"","is-link":"",clickable:""},on:{click:function(e){t.longTime=!0}}})],1),n("div",{staticClass:"book-title"},[t._v("课程信息")]),n("div",{staticClass:"section"},[t._m(0),n("div",{staticClass:"day-section"},t._l(20,function(e){return n("span",{key:e,staticClass:"day"},[t._v("09:00")])}),0),n("div",{staticClass:"button-group"},[n("van-button",{attrs:{type:"info",round:"",size:"large"}},[t._v("确定")])],1)]),n("van-action-sheet",{attrs:{actions:[{name:"收入"},{name:"支出"}],"cancel-text":"取消"},on:{cancel:function(e){t.longTime=!1},select:t.onDealSelect},model:{value:t.longTime,callback:function(e){t.longTime=e},expression:"longTime"}})],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"week-section"},[n("p",{staticClass:"active"},[t._v("一"),n("span",[t._v("01")])]),n("p",[t._v("二"),n("span",[t._v("02")])]),n("p",[t._v("三"),n("span",[t._v("03")])]),n("p",[t._v("四"),n("span",[t._v("04")])]),n("p",[t._v("五"),n("span",[t._v("05")])]),n("p",[t._v("六"),n("span",[t._v("06")])]),n("p",{staticClass:"disabled"},[t._v("七"),n("span",[t._v("07")])])])}],r=n("6e6e"),o={name:"bookingset",components:{MHeader:r["a"]},data:function(){return{longTime:!1,setList:{startText:"选择开始时间",courseText:"请选择",dealText:"请选择"}}},methods:{onSearch:function(){},onDealSelect:function(){this.longTime=!1},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):"hour"===t?"".concat(e,"时"):"minute"===t?"".concat(e,"分"):e}}},s=o,c=(n("1bd0"),n("2877")),l=Object(c["a"])(s,a,i,!1,null,"3acd2955",null);e["default"]=l.exports}}]);