2026-03-23 14:57:47 +08:00

1 line
4.0 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/logistics/index"],{"1c3a":function(t,e,o){"use strict";var n=o("bc8f"),r=o.n(n);r.a},"541c":function(t,e,o){"use strict";o.r(e);var n=o("fa8c"),r=o("cb33");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("1c3a");var s=o("828b"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"409b6ea4",null,!1,n["a"],void 0);e["default"]=c.exports},"880f":function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(o("7ca3")),i=o("c28d"),s=o("8ede"),c=o("23a8"),a=o("8f59"),u=o("2a20");function f(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function l(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?f(Object(o),!0).forEach((function(e){(0,r.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var d=t.getWindowInfo().statusBarHeight,h={components:{NavBar:function(){o.e("components/NavBar").then(function(){return resolve(o("9ba4"))}.bind(null,o)).catch(o.oe)},emptyPage:function(){o.e("components/emptyPage").then(function(){return resolve(o("5c67"))}.bind(null,o)).catch(o.oe)}},data:function(){return{sysHeight:d,imgHost:u.HTTP_REQUEST_URL,orderId:"",type:"",product:[],orderInfo:{},expressList:[],hostProduct:[],isShowAuth:!1,pageScrollStatus:!1,showMore:!0,iconColor:"#FFFFFF",isScrolling:!1}},computed:l(l({},(0,a.mapGetters)(["isLogin"])),{},{logisticList:function(){return this.showMore?this.expressList:this.expressList.slice(0,1)}}),watch:{isLogin:{handler:function(t,e){},deep:!0}},onLoad:function(t){if(!t.orderId)return this.$util.Tips({title:"缺少订单号"});"undefined"==typeof t.type?this.type="":this.type=t.type,this.orderId=t.orderId,this.isLogin&&(this.getExpress(),this.get_host_product())},onPageScroll:function(e){e.scrollTop>100?this.pageScrollStatus=!0:e.scrollTop<100&&(this.pageScrollStatus=!1),e.scrollTop>50?(this.isScrolling=!0,this.iconColor="#333333"):e.scrollTop<50&&(this.isScrolling=!1,this.iconColor="#FFFFFF"),t.$emit("scroll")},onShow:function(){t.removeStorageSync("form_type_cart"),this.isLogin||(0,c.toLogin)()},methods:{authColse:function(t){this.isShowAuth=t},onLoadFun:function(){this.getExpress(),this.get_host_product(),this.isShowAuth=!1},copyOrderId:function(){t.setClipboardData({data:this.orderInfo.delivery_id})},getExpress:function(){var t=this,e=this;(0,i.express)(e.orderId,this.type).then((function(t){e.$set(e,"product",t.data.order.cartInfo||[]),e.$set(e,"orderInfo",t.data.order),e.$set(e,"expressList",t.data.express.result.list||[])})).catch((function(e){t.$util.Tips({title:e})}))},get_host_product:function(){var t=this;(0,s.getProductHot)().then((function(e){t.$set(t,"hostProduct",e.data)}))},checkShowMore:function(){this.showMore=!this.showMore},goPage:function(e,o){1==e?t.navigateTo({url:o}):2==e?t.switchTab({url:o}):3==e&&t.navigateBack()}}};e.default=h}).call(this,o("df3c")["default"])},"97a3":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("89bd");n(o("3240"));var r=n(o("541c"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(r.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},bc8f:function(t,e,o){},cb33:function(t,e,o){"use strict";o.r(e);var n=o("880f"),r=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"]=r.a},fa8c: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.$createElement,e=(this._self._c,this.expressList.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]}},[["97a3","common/runtime","common/vendor"]]]);