user-share-order-share-order.8402f51e.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-share-order-share-order"],{"0265":function(t,e,o){var r=o("c86c");e=r(!1),e.push([t.i,".shareOrder[data-v-2920b0d0]{min-height:100vh;padding-top:%?90?%;background-color:#f2f2f2;font-family:PingFang SC;color:#262626}.header-tabs[data-v-2920b0d0]{width:100%;padding-top:%?20?%;height:%?90?%;background:#fff;position:fixed;top:0;z-index:1000;left:0}.item[data-v-2920b0d0]{margin-bottom:%?24?%}",""]),t.exports=e},"0c66":function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"orderItem"},[o("v-uni-view",{staticClass:"head"},[o("v-uni-text",[t._v(t._s(t.$t("clerk.orderNum"))+":"+t._s(t.order.order_no))]),o("v-uni-text",{class:3==t.order.status?"complete":""},[t._v(t._s(t.order.status_text))])],1),o("v-uni-view",{staticClass:"level"},[t._v("购买用户:"+t._s(t.order.nickname))]),o("v-uni-view",{staticClass:"goods"},[o("v-uni-view",{staticClass:"goodsList"},t._l(t.goodsList,(function(e,r){return o("v-uni-view",{key:r,staticClass:"goodItem"},[o("v-uni-view",{staticClass:"pic"},[o("v-uni-image",{attrs:{src:e.goods_pic}})],1),o("v-uni-view",{staticClass:"info"},[o("v-uni-text",{staticClass:"name"},[t._v(t._s(e.name))]),o("v-uni-view",{staticClass:"sku"},[o("v-uni-text"),o("v-uni-text",[t._v("×"+t._s(e.num))])],1)],1)],1)})),1),t.order.orderDetail.length>1?o("v-uni-view",{staticClass:"showMore",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.showMore=!t.showMore}}},[t.showMore?o("v-uni-text",[t._v(t._s(t.$t("shareholder.close")))]):o("v-uni-text",[t._v(t._s(t.$t("shareholder.showMore")))]),t.showMore?o("v-uni-text",{staticClass:"iconfont icon-arrow-up"}):o("v-uni-text",{staticClass:"iconfont icon-arrow-down"})],1):t._e()],1),o("v-uni-view",{staticClass:"foot"},[o("v-uni-view",{staticClass:"money"},[o("v-uni-text",[t._v(t._s(t.order.share_status)+" · "+t._s(1==t.order.is_price?"":"预")+t._s(2==t.order.share_send_type?t.stores.integral_name:3==t.order.share_send_type?"余额":"佣金")+":")]),o("v-uni-text",{staticClass:"red"},[t._v(t._s(2==t.order.share_send_type?"":"¥")+t._s(t.order.share_money||0))])],1)],1)],1)},n=[]},1858:function(t,e,o){"use strict";var r=o("875c"),n=o.n(r);n.a},"1c59":function(t,e,o){"use strict";var r=o("355a"),n=o.n(r);n.a},"207e":function(t,e,o){"use strict";o.r(e);var r=o("4cda"),n=o("339b");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("1858");var a=o("828b"),i=Object(a["a"])(n["default"],r["b"],r["c"],!1,null,"2920b0d0",null,!1,r["a"],void 0);e["default"]=i.exports},"339b":function(t,e,o){"use strict";o.r(e);var r=o("91bb"),n=o.n(r);for(var s in r)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(s);e["default"]=n.a},"355a":function(t,e,o){var r=o("5c97");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var n=o("967d").default;n("49766d6d",r,!0,{sourceMap:!1,shadowMode:!1})},"4cda":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return r}));var r={uTabs:o("4271").default,uEmpty:o("4991").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return 0==t.shenheStatus?o("v-uni-view",{staticClass:"shareOrder"},[t.yinbao?t._e():o("v-uni-view",{staticClass:"header-tabs"},[o("u-tabs",{attrs:{list:t.status_list,current:t.current,"active-color":"#FA230A","item-width":"20%",height:"44","inactive-color":"#262626"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.tabsChange.apply(void 0,arguments)}}})],1),t._l(t.orderList,(function(t,e){return o("v-uni-view",{key:e,staticClass:"item"},[o("orderItem",{ref:"order",refInFor:!0,attrs:{order:t}})],1)})),t.orderList.length?t._e():o("v-uni-view",{staticClass:"empty",staticStyle:{"padding-top":"50rpx"}},[o("u-empty",{attrs:{mode:"data"}})],1)],2):1==t.shenheStatus?o("Shenhe"):t._e()},s=[]},"5c97":function(t,e,o){var r=o("c86c");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-5fdb0827] .u-form-item--right__content__slot > uni-view,[data-v-5fdb0827] .u-form-item--right__content__slot > div,[data-v-5fdb0827] .u-form-item--right__content__slot > span,[data-v-5fdb0827] .u-form-item--right__content__slot > uni-text{width:100%}.orderItem[data-v-5fdb0827]{width:100%;padding:%?30?%;font-family:PingFang SC;background-color:#fff;color:#262626}.orderItem .head[data-v-5fdb0827]{display:flex;align-items:center;justify-content:space-between}.orderItem .head uni-text[data-v-5fdb0827]:nth-child(1){font-size:%?28?%;font-weight:600}.orderItem .head uni-text[data-v-5fdb0827]:nth-child(2){font-size:%?24?%;color:#f0250e}.orderItem .head uni-text.complete[data-v-5fdb0827]{color:#8c8c8c}.orderItem .goods[data-v-5fdb0827]{padding-top:%?6?%}.orderItem .goods .goodItem[data-v-5fdb0827]{display:flex;padding:%?24?%;border-bottom:1px solid #f8f8f8}.orderItem .goods .goodItem .pic[data-v-5fdb0827]{width:%?140?%;min-width:%?140?%;height:%?140?%;border-radius:%?10?%;overflow:hidden;background-color:#f1f1f1}.orderItem .goods .goodItem .pic uni-image[data-v-5fdb0827]{width:100%;height:100%}.orderItem .goods .goodItem .info[data-v-5fdb0827]{flex:auto;margin-left:%?20?%}.orderItem .goods .goodItem .info .name[data-v-5fdb0827]{font-size:%?28?%;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.orderItem .goods .goodItem .info .sku[data-v-5fdb0827]{display:flex;align-items:center;justify-content:space-between}.orderItem .goods .goodItem .info .sku uni-text[data-v-5fdb0827]:nth-child(2){font-size:%?24?%;color:#8c8c8c}.orderItem .goods .showMore[data-v-5fdb0827]{display:flex;align-items:center;font-size:%?24?%;color:#8c8c8c;margin-bottom:%?30?%;justify-content:center}.orderItem .goods .goodItem[data-v-5fdb0827]:last-child{border-bottom:none}.orderItem .foot[data-v-5fdb0827]{padding-top:%?20?%;border-top:1px solid #f8f8f8;display:flex;align-items:center;justify-content:flex-end}.orderItem .foot .money[data-v-5fdb0827]{font-size:%?26?%}.orderItem .foot .money .red[data-v-5fdb0827]{color:#f0250e;font-weight:600}.orderItem .foot .status[data-v-5fdb0827]{font-size:%?26?%;color:#8c8c8c}.orderItem .foot .status.red[data-v-5fdb0827]{color:#f0250e}',""]),t.exports=e},"7eb5":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{order:{type:Object,default:function(){return{}}}},data:function(){return{showMore:!1}},computed:{goodsList:function(){return this.order.orderDetail.length<=1||this.showMore?this.order.orderDetail:[this.order.orderDetail[0]]},orderStatus:function(){var t=this;return function(e){return-1==e?t.$t("person.status1"):0==e?t.$t("person.status2"):1==e?t.$t("shop.cancled"):2==e?t.$t("admin.delivered"):3==e?t.$t("shareholder.status"):void 0}}}};e.default=r},"875c":function(t,e,o){var r=o("0265");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var n=o("967d").default;n("70d6082b",r,!0,{sourceMap:!1,shadowMode:!1})},"91bb":function(t,e,o){"use strict";o("6a54");var r=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("c223");var n=r(o("2634")),s=r(o("b7c7")),a=r(o("2fdc")),i=r(o("2ba3")),d=r(o("b764")),u={components:{orderItem:d.default,Shenhe:i.default},data:function(){return{status_list:[{name:this.$t("person.cashStatus1"),status:0},{name:this.$t("person.status1"),status:1},{name:this.$t("person.status6"),status:2},{name:"已发货",status:3},{name:this.$t("person.status4"),status:4}],orderList:[],page:1,noMore:!1,current:0,yinbao:"",child_user_id:"",types:0}},onLoad:function(t){var e=this.$t("title.shareOrder");t&&!t.type?this.current=t.index?t.index-0:0:(this.yinbao="1",e="银豹订单"),t.id&&(this.child_user_id=t.id),t.types&&(this.types=t.types),uni.setNavigationBarTitle({title:e}),this.getList()},methods:{tabsChange:function(t){this.page=1,this.orderList=[],this.noMore=!1,this.current=t,console.log("this.current",this.current),this.getList()},getList:function(){var t=this;return(0,a.default)((0,n.default)().mark((function e(){var o,r,a;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o={page:t.page,child_user_id:t.child_user_id},0!=t.types){e.next=9;break}return""===t.yinbao?o.status=t.current-1:o.yinbao="1",e.next=5,t.$allrequest.share.getOrder(o,!0);case 5:r=e.sent,0==r.code&&(t.orderList=[].concat((0,s.default)(t.orderList),(0,s.default)(r.data.list)),t.orderList.length>=r.data.row_count?t.noMore=!0:t.noMore=!1),e.next=13;break;case 9:return e.next=11,t.$allrequest.user.teamBonusOrderList(o,!0);case 11:a=e.sent,0==a.code&&(t.orderList=[].concat((0,s.default)(t.orderList),(0,s.default)(a.data.list)),t.orderList.length>=a.data.row_count?t.noMore=!0:t.noMore=!1);case 13:case"end":return e.stop()}}),e)})))()}},onReachBottom:function(){this.noMore||(this.page++,this.getList())}};e.default=u},b764:function(t,e,o){"use strict";o.r(e);var r=o("0c66"),n=o("e249");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("1c59");var a=o("828b"),i=Object(a["a"])(n["default"],r["b"],r["c"],!1,null,"5fdb0827",null,!1,r["a"],void 0);e["default"]=i.exports},e249:function(t,e,o){"use strict";o.r(e);var r=o("7eb5"),n=o.n(r);for(var s in r)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(s);e["default"]=n.a}}]);