| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{"0275":function(e,n,t){"use strict";t.r(n);var o=t("6976"),a=t("f8cd");for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);t("e52c");var i=t("828b"),c=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"c5e07d1e",null,!1,o["a"],void 0);n["default"]=c.exports},1382:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t("a63b")),r={data:function(){return{userinfo:{},banners:[],carList:[],currentCar:null}},onShow:function(){this.getMyAccount(),this.getCarList()},mounted:function(){this.getBanners()},methods:{openFilter:function(){this.$refs.filter.open()},bannerLoadCompleted:function(){this.setListHeight()},showImg:function(e){return this.$config.url.request+e},getBanners:function(){var e=this;this.$api.base("get","/applet/v1/homePage/getBannerList/2",{},{}).then((function(n){e.banners=n.data}))},savePainter:function(){this.$refs.painter.canvasToTempFilePathSync({fileType:"png",pathType:"url",quality:1,success:function(n){console.log(n.tempFilePath),e.showShareImageMenu({path:n.tempFilePath,success:function(){console.log("分享成功")},fail:function(e){console.error("分享失败",e)}})}})},goAddVehicle:function(){this.$app.url.goto("/subPackages/other/addLicensePlates/addLicensePlates")},goManageVehicle:function(){this.$app.url.goto("/subPackages/other/addLicensePlates/addLicensePlates")},getCarList:function(){var e=this;this.$api.base("get","/applet/v1/vehicle/default",{},{error:!1}).then((function(n){n&&n.data?(e.currentCar=n.data,e.carList=[n.data]):(e.currentCar=null,e.carList=[])})).catch((function(){e.currentCar=null,e.carList=[]}))},refund:function(){var e=this;this.$app.popup.confirm("退款按照购券记录进行逐笔退款,可能产生多笔退款到账记录,请注意查收。","退款说明").then((function(n){n&&e.$api.base("put","/applet/v1/wft/order/refundOrder",{}).then((function(n){"00000"==n.code?e.$app.popup.alert(n.data).then((function(){e.getMyAccount()})):e.$app.popup.alert(n.data)}))}))},openPrivacyContract:function(){e.openPrivacyContract()},customerService:function(){var e=this,n=this.$config.customerService;this.$app.act.customerService(n.id,n.url).catch((function(n){console.log(n),e.$app.popup.alert("客服中心失联啦,请联系管理员!")}))},getMyAccount:function(){var n=this;this.$api.base("get","/applet/v1/user/getUserInfo",{},{error:!1}).then((function(t){console.log(t),n.userinfo=t.data,n.$app.storage.set("USER_INFO",t.data),e.getStorageSync("ADMIN_USERID")&&e.request({url:"https://channel-api.zonelife.cn/zs/channel/admin/ums/umsAdminUser/distributionBindUser",method:"POST",header:{"content-type":"application/json"},data:{userId:e.getStorageSync("USER_INFO").id,adminUserId:parseInt(e.getStorageSync("ADMIN_USERID"))},success:function(e){setTimeout((function(){n.$app.storage.remove("ADMIN_USERID")}),500)},fail:function(e){console.log(e,"----错误信息")}})}))},get_firmId:function(){var e=this;this.$app.storage.get("FRIM_ID")&&this.$api.base("post","/userApi/add-firm-user?firmId="+parseInt(this.$app.storage.get("FRIM_ID")),{},{error:!1}).then((function(n){e.$app.popup.alert(n.msg),setTimeout((function(){e.$app.storage.remove("FRIM_ID")}),500)})).catch((function(n){setTimeout((function(){e.$app.storage.remove("FRIM_ID")}),500)}))},onGetPhoneNumber:function(n){var t=this;e.login({provider:"weixin",success:function(o){console.log(o,"微信登录"),o.code&&n.detail.code&&t.$api.base("post","/api/v1/auth/wx/miniapp/phone-code-login",{code:o.code,phoneCode:n.detail.code}).then((function(n){var o,r;console.log(n),e.setStorageSync(a.default.keyname.accessToken,null===n||void 0===n||null===(o=n.data)||void 0===o?void 0:o.accessToken),e.setStorageSync(a.default.keyname.refreshToken,null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.refreshToken),t.$app.storage.set("USER_INFO",n.data),t.getMyAccount(),t.get_firmId()}))},fail:function(e){}})},logout:function(){var n=this;this.$app.popup.confirm("确认退出登录?").then((function(t){t&&n.$api.base("delete","/api/v1/auth/logout").then((function(){e.removeStorageSync(a.default.keyname.accessToken),e.removeStorageSync(a.default.keyname.refreshToken),n.$app.storage.remove("USER_INFO"),e.reLaunch({url:"/pages/index/index"})}))}))}}};n.default=r}).call(this,t("df3c")["default"])},"67c3":function(e,n,t){},6976:function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={axBody:function(){return t.e("components/ax-body/ax-body").then(t.bind(null,"23fc"))},axPopup:function(){return t.e("components/ax-popup/ax-popup").then(t.bind(null,"3a74"))},lPainter:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter/l-painter")]).then(t.bind(null,"f003"))},lPainterView:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter-view/l-painter-view")]).then(t.bind(null,"efab"))},lPainterImage:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter-image/l-painter-image")]).then(t.bind(null,"c9e7"))},lPainterQrcode:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter-qrcode/l-painter-qrcode")]).then(t.bind(null,"9c94"))},lPainterText:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter-text/l-painter-text")]).then(t.bind(null,"d166"))},appNavigation:function(){return Promise.all([t.e("common/vendor"),t.e("components/app-navigation/app-navigation")]).then(t.bind(null,"e9d6"))}},a=function(){var e=this,n=e.$createElement,t=(e._self._c,e.carList.length),o=e.banners.length;e._isMounted||(e.e0=function(n){return e.$app.url.goto("/subPackages/coupon/coupons/coupons")},e.e1=function(n){return e.$app.url.goto("/subPackages/coupon/coupon-buy/coupon-buy")},e.e2=function(n,t){var o=arguments[arguments.length-1].currentTarget.dataset,a=o.eventParams||o["event-params"];t=a.item;return e.$app.url.goto(t.jumpPage)},e.e3=function(n){return e.$app.url.goto("/subPackages/coupon/recharge-log/recharge-log")},e.e4=function(n){return e.$app.url.goto("/subPackages/order/order/order")},e.e5=function(n){return e.$app.url.goto("/subPackages/other/feedback/feedback")},e.e6=function(n){e.path=n}),e.$mp.data=Object.assign({},{$root:{g0:t,g1:o}})},r=[]},8744:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("5449");o(t("3240"));var a=o(t("0275"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},e52c:function(e,n,t){"use strict";var o=t("67c3"),a=t.n(o);a.a},f8cd:function(e,n,t){"use strict";t.r(n);var o=t("1382"),a=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=a.a}},[["8744","common/runtime","common/vendor"]]]);
|