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NUQ1MzY2ODU0NzkzMTFFOThCMTBFRkI2NUQ4N0UyQUQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NUQ1MzY2ODY0NzkzMTFFOThCMTBFRkI2NUQ4N0UyQUQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4EdUsFAAAACVBMVEVbW1vu7u4AAADX8FHxAAAAA3RSTlP//wDXyg1BAAABUklEQVR42rSYWRLEIAhEW+5/6KlkYsqlkWUYq/Kj8IJEWQLRRxvGQQwOdQODk/5p5ojQhLV5UMGjdyyE4Tq2jhCAymBZFcdYxBAnrIJIEBZRZAizMFKESRw5wqiAJGFQeREiccaIyBBeLSS3Maghb0TXAzMC6ziaAWIEwBk7qyO2m6e8ldhzq4IZoRH2tRDisQAgiOZC9F1siHYjxEZc+t9nd6gP0S1AGvH6ASTgC5qN0M/F7QyQvAA/4WLYiJmABGKxgfjTQqy7iCM2P4QRuyejCPItkghMdoUQz4HG7JwgYr8XHNEsxOnoXgdcv2Y09pKwZSGsC2Rcdh69KMIXfuniN/DJbwgpQ/hSEVnrqciTEJX0OuRUP0NJywXFQUWJUlAoVZRrFUVjQelaUUBXlPEVzURFS1PRWFW0dxVNZkmrW9FwD02+MfXvnw+xXyAfAQYAcZ0d5dVoQ9UAAAAASUVORK5CYII="},RvvR:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});a("eqfM");var s=a("/QYm"),i=(a("XmAh"),a("il3B")),n=a("Xxa5"),d=a.n(n),c=a("exGp"),r=a.n(c),o=(a("FO5P"),a("woHG")),u=(a("k3b4"),a("+2ln")),l=a("D6FL"),A={components:{"van-icon":u.a,vanNavBar:o.a},data:function(){return{data22:[],is_default:!0}},created:function(){this.getdata()},methods:{emitItem:function(t){this.$hu.$emit("getaddress",t)},getdata:function(){var t=this;return r()(d.a.mark(function e(){var a;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.U)();case 2:a=e.sent,t.data22=a.data;case 4:case"end":return e.stop()}},e,t)}))()},del:function(t){var e=this;i.a.confirm({title:"提示",message:"删除地址后不可恢复！"}).then(function(){Object(l.g)({id:t});for(var a=e.data22,s=0;s<a.length;s++)a[s].address_id==t&&a.splice(s,1)})},default_:function(t){var e=this;Object(l.S)({id:t}).then(function(){Object(s.a)("默认地址设置成功");for(var a=0;a<e.data.length;a++)if(e.data22[a].address_id==t){var i=e.data22.splice(a,1);e.data22.unshift(i[0]),e.data22[0].is_default=1,e.data22[1].is_default=0}})}}},v={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"list"},t._l(t.data22,function(e,i){return s("div",{key:i,staticClass:"item flex-between"},[s("div",{staticClass:"left flex_1",on:{click:function(a){t.emitItem(e)}}},[s("div",{attrs:{id:"column"}},[s("div",{staticClass:"name"},[t._v(t._s(e.consignee))]),t._v(" "),s("div",{staticClass:"phone"},[t._v(t._s(e.mobile))]),t._v(" "),s("span",{staticClass:"default",style:{background:1==e.is_default?"#FF4C23":"#cccccc"},on:{click:function(a){t.default_(e.address_id)}}},[t._v("默认")])]),t._v(" "),s("div",{staticClass:"address"},[t._v(t._s(e.province)+" "+t._s(e.city)+" "+t._s(e.district?e.district:""))])]),t._v(" "),s("div",{staticClass:"right flex-between"},[s("img",{attrs:{src:a("NzR8"),alt:""},on:{click:function(a){t.$router.push({path:"/address",query:{data:e}})}}}),t._v(" "),s("img",{attrs:{src:a("tMq/"),alt:""},on:{click:function(a){t.del(e.address_id)}}})])])})),t._v(" "),s("div",{staticClass:"button flex-center",on:{click:function(e){t.$router.push({path:"/address"})}}},[s("span",[t._v("+")]),t._v("新增地址")])])},staticRenderFns:[]};var g=a("VU/8")(A,v,!1,function(t){a("t0Su")},"data-v-c0afb224",null);e.default=g.exports},XmTH:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});a("eqfM");var s=a("/QYm"),i=a("Xxa5"),n=a.n(i),d=a("exGp"),c=a.n(d),r=(a("mMXg"),a("qYlo")),o=(a("MY4N"),a("0zAV")),u=(a("OWWB"),a("1fWZ")),l=a("D6FL"),A=a("RvvR"),v={components:{vanCell:u.a,vanField:o.a,vanPopup:r.a,address1:A.default},props:{},data:function(){return{addressShow:!1,isaddress:!1,user_note:"",data22:[],addresinfo:{address_id:""},goodsdata:[],count:0,fukuan:!1}},computed:{},created:function(){var t=this;return c()(n.a.mark(function e(){var a,s,i,d,c,r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$route.query.action){e.next=16;break}return console.log(JSON.parse(t.$route.query.item)),a=JSON.parse(t.$route.query.item),s=[],a.forEach(function(t){s.push(t.id)}),(i={}).action=t.$route.query.action,i.cart_ids=s.join(","),console.log(i),e.next=11,Object(l.V)(i);case 11:for(d=e.sent,console.log(d),t.goodsdata=d.data.cartList,c=0;c<d.data.cartList.length;c++)t.count=Number(t.count)+Number(d.data.cartList[c].shop_price)*Number(d.data.cartList[c].goods_num);return e.abrupt("return");case 16:return(i={}).action=t.$route.query.action,i.goods_id=t.$route.query.goods_id,i.goods_num=t.$route.query.goods_num,i.item_id=t.$route.query.item_id,console.log(i),e.next=24,Object(l.V)(i);case 24:for(d=e.sent,t.goodsdata=d.data.cartList,r=0;r<d.data.cartList.length;r++)t.count+=(Number(d.data.cartList[r].shop_price)*Number(d.data.cartList[r].goods_num)).toFixed(2);case 27:case"end":return e.stop()}},e,t)}))()},mounted:function(){var t=this;return c()(n.a.mark(function e(){var a,s;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.U)();case 2:a=e.sent,t.data22=a.data,a.data.length&&(t.addresinfo=a.data[0],t.isaddress=!0),(s=t).$hu.$on("getaddress",function(t){s.addressShow=!1,s.isaddress=!0,s.addresinfo=t,console.log(s.addresinfo)});case 7:case"end":return e.stop()}},e,t)}))()},methods:{submit:function(){var t=this;return c()(n.a.mark(function e(){var a,i,d,c;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.fukuan){e.next=3;break}return Object(s.a)("订单已提交..."),e.abrupt("return");case 3:if(t.fukuan=!0,t.$route.query.action){e.next=15;break}return a=JSON.parse(t.$route.query.item),i=[],a.forEach(function(t){i.push(t.id)}),(d={}).action=t.$route.query.action,d.cart_ids=i.join(","),d.user_note=t.user_note,d.address_id=t.addresinfo.address_id,Object(l.a)(d).then(function(e){200==e.code&&t.onBridgeReady(e)}),e.abrupt("return");case 15:c=t,(d={}).action=t.$route.query.action,d.goods_id=t.$route.query.goods_id,d.goods_num=t.$route.query.goods_num,d.item_id=t.$route.query.item_id,d.user_note=t.user_note,d.address_id=t.addresinfo.address_id,Object(l.a)(d).then(function(t){200==t.code&&c.onBridgeReady(t)});case 24:case"end":return e.stop()}},e,t)}))()},onBridgeReady:function(t){var e=this;WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:t.data.appId,timeStamp:t.data.timeStamp,nonceStr:t.data.nonceStr,package:t.data.package,signType:t.data.signType,paySign:t.data.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg&&e.$router.push({path:"/success"}),"get_brand_wcpay_request:cancel"==t.err_msg&&Object(s.a)("支付失败")})}}},g={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"box"}},[s("div",{staticClass:"top"},[t.isaddress?s("div",{staticClass:"res",on:{click:function(e){t.addressShow=!0}}},[s("div",[t._v("收货人："+t._s(t.addresinfo.consignee))]),t._v(" "),s("div",[t._v("收货地址："+t._s(t.addresinfo.province+" "+t.addresinfo.city+" "+t.addresinfo.district))]),t._v(" "),s("div",[t._v("联系方式："+t._s(t.addresinfo.mobile))]),t._v(" "),s("span",{staticClass:"pos"},[t._v("点击切换")])]):s("div",{on:{click:function(e){t.addressShow=!0}}},[s("van-cell",{attrs:{title:"请选择收货地址","is-link":""}})],1)]),t._v(" "),s("img",{attrs:{src:a("incM"),alt:""}}),t._v(" "),t._l(t.goodsdata,function(e,a){return s("div",{key:a,staticClass:"goods"},[s("img",{staticClass:"img",attrs:{src:e.original_img,alt:""}}),t._v(" "),s("div",{staticClass:"right"},[s("p",[t._v(t._s(e.goods_name))]),t._v(" "),s("div",{staticClass:"taocao"},[t._v(t._s(e.spec_key_name))]),t._v(" "),s("p",[s("span",{staticClass:"price"},[t._v("￥"+t._s(e.shop_price)+" ")]),s("span",{staticClass:"num"},[t._v("x"+t._s(e.goods_num))])])])])}),t._v(" "),s("div",{staticClass:"count"},[t._v("小计："),s("span",[t._v("￥"+t._s(t.count.toFixed(2)))])]),t._v(" "),s("div",{staticClass:"beizhu"},[s("van-field",{attrs:{label:"订单备注：",type:"textarea",placeholder:"请输入备注内容",rows:"1",autosize:""},model:{value:t.user_note,callback:function(e){t.user_note=e},expression:"user_note"}})],1),t._v(" "),s("div",{staticClass:"other"},[s("van-cell",{attrs:{title:"运费",value:"免运费"}}),t._v(" "),s("van-cell",{attrs:{title:"优惠券",value:"无可用优惠券"}})],1),t._v(" "),s("div",{staticClass:"bottom"},[s("p",[t._v("合计："),s("span",{staticStyle:{color:"#FE7250","font-weight":"600"}},[t._v("￥"+t._s(t.count.toFixed(2)))])]),t._v(" "),s("button",{staticClass:"submit",on:{click:function(e){t.submit()}}},[t._v("去付款")])]),t._v(" "),s("van-popup",{staticClass:"address_popup",staticStyle:{width:"100%",height:"100%"},attrs:{position:"right",overlay:!1},model:{value:t.addressShow,callback:function(e){t.addressShow=e},expression:"addressShow"}},[s("address1")],1)],2)},staticRenderFns:[]};var m=a("VU/8")(v,g,!1,function(t){a("sTYd")},"data-v-11af2dc1",null);e.default=m.exports},incM:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAECAYAAAB1AX8lAAABKUlEQVRYR+2VsU4CQRRF7zXIEhsSW2tKOxMqEkviD5jwA1ZiWAv9BCxYBSq/AL7AUJJQkdhRWlhZExoQ3XgtTChsdsjsbqK8aefO5OS8N2+oKBSyWETE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