CRMEB/crmeb/public/static/js/pages-goods-order_refund_goods-index.b9fcd4b1.js
2022-12-19 18:40:49 +08:00

1 line
9.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-order_refund_goods-index"],{"2bb3":function(e,t,n){"use strict";n.r(t);var i=n("c413"),r=n("d43c");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("9079");var s,o=n("f0c5"),u=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"358b5ed2",null,!1,i["a"],s);t["default"]=u.exports},"2d7d":function(e,t,n){"use strict";var i=n("4ea4");n("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("5ba0"),a=n("a368"),s=n("26cb"),o=i(n("9ad2")),u={mixins:[o.default],data:function(){return{expressList:[],orderInfo:{},seIndex:0,refund_reason_wap_img:[],refundInfo:{refund_express:"",refund_phone:"",refund_explain:"",id:"",refund_express_name:"",refund_img:""}}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(e,t){e&&this.getOrderInfo()},deep:!0}},onLoad:function(e){this.orderId=e.orderId,this.isLogin?this.getOrderInfo():(0,a.toLogin)()},methods:{subRefund:function(e){var t=this,n=this;return n.refundInfo.refund_express?n.refundInfo.refund_phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.refundInfo.refund_phone)?(n.refundInfo.refund_express_name=n.expressList[n.seIndex].name,n.refundInfo.refund_img=n.refund_reason_wap_img.join(","),void(0,r.refundExpress)(n.refundInfo).then((function(e){return t.$util.Tips({title:e.msg,icon:"success"},{tab:5,url:"/pages/users/user_return_list/index?isT=1"})})).catch((function(e){return t.$util.Tips({title:e})}))):this.$util.Tips({title:n.$t("请输入正确的手机号码")}):this.$util.Tips({title:n.$t("请输入手机号")}):this.$util.Tips({title:n.$t("填写快递单号")})},DelPic:function(e){var t=e,n=this;this.refund_reason_wap_img[t];n.refund_reason_wap_img.splice(t,1),n.$set(n,"refund_reason_wap_img",n.refund_reason_wap_img)},uploadpic:function(){var e=this;this.$util.uploadImageOne("upload/image",(function(t){e.refund_reason_wap_img.push(t.data.url),e.$set(e,"refund_reason_wap_img",e.refund_reason_wap_img)}))},getOrderInfo:function(){var e=this;(0,r.refundOrderDetail)(e.orderId).then((function(t){e.$set(e,"orderInfo",t.data),e.expressList=t.data.express_list,e.refundInfo.id=t.data.id}))},bindPickerChange:function(e){this.$set(this,"seIndex",e.detail.value)}}};t.default=u},"6c58":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.apply-return .list[data-v-358b5ed2]{background-color:#fff;margin-top:%?18?%}.apply-return .list .item[data-v-358b5ed2]{margin-left:%?30?%;padding-right:%?30?%;min-height:%?90?%;border-bottom:%?1?% solid #eee;font-size:%?30?%;color:#333}.apply-return .list .item .num[data-v-358b5ed2]{color:#282828;width:%?427?%;text-align:right}.apply-return .list .item .num .picker .reason[data-v-358b5ed2]{width:%?385?%}.apply-return .list .item .num .picker .iconfont[data-v-358b5ed2]{color:#666;font-size:%?30?%;margin-top:%?2?%}.apply-return .list .item.textarea[data-v-358b5ed2]{padding:%?30?% %?30?% %?30?% 0}.apply-return .list .item uni-textarea[data-v-358b5ed2]{height:%?100?%;font-size:%?30?%}.apply-return .list .item .placeholder[data-v-358b5ed2]{color:#bbb;font-size:%?30?%;text-align:right}.apply-return .list .item .title[data-v-358b5ed2]{height:%?95?%;width:100%}.apply-return .list .item .title .tip[data-v-358b5ed2]{font-size:%?30?%;color:#bbb}.apply-return .list .item .upload[data-v-358b5ed2]{padding-bottom:%?36?%}.apply-return .list .item .upload .pictrue[data-v-358b5ed2]{margin:%?22?% %?23?% 0 0;width:%?156?%;height:%?156?%;position:relative;font-size:%?24?%;color:#bbb}.apply-return .list .item .upload .pictrue[data-v-358b5ed2]:nth-of-type(4n){margin-right:0}.apply-return .list .item .upload .pictrue uni-image[data-v-358b5ed2]{width:100%;height:100%;border-radius:%?3?%}.apply-return .list .item .upload .pictrue .icon-guanbi1[data-v-358b5ed2]{position:absolute;font-size:%?45?%;top:%?-10?%;right:%?-10?%}.apply-return .list .item .upload .pictrue .icon-icon25201[data-v-358b5ed2]{color:#bfbfbf;font-size:%?50?%}.apply-return .list .item .upload .pictrue[data-v-358b5ed2]:nth-last-child(1){border:%?1?% solid #ddd;box-sizing:border-box}.apply-return .returnBnt[data-v-358b5ed2]{font-size:%?32?%;color:#fff;width:%?690?%;height:%?86?%;border-radius:%?50?%;text-align:center;line-height:%?86?%;margin:%?43?% auto}.goodsStyle .text .name[data-v-358b5ed2]{align-self:flex-start}.list[data-v-358b5ed2] .uni-input-input{text-align:right}',""]),e.exports=t},9079:function(e,t,n){"use strict";var i=n("fe79"),r=n.n(i);r.a},c413:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{style:e.colorStyle},[n("v-uni-form",{on:{submit:function(t){arguments[0]=t=e.$handleEvent(t),e.subRefund.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"apply-return"},[e._l(e.orderInfo.cart_info,(function(t,i){return n("v-uni-view",{key:i,staticClass:"goodsStyle acea-row row-between"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:t.productInfo.attrInfo?t.productInfo.attrInfo.image:t.productInfo.image}})],1),n("v-uni-view",{staticClass:"text acea-row row-between"},[n("v-uni-view",{staticClass:"name line2"},[e._v(e._s(t.productInfo.store_name))]),n("v-uni-view",{staticClass:"money"},[n("v-uni-view",[e._v(e._s(e.$t("¥"))+e._s(t.truePrice))]),n("v-uni-view",{staticClass:"num"},[e._v("x"+e._s(t.cart_num))])],1)],1)],1)})),n("v-uni-view",{staticClass:"list"},[e.expressList.length?n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("快递公司")))]),n("v-uni-picker",{staticClass:"num",attrs:{value:e.seIndex,range:e.expressList,"range-key":"name"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"reason"},[e._v(e._s(e.expressList[e.seIndex].name))]),n("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1):e._e(),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("快递单号")))]),n("v-uni-input",{attrs:{type:"text",placeholder:e.$t("填写快递单号"),"placeholder-class":"placeholder"},model:{value:e.refundInfo.refund_express,callback:function(t){e.$set(e.refundInfo,"refund_express",t)},expression:"refundInfo.refund_express"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("联系电话")))]),n("v-uni-input",{attrs:{type:"number",placeholder:e.$t("请输入手机号"),"placeholder-class":"placeholder"},model:{value:e.refundInfo.refund_phone,callback:function(t){e.$set(e.refundInfo,"refund_phone",t)},expression:"refundInfo.refund_phone"}})],1),n("v-uni-view",{staticClass:"item textarea acea-row row-between"},[n("v-uni-view",[e._v(e._s(e.$t("备注说明")))]),n("v-uni-textarea",{staticClass:"num",attrs:{placeholder:e.$t("填写备注信息100字以内")},model:{value:e.refundInfo.refund_explain,callback:function(t){e.$set(e.refundInfo,"refund_explain",t)},expression:"refundInfo.refund_explain"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between"},[n("v-uni-view",{staticClass:"title acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("上传图片")))]),n("v-uni-view",{staticClass:"tip"},[e._v(e._s(e.$t("最多可上传3张")))])],1),n("v-uni-view",{staticClass:"upload acea-row row-middle"},[e._l(e.refund_reason_wap_img,(function(t,i){return n("v-uni-view",{key:i,staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:t}}),n("v-uni-view",{staticClass:"iconfont icon-guanbi1 font-num",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.DelPic(i)}}})],1)})),e.refund_reason_wap_img.length<3?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadpic.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-icon25201"}),n("v-uni-view",[e._v(e._s(e.$t("上传图片")))])],1):e._e()],2)],1)],1),n("v-uni-button",{staticClass:"returnBnt bg-color",attrs:{"form-type":"submit"}},[e._v(e._s(e.$t("提交")))])],2)],1)],1)},a=[]},d43c:function(e,t,n){"use strict";n.r(t);var i=n("2d7d"),r=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},fe79:function(e,t,n){var i=n("6c58");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("04b53d01",i,!0,{sourceMap:!1,shadowMode:!1})}}]);