1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-order-cart-order"],{"20bd":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"counter"},[r("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.reduce_c.apply(void 0,arguments)}}},[e._v("-")]),r("v-uni-view",[e._v(e._s(e.count))]),r("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,r){"use strict";var n=r("7199"),i=r.n(n);i.a},"39bb":function(e,t,r){"use strict";r.r(t);var n=r("782a"),i=r("5aec");for(var o in i)"default"!==o&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("aa05"),r("2cdc");var a,s=r("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"cc91e558",null,!1,n["a"],a);t["default"]=c.exports},"3da8":function(e,t,r){var n=r("24fb");t=n(!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]{flex:1;background-color:#f9f9fb;padding:%?30?%;padding-bottom:%?220?%}.co .co_settlement[data-v-cc91e558]{width:100%;height:%?200?%;padding:0 %?30?%;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?%;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?%;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]{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%;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,r){"use strict";r.r(t);var n=r("8e76"),i=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"67fa":function(e,t,r){var n=r("24fb");t=n(!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?%;box-sizing:border-box;border:%?2?% solid #f76454;display:flex;justify-content:space-between;align-items:center;background-color:#fff4f3;overflow:hidden}.counter uni-view[data-v-5d85e046]{flex:1;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:flex;align-items:center;justify-content:center}',""]),e.exports=t},7199:function(e,t,r){var n=r("3da8");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("4f06").default;i("19bf5b5c",n,!0,{sourceMap:!1,shadowMode:!1})},"782a":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"co"},[r("v-uni-view",{staticClass:"safe_box"},[r("v-uni-view",[r("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),r("v-uni-text",[e._v("支付安全有保障")])],1),r("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[r("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),r("v-uni-text",[e._v("90天-366天不满意全额退款")])],1),r("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[r("v-uni-text",{staticClass:"iconfont iconxuanzhong"}),r("v-uni-text",[e._v("一次性购买满2套,在本店终身享受VIP价格")])],1)],1),r("v-uni-view",{staticClass:"order_detail"},[r("v-uni-view",{staticClass:"shop_name flexS"},[r("v-uni-image",{attrs:{src:e.storeInfo.img}}),r("v-uni-text",[e._v(e._s(e.storeInfo.name))])],1),r("v-uni-view",{staticClass:"top"},[e._l(e.orderCon,(function(t){return r("v-uni-view",{key:t.id,staticClass:"order_con"},[r("v-uni-view",{staticClass:"goods_con flexS"},[r("v-uni-image",{staticClass:"goods_img",attrs:{src:t.img}}),r("v-uni-view",{staticClass:"goods_info"},[r("v-uni-text",{staticClass:"goods_name"},[e._v(e._s(t.name))]),r("v-uni-view",{staticClass:"price_box",staticStyle:{"margin-top":"20rpx"}},[1==e.isVip?r("v-uni-view",{staticClass:"goods_price flexS"},[r("v-uni-view",{staticClass:"flexS"},[r("v-uni-view",{staticClass:"vip_ident"},[e._v("VIP")]),r("v-uni-text",{staticClass:"big_price"},[r("v-uni-text",[e._v("¥")]),r("v-uni-text",[e._v(e._s(t.vip_price))])],1)],1),r("v-uni-view",{staticClass:"draw_off"},[r("v-uni-text",[e._v("(")]),r("v-uni-text",{staticClass:"old_price"},[r("v-uni-text",{staticClass:"symbol"},[e._v("¥")]),r("v-uni-text",[e._v(e._s(t.price))])],1),r("v-uni-text",[e._v(")")])],1)],1):r("v-uni-view",{staticClass:"goods_price flexS"},[r("v-uni-text",{staticClass:"big_price"},[r("v-uni-text",[e._v("¥")]),r("v-uni-text",[e._v(e._s(t.price))])],1),r("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(n){return r("v-uni-view",{key:n.id,staticClass:"goods_size"},[r("v-uni-view",{staticClass:"flexB"},[r("v-uni-view",[r("v-uni-text",{staticClass:"gray"},[e._v("款式:")]),r("v-uni-text",[e._v(e._s(n.type))])],1),r("v-uni-text",[e._v(e._s(1==e.isVip?t.vip_price*n.num:t.price*n.num)+"元")])],1),r("v-uni-view",{staticClass:"flexB"},[r("v-uni-view",[r("v-uni-text",{staticClass:"gray"},[e._v("尺码:")]),r("v-uni-text",[e._v(e._s(n.size))])],1),r("v-uni-text",[e._v("X "+e._s(n.num)+"套")])],1)],1)})),r("v-uni-view",{staticClass:"goods_total flexE"},[t?r("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("subNum")(t))+"件,")]):e._e(),r("v-uni-text",[e._v("小计:")]),r("v-uni-view",{staticClass:"price_box"},[r("v-uni-view",{staticClass:"goods_price flexS"},[r("v-uni-text",{staticClass:"big_price"},[r("v-uni-text",[e._v("¥")]),t?r("v-uni-text",[e._v(e._s(e.cartsubtotal(t)))]):e._e()],1)],1)],1)],1)],2)})),r("v-uni-view",{staticClass:"remark"},[r("v-uni-view",{staticClass:"remark_title"},[e._v("订单备注")]),r("v-uni-view",{staticClass:"remark_box"},[r("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),r("v-uni-view",{staticClass:"co_settlement"},[r("v-uni-view",{staticClass:"all flexS"},[r("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e._f("totalNum")(e.orderCon))+"套,")]),r("v-uni-text",[e._v("合计:")]),r("v-uni-text",{staticClass:"big_price"},[r("v-uni-text",[e._v("¥")]),r("v-uni-text",[e._v(e._s(1==e.isVip?e.vipPrice:e.totalPrice))])],1),1==e.isVip?r("v-uni-view",{staticClass:"year",staticStyle:{"margin-left":"20rpx"}},[e._v("已省"+e._s(e.totalPrice-e.vipPrice))]):e._e()],1),r("v-uni-view",{staticClass:"fixed_btn_box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payMoney.apply(void 0,arguments)}}},[r("v-uni-view",[e._v("立即支付")])],1)],1)],1)},o=[]},"8e76":function(e,t,r){"use strict";var n=r("4ea4");r("4de4"),r("d81d"),r("a434"),r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("dded")),o=r("f6ca"),a={components:{Counter:i.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(r){e+=r.num*t.price}))})),e},vipPrice:function(){var e=0,t=this.orderCon;return t.map((function(t){t.sku.map((function(r){e+=r.num*t.vip_price}))})),e}},onLoad:function(e){this.isVip=uni.getStorageSync("isVip");for(var t=uni.getStorageSync("order"),r=0;r<t.length;r++)console.log(t[r]),t[r].sku=t[r].sku.filter((function(e){return 1==e.is_true})),t[r].sku.length>=2&&(this.isVip=1),1==t[r].sku.length&&t[r].sku[0].num>=2&&(this.isVip=1),0==t[r].sku.length&&t.splice(r,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,r=0;return e.sku.map((function(n){r+=1==t.isVip?n.num*e.vip_price:n.num*e.price})),r},zh:function(e){var t=[];for(var r in e)for(var n in t[r]=[],e[r])t[r].push(e[r][n]);return t},wxJsPay:function(e,t,r){"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,r)},jsApiCall:function(e,t,r){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){var n=e.err_msg?e.err_msg:e.errMsg;switch(n){case"get_brand_wcpay_request:ok":t&&t(e);break;default:WeixinJSBridge.log("支付失败!"+n+",请返回重试."),r&&r({msg:n});break}}))},payMoney:function(){var e=this,t=this.orderCon,r=[],n=0;for(var i in t)for(var a in t[i].sku)r[n]=[t[i].sku[a].sku_id,t[i].sku[a].num],n++;if(!this.isPay)return uni.showModal({content:"请稍后重试~",showCancel:!1}),!1;this.isPay=!1,(0,o.subOrder)({address_id:"",sku:r,remark:this.remark,is_car:1,self_receive:"",store_id:this.storeInfo.id}).then((function(t){if(200==t.code){var r=t.data;(0,o.payOrder)({order_no:r}).then((function(t){if(200===t.error_code){var n=function(){uni.showToast({title:"支付成功",icon:"none"})},i=function(e){uni.showModal({content:"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+r})}})};e.wxJsPay(t.data,n,i)}else uni.showModal({content:t.msg||"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+r})}})}))}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,r){"use strict";r("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={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=n},"99f8":function(e,t,r){"use strict";r.r(t);var n=r("95a5"),i=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},aa05:function(e,t,r){"use strict";var n=r("b32d"),i=r.n(n);i.a},aeaa:function(e,t,r){"use strict";var n=r("bb8a"),i=r.n(n);i.a},b32d:function(e,t,r){var n=r("c68e");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("4f06").default;i("a14e01a2",n,!0,{sourceMap:!1,shadowMode:!1})},bb8a:function(e,t,r){var n=r("67fa");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("4f06").default;i("335f0113",n,!0,{sourceMap:!1,shadowMode:!1})},c68e:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-cc91e558]{display:flex;justify-content:flex-start;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,r){"use strict";r.r(t);var n=r("20bd"),i=r("99f8");for(var o in i)"default"!==o&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("aeaa");var a,s=r("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5d85e046",null,!1,n["a"],a);t["default"]=c.exports},f6ca:function(e,t,r){"use strict";var n=r("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 i=n(r("57f7")),o=function(e){return i.default.get("/order/get_order_list",e)};t.getOrderList=o;var a=function(e){return i.default.get("/order/get_order_info",e)};t.getOrderInfo=a;var s=function(e){return i.default.get("/order/get_order_no_info",e)};t.orderQuery=s;var c=function(e){return i.default.post("/order/submit_order_info",e)};t.subOrder=c;var d=function(e){return i.default.post("/payment/pay",e)};t.payOrder=d;var u=function(e){return i.default.get("/order/get_order_index",e)};t.orderIndex=u;var f=function(e){return i.default.post("/order/sure_pick_up",e)};t.pickUp=f;var l=function(e){return i.default.post("/order/tip_send",e)};t.tipSend=l;var v=function(e){return i.default.get("/order/get_order_express",e)};t.getLogs=v;var p=function(e){return i.default.post("/order/sure_one_self_take",e)};t.getSelf=p;var _=function(e){return i.default.post("/order/add_comment",e)};t.addComment=_;var g=function(e){return i.default.get("/order/get_comment",e)};t.getComment=g;var m=function(e){return i.default.get("/order/get_share_order",e)};t.getShareOrder=m;var h=function(e){return i.default.get("/order/get_user_store_diff",e)};t.diffStore=h;var x=function(e){return i.default.post("/order/replace_store",e)};t.replaceStore=x;var b=function(e){return i.default.post("/order/cancel_order",e)};t.orderCancel=b;var w=function(e){return i.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=w;var C=function(e){return i.default.post("/cancel/delete_origin_order",e)};t.delCancel=C;var y=function(e){return i.default.post("/order/edit_order_remark",e)};t.editRemark=y;var k=function(e){return i.default.get("/order/get_scan_order",e)};t.scanOrder=k;var S=function(e){return i.default.get("/order/get_order_status_num",e)};t.getOrderNum=S}}]);
|