deliverGoods.js 3.4 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageD/deliverGoods/deliverGoods"],{"1a75":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return o}));var o={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"b73a"))},"u-Input":function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u--input/u--input")]).then(n.bind(null,"7780"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.orderDetail.goods,(function(t,n){var o=e.__get_orig(t),i=t.amount.split("."),s=t.amount.split(".");return{$orig:o,g0:i,g1:s}}))),o=e.isShow?null:e.orderDetail.address_name.split("");e.$mp.data=Object.assign({},{$root:{l0:n,g2:o}})},s=[]},"2bf3":function(e,t,n){"use strict";n.r(t);var o=n("1a75"),i=n("e11b");for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("e1fc");var a=n("828b"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"a25409fc",null,!1,o["a"],void 0);t["default"]=c.exports},4996:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("abeb");o(n("3240"));var i=o(n("2bf3"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},5339:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={components:{SelectExpress:function(){n.e("pageD/components/selectExpress").then(function(){return resolve(n("6e37"))}.bind(null,n)).catch(n.oe)}},data:function(){return{orderDetail:{},isShow:!1,code:"",name:"",nameShow:!1,expressCode:"",filterList:[],expressNameList:[]}},onLoad:function(e){this.getDetail(e.id)},watch:{nameShow:function(e){console.log(e)}},methods:{scanningNumber:function(){var t=this;e.authorize({scope:"scope.camera",success:function(){t.scanQrCode()},fail:function(){e.showToast({title:"您拒绝了授权",icon:"none"})}})},openSelect:function(){this.nameShow=!0},searchExpress:function(e){this.filterList=this.expressNameList.filter((function(t){return t.name.includes(e)})).map((function(e){return e}))},getExpressNameList:function(){var t=this;e.$u.http.get("/api/express-company").then((function(e){t.expressNameList=e,t.filterList=e}))},selected:function(e){this.name=e.name,this.expressCode=e.code,this.nameShow=!1,console.log(this.nameShow)},immediateDelivery:function(){e.$u.http.post("/api/order/merchant_delivery",{order_id:this.orderDetail.id,delivery_no:this.code,company_code:this.expressCode}).then((function(t){e.showToast({title:"已发货",icon:"none"});setTimeout((function(){e.navigateBack({delta:1})}),1e3)}))},scanQrCode:function(){e.scanCode({success:function(t){t.result||e.showToast({title:"扫描失败",icon:"none"})},fail:function(){e.showToast({title:"调用相机失败",icon:"none"})}})},showContent:function(){this.isShow=!this.isShow},getDetail:function(t){var n=this;e.$u.http.get("/api/order/read?id=".concat(t)).then((function(e){n.orderDetail=e}))}},mounted:function(){this.getExpressNameList(),e.setNavigationBarTitle({title:"立即发货"})}};t.default=o}).call(this,n("df3c")["default"])},"88d8":function(e,t,n){},e11b:function(e,t,n){"use strict";n.r(t);var o=n("5339"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=i.a},e1fc:function(e,t,n){"use strict";var o=n("88d8"),i=n.n(o);i.a}},[["4996","common/runtime","common/vendor"]]]);