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
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-peiwan-apply"],{1271:function(t,e,n){t.exports=n.p+"static/icon-xianshang.png"},"23d4":function(t,e,n){var i=n("2b1b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("1d1afff8",i,!0,{sourceMap:!1,shadowMode:!1})},"2b1b":function(t,e,n){var i=n("c86c"),a=n("2ec5"),s=n("dd04"),o=n("1271");e=i(!1);var c=a(s),r=a(o);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/* 文章场景相关 */.apply[data-v-ee07af5c]{padding:0 %?25?%;overflow:hidden}.apply-fd[data-v-ee07af5c]{width:100%;position:fixed;left:0;bottom:0;z-index:21;padding:%?30?% %?25?%;box-sizing:border-box}.apply-fd .btn[data-v-ee07af5c]{width:100%;height:%?98?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?98?%;font-weight:400;font-size:%?30?%;color:#fff;text-align:center;line-height:%?98?%}.apply-bd[data-v-ee07af5c]{margin-top:%?20?%}.apply-bd .list[data-v-ee07af5c]{width:110%;overflow:hidden;box-sizing:border-box;margin-top:%?20?%}.apply-bd .list .item[data-v-ee07af5c]{width:%?230?%;background:url('+c+") top no-repeat;background-size:contain;float:left;text-align:left;padding:%?30?%;box-sizing:border-box;border:1px solid #f3f4f5}.apply-bd .list .item-on[data-v-ee07af5c]{background:url("+r+") top no-repeat;background-size:contain}.apply-bd .list .item-active[data-v-ee07af5c]{border:1px solid #000}.apply-bd .list .item .name[data-v-ee07af5c]{font-weight:500;font-size:%?28?%;color:#222;white-space:nowrap;overflow:hidden}.apply-bd .list .item .price[data-v-ee07af5c]{font-weight:500;font-size:%?24?%;color:#e70c0c;margin-top:%?10?%}.apply-hd[data-v-ee07af5c]{height:%?110?%;background:#fff;border-radius:%?20?%;padding:0 %?40?%;display:flex;align-items:center;box-sizing:border-box;margin:0 auto;margin-top:%?20?%}.apply-hd .a[data-v-ee07af5c]{font-weight:500;font-size:%?30?%;color:#999}.apply-hd .b[data-v-ee07af5c]{flex:1;display:flex;align-items:center;justify-content:space-between}.apply-hd .b .item[data-v-ee07af5c]{flex:1;display:flex;align-items:center;font-weight:500;font-size:%?30?%;color:#222;justify-content:center}.apply-hd .b .item uni-image[data-v-ee07af5c]{width:%?32?%;height:%?32?%;margin-right:%?20?%}.apply-hd .b .item .img1[data-v-ee07af5c]{display:block}.apply-hd .b .item .img2[data-v-ee07af5c]{display:none}.apply-hd .b .item-on .img2[data-v-ee07af5c]{display:block}.apply-hd .b .item-on .img1[data-v-ee07af5c]{display:none}",""]),t.exports=e},"2ec5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},4486:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2634")),s=i(n("2fdc")),o={data:function(){return{tabIndex:-1,id:"",list:[],clickIndex:-1,userInfo:{}}},onLoad:function(t){this.id=t.id,this.getUserInfo(),this.sitterList()},methods:{getUserInfo:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.findUserInfo({userId:uni.getStorageSync("userInfo").id});case 2:n=e.sent,i=n.code,s=n.data,o=n.msg,200==i?(t.userInfo=s,uni.setStorageSync("userInfo",s),uni.setNavigationBarTitle({title:1==t.userInfo.role?"陪玩设置":"陪玩申请"})):uni.showToast({title:o,position:"bottom",icon:"none"});case 7:case"end":return e.stop()}}),e)})))()},toReg:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function n(){var i,s,o,c;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(1!=t){n.next=15;break}if(-1!=e.tabIndex){n.next=4;break}return uni.showToast({title:"请选接单状态",position:"bottom",icon:"none"}),n.abrupt("return");case 4:if(-1!=e.clickIndex){n.next=7;break}return uni.showToast({title:"请选择服务",position:"bottom",icon:"none"}),n.abrupt("return");case 7:return n.next=9,e.$api.sitterRegister({userId:uni.getStorageSync("userInfo").id,configId:e.list[e.clickIndex].id,acceptStatus:e.tabIndex});case 9:i=n.sent,s=i.code,i.data,200==s?(uni.showToast({title:"提交成功"}),setTimeout((function(){uni.redirectTo({url:"/pages/peiwan/success"})}),2e3)):uni.showToast({title:msg,position:"bottom",icon:"none"}),n.next=27;break;case 15:if(-1!=e.clickIndex){n.next=18;break}return uni.showToast({title:"请选择服务",position:"bottom",icon:"none"}),n.abrupt("return");case 18:if(-1!=e.clickIndex){n.next=21;break}return uni.showToast({title:"请选择服务",position:"bottom",icon:"none"}),n.abrupt("return");case 21:return n.next=23,e.$api.editSitter({userId:uni.getStorageSync("userInfo").id,configId:e.list[e.clickIndex].id,acceptStatus:e.tabIndex});case 23:o=n.sent,c=o.code,o.data,200==c?uni.showToast({title:"提交成功"}):uni.showToast({title:msg,position:"bottom",icon:"none"});case 27:case"end":return n.stop()}}),n)})))()},tabItem:function(t){this.tabIndex=t},selectItem:function(t){this.clickIndex=t},sitterList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.sitterList({userId:uni.getStorageSync("userInfo").id,page:1,limit:20});case 2:n=e.sent,i=n.code,s=n.data,200==i?t.list=s.list:uni.showToast({title:msg,position:"bottom",icon:"none"});case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},"61f3":function(t,e,n){"use strict";var i=n("23d4"),a=n.n(i);a.a},"67c0b":function(t,e,n){"use strict";n.r(e);var i=n("4486"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},7874:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAyhJREFUWEfNV71zEkEUf3uBi3yEjxuGCJMtQCaFN5wmwExGK6xstLCLlsY/wMbYmdKkyR9gLDWdhTZWWsngcJcoDkVmEAoy3CSaCyESHA5udSMgiURWIUN25qp77+3vvX0fv4eA8WQyGfvBwcENhNA1AAgDwAUAcDXVSwDwGQA+EULeWK3WV6IofmMxjXoJybJML3qIEJp1OBw2h8MBNpsNeJ4Hk8l0qF6v16FWq0GlUoFyuUy/CiFkFQAeR6NRCuzEcyKARCJhMZvNCyaT6b7X6zV7vd72hb1AU0Db29v00+v1+rLH43kUCAS+d9PrCqDp9Qu32y1hjOEnkF53dv2v6zoUCgXY3d1NA8CtbtH4A8D6+vrlRqPxGmM8Tr0exKHRKBQKWyMjI9enpqY+dNo8AiCVSgURQolAIDAuCMIg7m7b0DQN8vn8FiHkSiwWy7V+tAHk8/lzmqYlJyYmLg3K8+Me0Ehsbm5+LJfLM/F4/DAn2gAURVl0uVwPgsHgQD0/biyXy4GmaUuxWGy+DUBRlBDHcRlRFPn/TThW1DQxM5lMrdFoXKRJeRgBWZaf+P3+OZ/Px2qnLzlVVaFYLK5Eo9F7KJlMOnieV8PhsLXVWPqyzqBM+0Q6na7qun4epVKpWZfL9TwUCjGoDk4km83C3t7eHUTDjzGeO63MPwlyszc8RYqipCYnJ6N2u31w7jFYonNjY2NDphH4IkmS57Sz/zgmWg3pdPorBaBPT0+bEOo5GBn8YhchhMDa2lr9TAAY7hOchSRcwRjfHVoZyrJ82+l0PhtmI3ICgCpJEqVg7Gnch2SzBKsA4GsPI5/PN+f3+/swy65aLBZBVdVfw4iqDWMcG4YhRiKR7FAISalUWopEIr8JCY0CpWQ7OzvvMcbSaVVEi5IJgjDToulH+m+Tjr8LBoPjbreb/VEZJFukFACudtLzs0XLW44MdTFpgaCr2ejo6ALHcX2tZoZhLAuC8G+rWeeTJhKJEM/z8xzHzY6NjTEtp/v7+xXDMFYRQou01P6WIswkgK7n1Wr1JgDEO9ZzmqkNhFCJEJKn6zkAvLVYLC9Z1/Mfelm2RWdW3sYAAAAASUVORK5CYII="},afe8:function(t,e,n){"use strict";n.r(e);var i=n("e3ed"),a=n("67c0b");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("61f3");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"ee07af5c",null,!1,i["a"],void 0);e["default"]=c.exports},dd04:function(t,e,n){t.exports=n.p+"static/icon-xianxia.png"},e3ed:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"apply"},[i("v-uni-view",{staticClass:"apply-hd"},[i("v-uni-view",{staticClass:"a"},[t._v("接单状态")]),i("v-uni-view",{staticClass:"b"},[2==t.userInfo.role?i("v-uni-view",{staticClass:"item",class:0==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(0)}}},[i("v-uni-image",{staticClass:"img1",attrs:{src:n("7874")}}),i("v-uni-image",{staticClass:"img2",attrs:{src:n("ec66")}}),t._v("空闲")],1):t._e(),i("v-uni-view",{staticClass:"item",class:1==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(1)}}},[i("v-uni-image",{staticClass:"img1",attrs:{src:n("7874")}}),i("v-uni-image",{staticClass:"img2",attrs:{src:n("ec66")}}),t._v("接单中")],1),i("v-uni-view",{staticClass:"item",class:2==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(2)}}},[i("v-uni-image",{staticClass:"img1",attrs:{src:n("7874")}}),i("v-uni-image",{staticClass:"img2",attrs:{src:n("ec66")}}),t._v("忙碌中")],1)],1)],1),i("v-uni-view",{staticClass:"apply-bd"},[i("v-uni-view",{staticClass:"title"},[t._v("服务内容")]),i("v-uni-view",{staticClass:"list"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item",class:t.clickIndex==n?1==e.type?"item-on item-active":"item-active":1==e.type?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectItem(n)}}},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"price"},[t._v(t._s(e.price)+"元")])],1)})),1)],1),i("v-uni-view",{staticClass:"apply-fd"},[1==t.userInfo.role?i("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toReg(1)}}},[t._v("成为陪玩师")]):i("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toReg(2)}}},[t._v("保存")])],1)],1)},a=[]},ec66:function(t,e){t.exports="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