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 lines
6.7 KiB
1 lines
6.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{1162:function(t,e,i){var n=i("2e03");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=i("967d").default;s("727c5d64",n,!0,{sourceMap:!1,shadowMode:!1})},"21c8":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-image",{staticClass:"topImg",attrs:{src:"https://static.ticket.sz-trip.com/tourGuide/images/index/topImg.png"}}),i("v-uni-view",{staticClass:"title",staticStyle:{"margin-top":"40rpx"}},[t._v("·快捷入口")]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"nav-item flex-around",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHX()}}},[t._v("立即核销"),i("v-uni-image",{attrs:{src:"https://static.ticket.sz-trip.com/tourGuide/images/index/hexiao.png",mode:""}})],1),i("v-uni-view",{staticClass:"nav-item flex-around",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gotoPath("/subPackages/order/orderList")}}},[t._v("查看订单"),i("v-uni-image",{attrs:{src:"https://static.ticket.sz-trip.com/tourGuide/images/index/dingdan.png",mode:""}})],1)],1),i("v-uni-view",{staticClass:"title"},[t._v("·我的排班")]),i("v-uni-view",{staticClass:"type-box"},t._l(t.typeList,(function(e,n){return i("v-uni-view",{key:n,class:["type-item",{"type-active":n==t.typeIndex}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.typeIndex=n,t.getList()}}},[t._v(t._s(e.title)),n==t.typeIndex?i("v-uni-view",{staticClass:"type-line"}):t._e()],1)})),1),i("calendarVue",{attrs:{isShowLunar:!0},on:{changeDate:function(e){arguments[0]=e=t.$handleEvent(e),t.getDate.apply(void 0,arguments)}}}),t._l(t.typeIndex?t.sessionLists:t.sessionList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"session-item flex-between"},[t._v(t._s(e.title)),i("v-uni-switch",{attrs:{checked:e.isChecked,color:"#96684F"},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.switchChange(e,n)}}})],1)}))],2)},s=[]},"2e03":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.content[data-v-726a70ad]{background:#fff;min-height:100vh;padding:%?40?% %?26?% %?200?%}.topImg[data-v-726a70ad]{width:%?299.33?%;height:%?70?%;display:flex;margin:auto}.title[data-v-726a70ad]{font-weight:700;font-size:%?35?%;color:#000;margin:%?68?% 0 %?34?%}.nav-item[data-v-726a70ad]{font-weight:500;font-size:%?32?%;color:#000;width:%?338?%;height:%?118?%;background:#f5f5f5;border-radius:%?20?%;padding:0 %?15?%}.nav-item uni-image[data-v-726a70ad]{width:%?80.67?%;height:%?80.67?%}.type-box[data-v-726a70ad]{display:flex}.type-box .type-item[data-v-726a70ad]{margin-right:%?44?%;font-weight:500;font-size:%?32?%;color:#000}.type-box .type-active[data-v-726a70ad]{color:#96684f}.type-box .type-line[data-v-726a70ad]{width:%?117?%;height:%?6?%;background:#96684f;border-radius:%?3?%;margin:%?4?% auto 0}.session-item[data-v-726a70ad]{width:%?697?%;height:%?93?%;background:#f5f5f5;border-radius:%?47?%;margin:%?28?% auto 0;font-family:PingFang SC;font-weight:500;font-size:%?32?%;color:#000;padding:0 %?28?%}',""]),t.exports=e},"7ba3":function(t,e,i){"use strict";i.r(e);var n=i("21c8"),s=i("df0f");for(var a in s)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("ce96");var o=i("828b"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"726a70ad",null,!1,n["a"],void 0);e["default"]=c.exports},ce96:function(t,e,i){"use strict";var n=i("1162"),s=i.n(n);s.a},dc8b:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("2797");var s=n(i("918a")),a={components:{calendarVue:s.default},data:function(){return{typeList:[{title:"导游服务",id:""},{title:"线路产品",id:""}],typeIndex:0,selectDay:"",sessionList:[{title:"上午场",isChecked:!1},{title:"下午场",isChecked:!1},{title:"全天场",isChecked:!1}],sessionLists:[{title:"当天状态",isChecked:!1}],isAllChecked:!1}},onLoad:function(){this.selectDay=this.getNowTime(new Date),this.getList()},methods:{goHX:function(){uni.switchTab({url:"/pages/verification/index"})},switchChange:function(t,e){t.isChecked=!t.isChecked;var i=this.typeIndex?"/api/Merchants/updateGuideSched":"/api/Merchants/updateGuideSchedService";this.Post({date:this.selectDay,online_type:t.isChecked?1:0,date_half:this.typeIndex?"":e+1,classify:this.typeIndex?2:""},i).then((function(t){}))},getDate:function(t){console.log("传递过来的日期",t),this.selectDay=t,this.sessionList.forEach((function(t){return t.isChecked=!1})),this.sessionLists[0].isChecked=!1,this.getList()},changeWork:function(t){},getList:function(){var t=this;this.Post({start_date:this.selectDay,end_date:this.selectDay,classify:this.typeIndex?2:3},"/api/Merchants/getGuideSchedList").then((function(e){if(e.data&&e.data.length>0){var i=e.data[0];t.typeIndex?t.sessionLists[0].isChecked=!!i.online_type:(t.sessionList[0].isChecked=!!i.morning_type,t.sessionList[1].isChecked=!!i.afternoon_type,t.sessionList[2].isChecked=!!i.day_type)}}))},getNowTime:function(t,e){var i=t,n=i.getFullYear(),s=i.getMonth()+1,a=i.getDate(),o=i.getHours()<10?"0"+i.getHours():i.getHours(),c=i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes(),d=i.getSeconds()<10?"0"+i.getSeconds():i.getSeconds();if(s>=1&&s<=9&&(s="0"+s),a>=0&&a<=9&&(a="0"+a),1==e)if("ios"==uni.getSystemInfoSync().platform)var r=n+"/"+s+"/"+a+" "+o+":"+c+":"+d;else r=n+"-"+s+"-"+a+" "+o+":"+c+":"+d;else r=n+"/"+s+"/"+a;return r}}};e.default=a},df0f:function(t,e,i){"use strict";i.r(e);var n=i("dc8b"),s=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a}}]);
|