You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xxdj1/unpackage/dist/build/h5/static/js/user-pages-stored-commissio...

1 lines
7.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-stored-commission"],{"4efb":function(t,e,i){"use strict";i.r(e);var n=i("ba4e"),a=i("a18e");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("8cbe");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6d7e02e9",null,!1,n["a"],void 0);e["default"]=r.exports},"8cbe":function(t,e,i){"use strict";var n=i("de4c"),a=i.n(n);a.a},"9a3b":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* 文章场景相关 */.money[data-v-6d7e02e9]{font-size:%?50?%}',""]),t.exports=e},a18e:function(t,e,i){"use strict";i.r(e);var n=i("a733"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},a733:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var a=n(i("c7eb")),s=n(i("1da1")),o=n(i("5530")),r=i("26cb"),l={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{title:"全部",id:0},{title:"未入账",id:1},{title:"已入账",id:2}],statusType:{1:"未入账",2:"已入账"},param:{page:1,pay_type:0},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading();var e=t.type,i=void 0===e?1:e;uni.setNavigationBarTitle({title:1==i?"返佣记录":"佣金流水"}),this.options=t,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)({},(0,r.mapMutations)(["getUserIndex"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var i,n,s,o,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.list,n=t.param,s=t.tabList,o=t.activeIndex,n.status=s[o].id,e.next=4,t.$api.mine.commList(n);case 4:r=e.sent,1==t.param.page||(r.data=i.data.concat(r.data)),t.list=r,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.getList()}})};e.default=l},ba4e:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"order-pages"},[i("fixed",[i("v-uni-view",{staticClass:"flex-center flex-column pd-lg c-base",style:{background:t.primaryColor}},[i("v-uni-view",{staticClass:"flex-y-baseline f-title"},[t._v("¥"),i("v-uni-view",{staticClass:"money"},[t._v(t._s(t.list.total_cash||0))])],1),i("v-uni-view",{staticClass:"f-paragraph"},[t._v("总收益")])],1),i("tab",{attrs:{list:t.tabList,activeIndex:1*t.activeIndex,activeColor:t.primaryColor,width:100/t.tabList.length+"%",height:"100rpx"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handerTabChange.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"b-1px-b"})],1),t._l(t.list.data,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goDetail(n,"detail")}}},[i("v-uni-view",{staticClass:"flex-between pb-lg",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goShop(n)}}},[i("v-uni-view",{staticClass:"f-paragraph c-title max-380 ellipsis"},[t._v("下单人:"+t._s(e.nickName||""))]),i("v-uni-view",{staticClass:"f-caption text-bold",style:{color:1==e.status?t.primaryColor:"#333"}},[t._v(t._s(t.statusType[e.status]))])],1),t._l(e.order_goods,(function(n,a){return i("v-uni-view",{key:a,staticClass:"flex-center mb-lg"},[i("v-uni-image",{staticClass:"avatar lg radius-16",attrs:{mode:"aspectFill",src:n.goods_cover}}),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"goods-title f-title c-title ellipsis"},[t._v(t._s(n.goods_name))])],1),i("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm"},[t._v("服务技师:"+t._s(e.coach_name||""))]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-baseline f-caption c-warning"},[t._v("¥"),i("v-uni-view",{staticClass:"f-title text-bold"},[t._v(t._s(n.true_price))])],1),i("v-uni-view",{staticClass:"c-paragraph"},[t._v("x"+t._s(n.num))])],1)],1)],1)})),i("v-uni-view",{staticClass:"flex-between pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"flex-y-center f-desc c-title"},[t._v("付款:"),i("v-uni-view",{staticClass:"text-bold"},[t._v("¥"+t._s(e.pay_price))])],1),i("v-uni-view",{staticClass:"flex-y-center f-desc c-title"},[t._v("分销佣金:"),i("v-uni-view",{staticClass:"c-warning text-bold"},[t._v("¥"+t._s(e.cash))])],1)],1)],2)})),t.loading?i("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?i("abnor"):t._e(),i("v-uni-view",{staticClass:"space-footer"}),i("common-popup",{ref:"cancel_item",attrs:{type:"CANCEL_ORDER",info:t.popupInfo},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmCancel.apply(void 0,arguments)}}}),i("common-popup",{ref:"del_item",attrs:{type:"DELETE_ORDER",info:t.popupInfo},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmDel.apply(void 0,arguments)}}})],2)},a=[]},de4c:function(t,e,i){var n=i("9a3b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("9a07305e",n,!0,{sourceMap:!1,shadowMode:!1})}}]);