verification_list.js 4.3 KB

1
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle/pages/verification_list/verification_list"],{"17a0":function(n,t,e){"use strict";e.r(t);var i=e("b2b8"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=o.a},"2c1a":function(n,t,e){"use strict";(function(n,t){var i=e("47a9");e("b46f");i(e("3240"));var o=i(e("ed55"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},af3f:function(n,t,e){"use strict";var i=e("da51"),o=e.n(i);o.a},b2b8:function(n,t,e){"use strict";(function(n){var i=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(e("af34")),r=e("0669"),a=i(e("7fd6")),u=(e("7398"),i(e("d361")),{name:"OrderList",mixins:[a.default],data:function(){return{tabsList:[{sign:0,name:"待核销",list:[]},{sign:1,name:"已核销",list:[]}],tabsIndex:0,orderStatus:{0:{name:"待核销",style:"primary"},1:{name:"已核销",style:"muted"}},code:"",showInputCode:!1,verifyTipsModal:!1,verifyTips:""}},computed:{currentTab:function(){return this.tabsList[this.tabsIndex]},mapTabsItem:function(){var n=this;return function(t){return n.tabsList.find((function(n){return n["sign"]===t}))}}},methods:{changeCurrentTab:function(n){this.tabsIndex=n},refreshOrderData:function(){var n=this.$refs["scroll-"+this.currentTab["sign"]][0];n.downCallback()},upCallback:function(n,t){var e=this,i=n.num,a=n.size,u=this.$refs["scroll-"+t][0];(0,r.apiVerificationOrderList)({type:t,page_no:i,page_size:a}).then((function(n){var r=n.lists,a=(n.page_size,n.count),s=e.mapTabsItem(t);1===i&&(s.list=[]),s.list=[].concat((0,o.default)(s.list),(0,o.default)(r)),u.endSuccess(r.length,a)})).catch((function(n){u.endBySize()}))},goOrderDetail:function(n){this.$Router.push({path:"/bundle/pages/verification_detail/verification_detail",query:{code:n}})},onScanQRCode:function(){var t=this;n.scanCode({scanType:["qrCode"],success:function(n){t.handleVerifyTips(n.result)},fail:function(n){console.log(n)}})},inputOrderCode:function(){if(""===this.code)return this.$toast({title:"请输入核销码"});this.handleVerifyTips(this.code)},handleVerifyTips:function(n){var t=this;(0,r.apiVerificationOrderDetail)({pickup_code:n,confirm:0}).then((function(e){if(10===e.code)return t.verifyTips=e.msg,t.verifyTipsModal=!0,void(t.code=n);t.goOrderDetail(n)}))}},watch:{showInputCode:function(){this.$set(this,"code","")}},onShow:function(){var n=this;this.$nextTick((function(){n.refreshOrderData()}))}});t.default=u}).call(this,e("df3c")["default"])},d8df:function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return i}));var i={uTabs:function(){return e.e("components/uview-ui/components/u-tabs/u-tabs").then(e.bind(null,"6470"))},mescrollContain:function(){return Promise.all([e.e("common/vendor"),e.e("components/mescroll-contain/mescroll-contain")]).then(e.bind(null,"3ff6"))},goodsCard:function(){return e.e("components/goods-card/goods-card").then(e.bind(null,"4daa"))},uIcon:function(){return e.e("components/uview-ui/components/u-icon/u-icon").then(e.bind(null,"1340"))},uModal:function(){return e.e("components/uview-ui/components/u-modal/u-modal").then(e.bind(null,"e709"))},uInput:function(){return Promise.all([e.e("common/vendor"),e.e("components/uview-ui/components/u-input/u-input")]).then(e.bind(null,"3012"))}},o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.tabsList,(function(t,e){var i=n.__get_orig(t),o=n.currentTab["sign"]===t["sign"]?{noMoreSize:5,empty:{icon:"/static/images/empty/order.png",tip:"暂无订单~",fixed:!0}}:null,r=n.currentTab["sign"]===t["sign"]?n.__map(n.tabsList[e].list,(function(t,e){var i=n.__get_orig(t),o=n.__map(t.order_goods,(function(t,e){var i=n.__get_orig(t);return{$orig:i,a1:{"border-raius":0,height:"230rpx"}}}));return{$orig:i,l0:o}})):null;return{$orig:i,a0:o,l1:r}})));n._isMounted||(n.e0=function(t){n.showInputCode=!0}),n.$mp.data=Object.assign({},{$root:{l2:e}})},r=[]},da51:function(n,t,e){},ed55:function(n,t,e){"use strict";e.r(t);var i=e("d8df"),o=e("17a0");for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);e("af3f");var a=e("828b"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"22454d00",null,!1,i["a"],void 0);t["default"]=u.exports}},[["2c1a","common/runtime","common/vendor"]]]);