| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shareholder-order-list"],{"047e":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),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))]),o("v-uni-text",{class:t.order.status>0?"complete":""},[t._v(t._s(t.orderStatus(t.order.trade_status)))])],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,mode:"aspectFill"}})],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:"userInfo"},[o("v-uni-image",{attrs:{src:t.order.avatar,mode:"aspectFill"}}),o("v-uni-view",{staticClass:"name"},[t._v(t._s(t.order.nickname))])],1),o("v-uni-view",{staticClass:"money"},[o("v-uni-text",[t._v("订单金额:")]),o("v-uni-text",{staticClass:"red"},[t._v("¥"+t._s(t.order.range_profit||0))])],1)],1)],1)},a=[]},"0a8b":function(t,e,o){"use strict";o.r(e);var n=o("047e"),a=o("8ab3");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("654a");var r=o("828b"),d=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"3d520189",null,!1,n["a"],void 0);e["default"]=d.exports},1528:function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={uEmpty:o("4991").default},a=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("累计订单金额:")]),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("orderItem",{ref:"order",refInFor:!0,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()},i=[]},2381:function(t,e,o){var n=o("71a9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=o("967d").default;a("7518dd52",n,!0,{sourceMap:!1,shadowMode:!1})},"2b7d":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 a=n(o("2634")),i=n(o("b7c7")),r=n(o("2fdc")),d=n(o("2ba3")),s=n(o("0a8b")),c={components:{orderItem:s.default,Shenhe:d.default},data:function(){return{orderList:[],page:1,noMore:!1,queryDate:"",total:0,type:-1}},methods:{getOrders:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$allrequest.shareholder.shareOrder({page:t.page,time:t.queryDate,type:t.type},!0);case 2:o=e.sent,0==o.code&&(t.total=o.data.total,t.orderList=[].concat((0,i.default)(t.orderList),(0,i.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()}},onLoad:function(t){t.type&&(this.type=t.type)},onShow:function(){this.orderList=[],this.page=1,this.noMore=!1,this.getOrders()},onReachBottom:function(){this.noMore||(this.page++,this.getOrders())}};e.default=c},"654a":function(t,e,o){"use strict";var n=o("78a8"),a=o.n(n);a.a},"6aca7":function(t,e,o){"use strict";o.r(e);var n=o("1528"),a=o("9534");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("e58f");var r=o("828b"),d=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"bcc5657a",null,!1,n["a"],void 0);e["default"]=d.exports},"71a9":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-bcc5657a] .u-form-item--right__content__slot > uni-view,[data-v-bcc5657a] .u-form-item--right__content__slot > div,[data-v-bcc5657a] .u-form-item--right__content__slot > span,[data-v-bcc5657a] .u-form-item--right__content__slot > uni-text{width:100%}.order[data-v-bcc5657a]{min-height:100vh;background-color:#f2f2f2;padding-bottom:%?20?%;padding-top:%?108?%;font-family:PingFang SC;color:#262626}.order .head[data-v-bcc5657a]{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-bcc5657a]{font-size:%?28?%;font-weight:600;color:#262626}.order .head .money uni-text[data-v-bcc5657a]:nth-child(2){color:#f13d29}.order .head .date[data-v-bcc5657a]{display:flex;align-items:center;font-size:%?28?%}.order .head .date .iconfont[data-v-bcc5657a]{font-size:%?40?%;margin-right:%?6?%}.order .item[data-v-bcc5657a]{margin-bottom:%?24?%}.order .noMore[data-v-bcc5657a]{width:100%;height:%?120?%;font-size:%?22?%;color:#c1c1c1;display:flex;align-items:center;justify-content:center}',""]),t.exports=e},"78a8":function(t,e,o){var n=o("7c0c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=o("967d").default;a("1529fa56",n,!0,{sourceMap:!1,shadowMode:!1})},"7c0c":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-3d520189] .u-form-item--right__content__slot > uni-view,[data-v-3d520189] .u-form-item--right__content__slot > div,[data-v-3d520189] .u-form-item--right__content__slot > span,[data-v-3d520189] .u-form-item--right__content__slot > uni-text{width:100%}.orderItem[data-v-3d520189]{width:100%;padding:%?30?%;font-family:PingFang SC;background-color:#fff;color:#262626}.orderItem .head[data-v-3d520189]{display:flex;align-items:center;justify-content:space-between}.orderItem .head uni-text[data-v-3d520189]:nth-child(1){font-size:%?28?%;font-weight:600}.orderItem .head uni-text[data-v-3d520189]:nth-child(2){font-size:%?24?%;color:#f0250e}.orderItem .head .complete[data-v-3d520189]{color:#8c8c8c}.orderItem .goods[data-v-3d520189]{padding-top:%?6?%}.orderItem .goods .goodItem[data-v-3d520189]{display:flex;padding:%?24?%;border-bottom:1px solid #f8f8f8}.orderItem .goods .goodItem .pic[data-v-3d520189]{width:%?140?%;min-width:%?140?%;height:%?140?%;border-radius:%?10?%;overflow:hidden;background-color:#f1f1f1}.orderItem .goods .goodItem .pic uni-image[data-v-3d520189]{width:100%;height:100%}.orderItem .goods .goodItem .info[data-v-3d520189]{margin-left:%?20?%}.orderItem .goods .goodItem .info .name[data-v-3d520189]{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-3d520189]{display:flex;align-items:center;justify-content:space-between}.orderItem .goods .goodItem .info .sku uni-text[data-v-3d520189]:nth-child(2){font-size:%?24?%;color:#8c8c8c}.orderItem .goods .showMore[data-v-3d520189]{display:flex;align-items:center;font-size:%?24?%;color:#8c8c8c;margin-bottom:%?30?%;justify-content:center}.orderItem .goods .goodItem[data-v-3d520189]:last-child{border-bottom:none}.orderItem .foot[data-v-3d520189]{padding-top:%?20?%;border-top:1px solid #f8f8f8;display:flex;align-items:center;justify-content:space-between}.orderItem .foot .money[data-v-3d520189]{font-size:%?26?%}.orderItem .foot .money .red[data-v-3d520189]{color:#f0250e;font-weight:600}.orderItem .foot .status[data-v-3d520189]{font-size:%?26?%;color:#8c8c8c}.orderItem .foot .status.red[data-v-3d520189]{color:#f0250e}.userInfo[data-v-3d520189]{display:flex;align-items:center;flex:1;overflow:hidden}.userInfo uni-image[data-v-3d520189]{margin-right:%?12?%;width:%?48?%;height:%?48?%;border-radius:%?32?%}.userInfo .name[data-v-3d520189]{flex:1;overflow:hidden;font-size:%?26?%;color:#262626}',""]),t.exports=e},"8ab3":function(t,e,o){"use strict";o.r(e);var n=o("a55b"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},9534:function(t,e,o){"use strict";o.r(e);var n=o("2b7d"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},a55b: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}}}};e.default=n},e58f:function(t,e,o){"use strict";var n=o("2381"),a=o.n(n);a.a}}]);
|