1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-order-cart-order"],{"20bd":function(e,t,i){"use strict";var r;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"counter"},[i("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.reduce_c.apply(void 0,arguments)}}},[e._v("-")]),i("v-uni-view",[e._v(e._s(e.count))]),i("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.add_c.apply(void 0,arguments)}}},[e._v("+")])],1)},o=[]},"2cdc":function(e,t,i){"use strict";var r=i("7199"),n=i.n(r);n.a},"39bb":function(e,t,i){"use strict";i.r(t);var r=i("782a"),n=i("5aec");for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("aa05"),i("2cdc");var a,s=i("f0c5"),c=Object(s["a"])(n["default"],r["b"],r["c"],!1,null,"cc91e558",null,!1,r["a"],a);t["default"]=c.exports},"3da8":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.co[data-v-cc91e558]{-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:#f9f9fb;padding:%?30?%;padding-bottom:%?220?%}.co .co_settlement[data-v-cc91e558]{width:100%;height:%?200?%;padding:0 %?30?%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:%?28?%;position:fixed;bottom:0;left:0;right:0}.co .co_settlement .all[data-v-cc91e558]{height:%?100?%}.co .order_detail[data-v-cc91e558]{padding-bottom:%?30?%;background:#fff;width:%?690?%;margin:0 auto %?100?%;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:%?24?%}.co .order_detail .shop_name[data-v-cc91e558]{height:%?112?%;padding-left:%?30?%;line-height:%?112?%;border-bottom:%?1?% solid #eee}.co .order_detail .shop_name uni-text[data-v-cc91e558]{font-size:%?28?%}.co .order_detail .shop_name uni-image[data-v-cc91e558]{width:%?52?%;height:%?52?%;border-radius:50%;margin-right:%?15?%}.co .order_detail .top .order_con[data-v-cc91e558]{padding:0 %?30?%;margin-top:%?30?%}.co .order_detail .top .order_con .goods_con .goods_img[data-v-cc91e558]{width:%?200?%;height:%?160?%;margin-right:%?20?%;border-radius:%?8?%;-webkit-flex-shrink:0;flex-shrink:0}.co .order_detail .top .order_con .goods_con .goods_info .goods_name[data-v-cc91e558]{font-size:%?30?%;font-weight:700}.co .order_detail .top .order_con .goods_size[data-v-cc91e558]{margin:%?30?% 0}.co .order_detail .top .order_con .goods_size > uni-view[data-v-cc91e558]{margin-bottom:%?10?%}.co .remark[data-v-cc91e558]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 %?30?%}.co .remark .remark_title[data-v-cc91e558]{font-size:%?30?%;font-weight:700;padding:%?15?% 0}.co .remark .remark_box[data-v-cc91e558]{width:100%;padding:%?20?% %?30?%;min-height:%?88?%;border-radius:%?15?%;background:#f8f8f8}.co .remark .remark_box uni-textarea[data-v-cc91e558]{width:100%}.co .remark .place[data-v-cc91e558]{font-size:%?30?%;color:#a7a7a7}.co .co_address[data-v-cc91e558]{padding:%?30?%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;border-radius:%?24?%;margin-bottom:%?30?%}.co .co_address .icondizhi1[data-v-cc91e558]{color:#fb231f;font-size:%?50?%;vertical-align:middle}.co .co_address .gray[data-v-cc91e558]{margin-left:%?20?%}.co .co_address .iconiconfontjiantou2[data-v-cc91e558]{color:#999}.co .co_address .ads_info[data-v-cc91e558]{margin:0 %?15?%}.co .co_address .ads_info .shop_info[data-v-cc91e558]{font-size:%?32?%;font-weight:700}.co .co_address .ads_info .shop_info uni-text[data-v-cc91e558]:last-child{font-size:%?28?%;color:#999}',""]),e.exports=t},"5aec":function(e,t,i){"use strict";i.r(t);var r=i("8e76"),n=i.n(r);for(var o in r)"default"!==o&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=n.a},"67fa":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.counter[data-v-5d85e046]{min-width:%?180?%;height:%?64?%;border-radius:%?16?%;-webkit-box-sizing:border-box;box-sizing:border-box;border:%?2?% solid #f76454;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#fff4f3;overflow:hidden}.counter uni-view[data-v-5d85e046]{-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;overflow:hidden;text-align:center;color:#f76454;font-size:%?26?%}.counter uni-view[data-v-5d85e046]:nth-of-type(1), .counter uni-view[data-v-5d85e046]:nth-last-of-type(1){font-size:%?44?%}.counter uni-view[data-v-5d85e046]:nth-of-type(2){border-left:%?2?% solid #f76454;border-right:%?2?% solid #f76454;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}',""]),e.exports=t},7199:function(e,t,i){var r=i("3da8");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("4f06").default;n("19bf5b5c",r,!0,{sourceMap:!1,shadowMode:!1})},"782a":function(e,t,i){"use strict";var r;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"co"},[i("v-uni-view",{staticClass:"safe_box"},[i("v-uni-view",[i("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),i("v-uni-text",[e._v("支付安全有保障")])],1),i("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[i("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),i("v-uni-text",[e._v("90天-366天不满意全额退款")])],1),i("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[i("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),i("v-uni-text",[e._v("一次性购买满2套,在本店终身享受VIP价格")])],1)],1),i("v-uni-view",{staticClass:"order_detail"},[i("v-uni-view",{staticClass:"shop_name flexS"},[i("v-uni-image",{attrs:{src:e.storeInfo.img}}),i("v-uni-text",[e._v(e._s(e.storeInfo.name))])],1),i("v-uni-view",{staticClass:"top"},[e._l(e.orderCon,(function(t){return i("v-uni-view",{key:t.id,staticClass:"order_con"},[i("v-uni-view",{staticClass:"goods_con flexS"},[i("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),i("v-uni-view",{staticClass:"goods_info"},[i("v-uni-text",{staticClass:"goods_name"},[e._v(e._s(t.name))]),i("v-uni-view",{staticClass:"price_box",staticStyle:{"margin-top":"20rpx"}},[1==e.isVip?i("v-uni-view",{staticClass:"goods_price flexS"},[i("v-uni-view",{staticClass:"flexS"},[i("v-uni-view",{staticClass:"vip_ident"},[e._v("VIP")]),i("v-uni-text",{staticClass:"big_price"},[i("v-uni-text",[e._v("¥")]),i("v-uni-text",[e._v(e._s(t.vip_price))])],1)],1),i("v-uni-view",{staticClass:"draw_off"},[i("v-uni-text",[e._v("(")]),i("v-uni-text",{staticClass:"old_price"},[i("v-uni-text",{staticClass:"symbol"},[e._v("¥")]),i("v-uni-text",[e._v(e._s(t.price))])],1),i("v-uni-text",[e._v(")")])],1)],1):i("v-uni-view",{staticClass:"goods_price flexS"},[i("v-uni-text",{staticClass:"big_price"},[i("v-uni-text",[e._v("¥")]),i("v-uni-text",[e._v(e._s(t.price))])],1),i("v-uni-view",{staticClass:"save_box"},[e._v("VIP可省"+e._s(Number(t.price)-Number(t.vip_price)||0))])],1)],1)],1)],1),e._l(t.sku,(function(r){return i("v-uni-view",{key:r.id,staticClass:"goods_size"},[i("v-uni-view",{staticClass:"flexB"},[i("v-uni-view",[i("v-uni-text",{staticClass:"gray"},[e._v("款式:")]),i("v-uni-text",[e._v(e._s(r.type))])],1),i("v-uni-text",[e._v(e._s(1==e.isVip?t.vip_price*r.num:t.price*r.num)+"元")])],1),i("v-uni-view",{staticClass:"flexB"},[i("v-uni-view",[i("v-uni-text",{staticClass:"gray"},[e._v("尺码:")]),i("v-uni-text",[e._v(e._s(r.size))])],1),i("v-uni-text",[e._v("X "+e._s(r.num)+"套")])],1)],1)})),i("v-uni-view",{staticClass:"goods_total flexE"},[t?i("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("subNum")(t))+"件,")]):e._e(),i("v-uni-text",[e._v("小计:")]),i("v-uni-view",{staticClass:"price_box"},[i("v-uni-view",{staticClass:"goods_price flexS"},[i("v-uni-text",{staticClass:"big_price"},[i("v-uni-text",[e._v("¥")]),t?i("v-uni-text",[e._v(e._s(e.cartsubtotal(t)))]):e._e()],1)],1)],1)],1)],2)})),i("v-uni-view",{staticClass:"remark"},[i("v-uni-view",{staticClass:"remark_title"},[e._v("订单备注")]),i("v-uni-view",{staticClass:"remark_box"},[i("v-uni-textarea",{attrs:{placeholder:"可将收货人姓名、电话和地址备注在这里","placeholder-class":"place","auto-height":!0,maxlength:"240"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1)],1)],2)],1),i("v-uni-view",{staticClass:"co_settlement"},[i("v-uni-view",{staticClass:"all flexS"},[i("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("totalNum")(e.orderCon))+"套,")]),i("v-uni-text",[e._v("合计:")]),i("v-uni-text",{staticClass:"big_price"},[i("v-uni-text",[e._v("¥")]),i("v-uni-text",[e._v(e._s(1==e.isVip?e.vipPrice:e.totalPrice))])],1),1==e.isVip?i("v-uni-view",{staticClass:"year",staticStyle:{"margin-left":"20rpx"}},[e._v("已省"+e._s(e.totalPrice-e.vipPrice))]):e._e()],1),i("v-uni-view",{staticClass:"fixed_btn_box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payMoney.apply(void 0,arguments)}}},[i("v-uni-view",[e._v("立即支付")])],1)],1)],1)},o=[]},"8e76":function(e,t,i){"use strict";var r=i("4ea4");i("4de4"),i("d81d"),i("a434"),i("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(i("dded")),o=i("f6ca"),a={components:{Counter:n.default},data:function(){return{orderCon:"",remark:"",address:"",defaultAds:"",store:"",sku:[],isPay:!0,isPick:!1,isVip:"",storeAds:"",storeInfo:""}},computed:{totalPrice:function(){var e=0,t=this.orderCon;return t.map((function(t){t.sku.map((function(i){e+=i.num*t.price}))})),e},vipPrice:function(){var e=0,t=this.orderCon;return t.map((function(t){t.sku.map((function(i){e+=i.num*t.vip_price}))})),e}},onLoad:function(e){this.isVip=uni.getStorageSync("isVip");for(var t=uni.getStorageSync("order"),i=0;i<t.length;i++)console.log(t[i]),t[i].sku=t[i].sku.filter((function(e){return 1==e.is_true})),t[i].sku.length>=2&&(this.isVip=1),1==t[i].sku.length&&t[i].sku[0].num>=2&&(this.isVip=1),0==t[i].sku.length&&t.splice(i,1);t.length>=2&&(this.isVip=1),this.orderCon=t,console.log(this.isVip,111)},onShow:function(){this.storeInfo=uni.getStorageSync("storeInfo")},methods:{cartsubtotal:function(e){var t=this,i=0;return e.sku.map((function(r){i+=1==t.isVip?r.num*e.vip_price:r.num*e.price})),i},zh:function(e){var t=[];for(var i in e)for(var r in t[i]=[],e[i])t[i].push(e[i][r]);return t},wxJsPay:function(e,t,i){"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",this.jsApiCall,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",this.jsApiCall),document.attachEvent("onWeixinJSBridgeReady",this.jsApiCall)):this.jsApiCall(e,t,i)},jsApiCall:function(e,t,i){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){var r=e.err_msg?e.err_msg:e.errMsg;switch(r){case"get_brand_wcpay_request:ok":t&&t(e);break;default:WeixinJSBridge.log("支付失败!"+r+",请返回重试."),i&&i({msg:r});break}}))},payMoney:function(){var e=this,t=this.orderCon,i=[],r=0;for(var n in t)for(var a in t[n].sku)i[r]=[t[n].sku[a].sku_id,t[n].sku[a].num],r++;if(!this.isPay)return uni.showModal({content:"请稍后重试~",showCancel:!1}),!1;this.isPay=!1,(0,o.subOrder)({address_id:"",sku:i,remark:this.remark,is_car:1,self_receive:"",store_id:this.storeInfo.id}).then((function(t){if(200==t.code){var i=t.data;(0,o.payOrder)({order_no:i}).then((function(t){if(200===t.error_code){var r=function(){uni.showToast({title:"支付成功",icon:"none"})},n=function(e){uni.showModal({content:"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+i})}})};e.wxJsPay(t.data,r,n)}else uni.showModal({content:t.msg||"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+i})}})}))}else uni.showModal({content:t.msg,showCancel:!1})})).catch((function(t){e.isPay=!0})).finally((function(){setTimeout((function(){e.isPay=!0}),3e3)}))}}};t.default=a},"95a5":function(e,t,i){"use strict";i("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{count:{type:Number,required:!0,default:0}},methods:{reduce_c:function(){var e=this.count;if(e<=0)return!1;this.$emit("update:count",--e)},add_c:function(){var e=this.count;this.$emit("update:count",++e)}}};t.default=r},"99f8":function(e,t,i){"use strict";i.r(t);var r=i("95a5"),n=i.n(r);for(var o in r)"default"!==o&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=n.a},aa05:function(e,t,i){"use strict";var r=i("b32d"),n=i.n(r);n.a},aeaa:function(e,t,i){"use strict";var r=i("bb8a"),n=i.n(r);n.a},b32d:function(e,t,i){var r=i("c68e");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("4f06").default;n("a14e01a2",r,!0,{sourceMap:!1,shadowMode:!1})},bb8a:function(e,t,i){var r=i("67fa");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("4f06").default;n("335f0113",r,!0,{sourceMap:!1,shadowMode:!1})},c68e:function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,"uni-page-body[data-v-cc91e558]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;width:100%;height:100%;background-color:#f9f9fb}body.?%PAGE?%[data-v-cc91e558]{background-color:#f9f9fb}",""]),e.exports=t},dded:function(e,t,i){"use strict";i.r(t);var r=i("20bd"),n=i("99f8");for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("aeaa");var a,s=i("f0c5"),c=Object(s["a"])(n["default"],r["b"],r["c"],!1,null,"5d85e046",null,!1,r["a"],a);t["default"]=c.exports},f6ca:function(e,t,i){"use strict";var r=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderNum=t.scanOrder=t.editRemark=t.delCancel=t.cancelList=t.orderCancel=t.replaceStore=t.diffStore=t.getShareOrder=t.getComment=t.addComment=t.getSelf=t.getLogs=t.tipSend=t.pickUp=t.orderIndex=t.payOrder=t.subOrder=t.orderQuery=t.getOrderInfo=t.getOrderList=void 0;var n=r(i("57f7")),o=function(e){return n.default.get("/order/get_order_list",e)};t.getOrderList=o;var a=function(e){return n.default.get("/order/get_order_info",e)};t.getOrderInfo=a;var s=function(e){return n.default.get("/order/get_order_no_info",e)};t.orderQuery=s;var c=function(e){return n.default.post("/order/submit_order_info",e)};t.subOrder=c;var d=function(e){return n.default.post("/payment/pay",e)};t.payOrder=d;var u=function(e){return n.default.get("/order/get_order_index",e)};t.orderIndex=u;var l=function(e){return n.default.post("/order/sure_pick_up",e)};t.pickUp=l;var f=function(e){return n.default.post("/order/tip_send",e)};t.tipSend=f;var v=function(e){return n.default.get("/order/get_order_express",e)};t.getLogs=v;var p=function(e){return n.default.post("/order/sure_one_self_take",e)};t.getSelf=p;var _=function(e){return n.default.post("/order/add_comment",e)};t.addComment=_;var g=function(e){return n.default.get("/order/get_comment",e)};t.getComment=g;var b=function(e){return n.default.get("/order/get_share_order",e)};t.getShareOrder=b;var x=function(e){return n.default.get("/order/get_user_store_diff",e)};t.diffStore=x;var m=function(e){return n.default.post("/order/replace_store",e)};t.replaceStore=m;var h=function(e){return n.default.post("/order/cancel_order",e)};t.orderCancel=h;var w=function(e){return n.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=w;var k=function(e){return n.default.post("/cancel/delete_origin_order",e)};t.delCancel=k;var y=function(e){return n.default.post("/order/edit_order_remark",e)};t.editRemark=y;var C=function(e){return n.default.get("/order/get_scan_order",e)};t.scanOrder=C;var S=function(e){return n.default.get("/order/get_order_status_num",e)};t.getOrderNum=S}}]);
|