1 line
5.2 KiB
JavaScript
1 line
5.2 KiB
JavaScript
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/detection/my"],{"0fd0":function(e,t,n){"use strict";var o=n("2772"),a=n.n(o);a.a},2772:function(e,t,n){},6710:function(e,t,n){"use strict";n.r(t);var o=n("b8ea"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=a.a},6984: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(){return o}));var o={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"ee17"))},uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"f210"))},uniPopupDialog:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(n.bind(null,"82b2"))},tabBar:function(){return n.e("components/tabBar/tabBar").then(n.bind(null,"bdb8"))}},a=function(){var e=this.$createElement;this._self._c},r=[]},"6e33":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("c55e");o(n("3240"));var a=o(n("d545"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b8ea:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("7eb4")),r=o(n("ee10")),u=o(n("1fab")),i=n("f6da"),c=(o(n("f76e")),{data:function(){return{indicatorDots:!1,openRz:"0",autoplay:!0,interval:5e3,duration:100,msgType:"success",realName:"用户昵称",userinfo:{},carlist:[],carobj:{nextInspectionDate:"",nextMaintenanceDate:""},msg:"3",value:"",baseUrl:this.$baseUrl}},mounted:function(){},onShow:function(){this.getmy(),this.getcarlist()},components:{tabBar:function(){n.e("components/detection/tabBar").then(function(){return resolve(n("f254"))}.bind(null,n)).catch(n.oe)}},methods:{getcarlist:function(){var e=this;return(0,r.default)(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if((0,i.getToken)()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,u.default)({url:"/appInspection/userOwn/getCars",method:"get"});case 4:n=t.sent,e.carlist=n.data,console.log(e.carlist);case 7:case"end":return t.stop()}}),t)})))()},onChooseavatar:function(t){var n=this;e.uploadFile({url:this.baseUrl+"/system/user/profile/avatar",filePath:t.detail.avatarUrl,name:"avatarfile",header:{Authorization:"Bearer "+(0,i.getToken)()},success:function(e){console.log(e),200==e.statusCode&&n.getmy()}})},updateProfile:function(){var t=this;return(0,r.default)(a.default.mark((function n(){var o;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(""!=t.realName){n.next=2;break}return n.abrupt("return",e.showToast({icon:"error",title:"请填写昵称"}));case 2:return n.next=4,(0,u.default)({method:"PUT",url:"/system/user/profile/updateNickName",data:{realName:t.realName}});case 4:o=n.sent,200==o.code&&(e.showToast({title:"昵称修改成功"}),t.getmy());case 6:case"end":return n.stop()}}),n)})))()},outoflogin:function(){e.clearStorageSync(),e.reLaunch({url:"/pages/detection/detection"})},getmy:function(){var e=this;return(0,r.default)(a.default.mark((function t(){var n,o;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if((0,i.getToken)()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,u.default)({url:"/rescue/getAppInfo",method:"get"});case 4:return n=t.sent,console.log("个人信息",n),e.userinfo=n.data.user,e.realName=n.data.user.nickname,e.openRz=n.data.openRz,t.next=11,(0,u.default)({url:"/system/userCar/getUserCar",method:"get"});case 11:o=t.sent,e.carobj=o.data,console.log("车辆信息",e.carobj);case 14:case"end":return t.stop()}}),t)})))()},goorder:function(t){e.navigateTo({url:"/pages/detection/my-order?id="+t})},goreservation:function(){e.navigateTo({url:"/pages/detection/my-reservation"})},goshang:function(){e.navigateTo({url:"/pages/ruzhu/ruzhu"})},gologin
|