pages-share-order-share-order.e9b28ea9.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-share-order-share-order"],{1018:function(e,t,n){"use strict";n.r(t);var r=n("2b82"),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=i.a},"20bd":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"counter"},[n("v-uni-view",{on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.reduce_c.apply(void 0,arguments)}}},[e._v("-")]),n("v-uni-view",[e._v(e._s(e.count))]),n("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=[]},"2b82":function(e,t,n){"use strict";var r=n("4ea4");n("a9e3"),n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("dded")),o=n("f6ca"),a={components:{Counter:i.default},data:function(){return{orderCon:"",remark:"",address:"",defaultAds:"",store:"",num:"",isPay:!0,isPick:!1}},onLoad:function(e){e.order&&(this.orderCon=JSON.parse(e.order)),console.log(this.orderCon,"order"),this.num=e.num,console.log(this.num)},methods:{addressList:function(){uni.navigateTo({url:"../address-list/address-list"})},wxJsPay:function(e,t,n){"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,n)},jsApiCall:function(e,t,n){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+",请返回重试."),n&&n({msg:r});break}}))},payMoney:function(){var e=this;if(!this.isPay)return uni.showModal({content:"请稍后重试~",showCancel:!1}),!1;if(!this.address.id&&!this.defaultAds.id&&!this.isPick)return uni.showModal({content:"请先选择地址或者选择自提",showCancel:!1}),!1;this.isPay=!1;var t="";t=this.isPick?1:0;var n=[[this.orderCon.id,Number(this.num)]];(0,o.subOrder)({address_id:this.address.id||this.defaultAds.id,sku:n,remark:this.remark,is_car:0,self_receive:t}).then((function(t){if(200==t.code){var n=t.data;(0,o.payOrder)({order_no:n}).then((function(t){if(200===t.error_code){var r=function(){uni.reLaunch({url:"../pay-status/pay-status?order_no="+this.orderInfo.order_no+"&id="+this.order_id})},i=function(e){uni.showModal({content:"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+n})}})};e.wxJsPay(t.data,r,i)}else uni.showModal({content:"支付失败!",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-info/order-info?order_no="+n})}})}))}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},"47af":function(e,t,n){var r=n("65d2");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("759685d0",r,!0,{sourceMap:!1,shadowMode:!1})},"65d2":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"uni-page-body[data-v-edb175c8]{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-edb175c8]{background-color:#f9f9fb}",""]),e.exports=t},"67fa":function(e,t,n){var r=n("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},"915a":function(e,t,n){var r=n("d887");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("49d39cfe",r,!0,{sourceMap:!1,shadowMode:!1})},"95a5":function(e,t,n){"use strict";n("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},"99e45":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"co"},[e.isPick?e._e():n("v-uni-view",{staticClass:"co_address flexB",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addressList.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"flexS"},[n("v-uni-text",{staticClass:"iconfont icondizhi1"}),e.address||e.defaultAds?n("v-uni-view",{staticClass:"ads_info"},[n("v-uni-view",{staticClass:"shop_info"},[n("v-uni-text",[e._v(e._s(e.address?e.address.name:e.defaultAds.name))]),n("v-uni-text",[e._v(e._s(e.address?e.address.phone:e.defaultAds.phone))])],1),n("v-uni-view",{staticClass:"C_B"},[e._v(e._s(e.address?e.address.province:e.defaultAds.province)+" "+e._s(e.address?e.address.city:e.defaultAds.city)+" "+e._s(e.address?e.address.area:e.defaultAds.area)+"\n\t\t\t\t\t"+e._s(e.address?e.address.address:e.defaultAds.address))])],1):n("v-uni-text",{staticClass:"gray"},[e._v("添加地址信息")])],1),n("v-uni-text",{staticClass:"iconfont iconiconfontjiantou2"})],1),n("v-uni-view",{staticClass:"pick_up flexS",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.isPick=!e.isPick}}},[e.isPick?n("v-uni-text",{staticClass:"iconfont iconxuanzhong"}):n("v-uni-text",{staticClass:"iconfont iconweixuanzhong"}),n("v-uni-text",[e._v("自提")])],1),n("v-uni-view",{staticClass:"order_detail"},[n("v-uni-view",{staticClass:"shop_name flexS"},[n("v-uni-image",{attrs:{src:e.store.img}}),n("v-uni-text",[e._v(e._s(e.store.name))])],1),n("v-uni-view",{staticClass:"top"},[n("v-uni-view",{staticClass:"order_con"},[n("v-uni-view",{staticClass:"goods_name flexSS"},[e.orderCon.goods?n("v-uni-image",{attrs:{src:e.orderCon.goods.img}}):e._e(),n("v-uni-view",{staticClass:"name"},[e.orderCon.goods?n("v-uni-text",[e._v(e._s(e.orderCon.goods.name))]):e._e(),n("v-uni-view",{staticClass:"year"},[e._v("3条装")])],1)],1),n("v-uni-view",{staticClass:"goods_info"},[n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[e._v("款式:")]),n("v-uni-text",[e._v(e._s(e.orderCon.type))])],1),e.orderCon.goods?n("v-uni-text",[e._v(e._s(e.orderCon.goods.price*e.num)+"元")]):e._e()],1),n("v-uni-view",{staticClass:"flexB"},[n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[e._v("尺码:")]),n("v-uni-text",[e._v(e._s(e.orderCon.size))])],1),n("v-uni-text",[e._v(e._s(e.num))])],1),n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[e._v("单价:")]),e.orderCon.goods?n("v-uni-text",[e._v("¥"+e._s(e.orderCon.goods.price))]):e._e()],1)],1),n("v-uni-view",{staticClass:"goods_total flexE"},[n("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e.num)+"件,")]),n("v-uni-text",[e._v("小计:")]),n("v-uni-text",{staticClass:"total"},[n("v-uni-text",[e._v("¥")]),e.orderCon.goods?n("v-uni-text",[e._v(e._s(e.orderCon.goods.price*e.num))]):e._e()],1)],1),n("v-uni-view",{staticClass:"remark flexS"},[n("v-uni-view",[e._v("订单备注")]),n("v-uni-textarea",{attrs:{placeholder:"选填,请先和商家协商一致","auto-height":!0,"placeholder-class":"gray"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1)],1),n("v-uni-view",{staticClass:"co_settlement"},[n("v-uni-text",{staticClass:"gray"},[e._v("共"+e._s(e.num)+"套,")]),n("v-uni-text",[e._v("合计:")]),n("v-uni-text",{staticClass:"total"},[n("v-uni-text",[e._v("¥")]),e.orderCon.goods?n("v-uni-text",[e._v(e._s(e.orderCon.goods.price*e.num))]):e._e()],1),n("v-uni-view",{staticClass:"base_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payMoney.apply(void 0,arguments)}}},[e._v("立即支付")])],1)],1)],1)],1)},o=[]},"99f8":function(e,t,n){"use strict";n.r(t);var r=n("95a5"),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=i.a},aeaa:function(e,t,n){"use strict";var r=n("bb8a"),i=n.n(r);i.a},bb8a:function(e,t,n){var r=n("67fa");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("335f0113",r,!0,{sourceMap:!1,shadowMode:!1})},d19a:function(e,t,n){"use strict";n.r(t);var r=n("99e45"),i=n("1018");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("d937"),n("f849");var a,d=n("f0c5"),s=Object(d["a"])(i["default"],r["b"],r["c"],!1,null,"edb175c8",null,!1,r["a"],a);t["default"]=s.exports},d887:function(e,t,n){var r=n("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-edb175c8]{-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:#f9f9fb;padding:%?30?%;margin-bottom:%?120?%}.co .co_settlement[data-v-edb175c8]{width:100%;height:%?98?%;padding:0 %?30?%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;font-size:%?28?%;position:fixed;bottom:0;left:0;right:0}.co .co_settlement .L uni-text[data-v-edb175c8]:nth-of-type(1){color:#999}.co .co_settlement .L uni-text[data-v-edb175c8]:nth-of-type(2){color:#333}.co .co_settlement .L uni-text[data-v-edb175c8]:nth-last-of-type(1){color:#f76454}.co .co_settlement .R[data-v-edb175c8]{width:%?192?%;height:%?68?%;text-align:center;line-height:%?68?%;border-radius:%?68?%;color:#fff;background:-webkit-linear-gradient(357deg,#ff232c,#ff571b);background:linear-gradient(93deg,#ff232c,#ff571b)}.co .order_detail[data-v-edb175c8]{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-edb175c8]{height:%?112?%;padding-left:%?30?%;line-height:%?112?%;border-bottom:%?1?% solid #eee}.co .order_detail .shop_name uni-text[data-v-edb175c8]{font-size:%?28?%}.co .order_detail .shop_name uni-image[data-v-edb175c8]{width:%?52?%;height:%?52?%;border-radius:50%;margin-right:%?15?%}.co .order_detail .top .order_con[data-v-edb175c8]{padding:0 %?30?%;margin-top:%?30?%}.co .order_detail .top .order_con .goods_name uni-image[data-v-edb175c8]{width:%?200?%;height:%?160?%;margin-right:%?26?%;border-radius:%?8?%;-webkit-flex-shrink:0;flex-shrink:0}.co .order_detail .top .order_con .goods_name .name uni-text[data-v-edb175c8]{font-size:%?32?%;font-weight:700}.co .order_detail .top .order_con .goods_info[data-v-edb175c8]{margin:%?30?% 0}.co .order_detail .top .order_con .goods_info > uni-view[data-v-edb175c8]{margin-bottom:%?10?%}.co .remark[data-v-edb175c8]{min-height:%?88?%}.co .remark uni-view[data-v-edb175c8]{width:%?140?%;-webkit-flex-shrink:0;flex-shrink:0}.co .co_address[data-v-edb175c8]{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-edb175c8]{color:#fb231f;font-size:%?50?%;vertical-align:middle}.co .co_address .gray[data-v-edb175c8]{margin-left:%?20?%}.co .co_address .iconiconfontjiantou2[data-v-edb175c8]{color:#999}.co .co_address .ads_info[data-v-edb175c8]{margin:0 %?15?%}.co .co_address .ads_info .shop_info[data-v-edb175c8]{font-size:%?32?%;font-weight:700}.co .co_address .ads_info .shop_info uni-text[data-v-edb175c8]:last-child{font-size:%?28?%;color:#999}',""]),e.exports=t},d937:function(e,t,n){"use strict";var r=n("47af"),i=n.n(r);i.a},dded:function(e,t,n){"use strict";n.r(t);var r=n("20bd"),i=n("99f8");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("aeaa");var a,d=n("f0c5"),s=Object(d["a"])(i["default"],r["b"],r["c"],!1,null,"5d85e046",null,!1,r["a"],a);t["default"]=s.exports},f6ca:function(e,t,n){"use strict";var r=n("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=r(n("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 d=function(e){return i.default.get("/order/get_order_no_info",e)};t.orderQuery=d;var s=function(e){return i.default.post("/order/submit_order_info",e)};t.subOrder=s;var c=function(e){return i.default.post("/payment/pay",e)};t.payOrder=c;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 b=function(e){return i.default.post("/order/sure_one_self_take",e)};t.getSelf=b;var p=function(e){return i.default.post("/order/add_comment",e)};t.addComment=p;var _=function(e){return i.default.get("/order/get_comment",e)};t.getComment=_;var g=function(e){return i.default.get("/order/get_share_order",e)};t.getShareOrder=g;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 m=function(e){return i.default.post("/order/cancel_order",e)};t.orderCancel=m;var w=function(e){return i.default.get("/cancel/get_cancel_order_list",e)};t.cancelList=w;var k=function(e){return i.default.post("/cancel/delete_origin_order",e)};t.delCancel=k;var y=function(e){return i.default.post("/order/edit_order_remark",e)};t.editRemark=y;var C=function(e){return i.default.get("/order/get_scan_order",e)};t.scanOrder=C;var S=function(e){return i.default.get("/order/get_order_status_num",e)};t.getOrderNum=S},f849:function(e,t,n){"use strict";var r=n("915a"),i=n.n(r);i.a}}]);