| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{"25fb":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={axBody:function(){return t.e("components/ax-body/ax-body").then(t.bind(null,"e199"))},axPopup:function(){return t.e("components/ax-popup/ax-popup").then(t.bind(null,"49c3"))},lPainter:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/lime-painter/components/l-painter/l-painter")]).then(t.bind(null,"5fdc"))},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,"9629"))},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,"d0c8"))},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,"3da7"))},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,"46f3"))},appNavigation:function(){return Promise.all([t.e("common/vendor"),t.e("components/app-navigation/app-navigation")]).then(t.bind(null,"bb86"))}},a=function(){var e=this,n=e.$createElement,t=(e._self._c,e.banners.length);e._isMounted||(e.e0=function(n){return e.$app.url.goto("/pages/coupons/coupons")},e.e1=function(n){return e.$app.url.goto("/pages/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("/pages/recharge-log/recharge-log")},e.e4=function(n){return e.$app.url.goto("/pages/order/order")},e.e5=function(n){return e.$app.url.goto("/pages/feedback/feedback")},e.e6=function(n){e.path=n}),e.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"3b20":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("4874")),i={data:function(){return{userinfo:{},playbil_img:"https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/XVsEVGuCCbNv4aee36cc2f76e7050f62ebad3080ad88.jpg/1.jpg",banners:[]}},onShow:function(){this.getMyAccount()},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)}})}})},refund:function(){var e=this;this.$app.popup.confirm("退款按照购券记录进行逐笔退款,可能产生多笔退款到账记录,请注意查收。","退款说明").then((function(n){n&&e.$api.base("put","/applet/v1/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,i;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===(i=n.data)||void 0===i?void 0:i.refreshToken),t.$app.storage.set("USER_INFO",n.data),t.getMyAccount(),t.get_firmId()}))},fail:function(e){}})}}};n.default=i}).call(this,t("df3c")["default"])},"8a19":function(e,n,t){"use strict";t.r(n);var o=t("25fb"),a=t("edeb");for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);t("c8af");var r=t("828b"),u=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"1108d024",null,!1,o["a"],void 0);n["default"]=u.exports},9016:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("6a42");o(t("3240"));var a=o(t("8a19"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},bd6f:function(e,n,t){},c8af:function(e,n,t){"use strict";var o=t("bd6f"),a=t.n(o);a.a},edeb:function(e,n,t){"use strict";t.r(n);var o=t("3b20"),a=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=a.a}},[["9016","common/runtime","common/vendor"]]]);
|