1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member-inviter-InviterOrder"],{"05cc":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return r}));var r={pageMeta:i("6d42").default,uniNavBar:i("7bfb").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("page-meta",{attrs:{"root-font-size":e.fontSize+"px"}}),i("member-base",{attrs:{show:!1}},[i("v-uni-view",{staticClass:"scroll-view-wrapper div inviter-order-list",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"}},[i("v-uni-view",{staticClass:"div common-header-wrap"},[i("v-uni-view",{staticClass:"status-holder"}),i("v-uni-view",{style:"height:"+e.navHeight+"px"}),i("v-uni-view",{staticClass:"common-header-holder"}),i("v-uni-view",{staticClass:"common-header-fixed"},[i("title-header"),i("uni-nav-bar",{staticClass:"common-header",attrs:{title:"推广佣金","left-icon":"back"},on:{clickLeft:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}})],1)],1),i("v-uni-view",{staticClass:"scroll-view div",staticStyle:{position:"relative"}},[i("v-uni-scroll-view",{staticClass:"div",staticStyle:{position:"absolute",top:"0",right:"0",left:"0",bottom:"0"},attrs:{"scroll-y":"true"},on:{scrolltolower:function(t){arguments[0]=t=e.$handleEvent(t),e.loadMore.apply(void 0,arguments)}}},[e.orderList&&e.orderList.length?i("v-uni-view",{staticClass:"div"},e._l(e.orderList,(function(t,r){return i("v-uni-view",{key:t.orderinviter_id,staticClass:"div inviter-item"},[i("v-uni-view",{staticClass:"div",class:{invalid:!t.orderinviter_valid}},[i("v-uni-view",{staticClass:"div detail"},[e._v(e._s(t.orderinviter_remark))]),i("v-uni-view",{staticClass:"div money add"},[e._v("+"+e._s(t.orderinviter_money))]),i("time",{staticClass:"date"},[i("v-uni-text",{class:1==t.orderinviter_valid?"green":"gray"},[e._v(e._s(t.orderinviter_valid_text))])],1)],1)],1)})),1):e.orderList&&!e.orderList.length?i("empty-record"):e._e()],1)],1)],1)],1)],1)},n=[]},"0868":function(e,t,i){"use strict";i("7a82");var r=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(i("5530")),n=i("26cb"),s=i("de79"),o={name:"MemberBase",data:function(){return{page:"",cartNumber:0}},props:{show:{type:Boolean,default:!0}},computed:(0,a.default)((0,a.default)({},(0,n.mapState)({user:function(e){return e.member.info},isOnline:function(e){return e.member.isOnline}})),{},{getCarCount:function(){return this.cartNumber>0&&this.cartNumber<100?this.cartNumber:this.cartNumber>=100?"99+":void 0}}),mounted:function(){var e=getCurrentPages(),t=e[e.length-1];this.page={route:t.route,options:t.options},this.user||uni.navigateTo({url:"/pages/home/memberlogin/Login?clear=1"}),this.getCartCount()},methods:{getCartCount:function(){var e=this;this.isOnline&&(0,s.cartQuantity)().then((function(t){t&&(e.cartNumber=t.result.cart_count)}))}}};t.default=o},"0c04":function(e,t,i){"use strict";i.r(t);var r=i("05cc"),a=i("567c");for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("6202");var s=i("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"32a0c038",null,!1,r["a"],void 0);t["default"]=o.exports},"0cf8":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.getInviterUser=t.getInviterPoster=t.getInviterOrder=t.checkInviter=void 0;var r=i("887c");t.checkInviter=function(){return(0,r.requestApi)("/memberinviter/check","POST",{},"member")};t.getInviterPoster=function(){return(0,r.requestApi)("/memberinviter/index","POST",{},"member")};t.getInviterUser=function(e){return(0,r.requestApi)("/memberinviter/user","POST",{page:e.page,per_page:e.per_page},"member")};t.getInviterOrder=function(e){return(0,r.requestApi)("/memberinviter/order","POST",{page:e.page,per_page:e.per_page},"member")}},"567c":function(e,t,i){"use strict";i.r(t);var r=i("ab96"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=a.a},"60c4f":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.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-32a0c038]{display:flex;flex-direction:column}.scroll-view[data-v-32a0c038]{flex:1}.inviter-order-list .inviter-item[data-v-32a0c038]{background-color:#fff;position:relative;z-index:1;display:block;padding:.5rem 0;border-bottom:solid .05rem #eee}.inviter-order-list .inviter-item .detail[data-v-32a0c038]{min-height:1.8rem;margin:0 5rem 0 0;font-size:.5rem;word-wrap:break-word;line-height:.9rem;color:#555;padding-left:.5rem}.inviter-order-list .inviter-item .money[data-v-32a0c038]{position:absolute;z-index:1;top:.5rem;right:.5rem;height:.9rem;line-height:.9rem}.inviter-order-list .inviter-item .money.add[data-v-32a0c038]{color:#f23030}.inviter-order-list .inviter-item .money.reduce[data-v-32a0c038]{color:#36bc9b}.inviter-order-list .inviter-item .date[data-v-32a0c038]{position:absolute;z-index:1;bottom:.4rem;right:.5rem;height:.9rem;font-size:.5rem;line-height:.9rem;color:#999}.inviter-order-list .inviter-item .date .green[data-v-32a0c038]{color:green}.inviter-order-list .inviter-item .invalid .money.add[data-v-32a0c038]{color:grey}',""]),e.exports=t},6202:function(e,t,i){"use strict";var r=i("f806"),a=i.n(r);a.a},"69f5":function(e,t,i){"use strict";i.r(t);var r=i("0868"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=a.a},"79b8":function(e,t,i){"use strict";i.r(t);var r=i("bba65"),a=i("8909");for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);var s=i("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=o.exports},"7b4a":function(e,t,i){"use strict";i.r(t);var r=i("8034"),a=i("69f5");for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("dacb");var s=i("f0c5"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"3e6c03f6",null,!1,r["a"],void 0);t["default"]=o.exports},8034:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"div member-base"},[r("v-uni-view",{staticClass:"status-holder"}),r("v-uni-view",{staticClass:"content"},[e._t("default")],2),e.show?r("v-uni-view",{staticClass:"div common-footer-wrap"},[r("v-uni-view",{staticClass:"common-footer"},[r("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/index/Index"==e.page.route}},[r("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/index/Index","open-type":"reLaunch"}},["pages/home/index/Index"==e.page.route?r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("0207")}}):r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("241a")}}),r("v-uni-text",{staticClass:"span text"},[e._v("首页")])],1)],1),r("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/goodsclass/Goodsclass"==e.page.route}},[r("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/goodsclass/Goodsclass"}},["pages/home/goodsclass/Goodsclass"==e.page.route?r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("79bf")}}):r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("d86e")}}),r("v-uni-text",{staticClass:"span text"},[e._v("分类")])],1)],1),r("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/home/search/Search"==e.page.route}},[r("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/home/search/Search"}},["pages/home/search/Search"==e.page.route?r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("492b")}}):r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("1702")}}),r("v-uni-text",{staticClass:"span text"},[e._v("搜索")])],1)],1),r("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/cart/Cart"==e.page.route}},[r("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/cart/Cart"}},["pages/member/cart/Cart"==e.page.route?r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("62a8")}}):r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("8559")}}),r("v-uni-text",{staticClass:"span text"},[e._v("购物车")]),e.cartNumber>0?r("v-uni-text",{staticClass:"span icon"},[e._v(e._s(e.getCarCount))]):e._e()],1)],1),r("v-uni-view",{staticClass:"item-wrap",class:{active:"pages/member/index/Index"==e.page.route}},[r("v-uni-navigator",{staticClass:"item",attrs:{url:"/pages/member/index/Index","open-type":"reLaunch"}},["pages/member/index/Index"==e.page.route?r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("857e")}}):r("v-uni-image",{staticClass:"img image",attrs:{mode:"aspectFit",src:i("e31d")}}),r("v-uni-text",{staticClass:"span text"},[e._v("我的")])],1)],1)],1)],1):e._e()],1)},a=[]},8909:function(e,t,i){"use strict";i.r(t);var r=i("a2ce"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=a.a},"8a0c":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.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}',""]),e.exports=t},a2ce:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"EmptyRecord",data:function(){return{}},props:{},methods:{}}},ab96:function(e,t,i){"use strict";i("7a82");var r=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("99af");var a=i("0b9f"),n=r(i("cce0")),s=r(i("7b4a")),o=i("0cf8"),c=r(i("79b8")),u={name:"MemberInviterOrder",components:{TitleHeader:n.default,MemberBase:s.default,EmptyRecord:c.default},computed:{fontSize:function(){return(0,a.getFontSize)()}},data:function(){return{navHeight:0,params:{page:0,per_page:10},loading:!1,isMore:!0,orderList:!1}},created:function(){this.loadMore()},mounted:function(){},methods:{goBack:function(){uni.navigateBack({delta:1})},getOrderList:function(e){var t=this;uni.showLoading({title:"加载中"});var i=this.params;(0,o.getInviterOrder)(i).then((function(i){uni.hideLoading(),i&&(e&&t.orderList?t.orderList=t.orderList.concat(i.result.list):t.orderList=i.result.list,i.result.hasmore?t.isMore=!0:t.isMore=!1)}))},loadMore:function(){this.loading=!0,this.params.page=++this.params.page,this.isMore&&(this.loading=!1,this.getOrderList(!0))}}};t.default=u},bba65:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"div common-empty-record"},[t("v-uni-text",{staticClass:"i iconfont"},[this._v("")]),t("v-uni-view",{staticClass:"p"},[this._v("没有找到相关记录")])],1)},a=[]},dacb:function(e,t,i){"use strict";var r=i("f6c0"),a=i.n(r);a.a},f6c0:function(e,t,i){var r=i("8a0c");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("11f8896b",r,!0,{sourceMap:!1,shadowMode:!1})},f806:function(e,t,i){var r=i("60c4f");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("38302012",r,!0,{sourceMap:!1,shadowMode:!1})}}]);
|