1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/setting/setting"],{"442d":function(n,e,o){"use strict";o.r(e);var t=o("b288"),u=o.n(t);for(var i in t)["default"].indexOf(i)<0&&function(n){o.d(e,n,(function(){return t[n]}))}(i);e["default"]=u.a},4799:function(n,e,o){},"57f4":function(n,e,o){"use strict";var t=o("4799"),u=o.n(t);u.a},"63ac":function(n,e,o){"use strict";o.r(e);var t=o("ce0d"),u=o("442d");for(var i in u)["default"].indexOf(i)<0&&function(n){o.d(e,n,(function(){return u[n]}))}(i);o("57f4");var a=o("f0c5"),c=Object(a["a"])(u["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);e["default"]=c.exports},a650:function(n,e,o){"use strict";(function(n,e){var t=o("4ea4");o("2ab2");t(o("66fd"));var u=t(o("63ac"));n.__webpack_require_UNI_MP_PLUGIN__=o,e(u.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},b288:function(n,e,o){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{gzhShow:!1,userInfo:{},userInfo2:{},logoffModalShow:!1,editWeixinUserInfoPopupShow:!1,form:{avatarUrl:null,nickname:""}}},onLoad:function(){},onShow:function(){this.getUserInfo()},onReady:function(){},methods:{scanHandle:function(){n.previewImage({current:"https://img.fangpiaovip.com/20221031044744-8466.png",urls:["https://img.fangpiaovip.com/20221031044744-8466.png"]})},openGzhPopup:function(){this.gzhShow=!0},closeGzhPopup:function(){var e=this,o="apiusernoticeopen",t="开启推送成功";1==this.userInfo2.is_notice&&(o="apiusernoticeclose",t="已关闭推送"),n.api.base[o]().then((function(o){n.$msg(t),e.getUserInfo(),e.gzhShow=!1}))},getUserInfo:function(){var e=this;n.api.base.apiuserinfo().then((function(o){n.setStorageSync("MD_userInfo2",o),e.userInfo2=o||{}}))},pageTo:function(e){"dev"!==e?n.navigateTo({url:e}):n.$msg("开发中~")},getphonenumber:function(e){var o=e.detail||{},t=this;n.login({success:function(e){e.code?n.api.base.apiuserbindwechat({code:e.code,phone_code:o.code}).then((function(n){t.getUserInfo()})).catch((function(n){console.log(n)})):console.log("登录失败!"+e.errMsg)}})},bindWeixinAvatar:function(n){var e=n.detail.avatarUrl;(void 0).form.avatarUrl=e},updateUserInfoByWeixin:function(){},checkUpdate:function(){var e=n.getUpdateManager();e.onCheckForUpdate((function(e){console.log(e.hasUpdate),e.hasUpdate||n.$msg("当前已是最新版本")})),e.onUpdateReady((function(o){n.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(n){n.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(n){}))},logout:function(){n.showModal({title:"提示",content:"确定退出登录?",success:function(e){e.confirm&&(n.removeStorageSync("MD_userInfo"),n.removeStorageSync("MD_token"),n.reLaunch({url:"/pages/index/index"}))}})}}};e.default=o}).call(this,o("543d")["default"])},ce0d:function(n,e,o){"use strict";o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return t}));var t={uIcon:function(){return o.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(o.bind(null,"ccaa"))},uButton:function(){return o.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(o.bind(null,"51b1b"))},uPopup:function(){return o.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(o.bind(null,"7401"))},uAvatar:function(){return o.e("uni_modules/vk-uview-ui/components/u-avatar/u-avatar").then(o.bind(null,"c634"))},uInput:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(o.bind(null,"830c"))},uModal:function(){return o.e("uni_modules/vk-uview-ui/components/u-modal/u-modal").then(o.bind(null,"85bf"))}},u=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.editWeixinUserInfoPopupShow=!1},n.e1=function(e){n.logoffModalShow=!1},n.e2=function(e){return n.uni.toast("已提交注销申请")})},i=[]}},[["a650","common/runtime","common/vendor"]]]);
|