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
7.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"57e3":function(e,t,i){var n=i("9076");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var s=i("967d").default;s("6a5cdb30",n,!0,{sourceMap:!1,shadowMode:!1})},"7ba3":function(e,t,i){"use strict";i.r(t);var n=i("ddfa"),s=i("df0f");for(var a in s)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(a);i("bff9");var o=i("828b"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"f7ee527e",null,!1,n["a"],void 0);t["default"]=c.exports},9076:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.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-f7ee527e]{background:#fff;min-height:100vh;padding:%?40?% %?26?% %?200?%}.topImg[data-v-f7ee527e]{width:%?299.33?%;height:%?70?%;display:flex;margin:auto}.title[data-v-f7ee527e]{font-weight:700;font-size:%?35?%;color:#000;margin:%?68?% 0 %?34?%}.rule[data-v-f7ee527e]{font-weight:500;font-size:%?31?%;color:#96684f;text-align:right}.nav-item[data-v-f7ee527e]{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-f7ee527e]{width:%?80.67?%;height:%?80.67?%}.type-box[data-v-f7ee527e]{display:flex}.type-box .type-item[data-v-f7ee527e]{margin-right:%?44?%;font-weight:500;font-size:%?32?%;color:#000}.type-box .type-active[data-v-f7ee527e]{color:#96684f}.type-box .type-line[data-v-f7ee527e]{width:%?117?%;height:%?6?%;background:#96684f;border-radius:%?3?%;margin:%?4?% auto 0}.session-item[data-v-f7ee527e]{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?%}',""]),e.exports=t},bff9:function(e,t,i){"use strict";var n=i("57e3"),s=i.n(n);s.a},dc8b:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.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()},onShow:function(){this.checkLocation()},methods:{checkLocation:function(){navigator.geolocation?navigator.geolocation.getCurrentPosition((function(e){console.log(111,e.coords)}),(function(e){var t="";switch(e.code){case 1:t="定位未开启,用户拒绝了定位请求";break;case 2:t="定位信息不可用";break;case 3:t="定位请求超时";break;case 4:t="定位出现未知错误";break}console.log(e),uni.showToast({title:t,icon:"none"})})):(console.log("浏览器不支持地理定位功能"),uni.showToast({title:"浏览器不支持地理定位功能",icon:"none"}))},goHX:function(){uni.switchTab({url:"/pages/verification/index"})},switchChange:function(e,t){e.isChecked=!e.isChecked;var i=this.typeIndex?"/api/Merchants/updateGuideSched":"/api/Merchants/updateGuideSchedService";this.Post({date:this.selectDay,online_type:e.isChecked?1:0,date_half:this.typeIndex?"":t+1,classify:this.typeIndex?2:""},i).then((function(e){}))},getDate:function(e){console.log("传递过来的日期",e),this.selectDay=e,this.sessionList.forEach((function(e){return e.isChecked=!1})),this.sessionLists[0].isChecked=!1,this.getList()},changeWork:function(e){},getList:function(){var e=this;this.Post({start_date:this.selectDay,end_date:this.selectDay,classify:this.typeIndex?2:3},"/api/Merchants/getGuideSchedList").then((function(t){if(t.data&&t.data.length>0){var i=t.data[0];e.typeIndex?e.sessionLists[0].isChecked=!!i.online_type:(e.sessionList[0].isChecked=!!i.morning_type,e.sessionList[1].isChecked=!!i.afternoon_type,e.sessionList[2].isChecked=!!i.day_type)}}))},getNowTime:function(e,t){var i=e,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==t)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}}};t.default=a},ddfa:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;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"}},[e._v("·快捷入口")]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"nav-item flex-around",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goHX()}}},[e._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(t){arguments[0]=t=e.$handleEvent(t),e.gotoPath("/subPackages/order/orderList")}}},[e._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"},[e._v("·我的排班")]),i("v-uni-view",{staticClass:"type-box"},e._l(e.typeList,(function(t,n){return i("v-uni-view",{key:n,class:["type-item",{"type-active":n==e.typeIndex}],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.typeIndex=n,e.getList()}}},[e._v(e._s(t.title)),n==e.typeIndex?i("v-uni-view",{staticClass:"type-line"}):e._e()],1)})),1),i("calendarVue",{attrs:{isShowLunar:!0},on:{changeDate:function(t){arguments[0]=t=e.$handleEvent(t),e.getDate.apply(void 0,arguments)}}}),e._l(e.typeIndex?e.sessionLists:e.sessionList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"session-item flex-between"},[e._v(e._s(t.title)),i("v-uni-switch",{attrs:{checked:t.isChecked,color:"#96684F"},on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.switchChange(t,n)}}})],1)}))],2)},s=[]},df0f:function(e,t,i){"use strict";i.r(t);var n=i("dc8b"),s=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=s.a}}]);