1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/job/install.js'
- export default {
- data() {
- return {
- form: {
- name: '',
- sex: '',
- value:''
- },
- titleStyle:{
-
- fontWeight:'bold',
- },
-
- }
- },
- methods: {
- logout(){
-
- uni.showLoading({
- title:"加载中",mask:true,
- })
- API.logout().then((res)=>{
-
- this.carhelp.setToken("");
- this.carhelp.set("token_tdate","")
- this.carhelp.setPersonInfo("");
- uni.reLaunch({
- url: '/pages/job/index/index'
- });
-
- uni.hideLoading()
- }).catch(error => {
-
- uni.showToast({
- title:error
- })
- })
-
- },
- signOut(){
- var _this=this;
- uni.showModal({
- title:"提示",
- content:"确认是否退出",
- success: (res) => {
-
- if (res.confirm) {
- _this.logout()
- }
- }
- })
-
- },
- },
- onReady(){
- //document.getElementsByTagName('uni-page-wrapper')[0].style="background-color: #eff1f7;"
-
- }
- }
|