|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-saleAfter-saleAfterSelect"],{3500:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return n}));var u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("UiWhiteBox",[r("UiGoodsInfo",{staticClass:"goods-info",attrs:{data:e.orderInfo.orderProduct}})],1),r("UiWhiteBox",[r("v-uni-view",{staticClass:"title"},[e._v("选择售后类型")]),r("v-uni-view",{staticClass:"item item__first",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.select(1)}}},[r("v-uni-view",[e._v("申请退款")]),r("v-uni-text",[e._v("没有收到货,或已协商同意不退货只退款")])],1),r("v-uni-view",{staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.select(2,2)}}},[r("v-uni-view",[e._v("申请退货退款")]),r("v-uni-text",[e._v("已收到货,需要退还收到的货物")])],1)],1)],1)},a=[]},"3d3d":function(e,t,r){"use strict";r.r(t);var n=r("3500"),u=r("c9da");for(var a in u)"default"!==a&&function(e){r.d(t,e,(function(){return u[e]}))}(a);r("aa48");var o,s=r("f0c5"),i=Object(s["a"])(u["default"],n["b"],n["c"],!1,null,"5f949e6c",null,!1,n["a"],o);t["default"]=i.exports},"41ba":function(e,t,r){"use strict";r("ac1f"),r("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var n=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=n;var u=function(e,t){var r;return function(){var n=this,u=arguments;r&&clearTimeout(r),r=setTimeout((function(){e.apply(n,u)}),t)}};t.Debounce=u;var a=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=a;var o=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=o;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=s;var i=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=i},5767:function(e,t,r){"use strict";var n=r("dbce"),u=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var o=u(r("5530")),s=n(r("41ba"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=n(r("d071"));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var c=(0,o.default)((0,o.default)({},s),{},{requset:i});t.default=c},"5a25":function(e,t,r){"use strict";var n;r.r(t);var u,a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"ui-white-box"},[e._t("default")],2)},o=[],s=(r("c557"),r("f0c5")),i={},c=Object(s["a"])(i,a,o,!1,null,"7e14885a",null,!1,n,u);t["default"]=c.exports},"874e":function(e,t,r){var n=r("24fb");t=n(!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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-5f949e6c]{background:#f8f8f8}.title[data-v-5f949e6c]{height:%?98?%;line-height:%?98?%;border-bottom:%?2?% solid #eee;padding:0 %?30?%;color:#666}.item[data-v-5f949e6c]{padding:%?40?% 0;margin:0 %?40?%}.item__first[data-v-5f949e6c]{border-bottom:%?2?% solid #eee}.item uni-view[data-v-5f949e6c]{font-weight:700;margin-bottom:%?20?%}.item uni-text[data-v-5f949e6c]{color:#999;font-size:%?24?%}.goods-info[data-v-5f949e6c]{border:0}body.?%PAGE?%[data-v-5f949e6c]{background:#f8f8f8}',""]),e.exports=t},aa48:function(e,t,r){"use strict";var n=r("b062"),u=r.n(n);u.a},b062:function(e,t,r){var n=r("874e");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var u=r("4f06").default;u("6be12252",n,!0,{sourceMap:!1,shadowMode:!1})},c557:function(e,t,r){"use strict";var n=r("dd95"),u=r.n(n);u.a},c997:function(e,t,r){var n=r("24fb");t=n(!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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-white-box[data-v-7e14885a]{margin:%?20?% %?30?%;background:#fff;border-radius:%?20?%}',""]),e.exports=t},c9da:function(e,t,r){"use strict";r.r(t);var n=r("ef58"),u=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=u.a},d071:function(e,t,r){"use strict";var n=r("4ea4");r("4de4"),r("caad"),r("d3b7"),r("ac1f"),r("2532"),r("38cf"),r("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var u=n(r("5530")),a=n(r("fda4")),o=n(r("4308")),s="test",i={test:"https://k8s-horse-gateway.mashibing.cn",release:"",prod:""},c=function(e,t){if(v(t),200===e.statusCode){var r=e.data;return"SUCCESS"===r.code?r.data:"TOKEN_EXPIRE"===r.code?(uni.navigateTo({url:"/login"}),r):Promise.reject(r)}return e},d=function(e,t){return v(t),{message:e.errMsg,code:e.statusCode}},f=[],l=function(e){var t={url:e.url,method:e.method,data:e.data};return f.includes(JSON.stringify(t))?Promise.reject({message:"请勿频繁操作"}):(f.push(JSON.stringify(t)),!1)},v=function(e){f=f.filter((function(t){return t!==JSON.stringify({url:e.url,method:e.method,data:e.data})}))},h=new a.default;t.MsbRequest=h,h.baseUrl=i[s],h.use("request",(function(e){if(e.header.repeat){var t=l(e);if(t)return t}return e})),h.use("success",c),h.use("error",d);var p=new a.default;t.MsbRequestTk=p,p.baseUrl=i[s],p.use("request",(function(e){var t=o.default.state.token;if(t){if(e.header=(0,u.default)((0,u.default)({},e.header),{},{Authorization:t}),e.header.repeat){var r=l(e);if(r)return r}return e}var n=getCurrentPages(),a=n[n.length-1];return a.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),p.use("success",c),p.use("error",d)},dd95:function(e,t,r){var n=r("c997");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var u=r("4f06").default;u("36cf71ae",n,!0,{sourceMap:!1,shadowMode:!1})},ef58:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("96cf");var u=n(r("1da1")),a=n(r("7932")),o=n(r("5a25")),s=r("c0d4"),i={components:{UiWhiteBox:o.default,UiGoodsInfo:a.default},data:function(){return{orderInfo:{}}},mounted:function(){this.getOrderProductInfo()},methods:{getOrderProductInfo:function(){var e=this;return(0,u.default)(regeneratorRuntime.mark((function t(){var r,n,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.ApiGetOrderProductDetail)({orderProductId:e.$Route.query.id});case 2:if(r=t.sent,n=r.error,u=r.result,!n){t.next=8;break}return uni.$u.toast(n.message),t.abrupt("return",!1);case 8:e.orderInfo=u;case 9:case"end":return t.stop()}}),t)})))()},select:function(e,t){var r=this.orderInfo.orderProduct,n=r.orderProductId,u=r.realAmount;this.$Router.push({path:"/saleAfterApply",query:{status:t,type:e,id:n,amount:u}})}}};t.default=i},fda4:function(e,t,r){"use strict";var n=r("4ea4");r("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n(r("5530")),a=n(r("d4ec")),o=n(r("bee2")),s=function(){function e(t){(0,a.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,o.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,u.default)((0,u.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(r,n){uni.request((0,u.default)((0,u.default)({},e),{},{success:function(u){var a=u||u[1];if(a.statusCode>=200&&a.statusCode<400){if(t.hook.success){var o=t.hook.success(a,e);o&&o.constructor===Promise?o.then((function(e){r(e)}),(function(e){n(e)})):r(o)}else r(a);return!1}n(t.hook.error?t.hook.error(a,e):a)},fail:function(r){n(t.hook.error?t.hook.error(r,e):r)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,r){return this.method({method:"GET",url:e,data:t,header:r})}},{key:"post",value:function(e,t,r){return this.method({method:"POST",url:e,data:t,header:r})}},{key:"put",value:function(e,t,r){return this.method({method:"PUT",url:e,data:t,header:r})}},{key:"delete",value:function(e,t,r){return this.method({method:"DELETE",url:e,data:t,header:r})}}]),e}(),i=s;t.default=i}}]); |