You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.0 KiB
1 lines
4.0 KiB
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goods_logistics/index"],{"19e2":function(t,e,o){},"2e54":function(t,e,o){"use strict";o.r(e);var n=o("a880"),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},"78fe":function(t,e,o){"use strict";var n=o("19e2"),r=o.n(n);r.a},a672:function(t,e,o){"use strict";o.r(e);var n=o("f7a7"),r=o("2e54");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("78fe");var s=o("828b"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"89ed68be",null,!1,n["a"],void 0);e["default"]=c.exports},a880: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("152a"),s=o("ce7e"),c=(n(o("6da5")),o("7ba4")),a=o("8f59"),u=n(o("cef6")),f=o("bad7");function d(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?d(Object(o),!0).forEach((function(e){(0,r.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var h=t.getSystemInfoSync().statusBarHeight,p={components:{recommend:function(){Promise.all([o.e("common/vendor"),o.e("components/recommend/index")]).then(function(){return resolve(o("6af4"))}.bind(null,o)).catch(o.oe)},emptyPage:function(){o.e("components/emptyPage").then(function(){return resolve(o("bc18"))}.bind(null,o)).catch(o.oe)}},mixins:[u.default],data:function(){return{sysHeight:h,imgHost:f.HTTP_REQUEST_URL,orderId:"",type:"",product:[],orderInfo:{},expressList:[],hostProduct:[],isShowAuth:!1,pageScrollStatus:!1,showMore:!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())},onReady:function(){},onPageScroll:function(e){e.scrollTop>100?this.pageScrollStatus=!0:e.scrollTop<100&&(this.pageScrollStatus=!1),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||[])})).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=p}).call(this,o("df3c")["default"])},f7a7: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),o=this.product.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:o}})},r=[]},fad6:function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("7561");n(o("3240"));var r=n(o("a672"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(r.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])}},[["fad6","common/runtime","common/vendor"]]]); |