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
41 KiB
1 lines
41 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine"],{"002b":function(t,e,i){"use strict";i.r(e);var a=i("fb12"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},2026:function(t,e,i){"use strict";i.r(e);var a=i("6511"),n=i("5571");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("d412");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6ab189ee",null,!1,a["a"],void 0);e["default"]=r.exports},5571:function(t,e,i){"use strict";i.r(e);var a=i("fc4f"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},6511:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isLoad?i("v-uni-view",{staticClass:"pages-mine"},[i("v-uni-image",{staticClass:"mine-bg abs",attrs:{mode:"aspectFill","lazy-load":!0,src:t.configInfo[t.image_type[t.userPageType]]}}),1==t.userPageType?[i("v-uni-view",{staticClass:"pd-lg",staticStyle:{height:"212rpx"}},[i("v-uni-view",{staticClass:"pt-lg rel",class:[{"flex-warp":t.userInfo&&t.userInfo.nickName},{"flex-center":!t.userInfo||t.userInfo&&!t.userInfo.nickName}]},[i("auth",{staticClass:"avatar_view",staticStyle:{width:"120rpx"},attrs:{needAuth:!0,must:!0,haveGo:!1}},[i("v-uni-view",{staticClass:"avatar_view"},[i("v-uni-image",{staticClass:"avatar radius",attrs:{mode:"aspectFill",src:t.userInfo.avatarUrl||"/static/mine/default_user.png"}}),t.userInfo.id&&1==t.mineInfo.is_admin?i("v-uni-view",{staticClass:"text",style:{color:t.primaryColor}},[t._v("代理商")]):t._e()],1)],1),!t.userInfo||t.userInfo&&!t.userInfo.nickName?i("auth",{staticClass:"flex-1",attrs:{needAuth:!0,must:!0,haveGo:!1}},[i("v-uni-view",{staticClass:"f-md-title text-bold ml-md",style:{color:t.configInfo[t.font_type[t.userPageType]]}},[t._v("立即登录")])],1):i("v-uni-view",{staticClass:"flex-1 ml-md mt-sm rel",style:{color:t.configInfo[t.font_type[t.userPageType]]}},[i("v-uni-view",{staticClass:"flex-between"},[i("auth",{attrs:{needAuth:!0,must:!0,haveGo:!1}},[i("v-uni-view",{staticClass:"flex-y-center f-title text-bold"},[i("v-uni-view",{staticClass:"mr-sm max-300 ellipsis"},[t._v(t._s(t.userInfo.nickName||"默认用户"))])],1)],1),i("v-uni-view",{staticClass:"notice-item ml-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/setting"})}}},[i("i",{staticClass:"iconfont icon-xitong text-bold"})])],1),i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"member-tag flex-center mt-sm pl-md pr-md f-caption radius "},[i("i",{staticClass:"iconfont iconhuiyuanka mr-sm"}),t._v(t._s(2===t.mineInfo.coach_status?t.mineInfo.coach_level&&t.mineInfo.coach_level.length>0&&t.mineInfo.coach_level.title?t.mineInfo.coach_level.title:t.$t("action.attendantName"):"普通用户"))]),i("v-uni-view",{staticClass:"flex-1"})],1)],1)],1)],1),t.configInfo.recharge_status?i("auth",{attrs:{needAuth:t.userInfo&&(!t.userInfo.phone||!t.userInfo.nickName),must:!0,type:t.userInfo.phone?"userInfo":"phone"},on:{go:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.toCheckLogin({url:"/user/pages/stored/list"})}}},[i("v-uni-view",{staticClass:"space-ht mine-menu-list pd-lg radius-16 rel"},[i("v-uni-image",{staticClass:"vip-img",attrs:{mode:"aspectFill",src:"/static/mine/balance.png"}}),i("v-uni-view",{staticClass:"flex-warp rel"},[i("v-uni-image",{staticClass:"flex-center vip",attrs:{mode:"aspectFill",src:"/static/mine/vip.png"}}),i("v-uni-view",{staticClass:"flex-center f-title c-vip ml-sm"},[t._v("尊享VIP会员")])],1),i("v-uni-view",{staticClass:"flex-between mt-sm rel"},[i("v-uni-view",[i("v-uni-view",{staticClass:"f-icontext c-vip"},[t._v("账户余额")]),i("v-uni-view",{staticClass:"f-sm-title c-vip"},[t._v("¥"+t._s(t.mineInfo.balance||"0.00"))])],1),i("v-uni-view",{staticStyle:{"background-color":"rgb(243, 204, 161)",width:"72px",height:"26px","border-radius":"13px",position:"relative"}},[i("v-uni-view",{staticClass:"flex-center vip-base f-icontext"},[t._v("立即充值")]),i("v-uni-image",{staticClass:"flex-center vip-fx",attrs:{mode:"aspectFill",src:"/static/mine/fx.png"}})],1)],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"share-list flex-between mt-md"},[i("v-uni-view",{staticClass:"flex-between ml-lg mr-sm pt-lg pb-lg pl-lg pr-sm fill-base f-caption c-desc box-shadow radius-16",staticStyle:{width:"50%"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.toCheckLogin({url:"/user/pages/collect"})}}},[i("v-uni-view",{staticClass:"share-list flex-between",staticStyle:{width:"32%"}},[i("v-uni-view",{staticClass:"item-icon rel flex-center"},[i("v-uni-image",{staticClass:"flex-center column-img",attrs:{mode:"aspectFill",src:"/static/mine/guanzhu.png"}})],1)],1),i("v-uni-view",{staticClass:"flex-column ml-lg",staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"f-title"},[t._v("我的收藏")]),i("v-uni-view",{staticClass:"f-desc mb-sm",style:{color:t.primaryColor}},[t._v(t._s(t.mineInfo.collect_count||0)),i("span",{staticClass:"c-grey"},[t._v("人")])])],1)],1),i("v-uni-view",{staticClass:"flex-between ml-sm mr-lg pt-lg pb-lg pl-lg pr-sm fill-base f-caption c-desc box-shadow radius-16",staticStyle:{width:"50%"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.toCheckLogin({url:"/user/pages/coupon/list"})}}},[i("v-uni-view",{staticClass:"share-list flex-between",staticStyle:{width:"32%"}},[i("v-uni-view",{staticClass:"item-icon rel flex-center"},[i("v-uni-image",{staticClass:"flex-center column-img",attrs:{mode:"aspectFill",src:"/static/mine/youhui.png"}})],1)],1),i("v-uni-view",{staticClass:"flex-column ml-lg",staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"f-title"},[t._v("我的优惠劵")]),i("v-uni-view",{staticClass:"f-desc mb-sm",style:{color:t.primaryColor}},[t._v(t._s(t.mineInfo.coupon_count||0)),i("span",{staticClass:"c-grey"},[t._v("张")])])],1)],1)],1),1===t.mineInfo.is_atv_status?i("auth",{staticStyle:{width:"100%"},attrs:{needAuth:t.userInfo&&(!t.userInfo.phone||!t.userInfo.nickName),must:!0,type:t.userInfo.phone?"userInfo":"phone"},on:{go:function(e){arguments[0]=e=t.$handleEvent(e),t.toAtv.apply(void 0,arguments)}}},[i("v-uni-view",{staticStyle:{height:"14rpx"}}),i("v-uni-image",{staticClass:"share-atv-img",attrs:{mode:"aspectFill",src:"/static/mine/coupon.png"}})],1):t._e(),i("v-uni-view",{staticClass:"mine-menu-list box-shadow fill-base radius-16"},[i("v-uni-view",{staticClass:"menu-title flex-between pl-lg pr-md b-1px-b"},[i("v-uni-view",{staticClass:"f-st-title c-title text-bold"},[t._v("常用工具")])],1),t.toolLoad?i("v-uni-view",{staticClass:"flex-warp pb-sm pt-lg pb-lg"},[t._l(t.toolList,(function(e,a){return[i("v-uni-view",{key:a+"_0",staticClass:"item-child flex-center flex-column f-caption c-title",staticStyle:{width:"25%",margin:"10rpx 0 20rpx 0"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toJump("toolList",a)}}},[e.cover?i("v-uni-image",{staticClass:"mine-img",attrs:{mode:"aspectFill",src:e.cover}}):t._e(),i("v-uni-view",{staticClass:"mt-sm"},[t._v(t._s(e.text))])],1)]})),t.mineInfo.mobilenode_auth?i("v-uni-view",{staticClass:"item-child flex-center flex-column f-caption c-title",staticStyle:{width:"25%",margin:"10rpx 0 20rpx 0"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/agent/pages/index?agent=0"})}}},[i("v-uni-image",{staticClass:"mine-img radius",attrs:{mode:"aspectFill",src:"/static/mine/guanli.png"}}),i("v-uni-view",{staticClass:"mt-sm"},[t._v("切换管理员")])],1):t._e(),2==t.mineInfo.coach_status||3==t.mineInfo.coach_status?i("v-uni-view",{staticClass:"item-child flex-center flex-column f-caption c-title",staticStyle:{width:"25%",margin:"10rpx 0 20rpx 0"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChange.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"mine-img radius",attrs:{mode:"aspectFill",src:"/static/mine/qiehuan.png"}}),i("v-uni-view",{staticClass:"mt-sm"},[t._v("切换"+t._s(t.$t("action.attendantName"))+"端")])],1):t._e()],2):t._e()],1)]:t._e(),2==t.userPageType?[i("v-uni-view",{staticClass:"addr-time-help-list flex-x-center f-desc rel",style:{color:t.configInfo[t.font_type[t.userPageType]]}},[i("v-uni-view",{staticClass:"flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChooseLocation()}}},[i("i",{staticClass:"iconfont iconweizhigengxin1"}),i("v-uni-view",[t._v("位置更新")])],1),i("v-uni-view",{staticClass:"flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/technician/pages/time-manage"})}}},[i("i",{staticClass:"iconfont icon-shijian"}),i("v-uni-view",[t._v("时间管理")])],1),i("v-uni-view",{staticClass:"flex-center flex-column",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toHelp.apply(void 0,arguments)}}},[i("i",{staticClass:"iconfont iconyijianbaojing"}),i("v-uni-view",[t._v("一键报警")])],1)],1),t.coachInfo.id?i("v-uni-view",{staticClass:"coach-info fill-base ml-lg mr-lg pt-lg pl-lg pr-lg pb-sm radius-16 rel"},[i("v-uni-view",{staticClass:"flex-center pb-lg"},[i("v-uni-view",{staticClass:"avatar radius"},[i("v-uni-view",{staticClass:"h5-image avatar radius",style:{backgroundImage:"url('"+t.coachInfo.work_img+"')"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage(t.index,1)}}})],1),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"coach-name text-bold max-300 ellipsis"},[t._v(t._s(t.coachInfo.coach_name))]),i("v-uni-view",{staticClass:"coach-text f-paragraph flex-y-center",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toEditInfo.apply(void 0,arguments)}}},[t._v("个人信息"),i("i",{staticClass:"iconfont icon-right"})])],1),i("v-uni-view",{staticClass:"flex-warp mt-sm"},[2==t.coachInfo.auth_status?i("v-uni-view",{staticClass:"tag-item flex-center mr-sm",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor}},[t._v("已认证")]):t._e(),2===t.mineInfo.coach_status?i("v-uni-view",{staticClass:"tag-item flex-center mr-sm",style:{color:t.coachInfo.is_work?t.primaryColor:"#5A677E",border:"1rpx solid "+(t.coachInfo.is_work?t.primaryColor:"#5A677E")}},[t._v(t._s(t.coachInfo.is_work?t.textType[t.coachInfo.text_type]:"请假中"))]):t._e(),i("v-uni-view",{staticClass:"tag-item flex-center",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor}},[t._v(t._s(t.coachInfo.coach_level.title))])],1),2!=t.coachInfo.auth_status?i("v-uni-view",{staticClass:"flex-between mt-sm"},[i("v-uni-view",{staticClass:"f-desc"},[t._v(t._s(0==t.coachInfo.auth_status?"补充剩余资料才可以上线接单哟":1==t.coachInfo.auth_status?"认证审核中":"认证已驳回"))]),i("v-uni-view",[!t.coachInfo.fdd_auth_status||t.coachInfo.fdd_auth_status&&2!=t.coachInfo.fdd_status?i("v-uni-view",{staticClass:"tag-item flex-center",style:{color:t.primaryColor,border:"1rpx solid "+t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toEditInfo.apply(void 0,arguments)}}},[t._v("去认证")]):t._e()],1)],1):t._e()],1)],1),i("v-uni-view",{staticClass:"map-addr-info pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"map-addr flex-center rel"},[i("v-uni-view",{staticClass:"map-addr radius abs",style:{background:t.primaryColor}}),i("v-uni-view",{staticClass:"flex-y-center f-desc",style:{color:t.primaryColor}},[i("i",{staticClass:"iconfont icondangqianweizhi"}),t._v("当前")])],1),i("v-uni-view",{staticClass:"flex-1 text ml-md ellipsis"},[t._v(t._s(t.coachInfo.address))])],1),i("v-uni-view",{staticClass:"location-change flex-between pt-sm"},[i("v-uni-view",{staticClass:"text f-paragraph"},[t._v("实时定位")]),i("i",{staticClass:"iconfont",class:[{"icon-switch":!t.userInfo.coach_position},{"icon-switch-on":t.userInfo.coach_position}],style:{color:t.userInfo.coach_position?t.primaryColor:"#ddd"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeLocation.apply(void 0,arguments)}}})],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"mine-count-list flex-between mt-md rel"},[3==t.mineInfo.coach_status?i("v-uni-view",{staticClass:"cancel-auth iconfont icon-biaoqian c-caption flex-center abs"},[i("v-uni-view",{staticClass:"text-bold f-icontext abs"},[t._v("取消授权")])],1):t._e(),i("v-uni-view",{staticClass:"item-child ml-lg mr-sm fill-base f-caption box-shadow radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/technician/pages/income/index"})}}},[i("v-uni-view",{staticClass:"flex-y-baseline",style:{color:t.primaryColor}},[t._v("¥"),i("v-uni-view",{staticClass:"f-sm-title"},[t._v(t._s(t.coachInfo.service_price||0))])],1),i("v-uni-view",{staticClass:"flex-between mt-sm"},[i("v-uni-view",{staticClass:"text f-paragraph"},[t._v("服务收入")]),i("v-uni-view",{staticClass:"cash-btn flex-center f-desc c-base radius",style:{background:"linear-gradient(68deg, "+t.primaryColor+", "+t.subColor+")"}},[t._v("去提现")])],1)],1),i("v-uni-view",{staticClass:"item-child ml-sm mr-lg pt-lg pb-lg pl-md pr-sm fill-base f-caption c-desc box-shadow radius-16 ",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/cash-out?type=carfee"})}}},[i("v-uni-view",{staticClass:"flex-y-baseline",style:{color:t.primaryColor}},[t._v("¥"),i("v-uni-view",{staticClass:"f-sm-title"},[t._v(t._s(t.coachInfo.car_price||0))])],1),i("v-uni-view",{staticClass:"flex-between mt-sm"},[i("v-uni-view",{staticClass:"text f-paragraph"},[t._v("车费")]),i("v-uni-view",{staticClass:"cash-btn flex-center f-desc c-base radius",style:{background:"linear-gradient(68deg, "+t.primaryColor+", "+t.subColor+")"}},[t._v("去提现")])],1)],1)],1),i("v-uni-view",{staticClass:"mine-menu-list box-shadow fill-base radius-16"},[i("v-uni-view",{staticClass:"menu-title flex-between pl-lg pr-sm"},[i("v-uni-view",{staticClass:"f-paragraph c-title text-bold"},[t._v("我的订单")])],1),i("v-uni-view",{staticClass:"flex-warp pb-lg"},t._l(t.orderList2,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item-child flex-center flex-column f-caption c-title",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toJump("orderList2",a)}}},[i("v-uni-view",{staticClass:"item-img rel flex-center radius"},[e.number>0?i("v-uni-view",{staticClass:"abs dot-unread-number flex-center",style:{width:e.number>99?"44rpx":e.number>9?"34rpx":"",right:e.number>99?"-32rpx":e.number>9?"-22rpx":"-12rpx"}},[t._v(t._s(e.number<100?e.number:"99+"))]):t._e(),i("v-uni-view",{staticClass:"item-img radius abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont c-title",class:e.icon,style:{color:t.primaryColor}})],1),i("v-uni-view",{staticClass:"mt-sm"},[t._v(t._s(e.text))])],1)})),1)],1),i("v-uni-view",{staticClass:"mine-menu-list box-shadow fill-base radius-16"},[i("v-uni-view",{staticClass:"menu-title flex-between pl-lg pr-sm"},[i("v-uni-view",{staticClass:"f-paragraph c-title text-bold"},[t._v("其他功能")])],1),i("v-uni-view",{staticClass:"flex-warp pb-sm"},t._l(t.toolList2,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item-child flex-center flex-column f-caption c-title rel",staticStyle:{margin:"10rpx 0 20rpx 0"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toJump("toolList2",a)}}},[e.cover?i("v-uni-image",{staticClass:"mine-img",attrs:{mode:"aspectFill",src:e.cover}}):t._e(),i("v-uni-view",{staticClass:"mt-sm"},[t._v(t._s(e.text))]),"电签合同"==e.text&&2!=t.coachInfo.fdd_status?i("v-uni-view",{staticClass:"fdd-sign flex-center c-base abs radius"},[t._v("待签约")]):t._e()],1)})),1)],1)]:t._e(),i("v-uni-view",{staticClass:"space-footer"}),i("v-uni-view",{style:{height:t.configInfo.tabbarHeight+"px"}}),i("tabbar",{attrs:{cur:5}})],2):t._e()},n=[]},"7d54":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"custom-tabbar fix flex-center fill-base b-1px-t"},t._l(t.configInfo.tabBar,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex-center flex-column mt-sm",style:{width:100/t.configInfo.tabBar.length+"%",color:t.cur==e.id?t.primaryColor:"#666"},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.changeTab(e)}}},[i("i",{staticClass:"iconfont",class:t.cur==e.id?e.selected_img:e.default_img}),i("v-uni-image",{staticStyle:{width:"45rpx",height:"45rpx"},attrs:{src:t.cur==e.id?e.selected_img:e.default_img}}),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name))])],1)})),1)},n=[]},"88fb":function(t,e,i){var a=i("f47b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("299c81b0",a,!0,{sourceMap:!1,shadowMode:!1})},"9ff0":function(t,e,i){var a=i("c86c");e=a(!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/* 文章场景相关 */.custom-tabbar[data-v-5f3efd3c]{height:%?98?%;bottom:0;height:calc(%?98?% + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.custom-tabbar .iconfont[data-v-5f3efd3c]{font-size:%?40?%}.custom-tabbar .text[data-v-5f3efd3c]{font-size:%?22?%;margin-top:%?5?%;height:%?32?%}',""]),t.exports=e},c891:function(t,e,i){var a=i("9ff0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("4bc89a6a",a,!0,{sourceMap:!1,shadowMode:!1})},cd75:function(t,e,i){"use strict";var a=i("c891"),n=i.n(a);n.a},d412:function(t,e,i){"use strict";var a=i("88fb"),n=i.n(a);n.a},ea26:function(t,e,i){"use strict";i.r(e);var a=i("7d54"),n=i("002b");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("cd75");var o=i("828b"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"5f3efd3c",null,!1,a["a"],void 0);e["default"]=r.exports},f47b:function(t,e,i){var a=i("c86c");e=a(!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/* 文章场景相关 */.pages-mine .mine-bg[data-v-6ab189ee]{width:100%;height:%?318?%;z-index:0}.pages-mine .mine-master-bg[data-v-6ab189ee]{width:100%;height:%?514?%;z-index:-1}.pages-mine .avatar_view[data-v-6ab189ee]{width:%?120?%;height:%?120?%}.pages-mine .avatar_view .avatar[data-v-6ab189ee]{width:%?120?%;height:%?120?%;overflow:hidden}.pages-mine .avatar_view .avatar uni-open-data[data-v-6ab189ee]{width:%?120?%;height:%?120?%}.pages-mine .avatar_view .text[data-v-6ab189ee]{width:%?110?%;position:absolute;bottom:%?-5?%;left:%?5?%;height:%?36?%;line-height:%?36?%;background:#fff;border-radius:%?18?%;font-size:%?24?%;text-align:center}.pages-mine .member-tag[data-v-6ab189ee]{min-width:%?168?%;height:%?42?%;background:hsla(0,0%,100%,.5)}.pages-mine .member-tag .iconfont[data-v-6ab189ee]{font-size:%?28?%}.pages-mine .iconbianjiziliao[data-v-6ab189ee]{font-size:%?36?%}.pages-mine .icon-xitong[data-v-6ab189ee]{font-size:%?40?%}.pages-mine .addr-time-help-list[data-v-6ab189ee]{width:100%;padding:%?40?% 0}.pages-mine .addr-time-help-list .flex-center[data-v-6ab189ee]{width:33.33%}.pages-mine .addr-time-help-list .flex-center .iconfont[data-v-6ab189ee]{font-size:%?60?%;margin-bottom:%?10?%}.pages-mine .coach-info .avatar[data-v-6ab189ee]{width:%?140?%;height:%?140?%}.pages-mine .coach-info .coach-name[data-v-6ab189ee]{font-size:%?34?%;color:#142c57}.pages-mine .coach-info .coach-text[data-v-6ab189ee]{color:#5a677e}.pages-mine .coach-info .icon-right[data-v-6ab189ee]{font-size:%?22?%}.pages-mine .coach-info .tag-item[data-v-6ab189ee]{min-width:%?92?%;height:%?36?%;padding:0 %?10?%;font-size:%?24?%;border-radius:%?6?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.pages-mine .coach-info .map-addr-info .map-addr[data-v-6ab189ee]{width:%?102?%;height:%?46?%;padding-right:%?6?%}.pages-mine .coach-info .map-addr-info .map-addr .iconfont[data-v-6ab189ee]{margin-right:%?2?%;font-size:%?26?%}.pages-mine .coach-info .map-addr-info .map-addr.abs[data-v-6ab189ee]{top:0;left:0;opacity:.1}.pages-mine .coach-info .map-addr-info .text[data-v-6ab189ee]{color:#5a677e}.pages-mine .coach-info .map-addr-info .location-change .iconfont[data-v-6ab189ee]{font-size:%?70?%}.pages-mine .mine-count-list .cancel-auth[data-v-6ab189ee]{width:%?110?%;height:%?100?%;font-size:%?100?%;top:%?-230?%;right:%?55?%}.pages-mine .mine-count-list .cancel-auth .text-bold[data-v-6ab189ee]{height:%?26?%;-webkit-transform:rotate(-32deg);transform:rotate(-32deg)}.pages-mine .mine-count-list .item-child[data-v-6ab189ee]{width:50%;padding:%?28?%}.pages-mine .mine-count-list .item-child .text[data-v-6ab189ee]{color:#5a677e}.pages-mine .mine-count-list .item-child .cash-btn[data-v-6ab189ee]{width:%?108?%;height:%?46?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.pages-mine .dot-unread-number[data-v-6ab189ee]{top:0;right:0;width:%?24?%;height:%?24?%;line-height:%?24?%;text-align:center;color:#fff;font-size:%?18?%;border-radius:%?24?%;background-color:#f1381f}.pages-mine .share-collect-list .share-item[data-v-6ab189ee]{width:50%;height:%?105?%}.pages-mine .item-btn[data-v-6ab189ee]{width:%?150?%;height:%?52?%;border-radius:%?100?%}.pages-mine .share-list .coupon-img[data-v-6ab189ee]{width:%?97?%;height:%?87?%}.pages-mine .share-list .item-icon[data-v-6ab189ee]{width:%?74?%;height:%?80?%}.pages-mine .share-list .item-icon .iconfont[data-v-6ab189ee]{font-size:%?62?%}.pages-mine .share-list .item-icon .item-icon[data-v-6ab189ee]{top:0;left:0;opacity:.1}.pages-mine .store-btn[data-v-6ab189ee]{width:%?320?%;height:%?60?%}.pages-mine .vip-img[data-v-6ab189ee]{width:100%;height:%?186?%;position:absolute;top:0;left:0;z-index:0}.pages-mine .vip[data-v-6ab189ee]{width:%?44?%;height:%?44?%}.pages-mine .vip-base[data-v-6ab189ee]{height:100%;line-height:100%;color:#856534}.pages-mine .vip-fx[data-v-6ab189ee]{width:%?110?%;height:%?44?%;position:absolute;top:%?-44?%;left:50%;margin-left:%?-54?%}.pages-mine .share-atv-img[data-v-6ab189ee]{width:%?716?%;height:%?190?%;margin:0 auto}.pages-mine .mine-menu-list[data-v-6ab189ee]{margin:%?20?% %?30?% 0 %?30?%}.pages-mine .mine-menu-list .menu-title[data-v-6ab189ee]{height:%?90?%}.pages-mine .mine-menu-list .menu-title .iconfont[data-v-6ab189ee]{font-size:%?24?%}.pages-mine .mine-menu-list .item-child[data-v-6ab189ee]{width:25%;margin:%?10?% 0}.pages-mine .mine-menu-list .item-child .iconfont[data-v-6ab189ee]{font-size:%?52?%}.pages-mine .mine-menu-list .item-child .item-img[data-v-6ab189ee]{width:%?88?%;height:%?88?%}.pages-mine .mine-menu-list .item-child .item-img .iconfont[data-v-6ab189ee]{font-size:%?44?%}.pages-mine .mine-menu-list .item-child .item-img .item-img[data-v-6ab189ee]{top:0;left:0;opacity:.1}.pages-mine .mine-menu-list .item-child .fdd-sign[data-v-6ab189ee]{width:%?76?%;height:%?30?%;background:#e82f21;font-size:%?20?%;-webkit-transform:scale(.9);transform:scale(.9);top:%?-10?%;right:0;border-radius:%?20?% %?20?% %?20?% 0}.pages-mine .column-img[data-v-6ab189ee]{width:%?74?%;height:%?80?%}.pages-mine .mine-img[data-v-6ab189ee]{width:%?68?%;height:%?68?%;margin:auto}.pages-mine .mine-tool-list[data-v-6ab189ee]{margin:%?20?% %?30?% 0 %?30?%;box-shadow:0 3px 6px 0 hsla(0,0%,89%,.47)}.pages-mine .mine-tool-list .list-item .left-icon[data-v-6ab189ee]{width:%?42?%;font-size:%?42?%}.pages-mine .mine-tool-list .list-item .icon-right[data-v-6ab189ee]{font-size:%?28?%}.pages-mine .mine-tool-list .list-item .icon-switch[data-v-6ab189ee]{font-size:%?70?%;line-height:%?48?%;color:#ddd}.pages-mine .mine-tool-list .list-item.b-1px-t[data-v-6ab189ee]:before{left:%?60?%}',""]),t.exports=e},fb12:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("9b1b")),s=a(i("2634")),o=a(i("2fdc"));i("64aa"),i("5c47"),i("8f71"),i("bf0f");var r=i("8f59"),c={components:{},props:{cur:{type:Number,default:function(){return 0}}},data:function(){return{}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions},userPageType:function(t){return t.user.userPageType},activeIndex:function(t){return t.order.activeIndex}}),mounted:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i,a,n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t,a=uni.getSystemInfoSync().windowHeight,n=i.configInfo.navBarHeight,setTimeout((function(){var e=uni.createSelectorQuery().in(i);e.select(".custom-tabbar").boundingClientRect((function(e){var s=a-e.height-n,o=i.$util.deepCopy(t.configInfo);o.curSysHeight=s,o.tabbarHeight=e.height,i.updateConfigItem({key:"configInfo",val:o})})).exec()}),600);case 4:case"end":return e.stop()}}),e)})))()},methods:(0,n.default)((0,n.default)((0,n.default)({},(0,r.mapActions)(["getConfigInfo"])),(0,r.mapMutations)(["updateConfigItem"])),{},{changeTab:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function i(){var a,n,o,r,c,l,u;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.id){i.next=5;break}return i.next=3,e.getConfigInfo();case 3:a=e.configInfo.tabBar.filter((function(e){return e.name==t.name})),t=a[0];case 5:if(n=t,o=n.id,r=e.activeIndex,c=e.cur,l=e.userPageType,u={1:"/pages/service",2:"/pages/technician",3:"/pages/dynamic",4:"/pages/order?tab=".concat(r),5:"/pages/mine?type=".concat(l),6:"/pages/shopstore",7:"/pages/map"},o!=c){i.next=10;break}return i.abrupt("return");case 10:e.$util.goUrl({url:u[o],openType:"reLaunch"});case 11:case"end":return i.stop()}}),i)})))()}})};e.default=c},fc4f:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("18f7"),i("de6c"),i("fd3c"),i("8f71"),i("3efd"),i("bd06"),i("dd2b"),i("4626"),i("5ac7"),i("c223");var n=a(i("5de6")),s=a(i("9b1b")),o=a(i("2634")),r=a(i("2fdc")),c=i("8f59"),l=a(i("ea26")),u={components:{tabbar:l.default},data:function(){return{isLoad:!1,toolLoad:!1,options:{},textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"},is_share:!0,orderList:[],orderList2:[{icon:"icon-kdd2",text:"待接单",url:"/technician/pages/order/list",number:0},{icon:"iconyijiedan",text:"待服务",url:"/technician/pages/order/list?tab=1",number:0},{icon:"icon-kll",text:"服务中",url:"/technician/pages/order/list?tab=2",number:0}],commissionList:[],toolList:[{cover:"/static/mine/dizhiguanli.png",text:"地址管理",url:"/user/pages/address/list"},{cover:"/static/mine/yijianfank.png",text:"问题反馈",url:"/user/pages/feedback/box"},{cover:"/static/mine/pingjia.png",text:"我的评价",url:"/pages/order?tab=4"},{cover:"/static/mine/tuikuan.png",text:"退款售后",url:"/user/pages/refund/list"},{cover:"/static/mine/tel.png",text:"联系客服",url:""}],toolList2:[{cover:"/static/mine/dengji.png",text:"等级管理",url:"/technician/pages/level"},{cover:"/static/mine/Wallet.png",text:"储值返佣明细",url:"/technician/pages/income/cash-integral",number:0},{cover:"/static/mine/fencheng.png",text:"分成明细",url:"/technician/pages/income/commission-list",number:0},{cover:"/static/mine/cfmx.png",text:"车费明细",url:"/technician/pages/car-fare"},{cover:"/static/mine/cftx.png",text:"车费提现记录",url:"/user/pages/distribution/record?type=3"},{cover:"/static/mine/shop.png",text:"物料商城",url:"/technician/pages/shop/list"},{cover:"/static/mine/shens.png",text:"差评申诉",url:"/technician/pages/bad-comments/box"},{cover:"/static/mine/pingbi.png",text:"屏蔽用户",url:"/technician/pages/shield"},{cover:"/static/mine/qiehuan.png",text:"切换用户端",url:"change"}],image_type:{1:"user_image",2:"coach_image"},font_type:{1:"user_font_color",2:"coach_font_color"},showAuth:!1,offsetL:360,offsetT:0}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions},userInfo:function(t){return t.user.userInfo},userPageType:function(t){return t.user.userPageType},locationChange:function(t){return t.user.locationChange},location:function(t){return t.user.location},mineInfo:function(t){return t.user.mineInfo},coachInfo:function(t){return t.user.coachInfo}}),onLoad:function(t){this.options=t;var e=t.type,i=void 0===e?1:e;i&&this.updateUserItem({key:"userPageType",val:i});var a=this.mineInfo.id,n=void 0===a?-1:a;-1==n&&this.$util.showLoading(),this.initIndex()},onShow:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(2!=t.userPageType){e.next=3;break}return e.next=3,Promise.all([t.getCoachInfo(),t.getOrderNumCall()]);case 3:case"end":return e.stop()}}),e)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},methods:(0,s.default)((0,s.default)((0,s.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","getMineInfo","getCoachInfo","updateCommonOptions"])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,o.default)().mark((function i(){var a,n,s,r,c,l,u,f,d,p,m,v,h,g,x,b,w,_,C,y,I;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&!a&&(!e.configInfo.id||e.configInfo.hasOwnProperty("recharge_status"))){i.next=8;break}return i.next=8,e.getConfigInfo();case 8:return i.next=10,e.getMineInfo();case 10:if(e.isLoad=!0,n=e.configInfo,n.fx_check,s=n.plugAuth,r=void 0===s?{}:s,c=e.mineInfo,l=c.coach_status,u=c.is_admin,f=void 0===u?0:u,d=c.is_fx,p=void 0===d?0:d,2!=l&&3!=l){i.next=16;break}return i.next=16,e.getCoachInfo();case 16:e.updateUserItem({key:"userPageType",val:2==l||3==l?e.userPageType:1}),m=["coach_status","channel_status","salesman_status"],v="申请"+e.$t("action.attendantName"),h={coach_status:{text:v,list:{cover:"/static/mine/jishizhaopin.png",text:v,url:"/user/pages/apply"}},channel_status:{text:"申请渠道商",list:{cover:"/static/mine/qudao.png",text:"申请渠道商",url:"/user/pages/channel/apply"},list2:{cover:"/static/mine/qudao.png",text:"我是渠道商",url:"/user/pages/channel/income"}},salesman_status:{text:"申请业务员",list:{cover:"/static/mine/yewu.png",text:"申请业务员",url:"/user/pages/salesman/apply"},list2:{cover:"/static/mine/yewu.png",text:"我是业务员",url:"/user/pages/salesman/income"}}},m.map((function(t){if(2!=e.mineInfo[t]){var i=e.toolList.filter((function(e){return e.text===h[t].text}));if(0===i.length&&("salesman_status"!=t||"salesman_status"==t&&-1!=e.mineInfo[t])&&e.toolList.unshift(h[t].list),"coach_status"!==t){var a=e.toolList.findIndex((function(e){return e.text===h[t].list2.text}));-1!=a&&e.toolList.splice(a,1)}}else if(e.toolList.map((function(i,a){i.text===h[t].text&&e.toolList.splice(a,1)})),"coach_status"!==t){var n=e.toolList.filter((function(e){return e.text===h[t].list2.text}));0===n.length&&e.toolList.unshift(h[t].list2)}})),g=e.toolList.findIndex((function(t){return"我是代理商"==t.text||"招商加盟"==t.text})),-1==g&&e.toolList.unshift({cover:"/static/mine/Add.png",text:f?"我是代理商":"招商加盟",url:f?"/agent/pages/index?agent=1":"/agent/pages/apply"}),-1!==g&&(e.toolList[g]={cover:"/static/mine/Add.png",text:f?"我是代理商":"招商加盟",url:f?"/agent/pages/index?agent=1":"/agent/pages/apply"}),x=e.toolList.findIndex((function(t){return"申请分销商"==t.text||"分销商管理"==t.text})),-1!=x&&e.toolList.splice(x,1),e.toolList.unshift({cover:"/static/mine/fenxiao.png",text:p?"分销商管理":"申请分销商",url:p?"/user/pages/distribution/income":"/user/pages/distribution/apply"}),2==e.userPageType&&e.getOrderNumCall(),b=r.dynamic,w=void 0!==b&&b,w&&(_=e.toolList2.findIndex((function(t){return"动态发布"==t.text})),r.dynamic&&-1==_&&(C=e.toolList2.findIndex((function(t){return"差评申诉"==t.text})),e.toolList2.splice(C+1,0,{cover:"/static/mine/jishizhaopin.png",text:"动态发布",url:"/dynamic/pages/technician/list"}))),y=e.coachInfo.fdd_auth_status,I=e.toolList2.findIndex((function(t){return"电签合同"==t.text})),y&&-1==I&&e.toolList2.unshift({cover:"/static/mine/hetong.png",text:"电签合同",url:""}),y||-1===I||e.toolList2.splice(I,1),e.toolLoad=!0,e.$util.hideAll();case 36:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},getOrderNumCall:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.technician.getOrderNum();case 2:i=e.sent,t.orderList2[0].number=i.wait,t.orderList2[1].number=i.start,t.orderList2[2].number=i.progress;case 6:case"end":return e.stop()}}),e)})))()},toChooseLocation:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i,a,s,r,c,l,u,f,d,p,m,v,h,g,x;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.mineInfo.coach_status,2==i){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t.$util.checkAuth({type:"userLocation"});case 5:return a=t.coachInfo,s=a.lat,r=void 0===s?"":s,c=a.lng,l=void 0===c?"":c,{},u={latitude:r,longitude:l},e.next=10,uni.chooseLocation(u);case 10:if(f=e.sent,d=(0,n.default)(f,2),p=d[1],m=p.address,v=void 0===m?"":m,h=p.longitude,g=p.latitude,v){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,t.$api.technician.coachUpdate({address:v,lng:h,lat:g});case 21:x=t.$util.deepCopy(t.coachInfo),x.address=v,t.updateUserItem({key:"coachInfo",val:x}),t.updateUserItem({key:"locationChange",val:!0}),t.$util.showToast({title:"更新成功"});case 26:case"end":return e.stop()}}),e)})))()},toChangeLocation:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i,a,n,s;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.mineInfo.coach_status,2==i){e.next=3;break}return e.abrupt("return");case 3:return a=t.userInfo.coach_position,n=void 0===a?0:a,s=0==n?1:0,e.next=7,t.$api.technician.coachUpdate({coach_position:s});case 7:return e.next=9,t.getUserInfo();case 9:t.$util.showToast({title:"操作成功"}),t.updateUserItem({key:"locationChange",val:1==s});case 11:case"end":return e.stop()}}),e)})))()},toJump:function(t,e){var i=this[t][e],a=i.url,n=i.text,s="申请"+this.$t("action.attendantName");if([s,"申请分销合伙人","申请渠道商","申请业务员"].includes(n))this.toApply(n==s?1:"申请分销合伙人"==n?2:"申请渠道商"==n?3:4);else if("切换用户端"!=n)if("联系客服"!=n)if("电签合同"!=n){var o="orderList"==t&&4!==e?"reLaunch":"navigateTo";this.$util.log(a),this.$util.toCheckLogin({url:a,openType:o})}else this.toFddSign();else{var r=this.configInfo,c=r.mobile;r.im_type;this.$util.goUrl({url:c,openType:"call"})}else this.toChange()},toEditInfo:function(){var t=this.coachInfo,e=t.status,i=t.fdd_auth_status,a=t.fdd_status;2==e&&i&&2!=a?this.$util.showToast({title:"请先签订合同哦"}):this.$util.goUrl({url:"/technician/pages/edit"})},toFddSign:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i,a,n,s,r,c,l,u,f,d,p,m,v,h;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.updateUserItem({key:"fddExtsign",val:""}),i=t.coachInfo,a=i.status,n=i.admin_id,s=void 0===n?0:n,r=i.fdd_agreement,c=void 0===r?{}:r,l=c&&c.hasOwnProperty("viewpdf_url")?c:{viewpdf_url:""},u=l.viewpdf_url,f=void 0===u?"":u,f){e.next=29;break}if(3!=a){e.next=7;break}return t.$util.showToast({title:"平台管理员已取消授权,不能签约哦"}),e.abrupt("return");case 7:return e.next=9,t.$api.technician.getFddRecord();case 9:if(d=e.sent,d){e.next=29;break}return t.updateUserItem({key:"personVerifyUrl",val:""}),e.next=14,t.$api.technician.getAttestationInfo();case 14:if(p=e.sent,m=p.status,!(m<2)){e.next=25;break}return e.next=19,t.$api.technician.getPersonVerifyUrl();case 19:return v=e.sent,t.updateUserItem({key:"personVerifyUrl",val:v}),t.$util.goUrl({url:"/user/pages/common/web?url=personVerifyUrl"}),e.abrupt("return");case 25:return e.next=27,t.$api.technician.Extsign({admin_id:s});case 27:h=e.sent,f=h;case 29:t.updateUserItem({key:"fddExtsign",val:f}),t.$util.goUrl({url:"/user/pages/common/web?url=fddExtsign"});case 31:case"end":return e.stop()}}),e)})))()},toAtv:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.mineInfo.is_atv){e.next=3;break}return t.$util.showToast({title:"暂无活动"}),e.abrupt("return");case 3:return i=t.commonOptions,i.coupon_atv_id=0,e.next=7,t.updateCommonOptions(i);case 7:t.$util.toCheckLogin({url:"/user/pages/coupon/share"});case 8:case"end":return e.stop()}}),e)})))()},toApply:function(t){var e=this;return(0,r.default)((0,o.default)().mark((function i(){var a,n,s,r,c,l,u,f,d,p,m,v,h;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.mineInfo,n=a.coach_status,s=void 0===n?-1:n,r=a.fx_status,c=void 0===r?-1:r,l=a.channel_status,u=void 0===l?-1:l,f=a.salesman_status,d=void 0===f?-1:f,p={1:s,2:c,3:u,4:d},m=p[t],v={1:"/technician/pages/apply",2:"/user/pages/distribution/apply",3:"/user/pages/channel/apply",4:"/user/pages/salesman/apply"},h=-1==m?v[t]:"/user/pages/apply-result?type=".concat(t),e.$util.log(h),e.$util.toCheckLogin({url:h});case 7:case"end":return i.stop()}}),i)})))()},toChange:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i,a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.pageScrollTo({duration:500,scrollTop:0}),i=t.userPageType,a=void 0===i?1:i,e.next=4,t.getCoachInfo();case 4:1==a&&t.getOrderNumCall(),t.updateUserItem({key:"userPageType",val:2==a?1:2});case 6:case"end":return e.stop()}}),e)})))()},onChange:function(t){var e=this,i=t.detail,a=i.x,n=i.y;this.$nextTick((function(){e.offsetL=a,e.offsetT=n}))},toHelp:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var i,a,n,s,r,c,l,u,f,d,p;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$jweixin.isWechat()){e.next=22;break}return t.$util.showLoading(),e.next=4,t.$jweixin.wxReady2();case 4:return e.next=6,t.$jweixin.getWxLocation();case 6:if(i=e.sent,a=i.latitude,n=void 0===a?0:a,s=i.longitude,r=void 0===s?0:s,n){e.next=15;break}return t.$util.hideAll(),t.$util.showToast({title:"请授权定位当前地址"}),e.abrupt("return");case 15:if(!n||!r){e.next=22;break}return c="".concat(n,",").concat(r),e.next=19,t.$api.base.getMapInfo({location:c});case 19:l=e.sent,u=JSON.parse(l),f=u.status,d=u.result,0==f&&(t.$util.hideAll(),p=d.address,t.toPolice({lat:n,lng:r,address:p}));case 22:case"end":return e.stop()}}),e)})))()},toPolice:function(t){var e=this;return(0,r.default)((0,o.default)().mark((function i(){return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.technician.police(t);case 2:e.$util.hideAll(),e.$util.showToast({title:"求救成功"});case 4:case"end":return i.stop()}}),i)})))()}})};e.default=u}}]); |