1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member-inviter-InviterUser"],{"0868":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(a("5530")),s=a("26cb"),n=a("de79"),o={name:"MemberBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,r.default)((0,r.default)({},(0,s.mapState)({user:function(t){return t.member.info},isOnline:function(t){return t.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var t=getCurrentPages(),e=t[t.length-1];this.page={route:e.route,options:e.options},this.user||uni.navigateTo({url:"/pages/home/memberlogin/Login?clear=1"}),this.getCartCount()},methods:{getCartCount:function(){var t=this;this.isOnline&&(0,n.cartQuantity)().then((function(e){e&&(t.cartNumber=e.result.cart_count)}))}}};e.default=o},"0cf8":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getInviterUser=e.getInviterPoster=e.getInviterOrder=e.checkInviter=void 0;var i=a("887c");e.checkInviter=function(){return(0,i.requestApi)("/memberinviter/check","POST",{},"member")};e.getInviterPoster=function(){return(0,i.requestApi)("/memberinviter/index","POST",{},"member")};e.getInviterUser=function(t){return(0,i.requestApi)("/memberinviter/user","POST",{page:t.page,per_page:t.per_page},"member")};e.getInviterOrder=function(t){return(0,i.requestApi)("/memberinviter/order","POST",{page:t.page,per_page:t.per_page},"member")}},29945:function(t,e,a){"use strict";a.r(e);var i=a("2d40"),r=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},"2d40":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af");var r=a("0b9f"),s=i(a("cce0")),n=i(a("7b4a")),o=a("0cf8"),c=i(a("79b8")),u={name:"MemberInviterUser",components:{TitleHeader:s.default,MemberBase:n.default,EmptyRecord:c.default},computed:{fontSize:function(){return(0,r.getFontSize)()}},data:function(){return{navHeight:0,params:{page:0,per_page:10},loading:!1,isMore:!0,userList:!1}},created:function(){this.loadMore()},mounted:function(){},methods:{goBack:function(){uni.navigateBack({delta:1})},getUserList:function(t){var e=this;uni.showLoading({title:"加载中"});var a=this.params;(0,o.getInviterUser)(a).then((function(a){uni.hideLoading(),a&&(t&&e.userList?e.userList=e.userList.concat(a.result.list):e.userList=a.result.list,a.result.hasmore?e.isMore=!0:e.isMore=!1)}))},loadMore:function(){this.loading=!0,this.params.page=++this.params.page,this.isMore&&(this.loading=!1,this.getUserList(!0))}}};e.default=u},"3ae1":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.scroll-view-wrapper[data-v-5506d4a2]{display:flex;flex-direction:column}.scroll-view[data-v-5506d4a2]{flex:1}.inviter-item[data-v-5506d4a2]{display:flex;padding:.5rem;background:#fff;border-bottom:1px solid #e4e4e4}.inviter-item .avatar[data-v-5506d4a2]{width:4.5rem}.inviter-item .avatar .img[data-v-5506d4a2]{width:4rem}.inviter-item .inviter[data-v-5506d4a2]{flex:1;font-size:.7rem}.inviter-item .inviter .users[data-v-5506d4a2]{font-size:.75rem;margin-bottom:1rem;margin-top:.5rem}.inviter-item .inviter .time[data-v-5506d4a2]{color:grey;margin-top:.2rem}',""]),t.exports=e},"62c2":function(t,e,a){"use strict";a.r(e);var i=a("e4c0"),r=a("29945");for(var s in r)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(s);a("7c1c");var n=a("f0c5"),o=Object(n["a"])(r["default"],i["b"],i["c"],!1,null,"5506d4a2",null,!1,i["a"],void 0);e["default"]=o.exports},"69f5":function(t,e,a){"use strict";a.r(e);var i=a("0868"),r=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},"79b8":function(t,e,a){"use strict";a.r(e);var i=a("bba65"),r=a("8909");for(var s in r)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(s);var n=a("f0c5"),o=Object(n["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=o.exports},"7b4a":function(t,e,a){"use strict";a.r(e);var i=a("8034"),r=a("69f5");for(var s in r)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(s);a("dacb");var n=a("f0c5"),o=Object(n["a"])(r["default"],i["b"],i["c"],!1,null,"3e6c03f6",null,!1,i["a"],void 0);e["default"]=o.exports},"7c1c":function(t,e,a){"use strict";var i=a("fa7b"),r=a.n(i);r.a},8034:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"div member-base"},[i("v-uni-view",{staticClass:"status-holder"}),i("v-uni-view",{staticClass:"content"},[t._t("default")],2),t.show?i("v-uni-view",{staticClass:"div common-footer-wrap"},[i("v-uni-view",{staticClass:"common-footer"},[i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==t.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==t.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("0207")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("241a")}}),i("v-uni-text",{staticClass:"span text"},[t._v("首页")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==t.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==t.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("79bf")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("d86e")}}),i("v-uni-text",{staticClass:"span text"},[t._v("分类")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==t.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==t.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("492b")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("1702")}}),i("v-uni-text",{staticClass:"span text"},[t._v("搜索")])],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==t.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==t.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("62a8")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("8559")}}),i("v-uni-text",{staticClass:"span text"},[t._v("购物车")]),t.cartNumber>0?i("v-uni-text",{staticClass:"span icon"},[t._v(t._s(t.getCarCount))]):t._e()],1)],1),i("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==t.page.route}},[i("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==t.page.route?i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("857e")}}):i("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:a("e31d")}}),i("v-uni-text",{staticClass:"span text"},[t._v("我的")])],1)],1)],1)],1):t._e()],1)},r=[]},8909:function(t,e,a){"use strict";a.r(e);var i=a("a2ce"),r=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},"8a0c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.status-holder[data-v-3e6c03f6]{background-color:#fff}.member-base[data-v-3e6c03f6]{display:flex;flex-direction:column}.content[data-v-3e6c03f6]{flex:1}.item-wrap[data-v-3e6c03f6]{position:relative}.image[data-v-3e6c03f6]{width:1rem;height:1rem;display:block;margin-left:auto;margin-right:auto;margin-top:.2rem;margin-bottom:.2rem}.icon[data-v-3e6c03f6]{position:absolute;right:.8rem;top:.2rem;font-size:.5rem;line-height:.7rem;width:.9rem;height:.7rem;background:#ef3338;border-radius:1rem;text-align:center;color:#fff}',""]),t.exports=e},a2ce:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"EmptyRecord",data:function(){return{}},props:{},methods:{}}},bba65:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"div common-empty-record"},[e("v-uni-text",{staticClass:"i iconfont"},[this._v("")]),e("v-uni-view",{staticClass:"p"},[this._v("没有找到相关记录")])],1)},r=[]},dacb:function(t,e,a){"use strict";var i=a("f6c0"),r=a.n(i);r.a},e4c0:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var i={pageMeta:a("6d42").default,uniNavBar:a("7bfb").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("page-meta",{attrs:{"root-font-size":t.fontSize+"px"}}),a("member-base",{attrs:{show:!1}},[a("v-uni-view",{staticClass:"scroll-view-wrapper div container",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"}},[a("v-uni-view",{staticClass:"div common-header-wrap"},[a("v-uni-view",{staticClass:"status-holder"}),a("v-uni-view",{style:"height:"+t.navHeight+"px"}),a("v-uni-view",{staticClass:"common-header-holder"}),a("v-uni-view",{staticClass:"common-header-fixed"},[a("title-header"),a("uni-nav-bar",{staticClass:"common-header",attrs:{title:"推广会员","left-icon":"back"},on:{clickLeft:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack()}}})],1)],1),a("v-uni-view",{staticClass:"scroll-view div",staticStyle:{position:"relative"}},[a("v-uni-scroll-view",{staticClass:"div",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"},attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},[t.userList&&t.userList.length?a("v-uni-view",{staticClass:"div"},t._l(t.userList,(function(e,i){return a("v-uni-view",{key:e.member_id,staticClass:"div inviter-item"},[a("v-uni-view",{staticClass:"div avatar"},[a("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:e.member_avatar}})],1),a("v-uni-view",{staticClass:"div inviter"},[a("v-uni-view",{staticClass:"div users"},[a("strong",[t._v(t._s(e.member_name))]),t._l(e.inviters,(function(e,i){return a("v-uni-text",{key:i,staticClass:"span"},[t._v("->"+t._s(e))])}))],2),a("v-uni-view",{staticClass:"div time"},[t._v("注册时间:"+t._s(e.member_addtime))]),a("v-uni-view",{staticClass:"div time"},[t._v("最后登录:"+t._s(e.member_logintime))])],1)],1)})),1):t.userList&&!t.userList.length?a("empty-record"):t._e()],1)],1)],1)],1)],1)},s=[]},f6c0:function(t,e,a){var i=a("8a0c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("4f06").default;r("11f8896b",i,!0,{sourceMap:!1,shadowMode:!1})},fa7b:function(t,e,a){var i=a("3ae1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("4f06").default;r("5c3b59be",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|