1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-page-extension"],{"2d6a":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-51dfdd6a]{background:#fff;height:100%}.content-money[data-v-51dfdd6a]{padding-bottom:%?30?%;background:#f8f6f6}.content-money .buttom-box[data-v-51dfdd6a]{position:relative;background-color:#fff;text-align:center;margin:0 %?30?%;padding:%?30?% 0;-webkit-box-shadow:0 0 20px 0 rgba(50,50,52,.06);box-shadow:0 0 20px 0 rgba(50,50,52,.06);border-radius:%?15?%;margin-top:%?-60?%}.content-money .buttom-box .buttom[data-v-51dfdd6a]{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.content-money .buttom-box .money[data-v-51dfdd6a]{font-size:%?32?%;font-weight:700;color:#921a23}.content-money .buttom-box .text[data-v-51dfdd6a]{padding-bottom:%?26?%;font-size:%?28?%;font-weight:500;color:#666}.content-money .buttom-box .text.current[data-v-51dfdd6a]{border-bottom:2px solid #921a23}.content-money .buttom-box .icon[data-v-51dfdd6a]{height:%?50?%;width:%?48?%;margin:0 auto}.content-money .buttom-box .icon .icon-img[data-v-51dfdd6a]{width:100%;height:100%}.money-box[data-v-51dfdd6a]{height:%?380?%;color:#fff;text-align:center;font-size:%?35?%;position:relative}.money-box .header[data-v-51dfdd6a]{position:absolute;left:0;top:0;width:100%;height:%?80?%;font-size:%?36?%;font-weight:700;z-index:99;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.money-box .goback-box[data-v-51dfdd6a]{position:absolute;left:%?29?%;top:0;height:%?80?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.money-box .goback[data-v-51dfdd6a]{z-index:100;width:%?34?%;height:%?34?%}.money-box .tuiguang_bg[data-v-51dfdd6a]{width:100%;height:%?400?%;position:relative}.money-box .money_img[data-v-51dfdd6a]{width:100%;height:%?120?%;text-align:center;padding-top:%?50?%;padding-bottom:%?135?%}.money-box .money_img uni-image[data-v-51dfdd6a]{width:%?120?%;height:%?120?%;border:%?4?% solid #fd5f6f;border-radius:50%}.money-box .money-frame[data-v-51dfdd6a]{position:absolute;top:0;width:100%;padding-top:%?120?%}.money-box .money_name[data-v-51dfdd6a]{width:100%;text-align:center;font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .money_num[data-v-51dfdd6a]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .money_num .money_ren[data-v-51dfdd6a]{font-size:%?36?%}.swiper-box[data-v-51dfdd6a]{padding-top:%?10?%}.swiper-box .order-item[data-v-51dfdd6a]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box[data-v-51dfdd6a]{width:100%}.swiper-box .order-item .title-box .title-avatar[data-v-51dfdd6a]{width:%?100?%;height:%?100?%;margin-right:%?25?%}.swiper-box .order-item .title-box .title-avatar uni-image[data-v-51dfdd6a]{width:100%;height:100%;border-radius:100%}.swiper-box .order-item .title-box .list_tpl[data-v-51dfdd6a]{width:85%}.swiper-box .order-item .title-box .list_tpl .title[data-v-51dfdd6a]{font-size:%?32?%;color:#606266;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swiper-box .order-item .title-box .list_tpl .time[data-v-51dfdd6a]{margin-top:%?15?%;font-size:%?22?%;color:#909399}.swiper-box .order-item .money[data-v-51dfdd6a]{color:#db1935;font-size:%?32?%}.list-scroll-content[data-v-51dfdd6a]{height:100%}.content[data-v-51dfdd6a]{height:100%}.content .empty-content[data-v-51dfdd6a]{background-color:#fff}body.?%PAGE?%[data-v-51dfdd6a]{background:#fff}',""]),t.exports=e},"571f":function(t,e,a){var n=a("2d6a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ef932248",n,!0,{sourceMap:!1,shadowMode:!1})},"62ca":function(t,e,a){"use strict";a.r(e);var n=a("da7e"),i=a("aa6b");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("8d8f");var d,r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"51dfdd6a",null,!1,n["a"],d);e["default"]=s.exports},"735f":function(t,e,a){"use strict";var n=a("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.edit=o,e.orderData=d,e.getUserInfo=r,e.spreadBanner=s,e.getAddressList=l,e.addressEdit=u,e.addressDel=c,e.setAddressDefault=f,e.getCartList=p,e.getCartNum=m,e.cartDel=g,e.getcollectList=b,e.delcollect=v,e.upload=h,e.getSpreadPeople=x,e.getSpreadCount=w,e.bindAdmin=y,e.orderVerific=k,e.getOrderList=C,e.getAllList=_,e.getPoint=L,e.delPoint=T,e.editPoint=z;var i=n(a("bc58"));function o(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/order/data",method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/spread/banner",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function p(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function m(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function g(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function v(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}function h(t){return(0,i.upFilse)({url:"/api/upload/image",method:"post",data:t})}function x(t){return(0,i.default)({url:"/api/spread/people",method:"post",data:t})}function w(t,e){return(0,i.default)({url:"/api/spread/count/"+e,method:"get",data:t})}function y(t){return(0,i.default)({url:"/api/bind_admin",method:"post",data:t})}function k(t){return(0,i.default)({url:"/api/order/order_verific",method:"post",data:t})}function C(t){return(0,i.default)({url:"/api/order/order_verific",method:"post",data:t})}function _(t){return(0,i.default)({url:"/api/admin/order/list",method:"get",data:t})}function L(t){return(0,i.default)({url:"/api/admin/point",method:"get",data:t})}function T(t,e){return(0,i.default)({url:"/api/admin/point/"+e,method:"delete",data:t})}function z(t,e){return(0,i.default)({url:"/api/admin/point/"+e,method:"post",data:t})}},"8d8f":function(t,e,a){"use strict";var n=a("571f"),i=a.n(n);i.a},"9a03":function(t,e,a){t.exports=a.p+"static/img/tgbg.b813be94.png"},"9d4d":function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),o=a("735f"),d=(a("2f62"),n(a("488d"))),r=n(a("2cfa")),s={components:{empty:r.default,uniLoadMore:d.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,d;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e.tabCurrentIndex,i=e.navList[n],d=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:d}).then((function(t){var a=t.data;console.log(a),e.total=a.total,e.totalLevel=a.totalLevel,a.list.length>0&&(e.list=a.list,i.orderList=i.orderList.concat(a.list),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=s},aa6b:function(t,e,a){"use strict";a.r(e);var n=a("9d4d"),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},da7e: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("488d").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-view",{staticClass:"goback-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toBack.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"goback",attrs:{src:"https://37shop.liuniu946.com/front/img/fanhui.png",mode:""}})],1),n("v-uni-view",{staticClass:"header"},[t._v("我的推广")]),n("v-uni-image",{staticClass:"tuiguang_bg",attrs:{src:a("9a03")}}),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}})],1),n("v-uni-view",{staticClass:"list_tpl"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v(t._s(e.nickname))])],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v(t._s(e.spread_time))])],1)],1)],1)],1)})),n("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]}}]);
|