You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
huazhiyu/unpackage/dist/build/h5/static/js/pages-OrderDetails-OrderDet...

1 lines
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-OrderDetails-OrderDetails"],{"2c89":function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.addAddr=void 0;var i=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/goodsDetail",t,e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/orderPay",{params:t},e)}},"3dc0":function(t,e,s){"use strict";s.r(e);var i=s("defd"),r=s("7e26");for(var o in r)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return r[t]}))}(o);s("444f");var a=s("f0c5"),n=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"19c9a739",null,!1,i["a"],void 0);e["default"]=n.exports},"444f":function(t,e,s){"use strict";var i=s("d07e"),r=s.n(i);r.a},"6cb6":function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,s("e25e");var i=s("2c89"),r={data:function(){return{orderInfo:[],warehouse:[],orderDetails:{}}},methods:{getOrderDetails:function(){var t=this;(0,i.orderDetail)({id:this.id,custom:{auth:!0}}).then((function(e){console.log(e,"00000"),t.orderDetails=Object.assign({},t.orderDetails,e.data),t.orderInfo=e.data.order_goods,t.warehouse=e.data.warehouse}))},getTime:function(t){var e=t,s=new Date(1e3*parseInt(e)),i=s.getFullYear(),r=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),a=s.getHours()<10?"0"+s.getHours():s.getHours(),n=s.getMinutes()<10?"0"+s.getMinutes():s.getMinutes(),d=s.getSeconds()<10?"0"+s.getSeconds():s.getSeconds(),u=i+"-"+r+"-"+o+" "+a+":"+n+":"+d;return u}},onLoad:function(t){this.id=t.id,this.getOrderDetails()}};e.default=r},"7e26":function(t,e,s){"use strict";s.r(e);var i=s("6cb6"),r=s.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"8cc1":function(t,e,s){var i=s("24fb");e=i(!1),e.push([t.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-19c9a739]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f6f6f6}\r\n/* 订单状态 */.order-status[data-v-19c9a739]{width:100%;background:linear-gradient(90deg,#236030,#236030)}.order-status .status[data-v-19c9a739]{display:flex;align-items:center;justify-content:center;width:100%;height:%?100?%}.order-status .status uni-text[data-v-19c9a739]{font-size:%?38?%;color:#fff}.order-status .status .iconfont[data-v-19c9a739]{margin-right:%?20?%}.order-status .reason[data-v-19c9a739]{display:flex;justify-content:center;width:100%;height:%?80?%}.order-status .reason uni-text[data-v-19c9a739]{font-size:%?28?%;color:#f6f6f6}\r\n/* 订单商品 */.order-goods[data-v-19c9a739]{width:100%;background-color:#fff;border-radius:%?20?%}.order-goods .goods-list[data-v-19c9a739]{padding:0 4%}.order-goods .goods-list .list[data-v-19c9a739]{display:flex;align-items:center;width:100%;min-height:%?200?%}.order-goods .goods-list .list .thumb[data-v-19c9a739]{display:flex;width:30%;text-align:center}.order-goods .goods-list .list .thumb uni-image[data-v-19c9a739]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.order-goods .goods-list .list .item[data-v-19c9a739]{width:70%;height:100%}.order-goods .goods-list .list .item .title[data-v-19c9a739]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .title uni-text[data-v-19c9a739]{font-size:%?26?%;color:#222}.order-goods .goods-list .list .item .num-size[data-v-19c9a739]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .num-size uni-text[data-v-19c9a739]{font-size:%?26?%;color:#959595;margin-right:%?20?%}.order-goods .goods-list .list .item .num-size uni-text[data-v-19c9a739]:last-child{margin-right:0}.order-goods .goods-list .list .item .price[data-v-19c9a739]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .price uni-text[data-v-19c9a739]{font-size:%?28?%;font-weight:700;color:#222}.order-goods .goods-list .list .item .order-btn[data-v-19c9a739]{display:flex;align-items:center;justify-content:flex-end;width:100%;height:%?100?%}.order-goods .goods-list .list .item .order-btn .btn[data-v-19c9a739]{padding:%?10?% %?30?%;color:#555;font-size:%?26?%;border:%?2?% solid #eee;border-radius:%?100?%}.order-goods .goods-list .list .item .order-btn[data-v-19c9a739]{display:flex;align-items:center;justify-content:flex-end;width:100%;height:%?100?%}.order-goods .goods-list .list .item .order-btn .btn[data-v-19c9a739]{padding:%?10?% %?30?%;color:#555;font-size:%?26?%;border:%?2?% solid #eee;border-radius:%?100?%}.order-goods .contact[data-v-19c9a739]{display:flex;align-items:center;justify-content:center;display:flex;align-items:center;width:100%;height:%?100?%;background-color:#fff;box-shadow:0 0 %?20?% #eee;border-radius:0 0 %?20?% %?20?%}.order-goods .contact uni-text[data-v-19c9a739]{font-size:%?28?%;color:#555}.order-goods .contact .iconfont[data-v-19c9a739]{font-size:%?34?%;margin-right:%?20?%}\r\n/* 订单信息 */.order-info[data-v-19c9a739]{width:100%;background-color:#fff;border-radius:%?20?%;margin:%?20?% auto}.order-info .info-list[data-v-19c9a739]{padding:0 4%}.order-info .info-list .list[data-v-19c9a739]{display:flex;align-items:center;width:100%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.order-info .info-list .list .title[data-v-19c9a739]{font-size:%?26?%;color:#959595}.order-info .info-list .list .content[data-v-19c9a739]{display:flex;align-items:center;margin-left:%?20?%}.order-info .info-list .list .content uni-text[data-v-19c9a739]{font-size:%?26?%;font-weight:700;color:#222}.order-info .info-list .list .content .btn[data-v-19c9a739]{padding:%?6?% %?20?%;background-color:#eee;color:#555;font-size:%?24?%;border-radius:%?50?%;margin-left:%?40?%}\r\n/* 订单明细 */.order-details[data-v-19c9a739]{width:100%;background-color:#fff;border-radius:%?20?%;margin:%?20?% auto}.order-details .details-list[data-v-19c9a739]{padding:0 4%}.order-details .details-list .list[data-v-19c9a739]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.order-details .details-list .list .title[data-v-19c9a739]{font-size:%?26?%;color:#959595}.order-details .details-list .list .price[data-v-19c9a739]{font-size:%?26?%;font-weight:700}.order-details .details-list .action[data-v-19c9a739]{display:flex;align-items:center;justify-content:flex-end}.order-details .details-list .action .price[data-v-19c9a739]{font-size:%?32?%;font-weight:700;color:#236030}',""]),t.exports=e},d07e:function(t,e,s){var i=s("8cc1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=s("4f06").default;r("3f046c2f",i,!0,{sourceMap:!1,shadowMode:!1})},defd:function(t,e,s){"use strict";s.d(e,"b",(function(){return i})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-uni-view",{staticClass:"page"},[s("v-uni-view",{staticClass:"order-status"},[s("v-uni-view",{staticClass:"status"},[s("v-uni-text",{staticClass:"iconfont icon-zhuyi"}),s("v-uni-text",[t._v(t._s(0==t.orderDetails.status?"待支付":1==t.orderDetails.status?"待确认":2==t.orderDetails.status?"待委托":3==t.orderDetails.status?"已投诉":4==t.orderDetails.status?"待发货":5==t.orderDetails.status?"待收货":-1==t.orderDetails.status?"已取消":""))])],1)],1),s("v-uni-view",{staticClass:"order-goods"},[s("v-uni-view",{staticClass:"goods-list"},t._l(t.orderInfo,(function(e,i){return s("v-uni-view",{key:i,staticClass:"list"},[s("v-uni-view",{staticClass:"thumb"},[s("v-uni-image",{attrs:{src:e.goods_image,mode:""}})],1),s("v-uni-view",{staticClass:"item"},[s("v-uni-view",{staticClass:"title"},[s("v-uni-text",{staticClass:"one-omit"},[t._v(t._s(e.goods_name))])],1),s("v-uni-view",{staticClass:"num-size"},[s("v-uni-text",[t._v("数量:"+t._s(e.num))])],1),s("v-uni-view",{staticClass:"price"},[s("v-uni-text",[t._v("¥"+t._s(e.goods_price))])],1)],1)],1)})),1)],1),s("v-uni-view",{staticClass:"order-info"},[s("v-uni-view",{staticClass:"info-list"},[s("v-uni-view",{staticClass:"list"},[s("v-uni-view",{staticClass:"title"},[t._v("订单编号:")]),s("v-uni-view",{staticClass:"content"},[s("v-uni-text",[t._v(t._s(t.orderDetails.order_sn))])],1)],1),s("v-uni-view",{staticClass:"list"},[s("v-uni-view",{staticClass:"title"},[t._v("下单时间:")]),s("v-uni-view",{staticClass:"content"},[s("v-uni-text",[t._v(t._s(t.getTime(t.orderDetails.createtime)))])],1)],1)],1)],1),s("v-uni-view",{staticClass:"order-details"},[s("v-uni-view",{staticClass:"details-list"},[s("v-uni-view",{staticClass:"list"},[s("v-uni-view",{staticClass:"title"},[s("v-uni-text",[t._v("商品总额")])],1),s("v-uni-view",{staticClass:"price"},[s("v-uni-text",[t._v("¥"+t._s(t.orderDetails.order_amount))])],1)],1)],1)],1)],1)},r=[]}}]);