1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["member/order/logistics"],{"03cc":function(t,e,n){"use strict";n.r(e);var o=n("cd47"),a=n("bd61");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("48f3");var i=n("828b"),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},1384:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("90c2");o(n("3240"));var a=o(n("03cc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"48f3":function(t,e,n){"use strict";var o=n("4ec6"),a=n.n(o);a.a},"4ec6":function(t,e,n){t.exports={theme_bg:"#f30213"}},b2ac:function(t,e,n){"use strict";(function(t,o){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("7ca3")),i=a(n("be2d")),s=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={data:function(){return{options:{},order_id:"",Logistics:{},markers:[],Info:[],DLogistics:[],LogisticName:"",path:""}},computed:(0,s.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(e){t.setNavigationBarTitle({title:this.__("物流进度")}),this.setData({order_id:e.on,LogisticName:e.LogisticName}),"达达配送"==e.LogisticName?this.GetShipmentDetailList():this.ExpressQuery(e.on,e.stock_bill_id)},onUnload:function(){},methods:d(d({},(0,s.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{ExpressQuery:function(t,e){var n=this,o={order_id:t,stock_bill_id:e};n.$.request({url:this.Config.URL.delivery_info,method:"POST",data:o,success:function(t,e,o,a){200==e&&t.traces.length>0?n.setData({Logistics:t}):n.$.confirm(o,(function(t){}),!1)}})},GetShipmentStakeholders:function(){var t={order_id:this.data.order_id,store_id:app.globalData.shopInfo.store_id},e=this;e.$.request(i.default.makeUrl(orderapi.GetShipmentStakeholders,t),(function(t){e.setData({Info:t.Info}),e.getImageInfo()}))},GetShipmentDetailList:function(){var t={order_id:this.data.order_id,store_id:app.globalData.shopInfo.store_id},e=this;e.$.request(i.default.makeUrl(orderapi.GetShipmentDetailList,t),(function(t){t.Info.Traces.reverse(),e.setData({DLogistics:t.Info})}))},getImageInfo:function(){var t=[],e=this;o.getImageInfo({src:e.data.Info.LogoPath,success:function(t){e.setData({path:t.path})}});var n={latitude:e.data.Info.StoreAddressLat,longitude:e.data.Info.StoreAddressLng,width:50,height:60,iconPath:"../../assets/merchant.png"},a={latitude:e.data.Info.TransporterLat,longitude:e.data.Info.TransporterLng,width:50,height:60,iconPath:"../../assets/horseman.png"},r={latitude:e.data.Info.OrderAddressLat,longitude:e.data.Info.OrderAddressLng,width:50,height:60,iconPath:"../../assets/person.png"};t.push(n),t.push(a),t.push(r),e.setData({markers:t})},call:function(){o.makePhoneCall({phoneNumber:this.data.Info.TransporterPhone})}})};e.default=f}).call(this,n("df3c")["default"],n("3223")["default"])},bd61:function(t,e,n){"use strict";n.r(e);var o=n("b2ac"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},cd47:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,"达达配送"!=this.LogisticName?this.__("物流状态:"):null),n="达达配送"==this.LogisticName?this.__("物流状态:"):null;this.$mp.data=Object.assign({},{$root:{m0:e,m1:n}})},a=[]}},[["1384","common/runtime","common/vendor"]]]); |