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.
1 lines
5.7 KiB
1 lines
5.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-xiaoxi-haoyou"],{"1fa4":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,a=t._self._c||e;return a("v-uni-view",{staticClass:"dashan"},[a("v-uni-view",{staticClass:"list"},[t._l(t.list,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toUser(e.userid)}}},[a("v-uni-view",{staticClass:"pic"},[a("v-uni-image",{attrs:{src:e.faceImage?e.faceImage:e.img}})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"info"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nickname))]),a("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.declaration))])],1),a("v-uni-view",{staticClass:"btn",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.toChat(e.userid)}}},[t._v("去聊天")])],1)],1)})),t.isShow?a("v-uni-view",{staticClass:"empty"},[a("v-uni-image",{attrs:{src:n("7d86")}}),a("v-uni-view",{staticClass:"txt"},[t._v("暂无数据")])],1):t._e()],2),a("unverified",{attrs:{isPopup:t.isPopup}})],1)},i=[]},"3d65":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("2634")),s=a(n("2fdc")),o={data:function(){return{isPopup:!1,isShow:!1,list:[]}},onLoad:function(){var t=this;uni.$on("closeSharePopup",(function(e){t.isPopup=!1})),t.getList()},methods:{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 e.next=2,t.$api.friendList({userId:uni.getStorageSync("userInfo").id,type:5});case 2:n=e.sent,a=n.code,s=n.data,200==a&&(t.list=s,t.isShow=0==s.length);case 6:case"end":return e.stop()}}),e)})))()},toUser:function(t){0!=uni.getStorageSync("userInfo").realnameFlag?uni.navigateTo({url:"/pages/peiwan/detail?id="+t}):this.isPopup=!0},toChat:function(t){var e=this;return(0,s.default)((0,i.default)().mark((function n(){var a,s,o;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.findZegoToken({userId:uni.getStorageSync("userInfo").id,sellerId:t});case 2:a=n.sent,s=a.code,o=a.data,200==s&&(uni.setStorageSync("chatToken",o.token),uni.navigateTo({url:"/pages/users/chat/index?id="+e.id+"&roomId="+o.roomId}));case 6:case"end":return n.stop()}}),n)})))()}}};e.default=o},4589:function(t,e,n){"use strict";var a=n("e0d8"),i=n.n(a);i.a},"7d86":function(t,e,n){t.exports=n.p+"static/empty.png"},a068:function(t,e,n){"use strict";n.r(e);var a=n("3d65"),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},ad69:function(t,e,n){"use strict";n.r(e);var a=n("1fa4"),i=n("a068");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("4589");var o=n("828b"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"798ef522",null,!1,a["a"],void 0);e["default"]=r.exports},c1dc:function(t,e,n){var a=n("c86c");e=a(!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/* 文章场景相关 */.dashan[data-v-798ef522]{min-height:100vh;background-color:#fff;padding:0 %?25?%;overflow:hidden}.dashan .empty[data-v-798ef522]{padding:%?150?% 0;text-align:center;font-weight:500;font-size:%?28?%;color:#222}.dashan .empty uni-image[data-v-798ef522]{display:block;width:%?460?%;height:%?400?%;margin:0 auto}.dashan .item[data-v-798ef522]{display:flex;align-items:center}.dashan .item .pic[data-v-798ef522]{width:%?90?%;height:%?90?%;margin-right:%?20?%;position:relative}.dashan .item .pic uni-image[data-v-798ef522]{width:100%;height:100%;border-radius:50%}.dashan .item .content[data-v-798ef522]{padding:%?30?% 0;flex:1;border-bottom:1px solid #eaeaea;display:flex;align-items:center;justify-content:space-between}.dashan .item .content .info .name[data-v-798ef522]{font-weight:400;font-size:%?30?%;color:#222}.dashan .item .content .info .name uni-image[data-v-798ef522]{width:%?95?%;height:%?30?%;display:block}.dashan .item .content .info .desc[data-v-798ef522]{font-weight:400;font-size:%?24?%;color:#aaa;margin-top:%?15?%;max-width:%?400?%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dashan .item .content .btn[data-v-798ef522]{width:%?150?%;line-height:%?70?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?70?%;text-align:center;font-weight:500;font-size:%?24?%;color:#fff;text-align:center}',""]),t.exports=e},e0d8:function(t,e,n){var a=n("c1dc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("195ac4c0",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |