猎豆优选小程序

pages-subPackages-my-friendList.00e81bc5.js 12KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-my-friendList"],{"0adb":function(t,e,n){var i=n("24fb");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/* 文章场景相关 */.level-tips-wrap[data-v-0bc3fbc8]{display:flex;align-items:center;background-color:#fff;margin:%?10?% 0;padding:%?20?%}.level-tips-wrap .icon[data-v-0bc3fbc8]{width:%?34?%;height:%?28?%}.level-tips-wrap .tips[data-v-0bc3fbc8]{margin-left:%?10?%;font-size:%?26?%;color:#f10b00}.level-tips-wrap .iconClose[data-v-0bc3fbc8]{margin-left:auto}',""]),t.exports=e},3432:function(t,e,n){var i=n("9f29");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("3e279ab6",i,!0,{sourceMap:!1,shadowMode:!1})},"44db":function(t,e,n){var i=n("0adb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("8db76b9e",i,!0,{sourceMap:!1,shadowMode:!1})},"55cb":function(t,e,n){"use strict";n.r(e);var i=n("6fee"),a=n("8d61");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("fcef");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"0bc3fbc8",null,!1,i["a"],void 0);e["default"]=r.exports},"6fee":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uIcon:n("5fbc").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"level-tips-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickNotice.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/imgs/icon-notice.png"}}),n("v-uni-text",{staticClass:"tips"},[t._v(t._s(t.text))]),t._t("default",[n("u-icon",{staticClass:"iconClose",attrs:{name:t.name,color:"#F10B00",size:"24"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeEvent.apply(void 0,arguments)}}})])],2)],1)},s=[]},"8d61":function(t,e,n){"use strict";n.r(e);var i=n("df35"),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},"9f29":function(t,e,n){var i=n("24fb");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/* 文章场景相关 */.pageBox[data-v-9e94eb74]{background-color:#f5f5f5;position:relative}.pageBox .navbar_name[data-v-9e94eb74]{color:#fff;font-size:%?36?%;padding-left:40%;display:flex;align-items:center}.pageBox .navbar_name .lMar10[data-v-9e94eb74]{margin-left:%?10?%}.pageBox .stickBox[data-v-9e94eb74]{position:-webkit-sticky;position:sticky;background-color:#f5f5f5;padding-top:%?1?%;z-index:9999}.pageBox .typeBox[data-v-9e94eb74]{background-color:#fff;color:#333;font-size:%?32?%;padding:%?20?% %?50?%;border-bottom:%?2?% solid #f1f1f1;display:flex;align-items:center;justify-content:space-between;text-align:center;position:relative;z-index:10}.pageBox .typeBox .name[data-v-9e94eb74]{margin-top:%?15?%;font-size:%?30?%}.pageBox .typeBox .active[data-v-9e94eb74]{color:#f13641;font-weight:600}.friends-item[data-v-9e94eb74]{display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:%?20?% %?40?%;border-bottom:%?4?% solid #f5f5f5}.friends-item .friends-head[data-v-9e94eb74]{width:%?100?%;height:%?100?%;border-radius:%?8?%;margin-right:%?40?%}.friends-item .friends-con .friends-title-block[data-v-9e94eb74]{display:flex;align-items:center}.friends-item .friends-con .friends-title-block .friends-title[data-v-9e94eb74]{color:#333;font-size:%?30?%;line-height:%?40?%}.friends-item .friends-con .friends-title-block .friend-tag-img[data-v-9e94eb74]{width:%?120?%;height:%?40?%;margin-left:%?6?%}.friends-item .friends-con .friends-other[data-v-9e94eb74]{font-size:%?26?%;line-height:%?40?%;color:#999;margin-top:%?10?%}.fixed-center[data-v-9e94eb74]{display:flex;align-items:center}.loadinfo[data-v-9e94eb74]{text-align:center;color:#666;font-size:%?28?%;margin:%?20?% 0}.inviteFriend[data-v-9e94eb74]{font-size:%?22?%;color:#f13641;border:%?2?% solid #f13641;line-height:%?46?%;padding:0 %?20?%;border-radius:%?46?%;background:transparent;margin:0}',""]),t.exports=e},d8a1:function(t,e,n){"use strict";var i=n("3432"),a=n.n(i);a.a},d9abf:function(t,e,n){"use strict";n.r(e);var i=n("ecac"),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},df35:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{text:{type:String,default:""},name:{type:String,default:"close"}},data:function(){return{}},methods:{onClickNotice:function(){this.$emit("clickNotice")},closeEvent:function(){this.$emit("close")}}};e.default=i},ecac:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var a=i(n("c7eb")),s=i(n("1da1")),o=i(n("55cb")),r=i(n("f86d")),c=getApp(),l={components:{notice:o.default,orderList:r.default},data:function(){return{background:c.globalData.navbarBackground,statusBarHeight:c.globalData.statusBarHeight,navigationBarHeight:c.globalData.navigationBarHeight,showNotice:!0,topNaiv:{},typeAc:2,listProp:[],loading:!0,page:1,isEnd:!1,scrollTop:0}},onPageScroll:function(t){this.scrollTop=t.scrollTop},onLoad:function(){this.getTopNaiv(),this.getFriendlist()},onReachBottom:function(){this.isEnd||this.loading||(this.loading=!0,this.page++,this.getFriendlist())},onPullDownRefresh:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getTopNaiv();case 2:return t.page=1,e.next=5,t.getFriendlist();case 5:uni.stopPullDownRefresh();case 6:case"end":return e.stop()}}),e)})))()},methods:{getTopNaiv:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=t.$api.adzoneCreate_getTopNaiv,i={},uni.showLoading({title:"加载中...",mask:!0}),e.next=6,t.$postJSON(n,i);case 6:s=e.sent,o=s.data,o&&0==o.errno?t.topNaiv=o.rst.data:uni.showToast({title:o.err||"操作失败",icon:"none"}),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),uni.showToast({title:"服务器错误",icon:"none"});case 14:return e.prev=14,uni.hideLoading(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},getFriendlist:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 1==t.page&&uni.pageScrollTo({scrollTop:0}),e.prev=1,n=t.$api.adzoneCreate_getTypeOperate,i={page:t.page,type:t.typeAc},uni.showLoading({title:"加载中...",mask:!0}),e.next=7,t.$postJSON(n,i);case 7:s=e.sent,o=s.data,t.loading=!1,o&&0==o.errno?(o.rst.data.length<=0?t.isEnd=!0:t.isEnd=!1,1==t.page?t.listProp=o.rst.data:t.listProp=t.listProp.concat(o.rst.data)):uni.showToast({title:o.err||"操作失败",icon:"none"}),e.next=17;break;case 13:e.prev=13,e.t0=e["catch"](1),t.loading=!1,uni.showToast({title:"服务器错误",icon:"none"});case 17:return e.prev=17,t.loading=!1,uni.hideLoading(),e.finish(17);case 21:case"end":return e.stop()}}),e,null,[[1,13,17,21]])})))()},clickNotice:function(){if(3!=this.topNaiv.top_level)uni.navigateTo({url:"/pages/subPackages/my/tqjs"});else{var t=encodeURIComponent(this.topNaiv.url);$router.navigateTo({url:"/pages/webView/webView?url=".concat(t,"&title=运营商后台")})}},switchType:function(t){this.typeAc=t,this.page=1,this.getFriendlist()}}};e.default=l},f1f0:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uNavbar:n("6103").default,uBackTop:n("3554").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"pageBox"},[n("u-navbar",{staticClass:"navbar-wrap",attrs:{title:"我的好友","title-color":"#fff","back-icon-color":"#fff",background:t.background}}),n("v-uni-view",{staticClass:"stickBox",style:{top:t.statusBarHeight+t.navigationBarHeight+"px"}},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showNotice,expression:"showNotice"}]},[n("notice",{attrs:{text:t.topNaiv.top_message,name:"arrow-right"},on:{clickNotice:function(e){arguments[0]=e=t.$handleEvent(e),t.clickNotice.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"typeBox"},t._l(t.topNaiv.top_friend,(function(e){return n("v-uni-view",{key:e.top_name,class:e.top_type==t.typeAc?"active":"",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.switchType(e.top_type)}}},[n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.count))]),n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.top_name))])],1)})),1)],1),t._l(t.listProp,(function(e){return n("v-uni-view",{key:e.id,staticClass:"friends-item"},[n("v-uni-view",{staticClass:"fixed-center"},[n("v-uni-image",{staticClass:"friends-head",attrs:{src:e.img,mode:"widthFix"}}),n("v-uni-view",{staticClass:"friends-con"},[n("v-uni-view",{staticClass:"friends-title-block"},[n("v-uni-view",{staticClass:"friends-title"},[t._v(t._s(e.name))]),3==e.level?n("v-uni-image",{staticClass:"friend-tag-img",attrs:{src:"/static/imgs/tag-yys.png",mode:"widthFix"}}):t._e(),2==e.level?n("v-uni-image",{staticClass:"friend-tag-img",attrs:{src:"/static/imgs/tag-svip.png",mode:"widthFix"}}):t._e(),1==e.level?n("v-uni-image",{staticClass:"friend-tag-img",attrs:{src:"/static/imgs/tag-vip.png",mode:"widthFix"}}):t._e()],1),n("v-uni-view",{staticClass:"friends-other"},[t._v(t._s(e.phone)+" "+t._s(e.regist_at))])],1)],1),5==t.typeAc?n("v-uni-button",{staticClass:"inviteFriend",attrs:{"open-type":"share","data-source":"inviteFriend"}},[t._v("邀请注册")]):t._e()],1)})),t.listProp.length>0&&!t.loading&&t.isEnd?n("v-uni-view",{staticClass:"loadinfo"},[t._v("没有更多了")]):t._e(),t.listProp.length<=0&&!t.loading?n("v-uni-view",{staticClass:"no-data-blcok",staticStyle:{"margin-top":"200rpx"}},[n("v-uni-image",{staticClass:"no-data-img",attrs:{src:"/static/imgs/no-order.png",mode:"widthFix"}}),n("v-uni-view",{staticClass:"no-data-hint"},[t._v("您还没有好友~")])],1):t._e(),n("u-back-top",{attrs:{"scroll-top":t.scrollTop}})],2)},s=[]},fb34:function(t,e,n){"use strict";n.r(e);var i=n("f1f0"),a=n("d9abf");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("d8a1");var o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"9e94eb74",null,!1,i["a"],void 0);e["default"]=r.exports},fcef:function(t,e,n){"use strict";var i=n("44db"),a=n.n(i);a.a}}]);