1 line
3.7 KiB
JavaScript
1 line
3.7 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/profile/profile"],{"0ab2":function(e,t,n){"use strict";var a=n("5314"),r=n.n(a);r.a},2979:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement;this._self._c},r=[]},"464b":function(e,t,n){"use strict";(function(e){var a=n("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("bbfb"),o=n("dc92"),i=n("db68"),u=n("0c59"),f=l(n("fef2")),s=l(n("7651"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var p={mixins:[r.pageJumps,f.pageJumps,f.statisticalPageJumps,s.pageJumps],components:{uniTabbar:function(){n.e("components/tabbar/tabbar").then(function(){return resolve(n("c4bc"))}.bind(null,n)).catch(n.oe)}},data:function(){return{userInfo:{},roleType:1,rules:[],tipNumber:null,BASE_IMG_URL:u.BASE_IMG_URL,info:{}}},onShow:function(){this.roleType=e.getStorageSync("roleType"),this.rules=e.getStorageSync("rules"),this.getTip()},methods:{getTip:function(){var t=this;(0,i.netAgentList)().then((function(n){e.setStorageSync("token",n.data.userinfo.token),e.setStorageSync("roleType",n.data.userinfo.role_type),e.setStorageSync("rules",n.data.userinfo.rules),t.info=n.data,t.tipNumber=n.data.total,t.getInfo()}))},getInfo:function(){var e=this;(0,o.netGetUserInfo)().then((function(t){e.userInfo=t.data}))},toProductList:function(){e.navigateTo({url:"/pagesA/product/index"})},jumpStaffList:function(){e.navigateTo({url:"/pagesA/profile/staff/stafflist/index"})},jumpExamineStaff:function(){e.navigateTo({url:"/pagesA/profile/staff/examinestaff/index"})},toEnterprise:function(t){console.log(t,"id"),e.navigateTo({url:"/pagesA/profile/enterpriseInfo/enterpriseInfo?id?"+t})},toSet:function(){e.navigateTo({url:"/pagesA/profile/set"})},toPayment:function(){e.navigateTo({url:"/pagesA/payment/index"})},toPayPlan:function(){e.navigateTo({url:"/pagesA/payplan/index"})},toCostList:function(){e.navigateTo({url:"/pagesA/cost/index"})},toApproveManage:function(){e.navigateTo({url:"/pagesA/work/approvelManage/index"})},toTarget:function(){2!=this.roleType||-1==this.rules.indexOf("all")&&-1==this.rules.indexOf("2")?e.navigateTo({url:"/pagesA/crm/salesTarget/myTarget"}):e.navigateTo({url:"/pagesA/crm/salesTarget/salesTarget"})},achieveRank:function(){e.navigateTo({url:"/pagesA/crm/statisticalFrom/achieveRank"})}}};t.default=p}).call(this,n("543d")["default"])},5314:function(e,t,n){},"735b":function(e,t,n){"use strict";n.r(t);var a=n("2979"),r=n("849a");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("0ab2");var i=n("f0c5"),u=Object(i["a"])(r["default"],a["b"],a["c"],!1,null,"5917a8f2",null,!1,a["a"],void 0);t["default"]=u.exports},"849a":function(e,t,n){"use strict";n.r(t);var a=n("464b"),r=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},b6db:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("8886");a(n("66fd"));var r=a(n("735b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["b6db","common/runtime","common/vendor"]]]); |