王总上门按摩后台代码
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/dynamic-pages-technician-li...

1 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dynamic-pages-technician-list"],{"3c06":function(t,n,e){"use strict";e.r(n);var i=e("6a5e"),a=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=a.a},"443d":function(t,n,e){"use strict";var i=e("453d"),a=e.n(i);a.a},"44e9":function(t,n,e){var i=e("c86c");n=i(!1),n.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/* 文章场景相关 */.wf-list-container[data-v-a0641c40]{display:flex;justify-content:space-between;align-items:flex-start;padding:0 %?20?%}.wf-list[data-v-a0641c40]{width:calc(50% - %?10?%);display:flex;flex-direction:column}.wf-item-child[data-v-a0641c40]{background:#fff;margin-bottom:%?20?%;border-radius:%?16?%;overflow:hidden}.wf-item-child .examin-btn[data-v-a0641c40]{top:%?20?%;left:%?15?%;width:%?89?%;height:%?37?%;z-index:1}.wf-item-child .play-video-info[data-v-a0641c40]{top:%?0?%;width:100%;height:calc(100% - %?128?%);z-index:9}.wf-item-child .play-video-info .play-video[data-v-a0641c40]{width:%?66?%;height:%?66?%;background:rgba(2,2,2,.5)}.wf-item-child .play-video-info .play-video .iconfont[data-v-a0641c40]{font-size:%?28?%}.cover[data-v-a0641c40]{width:100%;height:%?100?%}.wf-item[data-v-a0641c40]{padding:%?20?%}.wf-item .avatar[data-v-a0641c40]{width:%?40?%;height:%?40?%;border-radius:%?40?%;margin-right:%?6?%}.wf-item .coach[data-v-a0641c40]{max-width:%?100?%}.wf-item .iconfont[data-v-a0641c40]{font-size:%?24?%}',""]),t.exports=n},"453d":function(t,n,e){var i=e("44e9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("b610b31c",i,!0,{sourceMap:!1,shadowMode:!1})},"509a":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"wf-list-container"},t._l(t.viewList,(function(n,i){return e("v-uni-view",{key:i,staticClass:"wf-list",attrs:{id:"wf-list"}},t._l(n.list,(function(n,a){return e("v-uni-view",{key:a,staticClass:"wf-item-child rel",attrs:{"data-id":n.id},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetail(i,a)}}},[2==t.path&&2!=n.status?e("v-uni-view",{staticClass:"examin-btn flex-center f-icontext c-base radius abs",style:{background:1==n.status?"#FC8218":"#FF6262"}},[t._v(t._s(1==n.status?"审核中":"已驳回"))]):t._e(),e("v-uni-image",{staticClass:"cover",attrs:{mode:"widthFix",id:"id"+n.id,src:n.cover},on:{load:function(n){arguments[0]=n=t.$handleEvent(n),t.handleViewRender.apply(void 0,arguments)},error:function(n){arguments[0]=n=t.$handleEvent(n),t.handleViewRender.apply(void 0,arguments)}}}),2==n.type?e("v-uni-view",{staticClass:"play-video-info flex-center c-base abs"},[e("v-uni-view",{staticClass:"play-video flex-center c-base radius"},[e("i",{staticClass:"iconfont icon-play-video"})])],1):t._e(),e("v-uni-view",{staticClass:"wf-item"},[e("v-uni-view",{staticClass:"f-desc c-black text-bold"},[t._v(t._s(n.title))]),e("v-uni-view",{staticClass:"flex-between mt-sm"},[e("v-uni-view",{staticClass:"flex-center"},[e("v-uni-image",{staticClass:"avatar",attrs:{mode:"aspectFill",src:n.work_img}}),e("v-uni-view",{staticClass:"coach f-caption c-desc ellipsis"},[t._v(t._s(n.coach_name))])],1),e("v-uni-view",{staticClass:"flex-y-baseline f-caption c-desc"},[e("i",{staticClass:"iconfont iconjuli",style:{color:t.primaryColor}}),t._v(t._s(n.distance))])],1)],1)],1)})),1)})),1)},a=[]},"679d":function(t,n,e){"use strict";e.r(n);var i=e("bd67"),a=e("3c06");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);e("ce75");var c=e("828b"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"4143157d",null,!1,i["a"],void 0);n["default"]=o.exports},"68f2":function(t,n,e){var i=e("7938");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("369b5636",i,!0,{sourceMap:!1,shadowMode:!1})},"6a5e":function(t,n,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("bf0f"),e("18f7"),e("de6c"),e("c223");var a=i(e("9b1b")),s=i(e("2634")),c=i(e("2fdc")),o=e("8f59"),r=i(e("90dd")),u={components:{wfallsFlow:r.default},data:function(){return{isLoad:!1,statusList:[{id:0,title:"全部"},{id:1,title:"审核中"},{id:2,title:"审核通过"},{id:3,title:"已驳回"}],statusInd:0,showSort:!1,loading:!0,param:{page:1,limit:10,status:0},list:{data:[]},count:{}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},haveShieldOper:function(t){return t.user.haveShieldOper}}),onLoad:function(){this.$util.setNavigationBarColor({bg:this.primaryColor}),this.$util.showLoading(),this.initIndex()},onShow:function(){var t=this;return(0,c.default)((0,s.default)().mark((function n(){return(0,s.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(1!=t.haveShieldOper){n.next=6;break}return n.next=3,t.initRefresh();case 3:t.updateUserItem({key:"haveShieldOper",val:0}),n.next=7;break;case 6:t.getDynamicData();case 7:case"end":return n.stop()}}),n)})))()},onPullDownRefresh:function(){var t=this;return(0,c.default)((0,s.default)().mark((function n(){return(0,s.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return uni.showNavigationBarLoading(),n.next=3,t.initRefresh();case 3:uni.stopPullDownRefresh();case 4:case"end":return n.stop()}}),n)})))()},onReachBottom:function(){var t=this;return(0,c.default)((0,s.default)().mark((function n(){return(0,s.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(t.list.current_page>=t.list.last_page||t.loading)){n.next=2;break}return n.abrupt("return");case 2:return t.param.page=t.param.page+1,t.loading=!0,n.next=6,t.getList();case 6:setTimeout((function(){t.$refs.wfalls.handleViewRender()}),0);case 7:case"end":return n.stop()}}),n)})))()},methods:(0,a.default)((0,a.default)({},(0,o.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,n=this;return(0,c.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!n.$jweixin.isWechat()){e.next=5;break}return e.next=4,n.$jweixin.initJssdk();case 4:n.$jweixin.wxReady((function(){n.$jweixin.hideOptionMenu()}));case 5:if(!i){e.next=10;break}return e.next=8,Promise.all([n.getDynamicData(),n.getList(1)]);case 8:e.next=12;break;case 10:return e.next=12,n.getList(1);case 12:case"end":return e.stop()}}),e)})))()},initRefresh:function(){var t=this;return(0,c.default)((0,s.default)().mark((function n(){return(0,s.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.initIndex(!0);case 2:case"end":return n.stop()}}),n)})))()},getDynamicData:function(){var t=this;return(0,c.default)((0,s.default)().mark((function n(){return(0,s.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.dynamic.dynamicData();case 2:t.count=n.sent;case 3:case"end":return n.stop()}}),n)})))()},getList:function(t){var n=this;return(0,c.default)((0,s.default)().mark((function e(){var i,a,c,o,r,u,l,d,f,v,h,p,m,w,g,x,b,y,_,C,k,$,I,L,S,R;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t&&(n.showSort=!1,n.param.page=1,n.list.data=[]),i=n.location,i.lat){e.next=23;break}if(!n.$jweixin.isWechat()){e.next=22;break}return n.$util.showLoading(),e.next=7,n.$jweixin.wxReady2();case 7:return e.next=9,n.$jweixin.getWxLocation();case 9:if(a=e.sent,c=a.latitude,o=void 0===c?0:c,r=a.longitude,u=void 0===r?0:r,i={lng:u,lat:o,address:"定位失败",province:"",city:"",district:""},!o||!u){e.next=22;break}return l="".concat(o,",").concat(u),e.next=19,n.$api.base.getMapInfo({location:l});case 19:d=e.sent,f=JSON.parse(d),v=f.status,h=f.result,0==v&&(p=h.address,m=h.address_component,w=m.province,g=m.city,x=m.district,i={lng:u,lat:o,address:p,province:w,city:g,district:x});case 22:n.updateUserItem({key:"location",val:i});case 23:return b=i,y=b.lat,_=void 0===y?0:y,C=b.lng,k=void 0===C?0:C,$=n.list,I=n.param,L=n.statusList,S=n.statusInd,I.lat=_,I.lng=k,I.status=L[S].id,e.next=30,n.$api.dynamic.coachDynamicList(I);case 30:R=e.sent,1==n.param.page||(R.data=$.data.concat(R.data)),n.list=R,n.isLoad=!0,n.loading=!1,n.$util.hideAll();case 35:case"end":return e.stop()}}),e)})))()},toChangeItem:function(t){-1==t?this.showSort=!this.showSort:(this.statusInd=t,this.showSort=!1,this.initRefresh())}})};n.default=u},7938:function(t,n,e){var i=e("c86c");n=i(!1),n.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/* 文章场景相关 */.dynamic-technician-list .count-list[data-v-4143157d]{width:%?750?%;height:%?204?%}.dynamic-technician-list .count-list .count-item[data-v-4143157d]{width:33.33%}.dynamic-technician-list .count-list .count-item .tag[data-v-4143157d]{width:%?85?%;height:%?85?%;border-radius:%?29?%}.dynamic-technician-list .count-list .count-item .tag .iconfont[data-v-4143157d]{font-size:%?44?%}.dynamic-technician-list .count-list .count-item .tag .count-tag[data-v-4143157d]{top:0;right:%?-13?%;width:%?26?%;height:%?26?%;background:#e82f21;border-radius:%?26?%}.dynamic-technician-list .count-list .count-item .thumbs[data-v-4143157d]{color:#ff6262;background:#ffefef}.dynamic-technician-list .count-list .count-item .follow[data-v-4143157d]{color:#fc8218;background:#fef6e7}.dynamic-technician-list .count-list .count-item .comment[data-v-4143157d]{color:#44a860;background:#ecf6ef}.dynamic-technician-list .dynamic-sort[data-v-4143157d]{top:%?80?%;right:%?32?%;width:%?145?%;background:#fefffe;box-shadow:0 %?14?% %?20?% 0 hsla(0,0%,51.8%,.08);border-radius:%?4?%;border:%?1?% solid #efefef;-webkit-transform:rotate(1turn);transform:rotate(1turn);z-index:1}.dynamic-technician-list .dynamic-sort .sort-item[data-v-4143157d]{padding:%?15?% 0}',""]),t.exports=n},"90dd":function(t,n,e){"use strict";e.r(n);var i=e("509a"),a=e("db95");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);e("443d");var c=e("828b"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"a0641c40",null,!1,i["a"],void 0);n["default"]=o.exports},bd67:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.isLoad?e("v-uni-view",{staticClass:"dynamic-technician-list"},[e("fixed",[e("v-uni-view",{staticClass:"fill-body"},[e("v-uni-view",{staticClass:"count-list flex-center fill-base"},[e("v-uni-view",{staticClass:"count-item flex-center flex-column f-caption c-title",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.$util.goUrl({url:"/dynamic/pages/technician/thumbs"})}}},[e("v-uni-view",{staticClass:"tag thumbs flex-center rel"},[e("i",{staticClass:"iconfont icon-shoucang-fill"}),t.count.thumbs_num?e("v-uni-view",{staticClass:"count-tag flex-center f-icontext c-base abs",style:{width:t.count.thumbs_num<10?"26rpx":"50rpx",right:t.count.thumbs_num<10?"-13rpx":"-38rpx"}},[t._v(t._s(t.count.thumbs_num<100?t.count.thumbs_num:"99+"))]):t._e()],1),e("v-uni-view",{staticClass:"mt-md"},[t._v("收获的赞")])],1),e("v-uni-view",{staticClass:"count-item flex-center flex-column f-caption c-title",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.$util.goUrl({url:"/dynamic/pages/technician/follow"})}}},[e("v-uni-view",{staticClass:"tag follow flex-center rel"},[e("i",{staticClass:"iconfont iconxinzengguanzhu"}),t.count.follow_num?e("v-uni-view",{staticClass:"count-tag flex-center f-icontext c-base abs",style:{width:t.count.follow_num<10?"26rpx":"50rpx",right:t.count.follow_num<10?"-13rpx":"-38rpx"}},[t._v(t._s(t.count.follow_num<100?t.count.follow_num:"99+"))]):t._e()],1),e("v-uni-view",{staticClass:"mt-md"},[t._v("新增关注")])],1),e("v-uni-view",{staticClass:"count-item flex-center flex-column f-caption c-title",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.$util.goUrl({url:"/dynamic/pages/technician/comment"})}}},[e("v-uni-view",{staticClass:"tag comment flex-center rel"},[e("i",{staticClass:"iconfont iconshouhuodepinglun"}),t.count.comment_num?e("v-uni-view",{staticClass:"count-tag flex-center f-icontext c-base abs",style:{width:t.count.comment_num<10?"26rpx":"50rpx",right:t.count.comment_num<10?"-13rpx":"-38rpx"}},[t._v(t._s(t.count.comment_num<100?t.count.comment_num:"99+"))]):t._e()],1),e("v-uni-view",{staticClass:"mt-md"},[t._v("收获的评论")])],1)],1),e("v-uni-view",{staticClass:"rel"},[e("v-uni-view",{staticClass:"flex-between pd-lg"},[e("v-uni-view",{staticClass:"f-title text-bold"},[t._v("我的发布")]),e("v-uni-view",{staticClass:"flex-y-center f-desc",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.toChangeItem(-1)}}},[t._v(t._s(t.statusList[t.statusInd].title)),e("i",{staticClass:"iconfont c-desc ml-sm",class:[{"iconshaixuanxia-1":t.showSort},{"iconshaixuanshang-1":!t.showSort}],staticStyle:{"font-size":"20rpx"}})])],1),t.showSort?e("v-uni-view",{staticClass:"dynamic-sort pt-md pb-md f-desc abs"},t._l(t.statusList,(function(n,i){return e("v-uni-view",{key:i,staticClass:"sort-item flex-center",style:{color:t.statusInd==i?t.primaryColor:""},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.toChangeItem(i)}}},[t._v(t._s(n.title))])})),1):t._e()],1)],1)],1),t.list.data.length>0?e("wfalls-flow",{ref:"wfalls",attrs:{list:t.list.data,path:2}}):t._e(),t.loading?e("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?e("abnor"):t._e(),e("v-uni-view",{staticClass:"space-footer"})],1):t._e()},a=[]},c0d3:function(t,n,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("2634")),s=i(e("2fdc")),c=i(e("9b1b"));e("64aa"),e("473f"),e("bf0f"),e("5c47"),e("aa9c"),e("c223");var o=e("8f59"),r={props:{list:{type:Array},path:{type:String||Number}},data:function(){return{viewList:[{list:[]},{list:[]}],everyNum:2}},mounted:function(){this.list.length&&this.init()},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},have:function(t){return t.config.configInfo.subColor}}),methods:(0,c.default)((0,c.default)({},(0,o.mapActions)()),{},{init:function(){var t=this;this.viewList=[{list:[]},{list:[]}],setTimeout((function(){t.handleViewRender(0,0)}),600)},handleViewRender:function(t,n){var e=this,i=this.viewList.reduce((function(t,n){return t+n.list.length}),0);if(i>this.list.length-1)this.$emit("finishLoad",i);else{var a=uni.createSelectorQuery().in(this),s=0;a.selectAll("#wf-list").boundingClientRect((function(t){s=t[0].bottom-t[1].bottom<=0?0:1,e.viewList[s].list.push(e.list[i])})).exec()}},goDetail:function(t,n){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var s,c,o,r;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:s=e.viewList[t].list[n].id,c=e.path,o=1==c?"":"technician/",r="/dynamic/pages/".concat(o,"detail?id=").concat(s),e.$util.goUrl({url:r});case 5:case"end":return i.stop()}}),i)})))()}})};n.default=r},ce75:function(t,n,e){"use strict";var i=e("68f2"),a=e.n(i);a.a},db95:function(t,n,e){"use strict";e.r(n);var i=e("c0d3"),a=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=a.a}}]);