pages-user-mytg.099929a3.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-mytg"],{"1ac3":function(t,e,a){"use strict";a.r(e);var n=a("a1f8"),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},"27c1":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=o,e.getUserInfo=r,e.spreadBanner=s,e.getAddressList=c,e.addressEdit=l,e.addressDel=d,e.setAddressDefault=u,e.getCartList=f,e.getCartNum=v,e.cartDel=p,e.getcollectList=g,e.delcollect=h,e.coral=b,e.transfer_accounts=m,e.getSpreadPeople=w,e.jfzz=x;var i=n(a("03d5"));function o(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 c(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function v(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function p(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function g(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function h(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/change/coral",method:"post",data:t})}function m(t){return(0,i.default)({url:"/api/dow_user",method:"post",data:t})}function w(t){return(0,i.default)({url:"/api/spread/people",method:"post",data:t})}function x(t){return(0,i.default)({url:"/api/user/accounts",method:"post",data:t})}},"77f8":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAEgklEQVR4X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1xFzpZgmeVo0TvAmJgdMGTD0Nd8jYbv4WEz8YwMIiAkOCSN58O+edsuOzFLcFlMIPGYAJCgluAJdyZodxM0mPGYDGogJDg4/H3AdyfodxOMlco1bmYwQWEBBdIWMKmDNFeki6d6T1GEbBAJcnbZj5CS8VBkj5k6TVGFRCtwUdouUKoIyQP9GlgdAEhwUdpuW/7OMmdfUmoQkBI8CrSq8lUnCK5tQ8J1QgICd5P8L5CKrwL7TrhaZbKNgZG3wbzXCFVLP1pSPDssZOoqgU0JNwbr8mrEpS+IOGW4HVE66hSQHQHl9L5ktR1CUpflLCE1uU11QoICS6ps4TVCQm+MGEJrQqsqhYQElxaZwkLt0SbLqZ9aaoxJngvwRIeSrSEaV+ba0g438VJvxVWkfxj3lGx+i4wCyTJhdSpCxRFxRiLTkCMC6nL05dN9upsqllLcsXZ+vjdudKahP8AipZeUEUx+60AAAAASUVORK5CYII="},"871f":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-1936718c]{background:#fff;height:100%}.status_bar[data-v-1936718c]{height:0;width:100%}.content-money[data-v-1936718c]{position:relative;height:%?480?%}.content-money .content-bg[data-v-1936718c]{position:absolute;top:0;left:0;right:0;width:%?750?%;height:%?480?%}.content-money .content-bg uni-image[data-v-1936718c]{width:100%;height:100%}.content-money .body-title[data-v-1936718c]{height:%?80?%;text-align:center;font-size:%?35?%;position:relative}.content-money .body-title .header[data-v-1936718c]{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-1936718c]{position:absolute;left:%?18?%;top:0;height:%?80?%;display:flex;align-items:center}.content-money .body-title .goback[data-v-1936718c]{z-index:100;width:%?34?%;height:%?34?%}.money-box[data-v-1936718c]{position:relative;z-index:2;padding-top:%?80?%;color:#fff;text-align:center;display:flex;justify-content:center}.money-box .money[data-v-1936718c]{font-size:%?72?%;font-family:PingFang SC;font-weight:700;color:#fff}.money-box .text[data-v-1936718c]{font-size:%?30?%}.swiper-box[data-v-1936718c]{padding-top:%?10?%}.swiper-box .order-item[data-v-1936718c]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box[data-v-1936718c]{width:100%}.swiper-box .order-item .title-box .title-avatar[data-v-1936718c]{width:%?100?%;height:%?100?%;margin-right:%?25?%}.swiper-box .order-item .title-box .title-avatar uni-image[data-v-1936718c]{width:100%;height:100%;border-radius:100%}.swiper-box .order-item .title-box .list_tpl[data-v-1936718c]{width:85%}.swiper-box .order-item .title-box .list_tpl .title[data-v-1936718c]{font-size:%?32?%;color:#606266;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swiper-box .order-item .title-box .list_tpl .time[data-v-1936718c]{margin-top:%?15?%;font-size:%?22?%;color:#909399}.swiper-box .order-item .money[data-v-1936718c]{color:#db1935;font-size:%?32?%}.list-scroll-content[data-v-1936718c]{height:100%}.content[data-v-1936718c]{height:100%}.content .empty-content[data-v-1936718c]{background-color:#fff}.navbar[data-v-1936718c]{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-1936718c]{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-1936718c]{color:#000}.navbar .nav-item.current[data-v-1936718c]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #fe5b38}body.?%PAGE?%[data-v-1936718c]{background:#fff}',""]),t.exports=e},9094:function(t,e,a){t.exports=a.p+"static/img/zhihuanjuan.16b86e69.png"},a1f8: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("27c1"),r=(a("26cb"),n(a("5cc0"))),s=n(a("8080")),c={components:{empty:s.default,uniLoadMore:r.default},onReady:function(){var t=this;uni.getSystemInfo({success:function(e){var a=uni.createSelectorQuery();a.select(".swiper-box").boundingClientRect(),a.exec((function(a){t.maxheight=e.windowHeight-a[0].top}))},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:"",total:"",totalLevel:"",img:"http://kaifa.crmeb.net/uploads/attach/2019/08/20190807/723adbdd4e49a0f9394dfc700ab5dba3.png",userInfo:{},order_count:""}},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;console.log(a),e.order_count=a.order_count,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=c},b032:function(t,e,a){var n=a("871f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("499dc1ff",n,!0,{sourceMap:!1,shadowMode:!1})},bce6:function(t,e,a){"use strict";a.r(e);var n=a("f8be"),i=a("1ac3");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("f69a");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"1936718c",null,!1,n["a"],r);e["default"]=c.exports},f69a:function(t,e,a){"use strict";var n=a("b032"),i=a.n(n);i.a},f8be: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("5cc0").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:"status_bar"}),n("v-uni-view",{staticClass:"body-title"},[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:a("77f8"),mode:""}})],1),n("v-uni-view",{staticClass:"header"},[t._v("我的推广")])],1),n("v-uni-view",{staticClass:"content-bg"},[n("v-uni-image",{attrs:{src:a("9094"),mode:""}})],1),n("v-uni-view",{staticClass:"money-box"},[n("v-uni-view",{staticStyle:{width:"50%"}},[n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.total||"0"))]),n("v-uni-view",[t._v("我的推广人数")])],1),n("v-uni-view",{staticStyle:{width:"50%"}},[n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.order_count||"0"))]),n("v-uni-view",[t._v("团队业绩")])],1)],1)],1),n("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"nav-item",class:{current:t.tabCurrentIndex===a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(a)}}},[t._v(t._s(e.text))])})),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.phone||""))])],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v("业绩:"+t._s(e.numberCount||"0"))])],1)],1)],1)],1)})),n("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},o=[]}}]);