连云港陪玩陪聊
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.
 
 
 
 
 
 
chunwan/unpackage/dist/build/web/static/js/pages-xiaoxi-index.04812648.js

1 lines
25 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-xiaoxi-index"],{"0086":function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.u-navbar[data-v-928a20ca]{width:100%}.u-navbar-fixed[data-v-928a20ca]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-928a20ca]{width:100%}.u-navbar-inner[data-v-928a20ca]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-928a20ca]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-928a20ca]{flex:1}.u-title[data-v-928a20ca]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=e},"18bd":function(t,e,i){var n=i("0086");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("ddbc29aa",n,!0,{sourceMap:!1,shadowMode:!1})},"20c4":function(t,e,i){"use strict";i.r(e);var n=i("279d"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},2486:function(t,e,i){"use strict";var n=i("e6ff"),a=i.n(n);a.a},"24b2":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:i("1a39").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[i("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[i("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),i("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?i("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?i("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?i("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[i("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),i("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),i("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?i("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},s=[]},"279d":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var n={name:"u-swipe-action",emits:["click","content-click","open","close"],props:{index:{type:[Number,String],default:""},btnWidth:{type:[String,Number],default:180},disabled:{type:Boolean,default:!1},show:{type:Boolean,default:!1},bgColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},options:{type:Array,default:function(){return[]}}},watch:{show:{immediate:!0,handler:function(t,e){t?this.open():this.close()}}},data:function(){return{moveX:0,scrollX:0,status:!1,movableAreaWidth:0,elId:this.$u.guid(),showBtn:!1}},computed:{movableViewWidth:function(){return this.movableAreaWidth+this.allBtnWidth+"px"},innerBtnWidth:function(){return uni.upx2px(this.btnWidth)},allBtnWidth:function(){return uni.upx2px(this.btnWidth)*this.options.length},btnStyle:function(){var t=this;return function(e){return e.width=t.btnWidth+"rpx",e}}},mounted:function(){this.getActionRect()},methods:{btnClick:function(t){this.status=!1,this.$emit("click",this.index,t)},change:function(t){this.scrollX=t.detail.x},close:function(){this.moveX=0,this.status=!1},open:function(){this.disabled||(this.moveX=-this.allBtnWidth,this.status=!0)},touchend:function(){this.moveX=this.scrollX,this.$nextTick((function(){var t=this;0==this.status?this.scrollX<=-this.allBtnWidth/4?(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent(),this.vibrateShort&&uni.vibrateShort()):(this.moveX=0,this.status=!1,this.emitCloseEvent()):this.scrollX>3*-this.allBtnWidth/4?(this.moveX=0,this.$nextTick((function(){t.moveX=101})),this.status=!1,this.emitCloseEvent()):(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent())}))},emitOpenEvent:function(){this.$emit("open",this.index)},emitCloseEvent:function(){this.$emit("close",this.index)},touchstart:function(){},getActionRect:function(){var t=this;this.$uGetRect(".u-swipe-action").then((function(e){t.movableAreaWidth=e.width,t.$nextTick((function(){t.showBtn=!0}))}))},contentClick:function(){1==this.status&&(this.status="close",this.moveX=0),this.$emit("content-click",this.index)}}};e.default=n},"2a9a":function(t,e,i){"use strict";i.r(e);var n=i("d7e9"),a=i("20c4");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("2486");var o=i("828b"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"73f8fd82",null,!1,n["a"],void 0);e["default"]=c.exports},"2b7a":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uNavbar:i("db36").default,uTabs:i("f7c4").default,uSwipeAction:i("2a9a").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"xiaoxi"},[n("v-uni-view",{staticClass:"xiaoxi-navbar"},[n("u-navbar",{attrs:{"is-back":!1,title:"消息"}},[n("v-uni-view",{attrs:{slot:"right"},slot:"right"},[n("v-uni-view",{staticClass:"search",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearInfo()}}},[n("v-uni-image",{attrs:{src:i("3166")}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"xiaoxi-tab"},[n("v-uni-view",{staticClass:"tab"},[n("u-tabs",{attrs:{list:t.list,"bg-color":"transparent","is-scroll":!1,"active-color":"#222222","inactive-color":"#666666","font-size":"30","active-item-style":t.activeStyle,"bar-height":"10","bar-width":"60"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTabs.apply(void 0,arguments)}},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1)],1),1==t.current?n("v-uni-view",{staticClass:"xiaoxi-select"},[n("v-uni-view",{staticClass:"select"},[n("v-uni-view",{staticClass:"item",class:0==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectItem(0)}}},[t._v("好友")]),n("v-uni-view",{staticClass:"item",class:1==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectItem(1)}}},[t._v("关注")]),n("v-uni-view",{staticClass:"item",class:2==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectItem(2)}}},[t._v("粉丝")])],1)],1):t._e(),n("v-uni-view",{staticClass:"xiaoxi-list"},[0==t.current?n("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage("/pages/xiaoxi/dashan")}}},[n("v-uni-view",{staticClass:"pic"},[n("v-uni-image",{attrs:{src:i("7068")}}),t.count?n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.count<=99?t.count:"+99"))]):t._e()],1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"name"},[t._v("搭讪消息")]),n("v-uni-view",{staticClass:"desc"},[t._v("上学和工作,哪个更快来呢?上学的...")])],1)],1):t._e(),0==t.current?n("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage("/pages/xiaoxi/xitong")}}},[n("v-uni-view",{staticClass:"pic"},[n("v-uni-image",{attrs:{src:i("eae5")}})],1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"name"},[t._v("系统消息")]),n("v-uni-view",{staticClass:"desc"},[t._v(t._s(t.xiaoxiinfo.noticeTitle?t.xiaoxiinfo.noticeTitle:"暂无消息"))])],1)],1):t._e(),n("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage("/pages/xiaoxi/fangke")}}},[n("v-uni-view",{staticClass:"pic"},[n("v-uni-image",{attrs:{src:i("7a9f")}})],1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"name"},[t._v("谁看过我")]),n("v-uni-view",{staticClass:"desc"},[t._v("对你感兴趣的人一直默默关注你")])],1)],1),t._l(t.frindList,(function(e,i){return n("u-swipe-action",{key:e.userid,attrs:{index:i,options:t.options},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"item",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toChat(e)}}},[n("v-uni-view",{staticClass:"pic"},[n("v-uni-image",{attrs:{src:e.faceImage}}),e.noReadCount?n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.noReadCount<=99?e.noReadCount:"+99"))]):t._e()],1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nickname)),n("v-uni-text",[t._v(t._s(e.createTime))])],1),3==e.type?n("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.message))]):t._e(),1==e.type?n("v-uni-view",{staticClass:"desc"},[t._v("你有一条新的语音!")]):t._e(),2==e.type?n("v-uni-view",{staticClass:"desc"},[t._v("你有一条新的视频!")]):t._e(),4==e.type?n("v-uni-view",{staticClass:"desc"},[t._v("你有一张新的图片!")]):t._e(),5==e.type?n("v-uni-view",{staticClass:"desc"},[t._v("你有一个新的礼物!")]):t._e(),6==e.type?n("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.message))]):t._e()],1)],1)],1)}))],2)],1)},s=[]},3166:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABBFJREFUWEftmF1oXEUUx///uW5VRAVtLZUke2duLRJFEX3wA0FBk/oixiaCiK1frwo+KQgB+yD6JOiz31Kx2lYEsa2ggigIooha+tA7czcJkdgqWE1cWPceM8vdssT9yN3dkg3NPO0yM2d+9z9nzpk5xDprXGe8ODeBR0ZGTBAEe0leC0Ct2LVURH6uVqvTMzMzttcd7VnhoaGhCwuFwi8kdTsYEXGVSuWaubm5f3qB7hk4DMNxpdThBohjABaz/xcBGK33pWm6M0mSI2sKrLWeIrnfQ4jIq865pxqBtNavkHwy63/AOffBWgNPkqxBkLw/juNDjUBRFE2IyMEMeMo59+HAAAOYtNYeaAQyxuwCUIMUkQ3g3LultT7jEhsKN5Gv57C2oXAHpzz3FI6i6D4RqcfetmGN5EQcxx/lPtkNE9oqbIx5DIAP/Be3WoTklob02xYYwDEROdnG1l8ADllrX285plWHMeYZAC/mVKMT8GrNPWutfanZ4JYKG2NOAIiyDLVI8leffVutKCK+72nn3Mcr7hL3AniZpLShFRHZRtJflnyLrbXbcwFrrU+RvBzAb5VK5YbZ2dn51crTzbjh4eErC4XCDwCuEJHfnXObcwEbY7yvbRaRw865e7qByDtHa/0pyZ0ATllr/dn4X2vnEnXgo8658byLdzNea32E5FivwOtD4QYfPlmtVq8vlUr+0J21ViwWtwVB8COALSLyh3POn59cLuEAhKuNEj1+ycooccJae1Uu4DAMp5VSz/cI0tV0EXnOOfdCLmA/OAzDPUqpxwHcnil9HMBCVxStJ20leXXW/VWapq8lSfJWq+EdLz9hGN6hlPoiA97tnHunn8Ba64dJvu1tpml6Z5IkX7az3xFYa303yaPeCMlH4zh+s5/AURQ9IiJvZIKMOec+GxjgKIq2p2k6TfJ9a+0nHmyggY0x+wA8uHzn+DPLZJVBAy4AqNS3WGu9n+SUiCwuLS1tXVhYWBwYYK21P0i7SD5hrX3PQw8y8CZjjK+vnQfgoLXWF1MGB9gYc9dyOTUtlUqfe7DR0dFN5XL5NIDzARyw1k6uCfByyXSPc64WM+utWCzeGgTB11kcvTlJkm/zAGutdy+XamuJQkT6EtbGSNZKpM2qk421szRNJ5Ik8Y9MZYxZyhTeZ619yM83xrwLwP/+21p7mT+QK6qb4865WszvOtMVi8VbgiD4pm5ARHx6Pk2ynnQuBbAj+6DjJP1D0n/cjSSVfz0A8M8t/0TaQdKD/gvgexG5pCEto1qt3lYqlc6s1Qy6Y6YLw/ACpdRPAJq+sfqY9eJyuXzd/Py835nuFfYz/V1VKbUXwE0kgz5C+p2oAvjOZ8DV3Lk7KtxPuH7Y2gDuh4o9+/DZhshj/z9YvapL8aUECgAAAABJRU5ErkJggg=="},"3e05":function(t,e,i){"use strict";i.r(e);var n=i("d386"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"53d7":function(t,e,i){"use strict";i.r(e);var n=i("2b7a"),a=i("3e05");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("5aa6");var o=i("828b"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"4a3df13c",null,!1,n["a"],void 0);e["default"]=c.exports},"56ef":function(t,e,i){"use strict";i.r(e);var n=i("a50c"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"5aa6":function(t,e,i){"use strict";var n=i("ca6b"),a=i.n(n);a.a},7068:function(t,e,i){t.exports=i.p+"static/dashan.png"},"719f":function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.xiaoxi[data-v-4a3df13c]{background-color:#fff;min-height:100vh;overflow:hidden}.xiaoxi-navbar uni-image[data-v-4a3df13c]{width:%?45?%;height:%?45?%;margin-right:%?30?%}.xiaoxi-tab[data-v-4a3df13c]{display:flex;margin-top:%?10?%;overflow:hidden}.xiaoxi-tab .tab[data-v-4a3df13c]{width:%?250?%}.xiaoxi-select[data-v-4a3df13c]{padding:%?20?% %?25?%;overflow:hidden}.xiaoxi-select .select[data-v-4a3df13c]{display:flex;justify-content:center;border-radius:%?20?%;border:1px solid #ccc;overflow:hidden}.xiaoxi-select .select .item[data-v-4a3df13c]{flex:1;text-align:center;line-height:%?80?%;border-left:1px solid #ccc}.xiaoxi-select .select .item[data-v-4a3df13c]:first-child{border-left-color:#fff}.xiaoxi-select .select .item-on[data-v-4a3df13c]{background-color:#000;color:#fff}.xiaoxi-select .select .item-on[data-v-4a3df13c]:first-child{border-left-color:#000}.xiaoxi-list[data-v-4a3df13c]{padding:0 %?25?% %?25?%;overflow:hidden}.xiaoxi-list .item[data-v-4a3df13c]{display:flex;align-items:center}.xiaoxi-list .item .pic[data-v-4a3df13c]{width:%?90?%;height:%?90?%;margin-right:%?20?%;position:relative}.xiaoxi-list .item .pic .num[data-v-4a3df13c]{width:%?30?%;height:%?30?%;line-height:%?30?%;background:#fc2c2c;border-radius:50%;font-weight:500;font-size:%?18?%;color:#fff;text-align:center;position:absolute;right:0;top:0;z-index:2}.xiaoxi-list .item .pic uni-image[data-v-4a3df13c]{width:100%;height:100%;border-radius:50%}.xiaoxi-list .item .info[data-v-4a3df13c]{padding:%?30?% 0;flex:1;border-bottom:1px solid #eaeaea}.xiaoxi-list .item .info .name[data-v-4a3df13c]{font-weight:400;font-size:%?30?%;color:#222}.xiaoxi-list .item .info .name uni-text[data-v-4a3df13c]{float:right;font-weight:400;font-size:%?24?%;color:#aaa}.xiaoxi-list .item .info .desc[data-v-4a3df13c]{font-weight:400;font-size:%?24?%;color:#aaa;margin-top:%?15?%}',""]),t.exports=e},"7a9f":function(t,e,i){t.exports=i.p+"static/kan.png"},a50c:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var n=uni.getSystemInfoSync(),a={},s={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:a,statusBarHeight:n.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(n.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=s},b2bf:function(t,e,i){"use strict";var n=i("18bd"),a=i.n(n);a.a},ca6b:function(t,e,i){var n=i("719f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("09d7f07a",n,!0,{sourceMap:!1,shadowMode:!1})},d386:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2634")),s=n(i("2fdc")),o={data:function(){return{tabIndex:0,current:0,list:[{name:"消息"},{name:"好友"}],activeStyle:{fontSize:"35rpx"},frindList:[],type:0,count:0,xiaoxiinfo:{},options:[{text:"删除",style:{backgroundColor:"#dd524d"}}]}},onShow:function(){this.getList(),this.dashaCount(),this.getXiaoxiList(),uni.getStorageSync("isOpen")&&uni.getStorageSync("userInfo").id&&this.watchSocket()},methods:{watchSocket:function(){var t=this;uni.onSocketMessage((function(e){var i=e.data?JSON.parse(e.data):{};"message"==i.topic&&i.type<=7&&uni.getStorageSync("userInfo").id==i.sellerId&&(1==i.userMsgVoice&&uni.$emit("playAudio"),1==i.userMsgShock&&uni.vibrateLong({complete:function(t){console.log("success",t)}}),t.getList())}))},toChat:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var n,s,o;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.findZegoToken({userId:uni.getStorageSync("userInfo").id,sellerId:t.userid});case 2:n=i.sent,s=n.code,o=n.data,200==s&&(uni.setStorageSync("chatToken",o.token),uni.navigateTo({url:"/pages/users/chat/index?id="+t.userid+"&roomId="+o.roomId}));case 6:case"end":return i.stop()}}),i)})))()},click:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function i(){var n,s,o;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.cleanOneMsg({msgId:e.frindList[t].msgId,otherUserStatus:e.frindList[t].otherUserStatus,userId:uni.getStorageSync("userInfo").id});case 2:n=i.sent,s=n.code,n.data,o=n.msg,200==s?(uni.showToast({title:"删除成功"}),e.getList()):uni.showToast({title:o,icon:"none",position:"bottom"});case 7:case"end":return i.stop()}}),i)})))()},getXiaoxiList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.systemNoticeList({userId:uni.getStorageSync("userInfo").id,limit:1,page:1});case 2:i=e.sent,n=i.code,s=i.data,200==n&&(t.xiaoxiinfo=0==s.toal?{}:s.list[0]);case 6:case"end":return e.stop()}}),e)})))()},dashaCount:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.dashaCount({userId:uni.getStorageSync("userInfo").id});case 2:i=e.sent,n=i.code,s=i.data,200==n&&(t.count=s);case 6:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.findFrindList({userId:uni.getStorageSync("userInfo").id,type:t.type});case 2:i=e.sent,n=i.code,s=i.data,200==n&&(t.frindList=s);case 6:case"end":return e.stop()}}),e)})))()},openPage:function(t){uni.navigateTo({url:t})},clearInfo:function(){var t=this;uni.showModal({title:"提示",content:"确定要清空所有未读消息吗?",confirmColor:"#000",success:function(e){return(0,s.default)((0,a.default)().mark((function i(){var n,s;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!e.confirm){i.next=7;break}return i.next=3,t.$api.cleanAllMsg({userId:uni.getStorageSync("userInfo").id});case 3:n=i.sent,s=n.code,n.data,200==s&&(uni.showToast({title:"清除成功"}),t.getList(),t.dashaCount());case 7:case"end":return i.stop()}}),i)})))()}})},selectItem:function(t){this.tabIndex=t,0==t?(this.type=5,this.getList()):1==t?(this.type=1,this.getList()):2==t&&(this.type=3,this.getList())},changeTabs:function(t){this.current=t,0==t?(this.type=0,this.getList()):(this.type=5,this.getList())}}};e.default=o},d7e9:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[i("v-uni-movable-area",{staticClass:"u-swipe-action",style:{backgroundColor:t.bgColor}},[i("v-uni-movable-view",{staticClass:"u-swipe-view",style:{width:t.movableViewWidth?t.movableViewWidth:"100%"},attrs:{direction:"horizontal",disabled:t.disabled,x:t.moveX},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchend.apply(void 0,arguments)},touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchstart.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-swipe-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.contentClick.apply(void 0,arguments)}}},[t._t("default")],2),t._l(t.options,(function(e,n){return t.showBtn?i("v-uni-view",{key:n,staticClass:"u-swipe-del",style:[t.btnStyle(e.style)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.btnClick(n)}}},[i("v-uni-view",{staticClass:"u-btn-text"},[t._v(t._s(e.text))])],1):t._e()}))],2)],1)],1)},a=[]},da7d:function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.u-swipe-action[data-v-73f8fd82]{width:auto;height:auto;position:relative;overflow:hidden}.u-swipe-view[data-v-73f8fd82]{display:flex;flex-direction:row;height:auto;position:relative\n /* 这一句很关键,覆盖默认的绝对定位 */}.u-swipe-content[data-v-73f8fd82]{flex:1}.u-swipe-del[data-v-73f8fd82]{position:relative;font-size:%?30?%;color:#fff}.u-btn-text[data-v-73f8fd82]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}',""]),t.exports=e},db36:function(t,e,i){"use strict";i.r(e);var n=i("24b2"),a=i("56ef");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("b2bf");var o=i("828b"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"928a20ca",null,!1,n["a"],void 0);e["default"]=c.exports},e6ff:function(t,e,i){var n=i("da7d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("14753d1a",n,!0,{sourceMap:!1,shadowMode:!1})},eae5:function(t,e,i){t.exports=i.p+"static/xitong.png"}}]);