杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/public/static/js/pages-order_pay_status-inde...

1 lines
22 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_pay_status-index"],{"1c6c":function(t,e,n){"use strict";var i=n("d630"),o=n.n(i);o.a},"493d":function(t,e,n){"use strict";n.r(e);var i=n("e933"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},"508a":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("v-uni-view",{staticClass:"payment-status"},[0!=t.order_pay_info.paid?n("v-uni-view",{staticClass:"iconfont icon-duihao2 icon"}):n("v-uni-view",{staticClass:"iconfont icon-iconfontguanbi icon"}),n("v-uni-view",{staticClass:"status"},[t._v(t._s(1==t.order_pay_info.paid?"支付成功":"订单未支付"))]),n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("下单时间")]),n("v-uni-view",{staticClass:"itemCom"},[t._v(t._s(t.order_pay_info.create_time))])],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("支付方式")]),1==t.order_pay_info.pay_type||2==t.order_pay_info.pay_type||3==t.order_pay_info.pay_type?n("v-uni-view",{staticClass:"itemCom"},[t._v("微信")]):4==t.order_pay_info.pay_type||5==t.order_pay_info.pay_type?n("v-uni-view",{staticClass:"itemCom"},[t._v("支付宝")]):n("v-uni-view",{staticClass:"itemCom"},[t._v("余额")])],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("支付金额")]),n("v-uni-view",{staticClass:"itemCom"},[t._v(t._s(t.order_pay_info.pay_price))])],1),t.order_pay_info.give_integral>0&&t.order_pay_info.paid?n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("赠送积分")]),n("v-uni-view",{staticClass:"itemCom t-color"},[t._v(t._s(t.order_pay_info.give_integral)+"个")])],1):t._e(),0==t.order_pay_info.paid&&"offline"!=t.order_pay_info.pay_type&&"success"!=t.msg?n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[t._v("失败原因")]),n("v-uni-view",{staticClass:"itemCom"},[t._v(t._s(0==t.order_pay_info.pay_type?"余额不足":t.msg))])],1):t._e()],1),n("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goOrderDetails.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"returnBnt gColor",attrs:{formType:"submit","hover-class":"none"}},[t._v("查看订单")])],1),4==t.order_pay_info.activity_type&&t.order_pay_info.paid?n("v-uni-button",{staticClass:"returnBnt s-Color",attrs:{formType:"submit","hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPink(t.order_pay_info.activity_id)}}},[t._v("邀请好友参团")]):t._e(),t.order_pay_info.paid&&4==t.order_pay_info.activity_type?t._e():n("v-uni-button",{staticClass:"returnBnt s-Color",attrs:{formType:"submit","hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goIndex.apply(void 0,arguments)}}},[t._v("返回首页")]),t.couponList.length>0&&t.order_pay_info.paid?n("v-uni-view",{staticClass:"coupon-wrapper"},[n("v-uni-view",{staticClass:"hd"},[n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"txt"},[t._v("赠送优惠券")]),n("v-uni-view",{staticClass:"line"})],1),n("v-uni-view",{staticClass:"coupon-box",class:{on:t.isOpen}},[t._l(t.couponList,(function(e,i){return[n("v-uni-view",{key:i+"_0",staticClass:"coupon-item flex"},[n("v-uni-view",{staticClass:"left-bg",style:{"background-image":"url("+t.domain+"/static/diy/couponBg"+t.keyColor+".png)"}},[n("v-uni-text",[t._v("¥")]),t._v(t._s(e.coupon_price))],1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"des"},[t._v("满"+t._s(e.use_min_price)+"元可用")]),1==e.coupon_type?[n("v-uni-view",{staticClass:"des"},[t._v("有效期:"+t._s(t._f("timeYMD")(e.use_start_time))+"-"+t._s(t._f("timeYMD")(e.use_end_time)))])]:t._e(),0==e.coupon_type?[n("v-uni-view",{staticClass:"des"},[t._v("领取后"+t._s(e.coupon_time)+"天内可用")])]:t._e()],2)],1)]}))],2),t.couponList.length>2?n("v-uni-view",{staticClass:"more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindMore.apply(void 0,arguments)}}},[t._v(t._s(t.text)),t.isOpen?n("v-uni-text",{staticClass:"iconfont icon-xiangshang"}):n("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e()],1):t._e()],1),n("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},o=[]},"59ed2":function(t,e,n){"use strict";var i=n("bb31"),o=n.n(i);o.a},"6e89":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f");var o=n("a60b"),r=(n("b640"),n("26cb")),a=i(n("f272")),u=n("8342"),s={components:{authorize:a.default},filters:{timeYMD:function(t){if(t){var e=/\d{4}-\d{1,2}-\d{1,2}/g.exec(t);return e[0]}}},data:function(){return{domain:u.HTTP_REQUEST_URL,orderId:"",order_type:"",order_pay_info:{},isAuto:!1,isShowAuth:!1,status:0,msg:"",couponList:[],isOpen:!1,moneyBg:"/static/images/couponBg",text:"展开更多",timer:null}},computed:(0,r.mapGetters)(["isLogin","viewColor","keyColor"]),onLoad:function(t){if(!t.order_id)return this.$util.Tips({title:"缺少参数无法查看订单支付状态"},{tab:3,url:1});this.orderId=t.order_id,this.order_type=t.order_type,this.status=t.status||0,this.msg=t.msg||"",this.isLogin?this.refreshData():(this.isAuto=!0,this.isShowAuth=!0)},methods:{refreshData:function(){var t=this;this.timer=setInterval((function(){t.getOrderPayInfo()}),1e3)},bindMore:function(){this.isOpen=!this.isOpen,this.text="展开更多"==this.text?"收起":"展开更多"},onLoadFun:function(){this.isShowAuth=!1,this.getOrderPayInfo()},authColse:function(t){this.isShowAuth=t},getOrderPayInfo:function(){var t=this,e=this;(0,o.getPayOrder)(e.orderId).then((function(n){e.$set(e,"order_pay_info",n.data),e.couponList=n.data.give_coupon,uni.setNavigationBarTitle({title:1==n.data.paid?"支付成功":"支付失败"}),1==n.data.paid&&(clearInterval(t.timer),t.timer=null)})).catch((function(t){uni.hideLoading()}))},goIndex:function(t){uni.switchTab({url:"/pages/index/index"})},goPink:function(t){uni.navigateTo({url:"/pages/activity/combination_status/index?id="+t})},goOrderDetails:function(t){0==this.order_pay_info.paid?uni.redirectTo({url:"/pages/users/order_list/index"}):uni.redirectTo({url:"/pages/users/order_list/index?status=1"})}},destroyed:function(){clearInterval(this.timer),this.timer=null},deactivated:function(){clearInterval(this.timer),this.timer=null}};e.default=s},8047:function(t,e,n){"use strict";n.r(e);var i=n("6e89"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},"80d9":function(t,e,n){"use strict";n.r(e);var i=n("508a"),o=n("8047");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("59ed2");var a=n("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"68c5403c",null,!1,i["a"],void 0);e["default"]=u.exports},a296:function(t,e,n){var i=n("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-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},a60b:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return o.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return o.default.post("user/cart/delete",t)},e.changeCartNum=function(t,e){return o.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return o.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return o.default.get("order/delivery/".concat(t))},e.express=function(t){return o.default.post("order/express/"+t)},e.expressList=function(){return o.default.get("common/express")},e.getCallBackUrlApi=function(t){return o.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return o.default.get("user/cart/count")},e.getCartList=function(){return o.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return o.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return o.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return o.default.get("order/detail/"+t)},e.getOrderList=function(t){return o.default.get("order/list",t)},e.getPayOrder=function(t){return o.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return o.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return o.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return o.default.get("order/group_order_list",t,{noAuth:!0})},e.ordeRefundReason=function(){return o.default.get("order/refund/reason")},e.orderAgain=function(t){return o.default.post("user/cart/again",t)},e.orderComment=function(t,e){return o.default.post("reply/"+t,e)},e.orderConfirm=function(t){return o.default.post("order/check",t)},e.orderCreate=function(t){return o.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return o.default.get("order/number")},e.orderDel=function(t){return o.default.post("order/del/"+t)},e.orderPay=function(t,e){return o.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return o.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return o.default.post("order/refund/verify",t)},e.orderTake=function(t){return o.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return o.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return o.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return o.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return o.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return o.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return o.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return o.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return o.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return o.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return o.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return o.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return o.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return o.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return o.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return o.default.post("order/cancel/"+t)},e.verifyCode=function(t){return o.default.get("order/verify_code/"+t)},n("99af");var o=i(n("b5ef"))},b640:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalSubscribe=function(){var t=o();return r([t.PRODUCT_INCREASE])},e.auth=o,e.openEextractSubscribe=function(){var t=o();return r([t.EXTRACT_NOTICE])},e.openExtrctSubscribe=function(){var t=o();return r([t.EXTRACT_NOTICE])},e.openOrderRefundSubscribe=function(){var t=o();return r([t.REFUND_CONFORM_CODE])},e.openOrderSubscribe=function(){var t=o();return r([t.ORDER_DELIVER_SUCCESS,t.DELIVER_GOODS_CODE])},e.openPaySubscribe=function(){var t=o();return r([t.DELIVER_GOODS_CODE,t.ORDER_DELIVER_SUCCESS,t.ORDER_PAY_SUCCESS])},e.openRechargeSubscribe=function(){var t=o();return r([t.USER_BALANCE_CHANGE])},e.subscribe=r,n("d3b7");var i=n("5cac");function o(){var t,e=uni.getStorageSync(i.SUBSCRIBE_MESSAGE);return t=e||{},t}function r(t){wx;return new Promise((function(e,n){uni.requestSubscribeMessage({tmplIds:t,success:function(t){return e(t)},fail:function(t){return e(t)},complete:function(t){}})}))}},bb31:function(t,e,n){var i=n("d93e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("1acabe6b",i,!0,{sourceMap:!1,shadowMode:!1})},c15c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.isShowAuth&&t.code?n("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?n("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[n("v-uni-view",{staticClass:"logo-auth"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?n("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):n("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?n("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):n("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),n("v-uni-view",{staticClass:"bottom flex"},[n("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),n("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?n("v-uni-text",{staticClass:"text"},[t._v("去授权")]):n("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},o=[]},d630:function(t,e,n){var i=n("a296");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("8f383f98",i,!0,{sourceMap:!1,shadowMode:!1})},d93e:function(t,e,n){var i=n("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/* 文章场景相关 */.payment-status[data-v-68c5403c]{background-color:#fff;margin:%?92?% %?30?% %?30?%;border-radius:%?10?%;padding:%?1?% 0 %?28?% 0}.payment-status .icon[data-v-68c5403c]{font-size:%?70?%;width:%?140?%;height:%?140?%;border-radius:50%;color:#fff;text-align:center;line-height:%?140?%;border:%?6?% solid #f5f5f5;margin:%?-76?% auto 0 auto;background-color:#999}.payment-status .icon.icon-duihao2[data-v-68c5403c]{background-color:var(--view-theme)}.payment-status .icon.fail[data-v-68c5403c]{text-shadow:0 4px 0 #7a7a7a}.payment-status .status[data-v-68c5403c]{font-size:%?32?%;font-weight:700;text-align:center;margin:%?25?% 0 %?37?% 0}.payment-status .wrapper[data-v-68c5403c]{border:1px solid #eee;margin:0 %?30?% %?47?% %?30?%;padding:%?35?% 0;border-left:0;border-right:0}.payment-status .wrapper .item[data-v-68c5403c]{font-size:%?28?%;color:#282828}.payment-status .wrapper .item ~ .item[data-v-68c5403c]{margin-top:%?20?%}.payment-status .wrapper .item .itemCom[data-v-68c5403c]{color:#666}.payment-status .returnBnt[data-v-68c5403c]{width:%?630?%;height:%?86?%;border-radius:%?50?%;color:#fff;font-size:%?30?%;text-align:center;line-height:%?86?%;margin:0 auto %?20?% auto}.payment-status .returnBnt.gColor[data-v-68c5403c]{background-color:var(--view-theme)}.payment-status .returnBnt.s-Color[data-v-68c5403c]{color:var(--view-theme);border:1px solid var(--view-theme)}.t-color[data-v-68c5403c]{color:var(--view-theme)!important}.coupon-wrapper .hd[data-v-68c5403c]{display:flex;align-items:center;justify-content:center;margin:%?30?% 0;color:#999;font-size:%?24?%}.coupon-wrapper .hd .line[data-v-68c5403c]{width:%?70?%;height:1px;background:#dcdcdc}.coupon-wrapper .hd .txt[data-v-68c5403c]{margin:0 %?20?%}.coupon-wrapper .coupon-box[data-v-68c5403c]{height:%?356?%;padding:0 %?20?%;overflow:hidden}.coupon-wrapper .coupon-box.on[data-v-68c5403c]{height:auto}.coupon-wrapper .coupon-box .coupon-item[data-v-68c5403c]{width:100%;margin-bottom:%?20?%;box-shadow:0 2px 10px 0 rgba(0,0,0,.06)}.coupon-wrapper .coupon-box .coupon-item .left-bg[data-v-68c5403c]{display:flex;align-items:center;justify-content:center;width:%?236?%;height:%?160?%;color:#fff;font-size:%?64?%}.coupon-wrapper .coupon-box .coupon-item .left-bg uni-text[data-v-68c5403c]{margin-top:%?26?%;font-size:%?36?%}.coupon-wrapper .coupon-box .coupon-item .info[data-v-68c5403c]{display:flex;flex-direction:column;justify-content:space-between;margin-left:%?20?%;padding:%?20?% 0}.coupon-wrapper .coupon-box .coupon-item .info .title[data-v-68c5403c]{color:#282828;font-size:%?30?%}.coupon-wrapper .coupon-box .coupon-item .info .des[data-v-68c5403c]{font-size:%?24?%;color:#999}.coupon-wrapper .more[data-v-68c5403c]{display:flex;align-items:center;justify-content:center;padding-top:%?24?%;font-size:%?24?%;color:#999}.coupon-wrapper .more .iconfont[data-v-68c5403c]{margin-top:%?6?%;margin-left:%?10?%;font-size:%?20?%}',""]),t.exports=e},e933:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("5530")),r=i(n("ff56")),a=n("31bd"),u=n("5cac"),s=n("26cb"),c=i(n("dae1")),d=n("4f1b"),f=(i(n("8b6a")),n("713c")),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}},computed:(0,o.default)((0,o.default)({},(0,s.mapGetters)(["isLogin","userInfo","viewColor"])),(0,d.configMap)(["routine_logo"])),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:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,f.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;c.default.getUserProfile().then((function(n){var i=n.userInfo;i.code=t.code,i.spread=l.globalData.spid,i.spread_code=l.globalData.code,(0,a.commonAuth)({auth:{type:"routine",auth:i}}).then((function(n){if(200!=n.data.status)return uni.setStorageSync("auth_token",n.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var i=n.data.result.expires_time-r.default.time();e.$store.commit("UPDATE_USERINFO",n.data.result.user),e.$store.commit("LOGIN",{token:n.data.result.token,time:i}),e.$store.commit("SETUID",n.data.result.user.uid),r.default.set(u.EXPIRES_TIME,n.data.result.expires_time,i),r.default.set(u.USER_INFO,n.data.result.user,i),t.$emit("onLoadFun",n.data.result.user),n.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=p},f272:function(t,e,n){"use strict";n.r(e);var i=n("c15c"),o=n("493d");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("1c6c");var a=n("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"ac292046",null,!1,i["a"],void 0);e["default"]=u.exports}}]);