| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/createOrder","components/uni-popup/uni-popup"],{"0fac":function(t,e,i){"use strict";i.r(e);var n=i("18b0"),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=s.a},"18b0":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){i.e("components/uni-transition/uni-transition").then(function(){return resolve(i("79b6"))}.bind(null,i)).catch(i.oe)},s={name:"UniPopup",components:{uniTransition:n},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0}}},watch:{type:{handler:function(t){switch(this.type){case"top":this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0};break;case"bottom":this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0};break;case"center":this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"};break}},immediate:!0}},created:function(){this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0}),50)})),this.$emit("change",{show:!0})},close:function(t){var e=this;this.showTrans=!1,this.$nextTick((function(){clearTimeout(e.timer),e.timer=setTimeout((function(){e.$emit("change",{show:!1}),e.showPopup=!1}),300)}))},onTap:function(){this.maskClick&&this.close()}}};e.default=s},"1dd2":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var s=function(){var t=this,e=t.$createElement,i=(t._self._c,3!=t.goodsType&&t.checkedStore?t._f("distance")(t.checkedStore.distance):null),n=3!=t.goodsType&&t.checkedPoint&&2==t.shipping_type?t._f("distance")(t.checkedPoint.distance):null,s=1==t.shipping_type&&t.ps_start_m>0?t._f("rml")(t.ps_start):null,o=1==t.shipping_type&&t.ps_start_m>0?t._f("rml")(t.ps_up):null,a=1!=t.shipping_type||t.ps_start_m>0?null:t._f("rml")(t.ps_start),r=1!=t.shipping_type||t.ps_start_m>0?null:t._f("rml")(t.ps_up),c=1==t.shipping_type?t._f("rml")(t.pay_dis):null,d=t.payType?(0==t.tabCurrentIndex?(1*t.allPayInfo.pay_price+1*t.allPayInfo.deposit).toFixed(2):(t.allPayInfo.pay_price-t.allPayInfo.pay_postage+t.allPayInfo.deposit).toFixed(2))||0:null;t._isMounted||(t.e0=function(e){t.couponListshow&&t.toggleMask("show")},t.e1=function(e){t.checkedPoints=!t.checkedPoints},t.e2=function(e){t.payType&&(0!=t.tabCurrentIndex||!t.isOver)&&t.submit()}),t.$mp.data=Object.assign({},{$root:{f0:i,f1:n,f2:s,f3:o,f4:a,f5:r,f6:c,g0:d}})},o=[]},"28bd":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uniTransition:function(){return i.e("components/uni-transition/uni-transition").then(i.bind(null,"79b6"))}},s=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"329c":function(t,e,i){"use strict";i.r(e);var n=i("e479"),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=s.a},"3ab3":function(t,e,i){"use strict";(function(t){i("5935");n(i("66fd"));var e=n(i("56a9"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=i,t(e.default)}).call(this,i("543d")["createPage"])},"56a9":function(t,e,i){"use strict";i.r(e);var n=i("1dd2"),s=i("329c");for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("852d");var a,r=i("f0c5"),c=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],a);e["default"]=c.exports},"75ad":function(t,e,i){"use strict";var n=i("eb5b"),s=i.n(n);s.a},"852d":function(t,e,i){"use strict";var n=i("d4d8"),s=i.n(n);s.a},d4d8:function(t,e,i){},e479:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("307c"),s=i("2681"),o=i("7e95"),a=i("26cb"),r=(c(i("ebf3")),i("dac6"));function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var p={components:{},data:function(){return{storeList:[],pointList:[],addressImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaAWmiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNy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umDj40Lkjz2LS9x1nZVqcK1rh1L/GaiZDB1GYwGPRi9+sA4r63odGEjAoKTZS0mTwUtoS2sTPioc1jd64KJqNZXRP9EtLFrLT5KQOd6H1JtvQ/SUQ1CUC1Z/tjp5MgXn51bAfc1VpAUVb6pqi+bsqRlrOB0ITSI0kUa1IvF7JcribPbxZnt9BYIeBZm0ap1BO2yHLMOIxjH111chmDocXg9XzZFR4fD74e5cA9GtQEulbLGbfaNMvv4+BfG3hiet9wxlUeDGdDPn68uqXVgVKKezbiBN/HHYoTnrqlORkDx0BHr/ABzVVbknbZysZ3wnRVyda6HU1UIjvpt28p2C+T+GEtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==",tabCurrentIndex:0,navList:[{state:0,text:"快递配送"},{state:1,text:"到店自提"}],maskState:0,time_area:"",desc:"",couponList:[],couponListshow:!1,couponChecked:{},addressData:{},addressId:-1,shopAddress:{name:"",mobile:"",addressName:"",address:"",area:"",default:!1},shopList:[],cartId:"",moneyAll:{storeFreePostage:0,storePostage:0,totalPrice:0,vipPrice:0},payPrice:0,orderKey:"",checkedPoints:!1,integralAll:0,integralMoney:0,integralShow:!1,payType:!0,pinkid:"",shipping_type:1,allPayInfo:{},goodsType:0,sub:!1,isOver:!1,start_date:"",statr_time:"",psdate:"",pstime:"",pay_ps:0,pay_dis:0,ps_start:0,ps_start_m:0,ps_up:0,ps_up_m:0,is_caigou:!1}},onLoad:function(t){console.log(t,"dingdanye"),2==this.distribution?(this.tabCurrentIndex=0,this.shipping_type=1):1==this.distribution?(this.tabCurrentIndex=1,this.shipping_type=2):(this.tabCurrentIndex=0,this.shipping_type=1),"pink"==t.type?(this.pinkid=t.pinkId,this.cartAdd(t)):(console.log("不是拼团+++++++++++"),this.cartId=t.id,this.loadData()),t.goodsType&&(this.goodsType=t.goodsType),t.isTakeaway&&(this.tabCurrentIndex=1*t.isTakeaway-1,this.shipping_type=1*t.isTakeaway),3==this.goodsType&&(this.tabCurrentIndex=1,this.shipping_type=2),t.address&&(this.addressId=1*t.address,console.log(this.addressId)),this.userinfo()},onShow:function(t){var e=new Date,i=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()>9?e.getDate():"0"+e.getDate(),o=e.getHours()>9?e.getHours():"0"+e.getHours(),a=e.getMinutes()>9?e.getMinutes():"0"+e.getMinutes();this.start_date=i+"-"+n+"-"+s,this.statr_time=o+":"+a,console.log(this.start_date,this.statr_time),console.log(this.checkedStore,"this.checkedStore+++++++++++++")},watch:{pstime:function(t,e){console.log(this.checkedStore.day_time.split(" - ")[0]);var i=this.checkedStore.day_time.split(" - ")[0],n=this.checkedStore.day_time.split(" - ")[1],s=t+":00";(i>s||n<s)&&(this.$api.msg("选择的时间不在营业时间内"),this.pstime="")},checkedPoints:function(t,e){this.integralShow=!1,this.payMoneyNub()},addressData:{handler:function(t,e){console.log(t,"新的地址"),console.log(this.checkedStore,"this.checkedStore");var i=this.space(t.latitude,t.longitude,this.checkedStore.latitude,this.checkedStore.longitude);console.log(i,this.checkedStore.radius),0==this.tabCurrentIndex&&(i>this.checkedStore.radius?(this.$api.msg("地址超出配送范围"),this.isOver=!0):this.isOver=!1),this.payMoneyNub()},immediate:!0,deep:!0},tabCurrentIndex:function(t,e){if(console.log(t,"newValue++++++++"),this.orderKey&&this.payMoneyNub(),0==t){var i=this.space(this.addressData.latitude,this.addressData.longitude,this.checkedStore.latitude,this.checkedStore.longitude);console.log(i,this.checkedStore.radius),0==this.tabCurrentIndex&&(i>this.checkedStore.radius?(this.$api.msg("地址超出配送范围"),this.isOver=!0):this.isOver=!1)}}},filters:{distance:function(t){var e="";return t?1*t>1e3?(1*t/1e3).toFixed(2)+"km":(1*t).toFixed(0)+"m":e},rml:function(t){var e="";return t?1*t>=1e3?(1*t/1e3).toFixed(1)+"公里":(1*t).toFixed(0)+"米":e}},computed:u(u({},(0,a.mapState)("user",["hasLogin","userInfo","checkedStore","checkedPoint","distribution"])),{},{Postage:function(){var t=+this.moneyAll.storePostage+this.pay_ps;return 0==t?"免运费":"¥"+t},payAllMoney:function(){return+this.moneyAll.totalPrice+ +this.moneyAll.vipPrice}}),methods:u(u({},(0,a.mapMutations)("user",["setPointInfo"])),{},{x:function(){this.sub=!1},space:function(t,e,i,n){var s=t*Math.PI/180,o=i*Math.PI/180,a=s-o,r=e*Math.PI/180-n*Math.PI/180,c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(a/2),2)+Math.cos(s)*Math.cos(o)*Math.pow(Math.sin(r/2),2)));return c*=6378.137,c=Math.round(1e4*c)/1e4,1e3*c},cartAdd:function(t){var e=this;(0,o.cartAdd)({new:1,mer_id:+t.merid,combinationId:+t.gid+"",productId:+t.pid,uniqueId:t.unique}).then((function(t){var i=t.data;e.cartId=i.cartId,e.loadData()})).catch((function(t){console.log(t)}))},userinfo:function(){var t=this;(0,s.getUserInfo)({}).then((function(e){var i=e.data;t.integralAll=i.integral}))},payMoneyNub:function(){var t=this,e=this;(0,n.computedOrderkey)({orderkey:this.orderKey,useIntegral:this.checkedPoints?1:0,couponId:this.couponChecked.id,addressId:this.addressData.id,shipping_type:this.shipping_type}).then((function(i){var n=i.data;if(t.payType=!0,t.integralShow=!0,t.pay_ps=1*n.result.pay_postage_sh,t.pay_dis=1*n.result.distance,t.ps_start=1*n.result.store.sh_start_distance,t.ps_start_m=1*n.result.store.sh_start_money,t.ps_up=1*n.result.store.sh_step,t.ps_up_m=1*n.result.store.sh_step_money,t.payPrice=+n.result.pay_price,t.integralMoney=n.result.deduction_price,t.allPayInfo=n.result,n.result.store_user){t.is_caigou=!0;var s=new Date((new Date).getTime()+288e5),o=s.toJSON().split("T").join(" ").substr(0,19),a=o.split(" ");t.psdate=a[0],t.pstime=a[1],(0,r.getPointList)({},t.checkedStore.id).then((function(t){var i=t.data;e.setPointInfo(i.list[0])})),e.addressData.real_name=e.userInfo.store_info.name,e.addressData.phone=e.userInfo.store_info.phone,console.log(e.userInfo.store_info.name),console.log(e.userInfo.store_info.phone)}})).catch((function(e){console.log(e),t.integralShow=!1,t.payType=!1}))},checkedIntegral:function(){this.checkedPoints=!this.checkedPoints},checkedCp:function(t){this.couponChecked=t,this.payMoneyNub()},couponsOrder:function(t){var e=this;(0,n.couponsOrder)({cartId:this.cartId},t).then((function(t){t.data.length>0&&(e.couponListshow=!0),e.couponList=t.data}))},tabClick:function(t){this.tabCurrentIndex=t,this.shipping_type=t+1},toggleMask:function(t){var e=this,i="show"===t?10:300,n="show"===t?1:0;this.maskState=2,setTimeout((function(){e.maskState=n}),i)},loadData:function(){var e=this,i=this;(0,n.confirm)({cartId:i.cartId+""}).then((function(t){var n=t.data;console.log(n,"loadData"),-1==i.addressId?(i.addressData=n.addressInfo||{},console.log("5555555")):(0,s.getAddress)({},i.addressId).then((function(t){var e=t.data;i.addressData=e})),i.shopList=n.cartInfo,console.log(i.shopList,"obj.shopList+++++++++"),i.moneyAll=n.priceGroup,console.log(i.moneyAll,"obj.moneyAll+++++++++++"),i.orderKey=n.orderKey,e.payMoneyNub(),i.couponsOrder(n.priceGroup.totalPrice)})).catch((function(e){setTimeout((function(){t.navigateBack({})}),1500)}))},numberChange:function(t){this.number=t.number},changePayType:function(t){this.payType=t},submit:function(){if(console.log("点击提交"),3!=this.goodsType&&!this.checkedStore)return this.$api.msg("请选择下单门店");if(3!=this.goodsType){if(""==this.psdate||""==this.pstime)return 1==this.shipping_type?this.$api.msg("请选择配送时间"):this.$api.msg("请选择自提时间");this.time_area=this.psdate+" "+this.pstime+":00",console.log(this.time_area,"this.time_area")}if(2==this.shipping_type){if(3!=this.goodsType){if(!this.checkedPoint)return this.$api.msg("请选择自提点");console.log(this.checkedPoint,"this.checkedPoint++++++++++++++")}console.log(this.checkedPoint,"this.checkedPoint+++++++++++")}if(this.checkedPoints&&this.shopList.length>1)return this.$api.msg("积分商品只可单件购买"),!1;if(!this.addressData.real_name&&3!=this.goodsType)return this.$api.msg("请选择收货地址"),!1;console.log("拼接URL66666666666666"),this.sub=!0;var e="/pages/money/pay?key="+this.orderKey+"&store_id="+this.checkedStore.id+"&shipping_type="+this.shipping_type;3==this.goodsType&&(e+="&goodstype="+this.goodsType),2==this.shipping_type&&(e+="&point_id="+this.checkedPoint.id),console.log(e,"url+++++++++++++++"),this.pinkid&&(e+="&pinkid="+this.pinkid),t.navigateTo({url:e})},selectStore:function(){t.navigateTo({url:"/pages/order/choisestore?type=1"})},selectPoint:function(){if(!this.checkedStore)return this.$api.msg("请选择下单门店");t.navigateTo({url:"/pages/order/choisestore?type=2&id="+this.checkedStore.id})},bindDateChange:function(t){console.log(t,"ddddddddddddddddddd"),this.psdate=t.detail.value,console.log(this.psdate)},bindTimeChange:function(t){this.pstime=t.detail.value,console.log(this.pstime)}})};e.default=p}).call(this,i("543d")["default"])},eb5b:function(t,e,i){},ebf3:function(t,e,i){"use strict";i.r(e);var n=i("28bd"),s=i("0fac");for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("75ad");var a,r=i("f0c5"),c=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,"4b80472c",null,!1,n["a"],a);e["default"]=c.exports}},[["3ab3","common/runtime","common/vendor"]]]);
|