王总上门按摩后台代码
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-co...

1 lines
6.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dynamic-pages-technician-comment"],{2199:function(t,e,n){"use strict";n.r(e);var i=n("8250"),a=n("a68e");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("f968");var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"812e08e4",null,!1,i["a"],void 0);e["default"]=c.exports},"36fa":function(t,e,n){var i=n("abcd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("6c073aba",i,!0,{sourceMap:!1,shadowMode:!1})},8250: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,n=t._self._c||e;return n("v-uni-view",{staticClass:"dynamic-technician-comment"},[t._l(t.list.data,(function(e,i){return n("v-uni-view",{key:i,staticClass:"list-item flex-warp ml-lg mr-lg pt-lg pb-lg",class:[{"b-1px-t":0!==i}],on:{longpress:function(e){arguments[0]=e=t.$handleEvent(e),t.toDel(i)}}},[n("v-uni-image",{staticClass:"avatar radius",attrs:{mode:"aspectFill",src:e.avatarUrl}}),n("v-uni-view",{staticClass:"flex-1 ml-md"},[n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",[n("v-uni-view",{staticClass:"flex-y-center f-paragraph c-title text-bold"},[n("v-uni-view",{staticClass:"max-400 ellipsis"},[t._v(t._s(e.nickName))]),1==e.status?n("v-uni-view",{staticClass:"examine-btn flex-center f-icontext ml-md radius"},[t._v("审核中")]):t._e()],1),n("v-uni-view",{staticClass:"text flex-y-center f-caption"},[t._v("评论了你的动态"),n("v-uni-view",{staticClass:"ml-md"},[t._v(t._s(e.friend_time))])],1)],1),n("v-uni-image",{staticClass:"cover radius-16",attrs:{mode:"aspectFill",src:e.cover}})],1),n("v-uni-view",{staticClass:"comment f-paragraph mt-md"},[t._v(t._s(e.text))])],1)],1)})),t.loading?n("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?n("abnor"):t._e(),n("v-uni-view",{staticClass:"space-footer"}),n("common-popup",{ref:"del_item",attrs:{type:"DELETE_ORDER",title:"删除评论",desc:"请确认是否删除评论,删除后将无法恢复",info:t.popupInfo},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmDel.apply(void 0,arguments)}}})],2)},a=[]},a68e:function(t,e,n){"use strict";n.r(e);var i=n("b4ca"),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},abcd:function(t,e,n){var i=n("c86c");e=i(!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/* 文章场景相关 */uni-page-body[data-v-812e08e4]{background:#fff}body.?%PAGE?%[data-v-812e08e4]{background:#fff}.dynamic-technician-comment .list-item .avatar[data-v-812e08e4]{width:%?72?%;height:%?72?%;margin-top:%?16?%}.dynamic-technician-comment .list-item .cover[data-v-812e08e4]{width:%?107?%;height:%?107?%}.dynamic-technician-comment .list-item .text[data-v-812e08e4]{color:#adadad;margin-top:%?6?%}.dynamic-technician-comment .list-item .comment[data-v-812e08e4]{color:#3a3a3a;line-height:1.4}.dynamic-technician-comment .list-item .examine-btn[data-v-812e08e4]{width:%?82?%;height:%?34?%;color:#f96246;background:rgba(249,98,70,.1)}',""]),t.exports=e},b4ca:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c223"),n("dd2b");var a=i(n("2634")),s=i(n("2fdc")),o=n("8f59"),c={data:function(){return{loading:!0,param:{page:1},list:{data:[]},popupInfo:{},lockTap:!1}},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}}),onLoad:function(){this.$util.setNavigationBarColor({bg:this.primaryColor}),this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,a.default)().mark((function n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:e.getList();case 6:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t,this.param.status=t,this.getList()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList: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 t.$util.showLoading(),n=t.list,i=t.param,e.next=4,t.$api.dynamic.coachCommentList(i);case 4:s=e.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},toDel:function(t){var e=this.list.data[t],n=e.id,i=e.cover;this.popupInfo={id:n,name:"",image:i,index:t},this.$refs.del_item.open()},confirmDel: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:if(n=t.popupInfo,i=n.id,s=n.index,!t.lockTap){e.next=3;break}return e.abrupt("return");case 3:return t.lockTap=!0,t.$util.showLoading(),e.prev=5,e.next=8,t.$api.dynamic.commentDel({id:i});case 8:t.lockTap=!1,t.$util.hideAll(),t.list.data.splice(s,1),t.$util.showToast({title:"删除成功"}),t.$refs.del_item.close(),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](5),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 18:case"end":return e.stop()}}),e,null,[[5,15]])})))()}}};e.default=c},f968:function(t,e,n){"use strict";var i=n("36fa"),a=n.n(i);a.a}}]);