shareholder-order-holder-list.6840e9d0.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shareholder-order-holder-list"],{"0450":function(t,e,o){var n=o("c86c");e=n(!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-5258352a] .u-form-item--right__content__slot > uni-view,[data-v-5258352a] .u-form-item--right__content__slot > div,[data-v-5258352a] .u-form-item--right__content__slot > span,[data-v-5258352a] .u-form-item--right__content__slot > uni-text{width:100%}.order[data-v-5258352a]{min-height:100vh;background-color:#f2f2f2;padding-bottom:%?20?%;padding-top:%?108?%;font-family:PingFang SC;color:#262626}.order .head[data-v-5258352a]{width:100%;height:%?84?%;background-color:#fff;position:fixed;top:0;left:0;display:flex;align-items:center;padding:0 %?30?%;justify-content:space-between}.order .head .money[data-v-5258352a]{font-size:%?28?%;font-weight:600;color:#262626}.order .head .money uni-text[data-v-5258352a]:nth-child(2){color:#f13d29}.order .head .date[data-v-5258352a]{display:flex;align-items:center;font-size:%?28?%}.order .head .date .iconfont[data-v-5258352a]{font-size:%?40?%;margin-right:%?6?%}.order .item[data-v-5258352a]{margin-bottom:%?24?%}.order .noMore[data-v-5258352a]{width:100%;height:%?120?%;font-size:%?22?%;color:#c1c1c1;display:flex;align-items:center;justify-content:center}',""]),t.exports=e},"1cd6":function(t,e,o){"use strict";o.r(e);var n=o("8348"),r=o("4e04d");for(var a in r)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(a);o("5e6c");var i=o("828b"),d=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,"5258352a",null,!1,n["a"],void 0);e["default"]=d.exports},"4e04d":function(t,e,o){"use strict";o.r(e);var n=o("7f82"),r=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"5e6c":function(t,e,o){"use strict";var n=o("db03"),r=o.n(n);r.a},6697:function(t,e,o){"use strict";o.r(e);var n=o("8e50"),r=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"7f82":function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("c223");var r=n(o("2634")),a=n(o("b7c7")),i=n(o("2fdc")),d=n(o("3114")),s=n(o("a785")),c={components:{holderListItem:s.default,Shenhe:d.default},data:function(){return{orderList:[],page:1,noMore:!1,queryDate:"",total:0}},methods:{getOrders:function(){var t=this;return(0,i.default)((0,r.default)().mark((function e(){var o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$allrequest.shareholder.holderShareOrder({page:t.page,time:t.queryDate},!0);case 2:o=e.sent,0==o.code&&(t.total=o.data.total,t.orderList=[].concat((0,a.default)(t.orderList),(0,a.default)(o.data.list)),t.orderList.length>=o.data.row_count?t.noMore=!0:t.noMore=!1);case 4:case"end":return e.stop()}}),e)})))()},changeDate:function(t){this.orderList=[],this.page=1,this.noMore=!1,this.queryDate=t.detail.value,this.getOrders()}},onShow:function(){this.orderList=[],this.page=1,this.noMore=!1,this.getOrders()},onReachBottom:function(){this.noMore||(this.page++,this.getOrders())}};e.default=c},8348:function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={uEmpty:o("fa87").default},r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return 0==t.shenheStatus?o("v-uni-view",{staticClass:"order"},[o("v-uni-view",{staticClass:"head"},[o("v-uni-view",{staticClass:"money"},[o("v-uni-text",[t._v(t._s(t.$t("share.total"))+":")]),o("v-uni-text",[t._v("¥"+t._s(t.total||0))])],1),o("v-uni-picker",{attrs:{mode:"date",fields:"month"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeDate.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"date"},[o("v-uni-text",{staticClass:"iconfont icon-filter"}),o("v-uni-text",[t._v(t._s(t.queryDate?t.queryDate:t.$t("mdAdmin.queryTime")))])],1)],1)],1),t._l(t.orderList,(function(t){return o("v-uni-view",{key:t.id,staticClass:"item"},[o("holderListItem",{attrs:{order:t}})],1)})),o("v-uni-view",{staticClass:"empty",staticStyle:{"padding-top":"50rpx"}},[t.orderList.length?t._e():o("u-empty",{attrs:{mode:"data"}})],1)],2):1==t.shenheStatus?o("Shenhe"):t._e()},a=[]},"8e50":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{order:{type:Object,default:function(){return{}}}},data:function(){return{showMore:!1}},computed:{goodsList:function(){return this.order.goods_list.length<=1||this.showMore?this.order.goods_list:[this.order.goods_list[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}},orderShareText:function(){return function(t){return 1==t?"一级分销":2==t?"二级分销":3==t?"三级分销":void 0}}}};e.default=n},a17e:function(t,e,o){"use strict";var n=o("b538"),r=o.n(n);r.a},a785:function(t,e,o){"use strict";o.r(e);var n=o("c5b9"),r=o("6697");for(var a in r)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(a);o("a17e");var i=o("828b"),d=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,"313547d8",null,!1,n["a"],void 0);e["default"]=d.exports},b538:function(t,e,o){var n=o("bfd5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("967d").default;r("435fee96",n,!0,{sourceMap:!1,shadowMode:!1})},bfd5:function(t,e,o){var n=o("c86c");e=n(!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-313547d8] .u-form-item--right__content__slot > uni-view,[data-v-313547d8] .u-form-item--right__content__slot > div,[data-v-313547d8] .u-form-item--right__content__slot > span,[data-v-313547d8] .u-form-item--right__content__slot > uni-text{width:100%}.orderItem[data-v-313547d8]{width:100%;padding:%?30?%;font-family:PingFang SC;background-color:#fff;color:#262626}.orderItem .head[data-v-313547d8]{display:flex;align-items:center;justify-content:space-between}.orderItem .head uni-text[data-v-313547d8]:nth-child(1){font-size:%?28?%;font-weight:600}.orderItem .head uni-text[data-v-313547d8]:nth-child(2){font-size:%?24?%;color:#f0250e}.orderItem .head .complete[data-v-313547d8]{color:#8c8c8c}.orderItem .goods[data-v-313547d8]{padding-top:%?6?%}.orderItem .goods .goodItem[data-v-313547d8]{display:flex;padding:%?24?%;border-bottom:1px solid #f8f8f8}.orderItem .goods .goodItem .pic[data-v-313547d8]{width:%?140?%;min-width:%?140?%;height:%?140?%;border-radius:%?10?%;overflow:hidden;background-color:#f1f1f1}.orderItem .goods .goodItem .pic uni-image[data-v-313547d8]{width:100%;height:100%}.orderItem .goods .goodItem .info[data-v-313547d8]{margin-left:%?20?%}.orderItem .goods .goodItem .info .name[data-v-313547d8]{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-313547d8]{display:flex;align-items:center;justify-content:space-between}.orderItem .goods .goodItem .info .sku uni-text[data-v-313547d8]:nth-child(2){font-size:%?24?%;color:#8c8c8c}.orderItem .goods .showMore[data-v-313547d8]{display:flex;align-items:center;font-size:%?24?%;color:#8c8c8c;margin-bottom:%?30?%;justify-content:center}.orderItem .goods .goodItem[data-v-313547d8]:last-child{border-bottom:none}.orderItem .foot[data-v-313547d8]{padding-top:%?20?%;border-top:1px solid #f8f8f8;display:flex;align-items:center;justify-content:space-between}.orderItem .foot .money[data-v-313547d8]{font-size:%?26?%}.orderItem .foot .money .red[data-v-313547d8]{color:#f0250e;font-weight:600}.orderItem .foot .status[data-v-313547d8]{font-size:%?26?%;color:#8c8c8c}.orderItem .foot .status.red[data-v-313547d8]{color:#f0250e}',""]),t.exports=e},c5b9:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){}));var n=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))])],1),o("v-uni-view",{staticClass:"goods"},[o("v-uni-view",{staticClass:"goodsList"},t._l(t.goodsList,(function(e,n){return o("v-uni-view",{key:n,staticClass:"goodItem"},[o("v-uni-view",{staticClass:"pic"},[o("v-uni-image",{attrs:{src:e.pic}})],1),o("v-uni-view",{staticClass:"info"},[o("v-uni-text",{staticClass:"name"},[t._v(t._s(e.goods_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.goods_list.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.orderShareText(t.order.source))+":")]),o("v-uni-text",{staticClass:"red"},[t._v("¥"+t._s(t.order.money||0))])],1)],1)],1)},r=[]},db03:function(t,e,o){var n=o("0450");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("967d").default;r("18a28d44",n,!0,{sourceMap:!1,shadowMode:!1})}}]);