1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["member-order-logistics"],{"06e4":function(t,e,i){"use strict";var a=i("5fff"),s=i.n(a);s.a},"29ef":function(t,e,i){"use strict";i.r(e);var a=i("35e4"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a},"35e4":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("dc69"),i("aa9c");var s=a(i("9b1b")),n=a(i("62cc")),o=i("8f59"),r={data:function(){return{options:{},order_id:"",Logistics:{},markers:[],Info:[],DLogistics:[],LogisticName:"",path:""}},computed:(0,o.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(t){uni.setNavigationBarTitle({title:this.__("物流进度")}),this.setData({order_id:t.on,LogisticName:t.LogisticName}),"达达配送"==t.LogisticName?this.GetShipmentDetailList():this.ExpressQuery(t.on,t.stock_bill_id)},onUnload:function(){},methods:(0,s.default)((0,s.default)({},(0,o.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{ExpressQuery:function(t,e){var i=this,a={order_id:t,stock_bill_id:e};i.$.request({url:this.Config.URL.delivery_info,method:"POST",data:a,success:function(t,e,a,s){200==e&&t.traces.length>0?i.setData({Logistics:t}):i.$.confirm(a,(function(t){}),!1)}})},GetShipmentStakeholders:function(){var t={order_id:this.data.order_id,store_id:app.globalData.shopInfo.store_id},e=this;e.$.request(n.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(n.default.makeUrl(orderapi.GetShipmentDetailList,t),(function(t){t.Info.Traces.reverse(),e.setData({DLogistics:t.Info})}))},getImageInfo:function(){var t=[],e=this;wx.getImageInfo({src:e.data.Info.LogoPath,success:function(t){e.setData({path:t.path})}});var i={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"},s={latitude:e.data.Info.OrderAddressLat,longitude:e.data.Info.OrderAddressLng,width:50,height:60,iconPath:"../../assets/person.png"};t.push(i),t.push(a),t.push(s),e.setData({markers:t})},call:function(){wx.makePhoneCall({phoneNumber:this.data.Info.TransporterPhone})}})};e.default=r},"5fff":function(t,e,i){var a=i("e68b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("967d").default;s("1332dd9c",a,!0,{sourceMap:!1,shadowMode:!1})},"91d1":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"m-logisticsbox"},[i("v-uni-view",{staticClass:"m-cells"},[i("v-uni-view",{staticClass:"m-cell"},["达达配送"!=t.LogisticName?i("v-uni-view",{staticClass:"m-cell-bd"},[i("v-uni-text",[t._v(t._s(t.__("物流状态:"))+t._s(t.Logistics.express_state))])],1):t._e(),"达达配送"==t.LogisticName?i("v-uni-view",{staticClass:"m-cell-bd"},[i("v-uni-text",[t._v(t._s(t.__("物流状态:"))+t._s(t.DLogistics.express_state))])],1):t._e()],1)],1),"达达配送"==t.LogisticName&&3==t.Info.Status?i("v-uni-view",{staticClass:"map"},[i("v-uni-image",{attrs:{src:"/static/images/call.png",bindtap:"call"}}),i("v-uni-map",{staticClass:"m-map",staticStyle:{width:"100%",height:"400rpx"},attrs:{longitude:"Info.TransporterLng",latitude:"Info.TransporterLat",markers:"markers",scale:"14","show-location":!0}})],1):t._e(),"达达配送"==t.LogisticName?i("v-uni-view",{staticClass:"m-logistbox"},t._l(t.DLogistics.Traces,(function(e,a){return i("v-uni-view",{key:a,staticClass:"m-logistitem"},[t._v(t._s(e.AcceptStation)),i("v-uni-view",[t._v(t._s(e.AcceptTimeStr||e.AcceptTime))])],1)})),1):t._e(),"达达配送"!=t.LogisticName?i("v-uni-view",{staticClass:"m-logistbox"},t._l(t.Logistics.traces,(function(e,a){return i("v-uni-view",{key:a,staticClass:"m-logistitem"},[t._v(t._s(e.AcceptStation)),i("v-uni-view",[t._v(t._s(e.AcceptTimeStr||e.AcceptTime))])],1)})),1):t._e()],1)],1)},s=[]},b0d4:function(t,e,i){"use strict";i.r(e);var a=i("91d1"),s=i("29ef");for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("06e4");var o=i("828b"),r=Object(o["a"])(s["default"],a["b"],a["c"],!1,null,"e30a0898",null,!1,a["a"],void 0);e["default"]=r.exports},e68b:function(t,e,i){var a=i("c86c");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/* 文章场景相关 */[data-v-e30a0898]:export{theme_bg:#f30213}.m-cells[data-v-e30a0898]{font-size:%?28?%}.m-logistbox[data-v-e30a0898]{margin-top:%?20?%}.m-logistitem[data-v-e30a0898]{font-size:%?28?%;background-color:#fff;padding:%?40?% %?20?% %?40?% %?100?%;border-bottom:%?1?% solid #ebebe7;line-height:%?40?%;color:#888;position:relative}.m-logistitem[data-v-e30a0898]::after{content:"";position:absolute;left:0;top:0;width:%?1?%;height:100%;border-left:%?1?% solid #ebebe7;margin-left:%?50?%}.m-logistitem[data-v-e30a0898]::before{content:"";position:absolute;width:%?30?%;height:%?30?%;left:0;top:0;background-color:#d5d5d5;border-radius:100%;margin-left:%?35?%;margin-top:%?40?%;z-index:2}.m-logistitem[data-v-e30a0898]:first-child{color:#f30213}.m-logistitem[data-v-e30a0898]:first-child::before{content:"";position:absolute;width:%?30?%;height:%?30?%;left:0;top:0;background-color:#f30213;border-radius:100%;margin-left:%?35?%;margin-top:%?40?%;z-index:2}.map[data-v-e30a0898]{\n /* margin-top: 20rpx; */}.map uni-image[data-v-e30a0898]{width:%?60?%;height:%?60?%;z-index:999;position:absolute;top:%?100?%;right:%?20?%}',""]),t.exports=e}}]); |