1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-logistics"],{"0016":function(t,e,o){"use strict";o.r(e);var i=o("d36d"),n=o("cb37");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("51f5");var r=o("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"78228784",null,!1,i["a"],void 0);e["default"]=s.exports},"022e":function(t,e,o){var i=o("58c7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("7e1a4456",i,!0,{sourceMap:!1,shadowMode:!1})},"51f5":function(t,e,o){"use strict";var i=o("022e"),n=o.n(i);n.a},"58c7":function(t,e,o){var i=o("24fb");e=i(!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/* 文章场景相关 */.logistics .header[data-v-78228784]{padding:%?23?% %?30?%;background-color:#fff;height:%?166?%;box-sizing:border-box}.logistics .header .pictrue[data-v-78228784]{width:%?120?%;height:%?120?%}.logistics .header .pictrue uni-image[data-v-78228784]{width:100%;height:100%;border-radius:%?6?%}.logistics .header .text[data-v-78228784]{width:%?540?%;font-size:%?28?%;color:#999;margin-top:%?6?%}.logistics .header .text .name[data-v-78228784]{width:%?365?%;color:#282828}.logistics .header .text .money[data-v-78228784]{text-align:right}.logistics .logisticsCon[data-v-78228784]{background-color:#fff;margin:%?12?% 0}.logistics .logisticsCon .company[data-v-78228784]{height:%?120?%;margin:0 0 %?45?% %?30?%;padding-right:%?30?%;border-bottom:1px solid #f5f5f5}.logistics .logisticsCon .company .picTxt[data-v-78228784]{width:%?520?%}.logistics .logisticsCon .company .picTxt .iconfont[data-v-78228784]{width:%?50?%;height:%?50?%;background-color:#666;text-align:center;line-height:%?50?%;color:#fff;font-size:%?35?%}.logistics .logisticsCon .company .picTxt .text[data-v-78228784]{width:%?450?%;font-size:%?26?%;color:#282828}.logistics .logisticsCon .company .picTxt .text .name[data-v-78228784]{color:#999}.logistics .logisticsCon .company .picTxt .text .express[data-v-78228784]{margin-top:%?5?%}.logistics .logisticsCon .company .copy[data-v-78228784]{font-size:%?20?%;width:%?120?%;height:%?40?%;text-align:center;line-height:%?40?%;border-radius:%?3?%;border:1px solid #999}.logistics .logisticsCon .item[data-v-78228784]{padding:0 %?40?%;position:relative}.logistics .logisticsCon .item .circular[data-v-78228784]{width:%?20?%;height:%?20?%;border-radius:50%;position:absolute;top:%?-1?%;left:%?31.5?%;background-color:#ddd}.logistics .logisticsCon .item .circular.on[data-v-78228784]{background-color:#e93323}.logistics .logisticsCon .item .text.on-font[data-v-78228784]{color:#e93323}.logistics .logisticsCon .item .text .data.on-font[data-v-78228784]{color:#e93323}.logistics .logisticsCon .item .text[data-v-78228784]{font-size:%?26?%;color:#666;width:%?615?%;border-left:%?1?% solid #e6e6e6;padding:0 0 %?60?% %?38?%}.logistics .logisticsCon .item .text.on[data-v-78228784]{border-left-color:#f8c1bd}.logistics .logisticsCon .item .text .data[data-v-78228784]{font-size:%?24?%;color:#999;margin-top:%?10?%}.logistics .logisticsCon .item .text .data .time[data-v-78228784]{margin-left:%?15?%}',""]),t.exports=e},6581:function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("d09b"),a=o("23ce"),r=i(o("960f")),s=o("26cb"),c=o("8f46"),u=i(o("9436")),d=i(o("fecf")),f={components:{recommend:u.default,authorize:d.default},data:function(){return{orderId:"",product:{},orderInfo:{},expressList:[],hostProduct:[]}},computed:(0,c.configMap)({recommend_switch:0},(0,s.mapGetters)(["isLogin"])),onLoad:function(t){if(!t.orderId)return this.$util.Tips({title:"缺少订单号"});this.orderId=t.orderId,this.isLogin?(this.getExpress(),this.get_host_product()):(this.isAuto=!0,this.isShowAuth=!0)},onReady:function(){this.$nextTick((function(){var t=this,e=new r.default(".copy-data");e.on("success",(function(){t.$util.Tips({title:"复制成功"})}))}))},methods:{onLoadFun:function(){this.getExpress(),this.get_host_product()},authColse:function(t){this.isShowAuth=t},copyOrderId:function(){uni.setClipboardData({data:this.orderInfo.delivery_id})},getExpress:function(){var t=this;(0,n.refundExpress)(t.orderId).then((function(e){t.$set(t,"expressList",e.data.express||[]),t.$set(t,"orderInfo",e.data.refund)}))},get_host_product:function(){var t=this;(0,a.getProductHot)().then((function(e){t.$set(t,"hostProduct",e.data.list)}))}},onPageScroll:function(){uni.$emit("scroll")}};e.default=f},"71b4":function(t,e,o){var i=o("24fb");e=i(!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/* 文章场景相关 */.Popup[data-v-6cfa5c77]{--logo-auth-size-:%?180?%;width:80%;background-color:#fff;position:fixed;top:%?500?%;left:10%;z-index:900;padding:calc(var(--logo-auth-size-) / 2) %?20?% %?20?% %?20?%;border-radius:%?15?%}.Popup .logo-auth[data-v-6cfa5c77]{position:absolute;top:calc(%?0?% - (var(--logo-auth-size-) + %?8?%) / 2);left:calc((100% - %?180?%) / 2);width:var(--logo-auth-size-);height:var(--logo-auth-size-);border:%?8?% solid #fff;border-radius:50%;background:#fff;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center}.Popup .logo-auth .image[data-v-6cfa5c77]{height:var(--logo-auth-size-);margin-top:%?-30?%}.Popup .title[data-v-6cfa5c77]{width:100%;height:%?60?%;line-height:%?60?%;text-align:center;font-size:%?32?%;color:#000}.Popup .tip[data-v-6cfa5c77]{width:100%;line-height:%?50?%;font-size:%?28?%;color:#555;padding:%?20?% 0;text-align:left}.Popup .bottom[data-v-6cfa5c77]{width:100%;height:%?80?%;margin-top:%?50?%;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center}.Popup .bottom .item[data-v-6cfa5c77]{width:%?200?%;height:%?80?%;line-height:%?80?%;background-color:#eee;text-align:center;font-size:%?26?%;color:#666}.Popup .bottom .item .text[data-v-6cfa5c77]{font-size:%?26?%;color:#666}.Popup .bottom .item.on[data-v-6cfa5c77]{width:%?500?%}.Popup .bottom .item.grant[data-v-6cfa5c77]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-6cfa5c77]{font-size:%?28?%;color:#fff}.flex[data-v-6cfa5c77]{display:flex;flex-direction:row}.mask[data-v-6cfa5c77]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}.popup_box[data-v-6cfa5c77]{width:100%;background-color:#fff;border-radius:%?35?%;display:flex;flex-direction:column}.popup_box .h1[data-v-6cfa5c77]{width:100%;position:fixed;top:0;background:#fff;font-size:%?36?%;height:%?100?%;line-height:%?100?%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 %?28?%;box-sizing:border-box}.popup_box .h1 uni-icon[data-v-6cfa5c77]{font-size:%?32?%;color:#c9c9c9}.popup_box .info[data-v-6cfa5c77]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.popup_box .info .userAvatar[data-v-6cfa5c77]{width:%?130?%;height:%?130?%;border-radius:100%;overflow:hidden;padding:0;margin-top:45px;background-color:#fff;border:%?2?% solid #ccc}.popup_box .info .userAvatar .avatar[data-v-6cfa5c77]{display:block;width:%?130?%;height:%?130?%}.popup_box .info .row[data-v-6cfa5c77]{border-bottom:1px solid #ccc;display:flex;align-items:center;height:%?80?%;padding-left:%?20?%}.popup_box .info .row.text1[data-v-6cfa5c77]{flex:2}.popup_box .info .row.weui-input[data-v-6cfa5c77]{flex:6}.popup_box .btn[data-v-6cfa5c77]{position:fixed;bottom:0;width:100%;background:#fff;align-items:center;justify-content:center;display:flex;padding-top:%?20?%;padding-bottom:%?20?%}.popup_box .btn .button[data-v-6cfa5c77]{width:90%;height:%?84?%;border-radius:%?64?%;background:#f15353;color:#fff;font-size:%?36?%;border:none;text-align:center;line-height:%?84?%}',""]),t.exports=e},aef0:function(t,e,o){"use strict";o.r(e);var i=o("cf78"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},cb37:function(t,e,o){"use strict";o.r(e);var i=o("6581"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},cf78:function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("5530")),a=i(o("956a")),r=o("f063"),s=o("93f6"),c=o("26cb"),u=i(o("d2b7")),d=o("8f46"),f=o("79a6"),l=getApp(),p={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1,canGetPrivacySetting:!1,avatar:"",nickname:""}},computed:(0,n.default)((0,n.default)({},(0,c.mapGetters)(["isLogin","userInfo","viewColor"])),(0,d.configMap)(["routine_logo","first_avatar_switch","wechat_phone_switch"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{onclose:function(){this.canGetPrivacySetting=!1},onAgree:function(){var t=this;t.canUseGetUserProfile=!1,u.default.getUserProfile().then((function(e){var o=e.userInfo;o.code=t.code,o.spread=l.globalData.spid,o.spread_code=l.globalData.code,o.new_nickname=t.nickname,o.new_avatar=t.avatar,(0,r.commonAuth)({auth:{type:"routine",auth:o}}).then((function(e){if(200!=e.data.status)return uni.setStorageSync("auth_token",e.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var o=e.data.result.expires_time-a.default.time();t.$store.commit("UPDATE_USERINFO",e.data.result.user),t.$store.commit("LOGIN",{token:e.data.result.token,time:o}),t.$store.commit("SETUID",e.data.result.user.uid),a.default.set(s.EXPIRES_TIME,e.data.result.expires_time,o),a.default.set(s.USER_INFO,e.data.result.user,o),t.$emit("onLoadFun",e.data.result.user),e.data.result.user.isNew&&t.mp_is_new&&1==t.first_avatar_switch&&1==t.wechat_phone_switch&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,f.toLogin)(!0)},getUserProfile:function(){var t=this;wx.getPrivacySetting?wx.getPrivacySetting({success:function(e){e.needAuthorization?(t.canGetPrivacySetting=!0,t.$nextTick((function(){t.$refs.privacyAgreement.showPoupon(e.privacyContractName)}))):t.onAgree()},fail:function(t){},complete:function(){}}):this.onAgree()},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.canGetPrivacySetting=!1},onChooseAvatar:function(t){var e=this,o=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",o,(function(t){e.avatar=t.data.path}),(function(t){}))},changeNickname:function(t){this.nickname=t.detail.value||t.target.value}}};e.default=p},d09b:function(t,e,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return n.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return n.default.post("user/cart/delete",t)},e.changeCartNum=function(t,e){return n.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return n.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return n.default.get("order/delivery/".concat(t))},e.express=function(t){return n.default.post("order/express/"+t)},e.expressList=function(){return n.default.get("common/express")},e.getCallBackUrlApi=function(t){return n.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return n.default.get("user/cart/count")},e.getCartList=function(){return n.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return n.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return n.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return n.default.get("order/detail/"+t)},e.getOrderList=function(t){return n.default.get("order/list",t)},e.getPayOrder=function(t){return n.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return n.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return n.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return n.default.get("order/group_order_list",t,{noAuth:!0})},e.integralOrderPay=function(t,e){return n.default.post("order/points/pay/"+t,e)},e.ordeRefundReason=function(){return n.default.get("order/refund/reason")},e.orderAgain=function(t){return n.default.post("user/cart/again",t)},e.orderComment=function(t,e){return n.default.post("reply/"+t,e)},e.orderConfirm=function(t){return n.default.post("order/check",t)},e.orderCreate=function(t){return n.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return n.default.get("order/number")},e.orderDel=function(t){return n.default.post("order/del/"+t)},e.orderPay=function(t,e){return n.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return n.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return n.default.post("order/refund/verify",t)},e.orderTake=function(t){return n.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return n.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return n.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return n.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return n.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return n.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return n.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return n.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return n.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return n.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return n.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return n.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return n.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return n.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return n.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return n.default.post("order/cancel/"+t)},e.verifyCode=function(t){return n.default.get("order/verify_code/"+t)},o("99af");var n=i(o("5a4d"))},d36d:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("v-uni-view",{staticClass:"logistics"},[o("v-uni-view",{staticClass:"logisticsCon"},[o("v-uni-view",{staticClass:"company acea-row row-between-wrapper"},[o("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[o("v-uni-view",{staticClass:"iconfont icon-wuliu"}),o("v-uni-view",{staticClass:"text"},[o("v-uni-view",[o("v-uni-text",{staticClass:"name line1"},[t._v("物流公司:")]),t._v(t._s(t.orderInfo.delivery_type))],1),o("v-uni-view",{staticClass:"express line1"},[o("v-uni-text",{staticClass:"name"},[t._v("快递单号:")]),t._v(t._s(t.orderInfo.delivery_id))],1)],1)],1),o("v-uni-view",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":t.orderInfo.delivery_id}},[t._v("复制单号")])],1),t._l(t.expressList,(function(e,i){return o("v-uni-view",{key:i,staticClass:"item"},[o("v-uni-view",{staticClass:"circular",class:0===i?"on":""}),o("v-uni-view",{staticClass:"text",class:0===i?"on-font on":""},[o("v-uni-view",[t._v(t._s(e.status))]),o("v-uni-view",{staticClass:"data",class:0===i?"on-font on":""},[t._v(t._s(e.time))])],1)],1)}))],2),1==t.recommend_switch?o("recommend",{attrs:{hostProduct:t.hostProduct,isLogin:t.isLogin}}):t._e()],1),o("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},n=[]},d3e4:function(t,e,o){"use strict";var i=o("ddbf"),n=o.n(i);n.a},dda2:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[t.isShowAuth&&t.code?o("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?o("v-uni-view",{staticClass:"Popup",class:{privacyPoupon:t.canGetPrivacySetting},style:"top:"+t.top+"px;"},[o("v-uni-view",{staticClass:"logo-auth"},[o("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),[t.isWeixin?o("v-uni-view",{staticClass:"title"},[t._v("授权提醒")]):o("v-uni-view",{staticClass:"title"},[t._v(t._s(t.title))])],[t.isWeixin?o("v-uni-view",{staticClass:"tip"},[t._v("请授权用户信息,以便为您提供更好的服务!")]):o("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))]),o("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))])],o("v-uni-view",{staticClass:"bottom flex"},[o("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),o("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?o("v-uni-view",{staticClass:"text"},[t._v("去授权")]):o("v-uni-view",{staticClass:"text"},[t._v("去登录")])],1)],1)],2):t._e()],1)},n=[]},ddbf:function(t,e,o){var i=o("71b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("4f06").default;n("f7f3db9a",i,!0,{sourceMap:!1,shadowMode:!1})},fecf:function(t,e,o){"use strict";o.r(e);var i=o("dda2"),n=o("aef0");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("d3e4");var r=o("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"6cfa5c77",null,!1,i["a"],void 0);e["default"]=s.exports}}]); |