pages-user-team.600e94bb.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-team"],{"3c9e":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c7eb")),o=i(a("1da1")),r=i(a("5530"));a("ac1f"),a("99af");var d=a("d9e9"),l=i(a("ef70")),s=i(a("f84e")),u=a("26cb"),c={components:{empty:l.default,uniLoadMore:s.default},onReady:function(t){var e=this;uni.getSystemInfo({success:function(t){var a=uni.createSelectorQuery();a.select(".swiper-box").boundingClientRect(),a.exec((function(a){e.maxheight=t.windowHeight-a[0].top+"px",console.log("打印页面的剩余高度",e.height)}))},fail:function(t){}})},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:"",totalLevel:"",order:"",zt_order:"",jt_order:""}},computed:(0,r.default)((0,r.default)({},(0,u.mapState)("user",["userInfo","orderInfo","hasLogin"])),(0,u.mapState)(["baseURL"])),onLoad:function(t){},onShow:function(){this.loadData()},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,o.default)((0,n.default)().mark((function a(){var i,o,r;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.tabCurrentIndex,o=e.navList[i],r=o.state,"tabChange"!==t||!0!==o.loaded){a.next=5;break}return a.abrupt("return");case 5:if("loading"!==o.loadingType){a.next=7;break}return a.abrupt("return");case 7:if("noMore"!==o.loadingType){a.next=9;break}return a.abrupt("return");case 9:o.loadingType="loading",(0,d.myspread)({page:o.page,limit:o.limit,grade:r}).then((function(t){var a=t.data;console.log(a),e.order=a.order,e.zt_order=a.zt_order,e.jt_order=a.jt_order,e.all=a.total,e.totalLevel=a.totalLevel,a.list.length>0&&(e.list=a.list,o.orderList=o.orderList.concat(a.list),o.page++),e.$nextTick((function(){o.limit!=a.list.length?o.loadingType="noMore":o.loadingType="more"})),e.$set(o,"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"})}}};e.default=c},"923b":function(t,e,a){"use strict";a.r(e);var i=a("3c9e"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"93c9":function(t,e,a){"use strict";var i=a("fc5c"),n=a.n(i);n.a},b89e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-585868e9]{background:#f8f8f8;height:100%}body.?%PAGE?%[data-v-585868e9]{background:#f8f8f8}.status_bar[data-v-585868e9]{height:0;width:100%;background:#5dbc7c}.content-money[data-v-585868e9]{position:relative;height:%?480?%}.content-money .content-bg[data-v-585868e9]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-585868e9]{width:100%;height:100%}.content-money .body-title[data-v-585868e9]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-585868e9]{position:absolute;left:0;top:0;width:100%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#fffeff;height:%?80?%;font-size:%?36?%;font-weight:700;z-index:9;display:flex;justify-content:center;align-items:center}.content-money .body-title .goback-box[data-v-585868e9]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-585868e9]{z-index:100;width:%?34?%;height:%?34?%}.money-box[data-v-585868e9]{position:relative;z-index:2;padding-top:%?90?%;color:#fff;text-align:center}.money-box .money[data-v-585868e9]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-585868e9]{font-size:%?30?%}.order-item[data-v-585868e9]{padding:%?20?% %?30?%;line-height:1.5;background-color:#fff}.order-item .title-box[data-v-585868e9]{width:100%}.order-item .title-box .title-avatar[data-v-585868e9]{flex-shrink:0;width:%?100?%;height:%?100?%;margin-right:%?25?%;border-radius:100%}.order-item .title-box .title-avatar uni-image[data-v-585868e9]{width:100%;height:100%;border-radius:100%}.order-item .title-box .list_tpl[data-v-585868e9]{width:85%}.order-item .title-box .list_tpl .title[data-v-585868e9]{display:flex;justify-content:flex-start;font-size:%?32?%;color:#606266;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1;text-align:center}.order-item .title-box .list_tpl .title .title-name[data-v-585868e9]{max-width:40%}.order-item .title-box .list_tpl .title .dl[data-v-585868e9]{margin-left:%?10?%;width:%?93?%;height:%?32?%;border-radius:%?16?%}.order-item .title-box .list_tpl .title .dl uni-image[data-v-585868e9]{width:%?93?%;height:%?32?%;border-radius:%?16?%}.order-item .title-box .list_tpl .title .class[data-v-585868e9]{display:inline-block;margin-left:%?10?%;padding:%?6?%;text-align:center;border:1px solid #2e58ff;border-radius:%?16?%;font-size:%?20?%;font-family:PingFang SC;font-weight:500;color:#2e58ff}.order-item .title-box .list_tpl .time[data-v-585868e9]{font-size:%?32?%;color:#909399}.order-item .money[data-v-585868e9]{width:50%;text-align:right;color:#db1935;font-size:%?32?%}.yeji[data-v-585868e9]{position:relative;margin:%?-72?% auto 0;width:%?690?%;height:%?143?%;background:#fff;box-shadow:%?0?% %?0?% %?20?% %?0?% rgba(50,50,52,.06);border-radius:%?10?%;display:flex;align-items:center}.yeji .yeji-a[data-v-585868e9]{width:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.yeji .yeji-a .yeji-top[data-v-585868e9]{font-size:%?28?%;font-family:PingFang SC;font-weight:700;color:#333}.yeji .yeji-a .yeji-buttom[data-v-585868e9]{font-size:%?42?%;font-family:PingFang SC;font-weight:700;color:#333}.yeji .border[data-v-585868e9]{width:%?1?%;height:%?51?%;background:#ddd}.navbar[data-v-585868e9]{margin-top:%?20?%;display:flex;height:%?88?%;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-585868e9]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#999;position:relative}.navbar .nav-item.current[data-v-585868e9]{color:#000}.navbar .nav-item.current[data-v-585868e9]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fe5b38}.buttom-box[data-v-585868e9]{position:relative;background-color:#fff;text-align:center;padding:%?30?% 0}.buttom-box .buttom[data-v-585868e9]{flex-grow:1}.buttom-box .money[data-v-585868e9]{font-size:%?32?%;font-weight:700;color:#ff4173}.buttom-box .text[data-v-585868e9]{padding-bottom:%?26?%;font-size:%?28?%;font-weight:500;color:#666}.buttom-box .text.current[data-v-585868e9]{border-bottom:2px solid #ff4173}.buttom-box .icon[data-v-585868e9]{height:%?50?%;width:%?48?%;margin:0 auto}.buttom-box .icon .icon-img[data-v-585868e9]{width:100%;height:100%}',""]),t.exports=e},d068:function(t,e,a){t.exports=a.p+"static/img/tg-bg.133e5498.png"},d9e9:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.addressDel=function(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})},e.addressEdit=function(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})},e.cartDel=function(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})},e.delcollect=function(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})},e.details=function(t,e){return(0,n.default)({url:"/api/article/details/"+e,method:"get",data:t})},e.getAddressList=function(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})},e.getCartList=function(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})},e.getCartNum=function(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})},e.getCommissionInfo=function(t){return(0,n.default)({url:"/api/brokerage/list",method:"get",data:t})},e.getUserInfo=function(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})},e.getcollectList=function(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})},e.jfzz=function(t){return(0,n.default)({url:"/api/user/transfer_account",method:"post",data:t})},e.myspread=function(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})},e.orderData=function(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})},e.setAddressDefault=function(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})},e.spreadBanner=function(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})},e.sqdl=function(t){return(0,n.default)({url:"/api/user/apply",method:"POST",data:t})},e.yjzye=function(t){return(0,n.default)({url:"/api/user/transformation",method:"post",data:t})};var n=i(a("559e"))},e484:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("f84e").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"content-money"},[i("v-uni-view",{staticClass:"status_bar"}),i("v-uni-view",{staticClass:"body-title"},[i("v-uni-view",{staticClass:"goback-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toBack.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"goback",attrs:{src:a("eb50"),mode:""}})],1),i("v-uni-view",{staticClass:"header"},[t._v("我的推广")])],1),i("v-uni-view",{staticClass:"content-bg"},[i("v-uni-image",{attrs:{src:a("d068"),mode:""}})],1),i("v-uni-view",{staticClass:"money-box"},[i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.all||"0"))]),i("v-uni-view",[t._v("我的推广人数")])],1),1*t.order>0?i("v-uni-view",{staticClass:"money-box",staticStyle:{"padding-top":"20rpx"}},[i("v-uni-view",[t._v("直推:"+t._s(t.zt_order)+"单")]),i("v-uni-view",[t._v("间推:"+t._s(t.jt_order)+"单")])],1):t._e()],1),i("v-uni-view",{staticClass:"flex buttom-box"},[i("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(0)}}},[i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.all||0))]),i("v-uni-text",{staticClass:"text",class:{current:0===t.tabCurrentIndex}},[t._v("一级推广")])],1),i("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(1)}}},[i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.totalLevel||0))]),i("v-uni-text",{staticClass:"text",class:{current:1===t.tabCurrentIndex}},[t._v("二级推广")])],1)],1),i("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight},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 i("v-uni-swiper-item",{key:a,staticClass:"tab-content"},[i("v-uni-scroll-view",{staticClass:"list-scroll-content",style:{height:t.maxheight},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?i("empty"):t._e(),t._l(e.orderList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"order-item flex"},[i("v-uni-view",{staticClass:"title-box flex_item"},[i("v-uni-view",{staticClass:"title-avatar"},[i("v-uni-image",{attrs:{src:e.avatar}})],1),i("v-uni-view",{staticClass:"list_tpl"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-view",{staticClass:"title-name clamp"},[t._v(t._s(e.nickname))])],1),i("v-uni-view",{staticClass:"time"},[i("v-uni-text",[t._v(t._s(e.time))])],1)],1)],1)],1)})),i("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1RD3UikMwHRGl4HsCsDeprk07VJ6FRASHCffzkD6k1PH3BOcznc6A57AeSmwZ4/WMI0N0QaEs531O1NUEuY5pZYQ4KPvrxaTG2KejPUErw5Olp0PgbMkkS5i+cKqW1xFzpZgmeVo0TvAmJgdMGTD0Nd8jYbv4WEz8YwMIiAkOCSN58O+edsuOzFLcFlMIPGYAJCgluAJdyZodxM0mPGYDGogJDg4/H3AdyfodxOMlco1bmYwQWEBBdIWMKmDNFeki6d6T1GEbBAJcnbZj5CS8VBkj5k6TVGFRCtwUdouUKoIyQP9GlgdAEhwUdpuW/7OMmdfUmoQkBI8CrSq8lUnCK5tQ8J1QgICd5P8L5CKrwL7TrhaZbKNgZG3wbzXCFVLP1pSPDssZOoqgU0JNwbr8mrEpS+IOGW4HVE66hSQHQHl9L5ktR1CUpflLCE1uU11QoICS6ps4TVCQm+MGEJrQqsqhYQElxaZwkLt0SbLqZ9aaoxJngvwRIeSrSEaV+ba0g438VJvxVWkfxj3lGx+i4wCyTJhdSpCxRFxRiLTkCMC6nL05dN9upsqllLcsXZ+vjdudKahP8AipZeUEUx+60AAAAASUVORK5CYII="},fbdc:function(t,e,a){"use strict";a.r(e);var i=a("e484"),n=a("923b");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("93c9");var r=a("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"585868e9",null,!1,i["a"],void 0);e["default"]=d.exports},fc5c:function(t,e,a){var i=a("b89e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("fa91faee",i,!0,{sourceMap:!1,shadowMode:!1})}}]);