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.
xxdj1/unpackage/dist/build/h5/static/js/user-pages-comment.afbd536c.js

1 line
5.8 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-comment"],{"2fcc":function(t,e,n){"use strict";var a=n("a95d"),i=n.n(a);i.a},"5c3b":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user-pages-comment"},[t._l(t.list.data,(function(e,a){return n("v-uni-view",{key:a,staticClass:"list-message flex-warp mt-md ml-lg mr-lg pd-lg fill-base radius-16",class:[{"b-1px-t":0!=a}]},[n("v-uni-image",{staticClass:"item-avatar radius",attrs:{src:e.avatarUrl}}),n("v-uni-view",{staticClass:"flex-1 ml-md"},[n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticClass:"flex-y-center"},[n("v-uni-view",{staticClass:"f-paragraph c-title mr-md"},[t._v(t._s(e.nickName))]),n("v-uni-view",{staticClass:"flex-warp"},t._l(5,(function(a,i){return n("i",{key:i,staticClass:"iconfont iconyduixingxingshixin",style:{color:i<e.star?t.subColor:"#eee"}})})),0)],1),n("v-uni-view",{staticClass:"f-icontext c-caption"},[t._v(t._s(e.create_time))])],1),n("v-uni-view",{staticClass:"flex-warp mt-sm"},t._l(e.lable_text,(function(e,a){return n("v-uni-view",{key:a,staticClass:"pt-sm pb-sm pl-md pr-md mt-sm mr-sm radius fill-body f-caption c-desc"},[t._v(t._s(e))])})),1),n("v-uni-view",{staticClass:"f-caption c-caption mt-md"},[n("v-uni-text",{staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[t._v(t._s(e.text))])],1)],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"})],2)},i=[]},"6e6c":function(t,e,n){"use strict";n.r(e);var a=n("9036"),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},9036:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var i=a(n("c7eb")),s=a(n("1da1")),r=a(n("5530")),o=n("26cb"),c={components:{},data:function(){return{options:{},param:{page:1,coach_id:""},list:{data:[]},loading:!0,showInd:0,showType:"",lockTap:!1,serviceList:[],commentList:[]}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},carList:function(t){return t.order.carList}}),onLoad:function(t){this.$util.showLoading();var e=this.$util.getPage(-1).list.data[t.index].id;this.param.coach_id=e,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:(0,r.default)((0,r.default)((0,r.default)({},(0,o.mapActions)(["getCarList"])),(0,o.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,i.default)().mark((function n(){var a;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!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:return n.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,s.default)((0,i.default)().mark((function e(){var n,a,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,a=t.param,e.next=3,t.$api.service.commentList(a);case 3:s=e.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 7:case"end":return e.stop()}}),e)})))()}