nextLogistics.js 3.8 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageD/newBulitOrder/component/nextLogistics"],{"55c0":function(n,i,t){"use strict";var e=t("d647"),o=t.n(e);o.a},"61c6":function(n,i,t){"use strict";t.d(i,"b",(function(){return o})),t.d(i,"c",(function(){return a})),t.d(i,"a",(function(){return e}));var e={uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-popup/u-popup")]).then(t.bind(null,"2f21"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"01eb"))}},o=function(){var n=this,i=n.$createElement;n._self._c},a=[]},"7e8d":function(n,i,t){"use strict";t.r(i);var e=t("61c6"),o=t("ae24");for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(i,n,(function(){return o[n]}))}(a);t("55c0");var c,u=t("f0c5"),s=Object(u["a"])(o["default"],e["b"],e["c"],!1,null,"51d2eff4",null,!1,e["a"],c);i["default"]=s.exports},"87cc":function(n,i,t){"use strict";(function(n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={name:"nextLogistics",props:{nextLogisticsShow:{typeof:Boolean,default:!1},language:{typeof:String,default:""},goodinfo:{typeof:Object,default:function(){return{}}}},computed:{i18n:function(){return this.$t("index")}},data:function(){return{containerList:[],unit_price:"",recommend_weight:"",containname:"",sum:"",containid:"",datechan:""}},watch:{nextLogisticsShow:function(i){var t=this;i&&n.$u.http.get("/api/container-base",{params:{is_page:0,province_id:this.goodinfo.province_id,transport_type_id:this.goodinfo.transport_type_id,weight:Number(this.goodinfo.weight),type:"normal",length:Number(this.goodinfo.length),width:this.goodinfo.width,height:this.goodinfo.height,cart_id:""}}).then((function(n){n.forEach((function(n){0!=n.sum&&t.containerList.push(n)})),0==t.goodinfo.is_shipping?t.sum=0:t.sum=t.containerList[0].sum,0==t.goodinfo.is_shipping?t.unit_price=0:t.unit_price=t.containerList[0].unit_price,t.recommend_weight=t.containerList[0].recommend_weight,t.containid=t.containerList[0].id,"zh-CN"==t.language&&(t.containname=t.containerList[0].name_cn),"en-US"==t.language&&(t.containname=t.containerList[0].name_en),"es-ES"==t.language&&(t.containname=t.containerList[0].name_es),"it-IT"==t.language&&(t.containname=t.containerList[0].name_ita)})).catch((function(){}))}},methods:{config:function(){var i=this;n.$u.http.get("/api/config",{params:{module:"free_shipping"}}).then((function(n){var t="";1==i.goodinfo.is_discount?(t=Number(100*i.sku_info.price)*Number(100*i.value)/1e4,console.log("that.sum",i.sum),console.log("that.goodsum",t),t>n.free_shipping&&(i.sum=0,i.unit_price=0)):(t=Number(100*i.sku_info.discount_price)*Number(100*i.value)/1e4,t>n.free_shipping&&(i.sum=0,i.unit_price=0))})).catch((function(){}))},confirm:function(){this.$emit("closeLogistics")},activea:function(n,i){this.datechan=i,this.sum=n.sum,this.unit_price=n.unit_price,this.recommend_weight=n.recommend_weight,this.containid=n.id,"zh-CN"==this.language&&(this.containname=n.name_cn),"en-US"==this.language&&(this.containname=n.name_en),"es-ES"==this.language&&(this.containname=n.name_es),"it-IT"==this.language&&(this.containname=n.name_ita)}}};i.default=t}).call(this,t("543d")["default"])},ae24:function(n,i,t){"use strict";t.r(i);var e=t("87cc"),o=t.n(e);for(var a in e)["default"].indexOf(a)<0&&function(n){t.d(i,n,(function(){return e[n]}))}(a);i["default"]=o.a},d647:function(n,i,t){}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pageD/newBulitOrder/component/nextLogistics-create-component',
  4. {
  5. 'pageD/newBulitOrder/component/nextLogistics-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("7e8d"))
  7. })
  8. },
  9. [['pageD/newBulitOrder/component/nextLogistics-create-component']]
  10. ]);