12345 |
- <<<<<<< HEAD
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageA/order"],{"019c":function(i,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return t}));var t={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"b73a"))},uNumberBox:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-number-box/u-number-box")]).then(e.bind(null,"c929"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"f1b1"))}},o=function(){var i=this,n=i.$createElement,e=(i._self._c,i.addinfo?i.replacePhoneToStar(i.addinfo.mobile):null),t="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e3*i.sku_info.price):null,o="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e3*i.value):null,s="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(1e3*i.sku_info.discount_price):null,a="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(i.value):null,u=i.__map(i.swiptlist,(function(n,e){var t=i.__get_orig(n),o=0==n.is_discount?n.discount_price.slice(0,-3):null,s=0!=n.is_discount?n.price.slice(0,-3):null,a=0==n.is_discount?n.discount_price.slice(-3):null,u=0!=n.is_discount?n.price.slice(-3):null;return{$orig:t,g0:o,g1:s,g2:a,g3:u}})),c="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.sku_info.price):null,r="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.value):null,h="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.sku_info.discount_price):null,d="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.value):null,l="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.sku_info.price):null,p="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.value):null,m="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.sku_info.discount_price):null,g="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.value):null,_="shop"==i.typea?Number(1e4*i.sum+1e4*Number(i.goodsPrice)):null,f="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e4*i.sum+Number(i.sku_info.price)*Number(i.value)*1e4):null,b="shop"!=i.typea&&0==i.goodinfo.is_discount?Number(1e4*i.sum+Number(i.sku_info.discount_price)*Number(i.value)*1e4):null;i._isMounted||(i.e0=function(n){i.show=!0}),i.$mp.data=Object.assign({},{$root:{m0:e,m1:t,m2:o,m3:s,m4:a,l0:u,m5:c,m6:r,m7:h,m8:d,m9:l,m10:p,m11:m,m12:g,m13:_,m14:f,m15:b}})},s=[]},a0a5:function(i,n,e){"use strict";e.r(n);var t=e("019c"),o=e("beeb");for(var s in o)["default"].indexOf(s)<0&&function(i){e.d(n,i,(function(){return o[i]}))}(s);e("ff93");var a=e("828b"),u=Object(a["a"])(o["default"],t["b"],t["c"],!1,null,"328a9550",null,!1,t["a"],void 0);n["default"]=u.exports},ad3a:function(i,n,e){"use strict";(function(i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{value:1,show:!1,index:"",show1:!1,datechan:"",sku_info:{},goodinfo:{},swiptlist:[],language:"zh-CN",containerList:[],province_id:"",transport_type_id:"",containlist:[],containid:"",containname:"",type:"",containname1:"",type1:"",sum:"",unit_price:"",recommend_weight:"",sum1:"",unit_price1:"",recommend_weight1:"",max_weight:"",min_weight:"",unit_fee:"",addinfo:"",huoid:"",selelist:[],typea:"",goodsPrice:"",goodsWeight:"",stringcheck:"",cartid:"",weight_total:""}},computed:{i18n:function(){return this.$t("index")}},onLoad:function(i){i.typea?(console.log(22222),this.typea=i.typea,this.selelist=JSON.parse(decodeURIComponent(i.selelist)),this.goodsPrice=i.goodsPrice,this.goodsWeight=i.goodsWeight,this.stringcheck=i.stringcheck,this.cartid=i.cartid):i&&(this.value=i.value,this.sku_info=JSON.parse(decodeURIComponent(i.sku)),this.goodinfo=JSON.parse(decodeURIComponent(i.goodinfo)),i.share_merchant_id&&(this.share_merchant_id=i.share_merchant_id))},onShow:function(){""!=i.getStorageSync("language")&&(this.language=i.getStorageSync("language")),this.recommend()},methods:{todetail:function(n){i.navigateTo({url:"/pageA/productdetails?id="+n})},replacePhoneToStar:function(i){if(i)return i.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},recommendweight:function(){var n=this;i.$u.http.get("/api/express-order/recommend-container",{params:{container_id:this.containid,type:0==this.goodinfo.cate?"normal":"special"}}).then((function(i){console.log(i),n.max_weight=i.max_weight,n.min_weight=i.min_weight,n.unit_fee=i.unit_fee})).catch((function(){}))},transport:function(){var n=this;i.$u.http.get("/api/transport-type",{params:{province_id:this.province_id}}).then((function(i){n.containerList=i,n.transport_type_id=i[0].id,"zh-CN"==n.language&&(n.type=i[0].name_cn),"en-US"==n.language&&(n.type=i[0].name_en),"es-ES"==n.language&&(n.type=i[0].name_es),"it-IT"==n.language&&(n.type=i[0].name_ita)})).catch((function(){}))},toadd:function(){var n=this;i.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+Number(0),events:{getadd:function(i){n.addinfo=i,n.province_id=i.province_id,n.transport()}}})},container:function(){var n=this;this.containlist=[],i.$u.http.get("/api/container-base",{params:{is_page:0,province_id:this.province_id,transport_type_id:this.transport_type_id,weight:"shop"==this.typea?"":Number(this.sku_info.weight)*this.value,type:"shop"==this.typea?"":0==this.goodinfo.cate?"normal":"special",length:"shop"==this.typea?"":Number(this.sku_info.length)*this.value,width:this.sku_info.width,height:this.sku_info.height,cart_id:this.cartid}}).then((function(i){i.forEach((function(i){0!=i.sum&&n.containlist.push(i),console.log(n.containlist)})),0==n.cartid.length&&"shop"==n.typea&&(console.log("his.cartid.length",n.cartid.length),n.sum=0),0==n.goodinfo.is_shipping?n.sum=0:n.sum=n.containlist[0].sum,0==n.goodinfo.is_shipping?n.unit_price=0:n.unit_price=n.containlist[0].unit_price,n.recommend_weight=n.containlist[0].recommend_weight,n.weight_total=n.containlist[0].weight_total,n.containid=n.containlist[0].id,"zh-CN"==n.language&&(n.containname=n.containlist[0].name_cn),"en-US"==n.language&&(n.containname=n.containlist[0].name_en),"es-ES"==n.language&&(n.containname=n.containlist[0].name_es),"it-IT"==n.language&&(n.containname=n.containlist[0].name_ita)})).catch((function(){}))},config:function(){var n=this;i.$u.http.get("/api/config",{params:{module:"free_shipping"}}).then((function(i){Number(n.goodsPrice)>i.free_shipping&&"shop"==n.typea&&(console.log("goodsPrice",n.goodsPrice),console.log("res.free_shipping",i.free_shipping),n.sum=0,n.unit_price=0);var e="";1==n.goodinfo.is_discount?(e=Number(100*n.sku_info.price)*Number(100*n.value)/1e4,console.log("that.sum",n.sum),console.log("that.goodsum",e),e>i.free_shipping&&(n.sum=0,n.unit_price=0)):(e=Number(100*n.sku_info.discount_price)*Number(100*n.value)/1e4,e>i.free_shipping&&(n.sum=0,n.unit_price=0))})).catch((function(){}))},recommend:function(){var n=this;i.$u.http.post("/api/goods/recommend",{keyword:""}).then((function(i){n.swiptlist=i})).catch((function(){}))},change:function(i,n){this.transport_type_id=i.id,this.index=n,"zh-CN"==this.language&&(this.type=i.name_cn),"en-US"==this.language&&(this.type=i.name_en),"es-ES"==this.language&&(this.type=i.name_es),"it-IT"==this.language&&(this.type=i.name_ita)},next:function(){this.show=!1,this.show1=!0,this.type1=this.type,this.container()},activea:function(i,n){this.datechan=n,this.sum=i.sum,this.unit_price=i.unit_price,this.recommend_weight=i.recommend_weight,this.containid=i.id,this.weight_total=i.weight_total,"zh-CN"==this.language&&(this.containname=i.name_cn),"en-US"==this.language&&(this.containname=i.name_en),"es-ES"==this.language&&(this.containname=i.name_es),"it-IT"==this.language&&(this.containname=i.name_ita)},confirm:function(){this.show1=!1,this.containname1=this.containname,this.recommendweight(),this.config()},close:function(){this.show=!1,this.show1=!1},topay:function(){var n=this;i.$u.http.post("/api/order",{address_id:this.addinfo.id,goods_id:this.goodinfo.id,goods_num:this.value,sku_item_id:this.sku_info.id,cart_ids:this.stringcheck,remark:"",merchant_goods_id:this.goodinfo.merchant_goods_id||"",container_id:this.containid,share_member_id:this.share_merchant_id,belong:this.goodinfo.source||""}).then((function(e){console.log("share_merchant_id",n.share_merchant_id),console.log(e),i.navigateTo({url:"/pageA/payorder?orderid="+e.id+"&sum="+e.amount})})).catch((function(){}))}}};n.default=e}).call(this,e("df3c")["default"])},beeb:function(i,n,e){"use strict";e.r(n);var t=e("ad3a"),o=e.n(t);for(var s in t)["default"].indexOf(s)<0&&function(i){e.d(n,i,(function(){return t[i]}))}(s);n["default"]=o.a},c703:function(i,n,e){},e8ab:function(i,n,e){"use strict";(function(i,n){var t=e("47a9");e("abeb");t(e("3240"));var o=t(e("a0a5"));i.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},ff93:function(i,n,e){"use strict";var t=e("c703"),o=e.n(t);o.a}},[["e8ab","common/runtime","common/vendor"]]]);
- =======
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageA/order"],{"3f96":function(i,n,e){"use strict";e.r(n);var t=e("987b"),o=e.n(t);for(var s in t)["default"].indexOf(s)<0&&function(i){e.d(n,i,(function(){return t[i]}))}(s);n["default"]=o.a},"47e5":function(i,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return t}));var t={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))},uNumberBox:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-number-box/u-number-box")]).then(e.bind(null,"02c9"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"2f21"))}},o=function(){var i=this,n=i.$createElement,e=(i._self._c,i.addinfo?i.replacePhoneToStar(i.addinfo.mobile):null),t="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e3*i.sku_info.price):null,o="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e3*i.value):null,s="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(1e3*i.sku_info.discount_price):null,a="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(i.value):null,u=i.__map(i.swiptlist,(function(n,e){var t=i.__get_orig(n),o=0==n.is_discount?n.discount_price.slice(0,-3):null,s=0!=n.is_discount?n.price.slice(0,-3):null,a=0==n.is_discount?n.discount_price.slice(-3):null,u=0!=n.is_discount?n.price.slice(-3):null;return{$orig:t,g0:o,g1:s,g2:a,g3:u}})),c="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.sku_info.price):null,r="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.value):null,d="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.sku_info.discount_price):null,h="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.value):null,l="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.sku_info.price):null,p="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(100*i.value):null,m="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.sku_info.discount_price):null,g="shop"!=i.typea&&1!=i.goodinfo.is_discount?Number(100*i.value):null,_="shop"==i.typea?Number(1e4*i.sum+1e4*Number(i.goodsPrice)):null,f="shop"!=i.typea&&1==i.goodinfo.is_discount?Number(1e4*i.sum+Number(i.sku_info.price)*Number(i.value)*1e4):null,b="shop"!=i.typea&&0==i.goodinfo.is_discount?Number(1e4*i.sum+Number(i.sku_info.discount_price)*Number(i.value)*1e4):null;i._isMounted||(i.e0=function(n){i.show=!0}),i.$mp.data=Object.assign({},{$root:{m0:e,m1:t,m2:o,m3:s,m4:a,l0:u,m5:c,m6:r,m7:d,m8:h,m9:l,m10:p,m11:m,m12:g,m13:_,m14:f,m15:b}})},s=[]},"4f0b":function(i,n,e){"use strict";(function(i,n){var t=e("4ea4");e("f93b");t(e("66fd"));var o=t(e("7a10"));i.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"7a10":function(i,n,e){"use strict";e.r(n);var t=e("47e5"),o=e("3f96");for(var s in o)["default"].indexOf(s)<0&&function(i){e.d(n,i,(function(){return o[i]}))}(s);e("b6ab");var a,u=e("f0c5"),c=Object(u["a"])(o["default"],t["b"],t["c"],!1,null,"6d493368",null,!1,t["a"],a);n["default"]=c.exports},"8b8d":function(i,n,e){},"987b":function(i,n,e){"use strict";(function(i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{value:1,show:!1,index:"",show1:!1,datechan:"",sku_info:{},goodinfo:{},swiptlist:[],language:"zh-CN",containerList:[],province_id:"",transport_type_id:"",containlist:[],containid:"",containname:"",type:"",containname1:"",type1:"",sum:"",unit_price:"",recommend_weight:"",sum1:"",unit_price1:"",recommend_weight1:"",max_weight:"",min_weight:"",unit_fee:"",addinfo:"",huoid:"",selelist:[],typea:"",goodsPrice:"",goodsWeight:"",stringcheck:"",cartid:"",weight_total:""}},computed:{i18n:function(){return this.$t("index")}},onLoad:function(i){i.typea?(console.log(22222),this.typea=i.typea,this.selelist=JSON.parse(decodeURIComponent(i.selelist)),this.goodsPrice=i.goodsPrice,this.goodsWeight=i.goodsWeight,this.stringcheck=i.stringcheck,this.cartid=i.cartid):i&&(this.value=i.value,this.sku_info=JSON.parse(decodeURIComponent(i.sku)),this.goodinfo=JSON.parse(decodeURIComponent(i.goodinfo)),i.share_merchant_id&&(this.share_merchant_id=i.share_merchant_id))},onShow:function(){""!=i.getStorageSync("language")&&(this.language=i.getStorageSync("language")),this.recommend()},methods:{todetail:function(n){i.navigateTo({url:"/pageA/productdetails?id="+n})},replacePhoneToStar:function(i){if(i)return i.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},recommendweight:function(){var n=this;i.$u.http.get("/api/express-order/recommend-container",{params:{container_id:this.containid,type:0==this.goodinfo.cate?"normal":"special"}}).then((function(i){console.log(i),n.max_weight=i.max_weight,n.min_weight=i.min_weight,n.unit_fee=i.unit_fee})).catch((function(){}))},transport:function(){var n=this;i.$u.http.get("/api/transport-type",{params:{province_id:this.province_id}}).then((function(i){n.containerList=i,n.transport_type_id=i[0].id,"zh-CN"==n.language&&(n.type=i[0].name_cn),"en-US"==n.language&&(n.type=i[0].name_en),"es-ES"==n.language&&(n.type=i[0].name_es),"it-IT"==n.language&&(n.type=i[0].name_ita)})).catch((function(){}))},toadd:function(){var n=this;i.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+Number(0),events:{getadd:function(i){n.addinfo=i,n.province_id=i.province_id,n.transport()}}})},container:function(){var n=this;this.containlist=[],i.$u.http.get("/api/container-base",{params:{is_page:0,province_id:this.province_id,transport_type_id:this.transport_type_id,weight:"shop"==this.typea?"":Number(this.sku_info.weight)*this.value,type:"shop"==this.typea?"":0==this.goodinfo.cate?"normal":"special",length:"shop"==this.typea?"":Number(this.sku_info.length)*this.value,width:this.sku_info.width,height:this.sku_info.height,cart_id:this.cartid}}).then((function(i){i.forEach((function(i){0!=i.sum&&n.containlist.push(i),console.log(n.containlist)})),0==n.cartid.length&&"shop"==n.typea&&(console.log("his.cartid.length",n.cartid.length),n.sum=0),0==n.goodinfo.is_shipping?n.sum=0:n.sum=n.containlist[0].sum,0==n.goodinfo.is_shipping?n.unit_price=0:n.unit_price=n.containlist[0].unit_price,n.recommend_weight=n.containlist[0].recommend_weight,n.weight_total=n.containlist[0].weight_total,n.containid=n.containlist[0].id,"zh-CN"==n.language&&(n.containname=n.containlist[0].name_cn),"en-US"==n.language&&(n.containname=n.containlist[0].name_en),"es-ES"==n.language&&(n.containname=n.containlist[0].name_es),"it-IT"==n.language&&(n.containname=n.containlist[0].name_ita)})).catch((function(){}))},config:function(){var n=this;i.$u.http.get("/api/config",{params:{module:"free_shipping"}}).then((function(i){Number(n.goodsPrice)>i.free_shipping&&"shop"==n.typea&&(console.log("goodsPrice",n.goodsPrice),console.log("res.free_shipping",i.free_shipping),n.sum=0,n.unit_price=0);var e="";1==n.goodinfo.is_discount?(e=Number(100*n.sku_info.price)*Number(100*n.value)/1e4,console.log("that.sum",n.sum),console.log("that.goodsum",e),e>i.free_shipping&&(n.sum=0,n.unit_price=0)):(e=Number(100*n.sku_info.discount_price)*Number(100*n.value)/1e4,e>i.free_shipping&&(n.sum=0,n.unit_price=0))})).catch((function(){}))},recommend:function(){var n=this;i.$u.http.post("/api/goods/recommend",{keyword:""}).then((function(i){n.swiptlist=i})).catch((function(){}))},change:function(i,n){this.transport_type_id=i.id,this.index=n,"zh-CN"==this.language&&(this.type=i.name_cn),"en-US"==this.language&&(this.type=i.name_en),"es-ES"==this.language&&(this.type=i.name_es),"it-IT"==this.language&&(this.type=i.name_ita)},next:function(){this.show=!1,this.show1=!0,this.type1=this.type,this.container()},activea:function(i,n){this.datechan=n,this.sum=i.sum,this.unit_price=i.unit_price,this.recommend_weight=i.recommend_weight,this.containid=i.id,this.weight_total=i.weight_total,"zh-CN"==this.language&&(this.containname=i.name_cn),"en-US"==this.language&&(this.containname=i.name_en),"es-ES"==this.language&&(this.containname=i.name_es),"it-IT"==this.language&&(this.containname=i.name_ita)},confirm:function(){this.show1=!1,this.containname1=this.containname,this.recommendweight(),this.config()},close:function(){this.show=!1,this.show1=!1},topay:function(){var n=this;i.$u.http.post("/api/order",{address_id:this.addinfo.id,goods_id:this.goodinfo.id,goods_num:this.value,sku_item_id:this.sku_info.id,cart_ids:this.stringcheck,remark:"",merchant_goods_id:this.goodinfo.merchant_goods_id||"",container_id:this.containid,share_member_id:this.share_merchant_id,belong:this.goodinfo.source||""}).then((function(e){console.log("share_merchant_id",n.share_merchant_id),console.log(e),i.navigateTo({url:"/pageA/payorder?orderid="+e.id+"&sum="+e.amount})})).catch((function(){}))}}};n.default=e}).call(this,e("543d")["default"])},b6ab:function(i,n,e){"use strict";var t=e("8b8d"),o=e.n(t);o.a}},[["4f0b","common/runtime","common/vendor"]]]);
- >>>>>>> a3ea1f0745e55ee4b5b28fdb7055a5e9f8f0faf3
|