1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-myOrderList-index"],{"01af":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uNavbar:n("6103").default,uIcon:n("5fbc").default,uTabs:n("f2d8").default,uCalendar:n("b421").default,uBackTop:n("3554").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"pageBox"},[n("v-uni-image",{staticClass:"head_bg",attrs:{src:"/static/imgs/head_bg.png",mode:"widthFix"}}),n("u-navbar",{staticClass:"navbar-wrap",attrs:{"title-color":"#181818","back-icon-color":"#181818",background:t.background}},[n("div",{staticClass:"navbar_name"},[t._v("订单明细"),n("u-icon",{staticClass:"lMar10",attrs:{name:"calendar",color:"#181818",size:"40"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCalendarEvent.apply(void 0,arguments)}}})],1)]),n("v-uni-view",{staticClass:"stickBox",style:{top:t.statusBarHeight+t.navigationBarHeight+"px"}},[n("u-tabs",{staticClass:"tabs-wrap",attrs:{list:t.tabList,current:t.tabsCur.index,"is-scroll":!0,height:70,"bar-height":"6","bar-width":"20","bar-style":{background:"linear-gradient(90deg, #FF9048 0%, #FB3F3C 100%)","border-radius":"3rpx"},"item-width":"33.3%","active-color":"#181818","inactive-color":"#181818","font-size":"34","active-item-style":{"font-size":"36rpx","font-weight":"bold"},bold:!0,"bg-color":"transparent"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeTab.apply(void 0,arguments)}}}),n("v-uni-view",{staticStyle:{"background-color":"#F5F5F5"}},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showNotice,expression:"showNotice"}]},[n("notice",{attrs:{text:"订单收益一般10分钟内同步,最迟3小时,请稍等一会儿~"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeNotice.apply(void 0,arguments)}}})],1),""!=t.yearMonthDay?n("v-uni-view",{staticClass:"screen-block"},[n("v-uni-view",{staticClass:"screen-time screen-all",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCalendarEvent.apply(void 0,arguments)}}},[t._v(t._s(t.yearMonthDay)),n("u-icon",{staticClass:"down-icon",attrs:{name:"arrow-down",color:"#f13641",size:"20"}})],1),n("u-icon",{staticClass:"down-icon",attrs:{name:"close",color:"#666",size:"20"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backAllOrder.apply(void 0,arguments)}}})],1):t._e(),n("v-uni-view",{staticClass:"typeBox"},t._l(t.typeList,(function(e){return n("v-uni-view",{key:e.title,class:e.type==t.typeAc?"active":"",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.switchType(e.type)}}},[n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.count))]),n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.title))])],1)})),1)],1)],1),n("v-uni-view",{staticStyle:{"background-color":"#F5F5F5"}},[n("orderList",{attrs:{list:t.listProp,loading:t.loading,noMoreShow:t.isEnd}}),n("u-calendar",{attrs:{date:t.yearMonthDay},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.calendarChange.apply(void 0,arguments)}},model:{value:t.calendarShow,callback:function(e){t.calendarShow=e},expression:"calendarShow"}}),n("u-back-top",{attrs:{"scroll-top":t.scrollTop}})],1)],1)},o=[]},"0300":function(t,e,n){var a=n("04e6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("0a60f709",a,!0,{sourceMap:!1,shadowMode:!1})},"04e6":function(t,e,n){var a=n("24fb");e=a(!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/* 文章场景相关 */.head_bg[data-v-d637c2d6]{position:fixed;top:0;left:0;width:100%;height:%?300?%;background-color:#fff}.pageBox[data-v-d637c2d6]{background-color:#f5f5f5;position:relative}.pageBox .navbar_name[data-v-d637c2d6]{color:#181818;font-size:%?36?%;padding-left:40%;display:flex;align-items:center}.pageBox .navbar_name .lMar10[data-v-d637c2d6]{margin-left:%?10?%}.pageBox .stickBox[data-v-d637c2d6]{position:-webkit-sticky;position:sticky;padding-top:%?1?%}.pageBox .typeBox[data-v-d637c2d6]{background-color:#fff;color:#333;font-size:%?32?%;padding:%?20?% %?50?%;border-bottom:%?2?% solid #f1f1f1;display:flex;align-items:center;justify-content:space-between;text-align:center}.pageBox .typeBox .name[data-v-d637c2d6]{margin-top:%?15?%;font-size:%?30?%}.pageBox .typeBox .active[data-v-d637c2d6]{color:#f13641;font-weight:600}.screen-block[data-v-d637c2d6]{background:#fff;border-bottom:%?2?% solid #f1f1f1;display:flex;align-items:center;padding:%?10?% %?40?%}.screen-block .screen-all[data-v-d637c2d6]{font-size:%?24?%;line-height:%?50?%;padding:0 %?20?%;background:#f4f4f4;border-radius:%?30?%}.screen-block .screen-time[data-v-d637c2d6]{color:#f13641}.screen-block .down-icon[data-v-d637c2d6]{margin-left:%?10?%}',""]),t.exports=e},"0adb":function(t,e,n){var a=n("24fb");e=a(!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/* 文章场景相关 */.level-tips-wrap[data-v-0bc3fbc8]{display:flex;align-items:center;background-color:#fff;margin:%?10?% 0;padding:%?20?%}.level-tips-wrap .icon[data-v-0bc3fbc8]{width:%?34?%;height:%?28?%}.level-tips-wrap .tips[data-v-0bc3fbc8]{margin-left:%?10?%;font-size:%?26?%;color:#f10b00}.level-tips-wrap .iconClose[data-v-0bc3fbc8]{margin-left:auto}',""]),t.exports=e},"44db":function(t,e,n){var a=n("0adb");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("8db76b9e",a,!0,{sourceMap:!1,shadowMode:!1})},"55cb":function(t,e,n){"use strict";n.r(e);var a=n("6fee"),i=n("8d61");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("fcef");var r=n("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"0bc3fbc8",null,!1,a["a"],void 0);e["default"]=s.exports},"6fee":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uIcon:n("5fbc").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"level-tips-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickNotice.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"icon",attrs:{src:"/static/imgs/icon-notice.png"}}),n("v-uni-text",{staticClass:"tips"},[t._v(t._s(t.text))]),t._t("default",[n("u-icon",{staticClass:"iconClose",attrs:{name:t.name,color:"#F10B00",size:"24"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeEvent.apply(void 0,arguments)}}})])],2)],1)},o=[]},"88bf":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var i=a(n("c7eb")),o=a(n("1da1")),r=a(n("55cb")),s=a(n("f86d")),c=getApp(),d={components:{notice:r.default,orderList:s.default},data:function(){return{background:{backgroundImage:"transparent"},statusBarHeight:c.globalData.statusBarHeight,navigationBarHeight:c.globalData.navigationBarHeight,showNotice:!0,typeList:[],typeAc:4,listProp:[],noMoreShow:!0,loading:!0,calendarShow:!1,page:1,isEnd:!1,yearMonthDay:"",scrollTop:0,tabList:[{type:0,name:"全部"},{type:1,name:"淘宝"},{type:2,name:"京东"}],tabsCur:{index:0,type:0}}},onPageScroll:function(t){this.scrollTop=t.scrollTop},onLoad:function(){this.getOrderTop(),this.getOrderList()},onReachBottom:function(){this.isEnd||this.loading||(this.loading=!0,this.page++,this.getOrderList())},onPullDownRefresh:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getOrderTop();case 2:return t.page=1,e.next=5,t.getOrderList();case 5:uni.stopPullDownRefresh();case 6:case"end":return e.stop()}}),e)})))()},methods:{onChangeTab:function(t){var e=this;return(0,o.default)((0,i.default)().mark((function n(){return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.tabsCur.index=t,e.tabsCur.type=e.tabList[t].type,n.next=4,e.getOrderTop();case 4:return e.page=1,n.next=7,e.getOrderList();case 7:case"end":return n.stop()}}),n)})))()},getOrderTop:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,a,o,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=t.$api.adzoneCreate_getOrderTop,a={yearMonthDay:t.yearMonthDay,ptype:t.tabsCur.type},uni.showLoading({title:"加载中...",mask:!0}),e.next=6,t.$postJSON(n,a);case 6:o=e.sent,r=o.data,r&&0==r.errno?t.typeList=r.rst.data:uni.showToast({title:r.err||"操作失败",icon:"none"}),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),uni.showToast({title:"服务器错误",icon:"none"});case 14:return e.prev=14,uni.hideLoading(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})))()},getOrderList:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,a,o,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 1==t.page&&uni.pageScrollTo({scrollTop:0}),e.prev=1,n=t.$api.adzoneCreate_orderListNew,a={page:t.page,type:t.typeAc,yearMonthDay:t.yearMonthDay,isDay:""!=t.yearMonthDay?1:0,ptype:t.tabsCur.type},uni.showLoading({title:"加载中...",mask:!0}),e.next=7,t.$postJSON(n,a);case 7:o=e.sent,r=o.data,t.loading=!1,r&&0==r.errno?(r.rst.data.length<=0?t.isEnd=!0:t.isEnd=!1,1==t.page?t.listProp=r.rst.data:t.listProp=t.listProp.concat(r.rst.data)):uni.showToast({title:r.err||"操作失败",icon:"none"}),e.next=17;break;case 13:e.prev=13,e.t0=e["catch"](1),t.loading=!1,uni.showToast({title:"服务器错误",icon:"none"});case 17:return e.prev=17,t.loading=!1,uni.hideLoading(),e.finish(17);case 21:case"end":return e.stop()}}),e,null,[[1,13,17,21]])})))()},closeNotice:function(){this.showNotice=!1},switchType:function(t){this.typeAc=t,this.page=1,this.getOrderList()},showCalendarEvent:function(){this.calendarShow=!0},calendarChange:function(t){console.log("oooo",t),this.yearMonthDay=t.result,this.page=1,this.getOrderList(),this.getOrderTop()},backAllOrder:function(){this.yearMonthDay="",this.page=1,this.getOrderList(),this.getOrderTop()}}};e.default=d},"8d61":function(t,e,n){"use strict";n.r(e);var a=n("df35"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},9774:function(t,e,n){"use strict";n.r(e);var a=n("88bf"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},a45d:function(t,e,n){"use strict";var a=n("0300"),i=n.n(a);i.a},b4f0:function(t,e,n){"use strict";n.r(e);var a=n("01af"),i=n("9774");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("a45d");var r=n("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"d637c2d6",null,!1,a["a"],void 0);e["default"]=s.exports},df35:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{text:{type:String,default:""},name:{type:String,default:"close"}},data:function(){return{}},methods:{onClickNotice:function(){this.$emit("clickNotice")},closeEvent:function(){this.$emit("close")}}};e.default=a},fcef:function(t,e,n){"use strict";var a=n("44db"),i=n.n(a);i.a}}]);
|