王总上门按摩后台代码
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.
shangmenanmo/public/h6/static/js/user-pages-choose-time.d693...

1 line
5.4 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-choose-time"],{2921:function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,".scroll-left[data-v-8f8a550e]{width:%?260?%;height:100vh;position:fixed;top:0;bottom:0}.item-child[data-v-8f8a550e]{height:%?98?%}.item-child.active[data-v-8f8a550e]{background:#f9f9f9}.item-child .child[data-v-8f8a550e]{width:100%;height:%?32?%;padding:0 5%}.scroll-right[data-v-8f8a550e]{min-height:100vh;top:0;width:%?460?%;margin-left:%?292?%}",""]),e.exports=t},4310:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-scroll-view",{staticClass:"scroll-left fill-base",attrs:{"scroll-y":!0,"scroll-into-view":e.scrollNav,"scroll-with-animation":!0}},[e._l(e.storeDay,(function(t,a){return[n("v-uni-view",{key:a+"_0",staticClass:"item-child flex-center f-paragraph c-title",class:[{active:a==e.scrollInd}],style:{color:a==e.scrollInd?e.primaryColor:""},attrs:{id:"scrollNav"+a},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onChangeNav(a,1)}}},[n("v-uni-view",{staticClass:"flex-center child ellipsis",style:{borderLeft:a==e.scrollInd?"5rpx solid "+e.primaryColor:""}},[e._v(e._s(t.dat_text+" ("+t.week+")"))])],1)]}))],2),n("v-uni-view",{staticClass:"scroll-right abs fill-base pl-lg"},[e._l(e.storeTime,(function(t,a){return n("v-uni-view",{key:a,staticClass:"item-child flex-center f-paragraph c-paragraph",staticStyle:{"padding-right":"25rpx"},style:{color:a==e.checkInd?e.primaryColor:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onChangeNav(a,2)}}},[n("v-uni-view",{staticClass:"flex-1",class:[{"text-delete":1!=t.status}]},[e._v(e._s(t.time_text))]),a==e.checkInd?n("i",{staticClass:"iconfont icon-xuanze-fill"}):e._e()],1)})),n("v-uni-view",{staticClass:"mg-lg"},[!e.loading&&e.storeTime.length<=0?n("abnor"):e._e()],1)],2)],1)},r=[]},"4ad0":function(e,t,n){"use strict";n.r(t);var a=n("51a6"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"51a6":function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("4626"),n("5ac7"),n("c223");var r=a(n("2634")),i=a(n("2fdc")),o=n("8f59"),c={data:function(){return{options:{},storeDay:[],storeTime:[],loading:!1,scrollNav:"scrollNav1",scrollInd:0,checkInd:-1}},computed:(0,o.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,i.default)((0,r.default)().mark((function n(){var a,i,o;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.$jweixin.isWechat()){n.next=4;break}return n.next=3,t.$jweixin.initJssdk();case 3:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 4:return a=e.index,i=void 0===a?-1:a,i&&i.includes("_")&&(o=i.split("_"),t.scrollInd=o[0],t.checkInd=o[1]),t.options=e,t.$util.showLoading(),n.next=10,t.getStoreDay();case 10:t.$util.setNavigationBarColor({bg:t.primaryColor});case 11:case"end":return n.stop()}}),n)})))()},methods:{getStoreDay:function(){var e=this;return(0,i.default)((0,r.default)().mark((function t(){return(0,r.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,i.default)((0,r.default)().mark((function t(){var n,a,i;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.options.id,a=e.scrollInd,!(a<0)){t.next=4;break}return t.abrupt("return");case 4:return i=e.storeDay[a].dat_str,t.next=7,e.$api.order.timeText({coach_id:n,day:i});case 7:e.storeTime=t.sent,e.loading=!1,e.$util.hideAll();case 10:case"end":return t.stop()