12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/mine"],{209:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(92));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},92:function(e,n,t){"use strict";t.r(n);var o=t(93),r=t(95);for(var s in r)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(s);t(97);var i,a=t(36),u=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"dcbcfe34",null,!1,o["components"],i);u.options.__file="pages/mine/mine.vue",n["default"]=u.exports},93:function(e,n,t){"use strict";t.r(n);var o=t(94);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},94:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return s})),t.d(n,"components",(function(){return o}));try{o={tnButton:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-button/tn-button")]).then(t.bind(null,319))},tnListCell:function(){return Promise.all([t.e("common/vendor"),t.e("tuniao-ui/components/tn-list-cell/tn-list-cell")]).then(t.bind(null,326))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.showLogin?null:e.personInfo.userRealName||e.personInfo.contactNickName||(e.personInfo.userName?"用户"+e.personInfo.userName.slice(-4):"")||"未登录");e.$mp.data=Object.assign({},{$root:{g0:t}})},s=!1,i=[];r._withStripped=!0},95:function(e,n,t){"use strict";t.r(n);var o=t(96),r=t.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=r.a},96:function(e,n,t){"use strict";(function(e,o){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=r(t(66)),i=t(74),a={name:"Mine",data:function(){return{personInfo:e.getStorageSync("userInfo")?JSON.parse(e.getStorageSync("userInfo")):{},showLogin:!1,msgType:"",shareNum:0,needNum:0,wxFontSize:17}},onReady:function(){var n=this,t=o.getAppBaseInfo();this.wxFontSize=e.getStorageSync("fontSize")||t.fontSizeSetting||17,console.warn(20===this.wxFontSize),this.$nextTick((function(){if(!e.getStorageSync("userNo"))return n.showLogin=!0,!1;e.getStorageSync("loginOut")||n.getContentRectInfo()}))},methods:{fetchData:function(){if(!e.getStorageSync("userNo"))return this.showLogin=!0,!1;e.getStorageSync("loginOut")||this.getContentRectInfo()},getContentRectInfo:function(){var n=this;s.default.post("/slbWxma/getPersonlInfo",{}).then((function(t){console.warn(t),t&&t.success&&(n.personInfo=t.resultMap.userInfo||{},e.setStorageSync("userInfo",JSON.stringify(t.resultMap.userInfo)),n.showLogin=!1),console.warn(t)}))},loadNum:function(){var e=this;s.default.post("/slbResourceDemand/show/my",{}).then((function(n){n&&n.resultMap&&(e.needNum=n.resultMap.passNum||0)}))},loadNum2:function(){var e=this;s.default.post("/slbResourceShare/show/my",{}).then((function(n){n&&n.resultMap&&(e.shareNum=n.resultMap.passNum||0)}))},switchChange:function(n){var t=this,o=this.personInfo;o.smsNotice=n.detail.value?1:0,s.default.post("/slbWxma/changePersonlInfo",{userInfo:JSON.stringify(o)},{headers:{"Content-Type":"application/json"}}).then((function(o){o.success&&(e.showToast({title:n.detail.value?"开启成功":"关闭成功",icon:"none"}),t.getContentRectInfo())}))},showFont:function(){var n=this;e.showActionSheet({itemList:["跟随微信","小","中","大"],success:function(t){if(1==t.tapIndex&&(e.setStorageSync("fontSize",16),n.wxFontSize=16,e.reLaunch({url:"/pages/index/index?index=3"})),2==t.tapIndex&&(e.setStorageSync("fontSize",17),n.wxFontSize=17,e.reLaunch({url:"/pages/index/index?index=3"})),3==t.tapIndex&&(e.setStorageSync("fontSize",20),n.wxFontSize=20,e.reLaunch({url:"/pages/index/index?index=3"})),0==t.tapIndex){var r=o.getAppBaseInfo();e.removeStorageSync("fontSize"),n.wxFontSize=r.fontSizeSetting||17,e.reLaunch({url:"/pages/index/index?index=3"})}},fail:function(e){console.log(e.errMsg)}})},tn:function(n){if(!e.getStorageSync("userNo"))return e.setStorageSync("nextPage",n),e.navigateTo({url:"/pages/login/login"}),!1;e.navigateTo({url:n})},toLogin:function(n){e.navigateTo({url:n})},showFeedback:function(){e.navigateTo({url:"/pages/mine/addFeed"})},showInfo:function(){e.navigateTo({url:"/pages/login/info?counted=1"})},showInfo2:function(){e.navigateTo({url:"/pages/webview/web-view?url="+encodeURIComponent("https://slb-m.lx-device.com/webview?title=隐私协议&url=https://oss.lx-device.com/userFeedback/1735201139460G1J.docx")})},showAbout:function(){e.navigateTo({url:"/pages/mine/about"})},showLog:function(){var e=this;(0,i.uniShowModal)("确定注销账户吗?","",{showCancel:!0,success:function(n){console.error(n),n.confirm&&e.logOff()}})},showLogout:function(){var n=this;(0,i.uniShowModal)("确定退出登录吗?","",{showCancel:!0,success:function(t){console.error(t),t.confirm&&(e.setStorageSync("loginStatus","false"),e.setStorageSync("loginOut","true"),e.removeStorageSync("userMap"),e.removeStorageSync("userNo"),e.removeStorageSync("userInfo"),n.showLogin=!0,n.shareNum=0,n.needNum=0,n.personInfo={})}})},logOff:function(){var n=this;s.default.post("/slbWxma/logOff",{userNo:e.getStorageSync("userNo")}).then((function(t){t&&t.success?(e.setStorageSync("loginStatus","false"),e.setStorageSync("loginOut","true"),e.removeStorageSync("userMap"),e.removeStorageSync("userNo"),e.removeStorageSync("userInfo"),n.showLogin=!0,n.personInfo={},e.showToast({title:"注销成功",icon:"none"}),e.reLaunch({url:"/pages/index/index"})):e.showToast({title:t.msg,icon:"none"})}))}}};n.default=a}).call(this,t(2)["default"],t(1)["default"])},97:function(e,n,t){"use strict";t.r(n);var o=t(98),r=t.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=r.a},98:function(e,n,t){}},[[209,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map
|