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.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-OrderDetails-OrderDet...

1 lines
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-OrderDetails-OrderDetails"],{1030:function(t,e,i){var a=i("d982");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("49fde160",a,!0,{sourceMap:!1,shadowMode:!1})},"24f2":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("d3b7"),i("e25e");var s=a(i("c7eb")),o=a(i("1da1")),r=i("e623"),n=i("afca"),d={data:function(){return{orderInfo:[],warehouse:[],tool:"",orderDetails:{}}},methods:{lookPic:function(t){uni.previewImage({urls:t,success:function(t){}})},afterRead:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function i(){var a,o;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:console.log(t),a=[].concat(t.file),o=0;case 3:if(!(o<a.length)){i.next=12;break}return i.next=6,e.uploadFilePromise(a[o].url);case 6:i.sent,e.$refs.uToast.show({message:"上传成功"}),1==t.name&&e.getOrderDetails();case 9:o++,i.next=3;break;case 12:case"end":return i.stop()}}),i)})))()},uploadFilePromise:function(t){var e=this;return new Promise((function(i,a){uni.uploadFile({url:e.baseUrl+"api/common/upload",filePath:t,name:"file",header:{token:(0,r.getToken)()},formData:{},success:function(t){1==JSON.parse(t.data).code?setTimeout((function(){i(t.data)}),1e3):(uni.$u.toast(JSON.parse(t.data).msg),i(t.data))},fail:function(t){console.log(t,"rrr")}})}))},uploadPay:function(t,e){this.$refs.uploadPay.chooseFile()},confirmPay:function(t){var e=this;if(this.orderDetails.pay_voucher){var i={pay_voucher:this.orderDetails.pay_voucher,id:this.orderDetails.id,status:1};(0,n.orderPay)(i).then((function(t){e.getOrderDetails()}))}else this.$refs.uToast.show({message:"请上传支付凭证"})},goPayHandle:function(){console.log("999"),uni.navigateTo({url:"/pages/warehouse/pay?num="+this.orderDetails.order_amount+"&id="+this.orderDetails.id})},getOrderDetails:function(){var t=this;(0,n.orderDetail)({id:this.id,custom:{auth:!0}}).then((function(e){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,i=new Date(1e3*parseInt(e)),a=i.getFullYear(),s=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),r=i.getHours()<10?"0"+i.getHours():i.getHours(),n=i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes(),d=i.getSeconds()<10?"0"+i.getSeconds():i.getSeconds(),l=a+"-"+s+"-"+o+" "+r+":"+n+":"+d;return l}},onLoad:function(t){this.tool=t.tool,this.id=t.id,this.getOrderDetails()}};e.default=d},"3d45":function(t,e,i){"use strict";i.r(e);var a=i("a920"),s=i("6f31");for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("bc6b");var r=i("f0c5"),n=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"01ac08b8",null,!1,a["a"],void 0);e["default"]=n.exports},"6f31":function(t,e,i){"use strict";i.r(e);var a=i("24f2"),s=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=s.a},a920:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uUpload:i("14ce").default,uToast:i("cdc1").default},s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"order-status"},[i("v-uni-view",{staticClass:"status"},[i("v-uni-text",{staticClass:"iconfont icon-zhuyi"}),i("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),i("v-uni-view",{staticClass:"order-goods"},[i("v-uni-view",{staticClass:"goods-list"},t._l(t.orderInfo,(function(e,a){return i("v-uni-view",{key:a,staticClass:"list"},[i("v-uni-view",{staticClass:"sellerInfo"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s("buy"!=t.tool?t.orderDetails.buyer?t.orderDetails.buyer.nickname:"-":t.orderDetails.seller?t.orderDetails.seller.nickname:"-"))]),i("v-uni-view",{staticClass:"content",staticStyle:{"margin-left":"20rpx"}},[i("v-uni-text",[t._v(t._s("buy"!=t.tool?t.orderDetails.buyer?t.orderDetails.buyer.mobile:"-":t.orderDetails.seller?t.orderDetails.seller.mobile:"-"))])],1)],1),i("v-uni-view",{staticClass:"orderNum"},[i("v-uni-view",{staticClass:"title"},[t._v("订单号:")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-text",[t._v(t._s(t.orderDetails.order_sn))])],1)],1),i("v-uni-view",{staticClass:"orderInfo"},[i("v-uni-view",{staticClass:"thumb"},[i("v-uni-image",{attrs:{src:e.goods_image,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",{staticClass:"one-omit"},[t._v(t._s(e.goods_name))])],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥"+t._s(e.goods_price))])],1)],1)],1)],1)})),1)],1),i("v-uni-view",{staticClass:"order-info"},[i("v-uni-view",{staticClass:"info-list"},[i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"title"},[t._v("订单提交时间:")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-text",[t._v(t._s(t.getTime(t.orderDetails.createtime)))])],1)],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"title"},[t._v("付款确认时间:")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-text",[t._v(t._s(t.orderDetails.pay_time_text))])],1)],1)],1)],1),i("v-uni-view",{staticClass:"order-details"},[i("v-uni-view",{staticClass:"details-list"},[i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("商品总额")])],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥"+t._s(t.orderDetails.order_amount))])],1)],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("实付款")])],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥"+t._s(t.orderDetails.pay_amount))])],1)],1)],1)],1),i("v-uni-view",{staticClass:"pic"},[i("v-uni-view",{staticClass:"title"},[t._v("付款凭证")]),t.orderDetails.pay_voucher?i("v-uni-image",{attrs:{src:t.orderDetails.pay_voucher,mode:"aspectFit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.lookPic([t.orderDetails.pay_voucher])}}}):i("v-uni-text",[t._v("暂无付款凭证")])],1),i("u-upload",{ref:"uploadPay",staticStyle:{display:"none"},attrs:{previewFullImage:!1,width:"176",height:"176",name:"1"},on:{afterRead:function(e){arguments[0]=e=t.$handleEvent(e),t.afterRead.apply(void 0,arguments)}}}),i("u-toast",{ref:"uToast"})],1)},o=[]},bc6b:function(t,e,i){"use strict";var a=i("1030"),s=i.n(a);s.a},d982:function(t,e,i){var a=i("24fb");e=a(!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-01ac08b8]{position:relative;min-height:calc(100vh - %?90?%);background-color:#f6f6f6}\r\n/* 订单状态 */.order-status[data-v-01ac08b8]{margin:%?24?%;border-radius:%?10?%;background-color:#fff}.order-status .status[data-v-01ac08b8]{width:100%;padding:%?24?%}.order-status .status uni-text[data-v-01ac08b8]{font-size:%?30?%;color:#236030}.order-status .status .iconfont[data-v-01ac08b8]{margin-right:%?20?%;font-size:%?38?%}.order-status .status .time[data-v-01ac08b8]{margin-left:%?60?%;margin-top:%?10?%}.order-status .reason[data-v-01ac08b8]{display:flex;justify-content:center;width:100%;height:%?80?%}.order-status .reason uni-text[data-v-01ac08b8]{font-size:%?28?%;color:#f6f6f6}\r\n/* 订单商品 */.order-goods[data-v-01ac08b8]{margin:%?24?%;background-color:#fff;border-radius:%?10?%}.order-goods .goods-list[data-v-01ac08b8]{padding:0 4%}.order-goods .goods-list .list[data-v-01ac08b8]{min-height:%?200?%}.order-goods .goods-list .list .sellerInfo[data-v-01ac08b8]{display:flex;align-items:center;width:100%;color:#236030;padding:%?20?% 0;border-bottom:1px solid #eaeaea}.order-goods .goods-list .list .orderInfo[data-v-01ac08b8], .order-goods .goods-list .list .orderNum[data-v-01ac08b8]{display:flex;align-items:center;width:100%}.order-goods .goods-list .list .orderNum[data-v-01ac08b8]{padding:%?20?% 0}.order-goods .goods-list .list .thumb[data-v-01ac08b8]{display:flex;width:30%;text-align:center}.order-goods .goods-list .list .thumb uni-image[data-v-01ac08b8]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.order-goods .goods-list .list .item[data-v-01ac08b8]{width:70%;height:100%;color:#236030}.order-goods .goods-list .list .item .title[data-v-01ac08b8]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .title uni-text[data-v-01ac08b8]{font-size:%?26?%}.order-goods .goods-list .list .item .num-size[data-v-01ac08b8]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .num-size uni-text[data-v-01ac08b8]{font-size:%?26?%;color:#236030;margin-right:%?20?%}.order-goods .goods-list .list .item .num-size uni-text[data-v-01ac08b8]:last-child{margin-right:0}.order-goods .goods-list .list .item .price[data-v-01ac08b8]{display:flex;align-items:center;width:100%;height:%?60?%}.order-goods .goods-list .list .item .price uni-text[data-v-01ac08b8]{font-size:%?28?%;font-weight:700;color:#236030}.order-goods .goods-list .list .item .order-btn[data-v-01ac08b8]{display:flex;align-items:center;justify-content:flex-end;width:100%;height:%?100?%}.order-goods .goods-list .list .item .order-btn .btn[data-v-01ac08b8]{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-01ac08b8]{display:flex;align-items:center;justify-content:flex-end;width:100%;height:%?100?%}.order-goods .goods-list .list .item .order-btn .btn[data-v-01ac08b8]{padding:%?10?% %?30?%;color:#555;font-size:%?26?%;border:%?2?% solid #eee;border-radius:%?100?%}.order-goods .contact[data-v-01ac08b8]{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-01ac08b8]{font-size:%?28?%;color:#555}.order-goods .contact .iconfont[data-v-01ac08b8]{font-size:%?34?%;margin-right:%?20?%}\r\n/* 订单信息 */.order-info[data-v-01ac08b8]{background-color:#fff;border-radius:%?10?%;margin:%?24?%}.order-info .info-list[data-v-01ac08b8]{padding:0 4%}.order-info .info-list .list[data-v-01ac08b8]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?100?%;border-bottom:%?2?% solid #f6f6f6}.order-info .info-list .list .title[data-v-01ac08b8]{font-size:%?26?%;color:#236030}.order-info .info-list .list .content[data-v-01ac08b8]{display:flex;align-items:center;margin-left:%?20?%}.order-info .info-list .list .content uni-text[data-v-01ac08b8]{font-size:%?26?%;color:#236030}.order-info .info-list .list .content .btn[data-v-01ac08b8]{padding:%?6?% %?20?%;background-color:#eee;color:#555;font-size:%?24?%;border-radius:%?50?%;margin-left:%?40?%}\r\n/* 订单明细 */.order-details[data-v-01ac08b8]{margin:%?24?%;background-color:#fff;border-radius:%?10?%}.order-details .details-list[data-v-01ac08b8]{padding:0 4%}.order-details .details-list .list[data-v-01ac08b8]{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-01ac08b8]{font-size:%?26?%;color:#236030}.order-details .details-list .list .price[data-v-01ac08b8]{font-size:%?26?%;color:#236030}.order-details .details-list .action[data-v-01ac08b8]{display:flex;align-items:center;justify-content:flex-end}.order-details .details-list .action .price[data-v-01ac08b8]{font-size:%?32?%;color:#236030}.pic[data-v-01ac08b8]{margin:%?24?%;padding-bottom:%?100?%}.pic .title[data-v-01ac08b8]{color:#236030}.pic uni-image[data-v-01ac08b8]{width:%?300?%;height:%?300?%;border:1px solid #eaeaea;margin-top:%?10?%}.btnContainer[data-v-01ac08b8]{position:absolute;bottom:%?20?%;width:100%;display:flex;right:%?24?%;text-align:right;justify-content:flex-end}.btnContainer .btnItem[data-v-01ac08b8]{color:#fff;font-size:%?26?%;background-color:#236030;padding:%?10?% %?20?%;border-radius:%?10?%;margin:0 %?10?%}',""]),t.exports=e}}]);