1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-extension"],{"0607":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=o,e.nickname=r,e.transfer=d,e.getUserInfo=l,e.getSpreadPeople=s,e.spreadBanner=u,e.getAddressList=f,e.addressEdit=c,e.addressDel=g,e.setAddressDefault=v,e.getCartList=m,e.getCartNum=p,e.cartDel=b,e.getcollectList=h,e.delcollect=x;var i=n(a("0e39"));function o(t){return(0,i.default)({url:"/api/order/data",method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/nickname",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/transfer",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/spread/people",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/spread/banner",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function g(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function m(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function h(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function x(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}},"12a7":function(t,e,a){"use strict";a.r(e);var n=a("7c5f"),i=a("ac67");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("dedf");var r,d=a("f0c5"),l=Object(d["a"])(i["default"],n["b"],n["c"],!1,null,"5a601f44",null,!1,n["a"],r);e["default"]=l.exports},"234f":function(t,e,a){var n=a("8779");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("1e128494",n,!0,{sourceMap:!1,shadowMode:!1})},"7c5f":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniLoadMore:a("1f6c").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"content-money"},[n("v-uni-view",{staticClass:"money-box"},[n("v-uni-image",{staticClass:"tuiguang_bg",attrs:{src:a("a879")}}),n("v-uni-view",{staticClass:"money-frame"},[n("v-uni-view",{staticClass:"money_num"},[t._v(t._s(t.userInfo.spread_count||"0")),n("v-uni-text",{staticClass:"money_ren"},[t._v("人")])],1)],1)],1),n("v-uni-view",{staticClass:"flex buttom-box"},[n("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(0)}}},[n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.total||0))]),n("v-uni-text",{staticClass:"text",class:{current:0===t.tabCurrentIndex}},[t._v("一级推广")])],1),n("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(1)}}},[n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.totalLevel||0))]),n("v-uni-text",{staticClass:"text",class:{current:1===t.tabCurrentIndex}},[t._v("二级推广")])],1)],1)],1),n("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight+"px"},attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,a){return n("v-uni-swiper-item",{key:a,staticClass:"tab-content"},[n("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?n("empty"):t._e(),t._l(e.orderList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"order-item flex"},[n("v-uni-view",{staticClass:"title-box flex_item"},[n("v-uni-view",{staticClass:"title-avatar"},[n("v-uni-image",{attrs:{src:e.avatar||"/static/error/missing-face.png"}})],1),n("v-uni-view",{staticClass:"list_tpl"},[n("v-uni-view",{staticClass:"title flex"},[n("v-uni-text",[t._v(t._s(e.nickname)+t._s(e.level))]),1==e.level?n("v-uni-view",{staticClass:"itemVip lv1"},[t._v("会员")]):t._e(),2==e.level?n("v-uni-view",{staticClass:"itemVip lv2"},[t._v("村代")]):t._e(),3==e.level?n("v-uni-view",{staticClass:"itemVip lv3"},[t._v("镇代")]):t._e(),4==e.level?n("v-uni-view",{staticClass:"itemVip lv4"},[t._v("区代")]):t._e(),5==e.level?n("v-uni-view",{staticClass:"itemVip lv5"},[t._v("市代")]):t._e(),6==e.level?n("v-uni-view",{staticClass:"itemVip lv6"},[t._v("省代")]):t._e()],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v(t._s(e.time))])],1)],1)],1)],1)})),n("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]},8779:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-5a601f44]{background:#fff;height:100%}.itemVip[data-v-5a601f44]{font-size:%?24?%;line-height:1;color:#fff;border-radius:%?99?%;padding:%?10?% %?20?%;margin-left:%?10?%}.lv1[data-v-5a601f44]{background-image:linear-gradient(90deg,#a9a9a9,#a9a9a9)}.lv2[data-v-5a601f44]{background-image:linear-gradient(90deg,#ffc107,#ffc107)}.lv3[data-v-5a601f44]{background-image:linear-gradient(90deg,#e51c23,#e51c23)}.lv4[data-v-5a601f44]{background-image:linear-gradient(90deg,#000,#000)}.lv5[data-v-5a601f44]{background-image:linear-gradient(90deg,#000,#000)}.lv6[data-v-5a601f44]{background-image:linear-gradient(90deg,#000,#000)}.content-money[data-v-5a601f44]{background:#f8f8f8}.content-money .buttom-box[data-v-5a601f44]{position:relative;background-color:#fff;text-align:center;padding:%?30?% 0}.content-money .buttom-box .buttom[data-v-5a601f44]{flex-grow:1}.content-money .buttom-box .money[data-v-5a601f44]{font-size:%?32?%;font-weight:700;color:#921a23}.content-money .buttom-box .text[data-v-5a601f44]{padding-bottom:%?26?%;font-size:%?28?%;font-weight:500;color:#666}.content-money .buttom-box .text.current[data-v-5a601f44]{border-bottom:2px solid #921a23}.content-money .buttom-box .icon[data-v-5a601f44]{height:%?50?%;width:%?48?%;margin:0 auto}.content-money .buttom-box .icon .icon-img[data-v-5a601f44]{width:100%;height:100%}.money-box[data-v-5a601f44]{height:%?380?%;color:#ff4c4c;text-align:center;font-size:%?35?%;position:relative}.money-box .header[data-v-5a601f44]{position:absolute;left:0;top:0;width:100%;height:%?80?%;font-size:%?36?%;font-weight:700;z-index:99;display:flex;justify-content:center;align-items:center}.money-box .goback-box[data-v-5a601f44]{position:absolute;left:%?29?%;top:0;height:%?80?%;display:flex;align-items:center}.money-box .goback[data-v-5a601f44]{z-index:100;width:%?34?%;height:%?34?%}.money-box .tuiguang_bg[data-v-5a601f44]{width:100%;height:%?400?%;position:relative}.money-box .money_img[data-v-5a601f44]{width:100%;height:%?120?%;text-align:center;padding-top:%?50?%;padding-bottom:%?135?%}.money-box .money_img uni-image[data-v-5a601f44]{width:%?120?%;height:%?120?%;border:%?4?% solid #fd5f6f;border-radius:50%}.money-box .money-frame[data-v-5a601f44]{position:absolute;top:0;width:100%;padding-top:%?120?%}.money-box .money_name[data-v-5a601f44]{width:100%;text-align:center;font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .money_num[data-v-5a601f44]{padding-top:%?50?%;font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#ff4c4c}.money-box .money_num .money_ren[data-v-5a601f44]{font-size:%?36?%}.swiper-box .order-item[data-v-5a601f44]{padding:%?20?% %?30?%;padding-bottom:0;line-height:1.5}.swiper-box .order-item .title-box[data-v-5a601f44]{width:100%}.swiper-box .order-item .title-box.flex_item[data-v-5a601f44]{border-bottom:1px dashed #999;padding-bottom:%?20?%}.swiper-box .order-item .title-box .title-avatar[data-v-5a601f44]{width:%?100?%;height:%?100?%;margin-right:%?25?%}.swiper-box .order-item .title-box .title-avatar uni-image[data-v-5a601f44]{width:100%;height:100%;border-radius:100%}.swiper-box .order-item .title-box .list_tpl[data-v-5a601f44]{width:85%}.swiper-box .order-item .title-box .list_tpl .title[data-v-5a601f44]{font-size:%?32?%;color:#606266;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-content:space-between}.swiper-box .order-item .title-box .list_tpl .title uni-image[data-v-5a601f44]{margin-left:%?9?%;width:%?147?%;height:%?32?%}.swiper-box .order-item .title-box .list_tpl .time[data-v-5a601f44]{margin-top:%?15?%;font-size:%?22?%;color:#909399}.swiper-box .order-item .money[data-v-5a601f44]{color:#db1935;font-size:%?32?%}.list-scroll-content[data-v-5a601f44]{height:100%}.content[data-v-5a601f44]{height:100%}.content .empty-content[data-v-5a601f44]{background-color:#fff}.tg-wrapper[data-v-5a601f44]{width:100%;background-color:#f7f7f7;padding:%?20?% 0}.tg-wrapper .tg-box[data-v-5a601f44]{display:flex;justify-content:center;width:%?690?%;height:%?143?%;background-color:#fff;margin:0 auto;align-items:center}.tg-wrapper .tg-box .tg-item[data-v-5a601f44]{width:33%;display:flex;flex-direction:column;justify-content:center;align-items:center}.tg-wrapper .tg-box .tg-item .tg-tit[data-v-5a601f44]{font-size:%?24?%;font-family:PingFang SC;font-weight:700;color:#333}.tg-wrapper .tg-box .tg-item .tg-val[data-v-5a601f44]{padding-top:%?15?%;font-size:%?34?%;font-family:PingFang SC;font-weight:700;color:#333}.tg-wrapper .tg-box .tg-jg[data-v-5a601f44]{width:%?1?%;height:%?51?%;background:#ddd}body.?%PAGE?%[data-v-5a601f44]{background:#fff}',""]),t.exports=e},a879:function(t,e,a){t.exports=a.p+"static/img/tgbg.1b1fcfa8.png"},ab44:function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("d81d"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),o=a("0607"),r=(a("26cb"),n(a("1f6c"))),d=n(a("0a87")),l={components:{empty:d.default,uniLoadMore:r.default},onReady:function(){var t=this;uni.createSelectorQuery().select(".content").fields({size:!0},(function(e){t.maxheight=e.height-Math.floor(e.width/750*470)-44})).exec()},data:function(){return{maxheight:"",tabCurrentIndex:0,navList:[{state:0,text:"一级推广",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"二级推广",loadingType:"more",orderList:[],page:1,limit:10}],all:"",list:"",total:"",totalLevel:"",img:"http://kaifa.crmeb.net/uploads/attach/2019/08/20190807/723adbdd4e49a0f9394dfc700ab5dba3.png",userInfo:{}}},onLoad:function(t){},onShow:function(){this.loadData(),this.loadAll()},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function a(){var n,i,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.tabCurrentIndex,i=e.navList[n],r=i.state,"tabChange"!==t||!0!==i.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==i.loadingType){a.next=7;break}return a.abrupt("return");case 7:if("noMore"!==i.loadingType){a.next=9;break}return a.abrupt("return");case 9:i.loadingType="loading",(0,o.getSpreadPeople)({page:i.page,limit:i.limit,keyword:"",grade:r}).then((function(t){var a=t.data;if(console.log(a),e.total=a.total,e.totalLevel=a.totalLevel,a.list.length>0){e.list=a.list;var n=a.list.map((function(t){return t.level=+t.level,t}));i.orderList=i.orderList.concat(n),i.page++}e.$nextTick((function(){i.limit!=a.list.length?i.loadingType="noMore":i.loadingType="more"})),e.$set(i,"loaded",!0)})).catch((function(t){console.log(t)}));case 11:case"end":return a.stop()}}),a)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},toBack:function(){uni.switchTab({url:"/pages/user/user"})},loadAll:function(){var t=this;(0,o.getUserInfo)().then((function(e){t.userInfo=e.data,console.log(e,"6666666666666666666")}))}}};e.default=l},ac67:function(t,e,a){"use strict";a.r(e);var n=a("ab44"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},dedf:function(t,e,a){"use strict";var n=a("234f"),i=a.n(n);i.a}}]);
|