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.
1 lines
20 KiB
1 lines
20 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-confirm"],{"2b71":function(t,e,r){"use strict";var n=r("753b"),i=r.n(n);i.a},"377a":function(t,e,r){"use strict";r.r(e);var n=r("5320"),i=r("6d26");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);r("2b71");var o=r("f0c5"),d=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5d579d1c",null,!1,n["a"],void 0);e["default"]=d.exports},5320:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"refund-wrapper",style:t.viewColor},[t._l(t.productData.product,(function(e,n){return r("v-uni-view",{key:n,staticClass:"item"},[r("v-uni-view",{staticClass:"img-box"},[r("v-uni-image",{attrs:{src:e.cart_info.productAttr.image||e.cart_info.product.image}})],1),r("v-uni-view",{staticClass:"info"},[r("v-uni-view",{staticClass:"name line1"},[2==t.order_status?r("v-uni-text",{staticClass:"event_name event_bg"},[t._v("预售")]):t._e(),t._v(t._s(e.cart_info.product.store_name))],1),r("v-uni-view",{staticClass:"price"},[t._v("¥\n\t\t\t"+t._s(3==t.order_status?e.cart_info.productAssistAttr.assist_price:4==t.order_status?e.cart_info.activeSku.active_price:e.cart_info.productAttr.price)+" ×"+t._s(e.refund_num))])],1)],1)})),r("v-uni-view",{staticClass:"form-box"},[1==t.type?r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[t._v("商品件数")]),r("v-uni-view",{staticClass:"picker"},[r("v-uni-picker",{attrs:{value:t.numIndex,range:t.numArray,disabled:2==t.order_status},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindNumChange.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"picker-box"},[t._v(t._s(t.numArray[t.numIndex])),2!=t.order_status?r("v-uni-text",{staticClass:"iconfont icon-jiantou"}):t._e()],1)],1)],1)],1):t._e(),r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[t._v(t._s(0==t.status?"退款金(含运费)":"退款金(不含运费)"))]),r("v-uni-input",{staticClass:"p-color",class:{disabled:2==t.type},staticStyle:{"text-align":"right"},attrs:{disabled:2==t.type,type:"text",placeholder:"请输入金额"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.checkMaxPrice.apply(void 0,arguments)}},model:{value:t.rerundPrice,callback:function(e){t.rerundPrice=e},expression:"rerundPrice"}})],1),r("v-uni-view",{staticClass:"form-item item-txt"},[r("v-uni-text",{staticClass:"label"},[t._v("退款原因")]),r("v-uni-view",{staticClass:"picker"},[r("v-uni-picker",{attrs:{value:t.qsIndex,range:t.qsArray},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"picker-box"},[t._v(t._s(t.qsArray[t.qsIndex])),r("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1)],1),r("v-uni-view",{staticClass:"form-item item-txtarea"},[r("v-uni-text",{staticClass:"label"},[t._v("备注说明")]),r("v-uni-view",{staticClass:"txtarea"},[r("v-uni-textarea",{attrs:{value:"",placeholder:"填写备注信息,100字以内"},model:{value:t.con,callback:function(e){t.con=e},expression:"con"}})],1)],1)],1),r("v-uni-view",{staticClass:"upload-box"},[r("v-uni-view",{staticClass:"title"},[r("v-uni-view",{staticClass:"txt"},[t._v("上传凭证")]),r("v-uni-view",{staticClass:"des"},[t._v("( 最多可上传9张 )")])],1),r("v-uni-view",{staticClass:"upload-img"},[t._l(t.uploadImg,(function(e,n){return r("v-uni-view",{key:n,staticClass:"img-item"},[r("v-uni-image",{attrs:{src:e,mode:""}}),r("v-uni-view",{staticClass:"iconfont icon-guanbi1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteImg(n)}}})],1)})),t.uploadImg.length<9?r("v-uni-view",{staticClass:"add-img",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"iconfont icon-icon25201"}),r("v-uni-text",{staticClass:"txt"},[t._v("上传凭证")])],1):t._e()],2)],1),r("v-uni-view",{staticClass:"btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindComfirm.apply(void 0,arguments)}}},[t._v("申请退款")]),t.isShowBox?r("alertBox",{attrs:{msg:t.msg},on:{bindClose:function(e){arguments[0]=e=t.$handleEvent(e),t.bindClose.apply(void 0,arguments)}}}):t._e()],2)},i=[]},"533f":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.refund-wrapper .item[data-v-5d579d1c]{position:relative;display:flex;padding:%?25?% %?30?%;background-color:#fff}.refund-wrapper .item[data-v-5d579d1c]:after{content:" ";position:absolute;right:0;bottom:0;width:%?657?%;height:1px;background:#f0f0f0}.refund-wrapper .item .img-box[data-v-5d579d1c]{width:%?130?%;height:%?130?%}.refund-wrapper .item .img-box uni-image[data-v-5d579d1c]{width:%?130?%;height:%?130?%;border-radius:%?16?%}.refund-wrapper .item .info[data-v-5d579d1c]{display:flex;flex-direction:column;width:%?440?%;margin-left:%?26?%}.refund-wrapper .item .info .tips[data-v-5d579d1c]{color:#868686;font-size:%?20?%}.refund-wrapper .item .info .price[data-v-5d579d1c]{margin-top:%?15?%;font-size:%?26?%}.refund-wrapper .item .check-box[data-v-5d579d1c]{display:flex;align-items:center;justify-content:center;flex:1}.refund-wrapper .item .check-box .iconfont[data-v-5d579d1c]{font-size:%?40?%;color:#ccc}.refund-wrapper .item .check-box .icon-xuanzhong1[data-v-5d579d1c]{color:#e93323}.refund-wrapper .form-box[data-v-5d579d1c]{padding-left:%?30?%;margin-top:%?18?%;background-color:#fff}.refund-wrapper .form-box .form-item[data-v-5d579d1c]{display:flex;justify-content:space-between;border-bottom:1px solid #f0f0f0;font-size:%?30?%}.refund-wrapper .form-box .item-txt[data-v-5d579d1c]{align-items:center;width:100%;padding:%?30?% %?30?% %?30?% 0}.refund-wrapper .form-box .item-txtarea[data-v-5d579d1c]{padding:%?30?% %?30?% %?30?% 0}.refund-wrapper .form-box .item-txtarea uni-textarea[data-v-5d579d1c]{display:block;width:%?400?%;height:%?100?%;font-size:%?30?%;text-align:right}.refund-wrapper .form-box .icon-jiantou[data-v-5d579d1c]{margin-left:%?10?%;font-size:%?28?%;color:#bbb}.refund-wrapper .upload-box[data-v-5d579d1c]{padding:%?30?%;background-color:#fff}.refund-wrapper .upload-box .title[data-v-5d579d1c]{display:flex;align-items:center;justify-content:space-between;font-size:%?30?%}.refund-wrapper .upload-box .title .des[data-v-5d579d1c]{color:#bbb}.refund-wrapper .upload-box .upload-img[data-v-5d579d1c]{display:flex;flex-wrap:wrap;margin-top:%?20?%}.refund-wrapper .upload-box .upload-img .img-item[data-v-5d579d1c]{position:relative;width:%?156?%;height:%?156?%;margin-right:%?23?%;margin-top:%?20?%}.refund-wrapper .upload-box .upload-img .img-item[data-v-5d579d1c]:nth-child(4n){margin-right:0}.refund-wrapper .upload-box .upload-img .img-item uni-image[data-v-5d579d1c]{width:%?156?%;height:%?156?%;border-radius:%?8?%}.refund-wrapper .upload-box .upload-img .img-item .iconfont[data-v-5d579d1c]{position:absolute;right:%?-15?%;top:%?-20?%;font-size:%?40?%;color:#e93323}.refund-wrapper .upload-box .upload-img .add-img[data-v-5d579d1c]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?156?%;height:%?156?%;margin-top:%?20?%;border:1px solid #ddd;border-radius:%?3?%;color:#bbb;font-size:%?24?%}.refund-wrapper .upload-box .upload-img .add-img .iconfont[data-v-5d579d1c]{margin-bottom:%?10?%;font-size:%?50?%}.refund-wrapper .btn-box[data-v-5d579d1c]{width:%?690?%;height:%?86?%;margin:%?70?% auto;line-height:%?86?%;text-align:center;color:#fff;background:var(--view-theme);border-radius:%?43?%;font-size:%?32?%}.p-color[data-v-5d579d1c]{color:var(--view-priceColor)}.p-color.disabled[data-v-5d579d1c]{color:#999}.event_bg[data-v-5d579d1c]{background:#ff7f00}.event_name[data-v-5d579d1c]{display:inline-block;margin-right:%?9?%;color:#fff;font-size:%?20?%;padding:0 %?8?%;line-height:%?30?%;text-align:center;border-radius:%?6?%}',""]),t.exports=e},"6d26":function(t,e,r){"use strict";r.r(e);var n=r("d0b0"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"753b":function(t,e,r){var n=r("533f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("4f06").default;i("c6fe839e",n,!0,{sourceMap:!1,shadowMode:!1})},"82b8":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("26cb"),i=r("8342"),a={data:function(){return{domain:i.HTTP_REQUEST_URL}},props:{msg:{type:String,default:""}},computed:(0,n.mapGetters)(["viewColor","keyColor"]),methods:{close:function(){this.$emit("bindClose")}}};e.default=a},"90af":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"alert-wrapper",style:t.viewColor},[r("v-uni-view",{staticClass:"alert-box"},[r("v-uni-image",{attrs:{src:t.domain+"/static/diy/success"+t.keyColor+".png",mode:""}}),r("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.msg))]),r("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("我知道了")])],1)],1)},i=[]},a60b:function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return i.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return i.default.post("user/cart/delete",t)},e.changeCartNum=function(t,e){return i.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return i.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return i.default.get("order/delivery/".concat(t))},e.express=function(t){return i.default.post("order/express/"+t)},e.expressList=function(){return i.default.get("common/express")},e.getCallBackUrlApi=function(t){return i.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return i.default.get("user/cart/count")},e.getCartList=function(){return i.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return i.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return i.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return i.default.get("order/detail/"+t)},e.getOrderList=function(t){return i.default.get("order/list",t)},e.getPayOrder=function(t){return i.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return i.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return i.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return i.default.get("order/group_order_list",t,{noAuth:!0})},e.ordeRefundReason=function(){return i.default.get("order/refund/reason")},e.orderAgain=function(t){return i.default.post("user/cart/again",t)},e.orderComment=function(t,e){return i.default.post("reply/"+t,e)},e.orderConfirm=function(t){return i.default.post("order/check",t)},e.orderCreate=function(t){return i.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return i.default.get("order/number")},e.orderDel=function(t){return i.default.post("order/del/"+t)},e.orderPay=function(t,e){return i.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return i.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return i.default.post("order/refund/verify",t)},e.orderTake=function(t){return i.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return i.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return i.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return i.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return i.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return i.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return i.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return i.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return i.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return i.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return i.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return i.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return i.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return i.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return i.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return i.default.post("order/cancel/"+t)},e.verifyCode=function(t){return i.default.get("order/verify_code/"+t)},r("99af");var i=n(r("b5ef"))},b3df:function(t,e,r){var n=r("c609");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("4f06").default;i("cf009c28",n,!0,{sourceMap:!1,shadowMode:!1})},b7ba:function(t,e,r){"use strict";r.r(e);var n=r("90af"),i=r("bc54");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);r("d780");var o=r("f0c5"),d=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"8ba13732",null,!1,n["a"],void 0);e["default"]=d.exports},bc54:function(t,e,r){"use strict";r.r(e);var n=r("82b8"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},c609:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.alert-wrapper[data-v-8ba13732]{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:10}.alert-wrapper .alert-box[data-v-8ba13732]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?500?%;height:%?540?%;background-color:#fff;border-radius:%?10?%;font-size:%?34?%}.alert-wrapper .alert-box uni-image[data-v-8ba13732]{width:%?149?%;height:%?230?%}.alert-wrapper .alert-box .txt[data-v-8ba13732]{margin-bottom:%?20?%}.alert-wrapper .alert-box .btn[data-v-8ba13732]{width:%?340?%;height:%?90?%;line-height:%?90?%;text-align:center;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));border-radius:%?45?%;color:#fff}',""]),t.exports=e},d0b0:function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("c7eb")),a=n(r("1da1"));r("d3b7"),r("3ca3"),r("ddb0"),r("acd8"),r("a9e3"),r("3c65"),r("a434"),r("14d9");var o=r("a60b"),d=n(r("b7ba")),u=r("26cb"),s={components:{alertBox:d.default},computed:(0,u.mapGetters)(["viewColor"]),data:function(){return{order_id:0,isShowBox:!1,uploadImg:[],qsArray:[],qsIndex:0,numArray:[],numIndex:0,ids:"",refund_type:"",type:"",productData:{},con:"",refund_price:"",postage_price:"",maxRefundPrice:"",rerundPrice:"",unitPrice:0,msg:"",refund_order_id:"",status:"",order_status:!1}},onLoad:function(t){this.ids=t.ids,this.refund_type=t.refund_type,this.type=t.type,this.order_id=t.order_id,Promise.all([this.refundProduct(),this.refundMessage()])},methods:{checkMaxPrice:function(){this.rerundPrice>this.maxRefundPrice&&(this.rerundPrice=this.maxRefundPrice.toFixed(2))},limitAamount:function(){parseFloat(this.rerundPrice)>parseFloat(this.maxRefundPrice)&&(uni.showToast({title:"退款金额不能大于支付金额",icon:"none"}),this.validate=!1)},refundMessage:function(){var t=this;(0,o.refundMessage)().then((function(e){t.qsArray=e.data}))},refundProduct:function(){var t=this;(0,o.refundProduct)(this.order_id,{ids:this.ids,type:this.type}).then((function(e){var r=e.data;if(t.productData=r,t.refund_price=r.total_refund_price,t.postage_price=r.postage_price,t.maxRefundPrice=Number(r.postage_price)+Number(r.total_refund_price),t.rerundPrice=t.maxRefundPrice.toFixed(2),t.status=r.status,t.order_status=r.activity_type,t.unitPostage=t.postage_price>0?t.$util.$h.Div(t.postage_price,r.product[0].refund_num).toFixed(2):0,1==t.type){t.unitPrice=t.$util.$h.Div(r.total_refund_price,r.product[0].refund_num);for(var n=1;n<=r.product[0].refund_num;n++)t.numArray.unshift(n);t.refund_price=t.$util.$h.Mul(t.unitPrice,t.numArray[0])}})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},bindPickerChange:function(t){this.qsIndex=t.target.value},bindNumChange:function(t){this.numIndex=t.target.value,this.refund_price=this.numArray[t.target.value]===this.productData.product[0].refund_num?this.productData.total_refund_price:this.$util.$h.Mul(this.unitPrice,this.numArray[t.target.value]),this.maxRefundPrice=this.refund_price+(this.postage_price>0?this.numArray[t.target.value]===this.productData.product[0].refund_num?this.postage_price:this.$util.$h.Mul(this.numArray[t.target.value],this.unitPostage):0),this.rerundPrice=this.maxRefundPrice.toFixed(2)},deleteImg:function(t){this.uploadImg.splice(t,1)},uploadpic:function(){if(this.uploadImg.length<9){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.uploadImg.push(e.data.path),t.$set(t,"uploadImg",t.uploadImg)}))}else uni.showToast({title:"最多可上传9张",icon:"none"})},bindComfirm:function(){var t=this;return(0,a.default)((0,i.default)().mark((function e(){var r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,o.refundApply)(t.order_id,{type:t.type,refund_type:t.refund_type,num:1==t.type?t.numArray[t.numIndex]:"",ids:t.ids,refund_message:t.qsArray[t.qsIndex],mark:t.con,refund_price:t.rerundPrice,pics:t.uploadImg});case 3:r=e.sent,t.msg=r.message,t.refund_order_id=r.data.refund_order_id,t.isShowBox=!0,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))()},bindClose:function(){this.isShowBox=!1,uni.redirectTo({url:"/pages/users/refund/detail?id="+this.refund_order_id})}}};e.default=s},d780:function(t,e,r){"use strict";var n=r("b3df"),i=r.n(n);i.a}}]); |