1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/message/message"],{"0682":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{size:{type:String,default:"90"},userId:{type:String,default:""},userName:{type:String,default:"H"}},computed:{photoStyle:function(){return"font-size: ".concat(this.size,"rpx; width: ").concat(2*this.size,"rpx; height: ").concat(2*this.size,"rpx; line-height: ").concat(2*this.size,"rpx;")}},data:function(){return{}},methods:{}};e.default=a},"1cac":function(t,e,n){"use strict";(function(t){n("813a");a(n("66fd"));var e=a(n("a412"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"1d0b":function(t,e,n){"use strict";n.r(e);var a=n("b31b"),r=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=r.a},3221:function(t,e,n){},"7b44":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={noData:function(){return Promise.all([n.e("common/vendor"),n.e("components/noData/noData")]).then(n.bind(null,"2c8c"))}},r=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"8ac4":function(t,e,n){},a412:function(t,e,n){"use strict";n.r(e);var a=n("7b44"),r=n("1d0b");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("f383");var u,i=n("f0c5"),s=Object(i["a"])(r["default"],a["b"],a["c"],!1,null,"f09ba9f0",null,!1,a["a"],u);e["default"]=s.exports},b31b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=u(n("7cc2")),r=u(n("be8a")),o=n("ccb8");function u(t){return t&&t.__esModule?t:{default:t}}var i=function(){Promise.all([n.e("common/vendor"),n.e("components/noData/noData")]).then(function(){return resolve(n("2c8c"))}.bind(null,n)).catch(n.oe)},s={components:{avatar:r.default,noData:i},data:function(){return{modalName:null,message:[],noData:!1}},onShow:function(){this.getPersonalPrivateLetter(),this.getTabBarNumber()},onPullDownRefresh:function(){this.getPersonalPrivateLetter(),this.getTabBarNumber(),t.startPullDownRefresh()},methods:{getTabBarNumber:function(){a.default.post("/hs/getTabBarNumber",{userId:t.getStorageSync("userInfo").user_id}).then((function(e){console.log("获取tabBar数字",e),e.data.unreadNumber>0?t.setTabBarBadge({index:3,text:e.data.unreadNumber.toString()}):t.removeTabBarBadge({index:3})}),(function(t){console.log("err",t)}))},goToMessage:function(e){t.setStorageSync("otherInfo",e.userInfo),t.navigateTo({url:"/pages/tabbar/message/chat-page"})},deleteMessage:function(){t.showToast({icon:"loading",title:"不能删除哦"})},getPersonalPrivateLetter:function(){var e=this;a.default.post("/hs/getPersonalPrivateLetterApp",{userId:t.getStorageSync("userInfo").user_id}).then((function(n){e.message=n.data,e.noData=!(n.data.length>0),e.message.forEach((function(e,n){var a=0;e.letterList.forEach((function(e){"0"===e.already_read&&e.receive_id===t.getStorageSync("userInfo").user_id&&a++})),e.unreadNumber=a,e.lastTime=0===e.letterList.length?"":e.letterList[e.letterList.length-1].letter_create_time})),e.message.forEach((function(n,a){n.userInfo.user_id===t.getStorageSync("userInfo").user_id&&e.message.splice(a,1)})),e.message=e.message.sort((0,o.sortBy)("lastTime",!1)),console.log("私信",n)}),(function(t){console.log("err",t)}))},ListTouchStart:function(t){this.listTouchStart=t.touches[0].pageX},ListTouchMove:function(t){this.listTouchDirection=t.touches[0].pageX-this.listTouchStart>0?"right":"left"},ListTouchEnd:function(t){"left"==this.listTouchDirection?this.modalName=t.currentTarget.dataset.target:this.modalName=null,this.listTouchDirection=null}}};e.default=s}).call(this,n("543d")["default"])},b91b:function(t,e,n){"use strict";var a=n("3221"),r=n.n(a);r.a},be8a:function(t,e,n){"use strict";n.r(e);var a=n("eea1"),r=n("f77d");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("b91b");var u,i=n("f0c5"),s=Object(i["a"]
|