You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.7 KiB
81 lines
1.7 KiB
<template>
|
|
<view class="app-container">
|
|
<uni-row class="demo-uni-row" :width="nvueWidth">
|
|
<uni-col :span="16">
|
|
<view>汇融云眼贷后监管平台</view>
|
|
</uni-col>
|
|
<uni-col :span="8">
|
|
<view>设置</view>
|
|
</uni-col>
|
|
</uni-row>
|
|
<uni-grid :column="2" style="margin-top: 20px;">
|
|
<uni-grid-item>
|
|
<button type="default">入库登记</button>
|
|
</uni-grid-item>
|
|
<uni-grid-item>
|
|
<button type="default">出库登记</button>
|
|
</uni-grid-item>
|
|
<uni-grid-item>
|
|
<button type="default">油罐读数</button>
|
|
</uni-grid-item>
|
|
<uni-grid-item>
|
|
<button type="default">操作记录</button>
|
|
</uni-grid-item>
|
|
</uni-grid>
|
|
<uni-col :span="24" style="margin-top: 20px;">
|
|
<view>个人</view>
|
|
</uni-col>
|
|
</uni-row>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
href: '',
|
|
gv: {},
|
|
resinfo: ''
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.initData()
|
|
},
|
|
methods: {
|
|
initData() {
|
|
this.gv = getApp().globalData
|
|
console.log('hasLogin', this.$store.getters.hasLogin)
|
|
console.log('token', this.$store.getters.token)
|
|
console.log('uinfo', this.$store.getters.userinfo)
|
|
console.log('uinfo-id', this.$store.getters.userinfo.userid)
|
|
console.log('uinfo-name', this.$store.getters.userinfo.name)
|
|
getApp().globalData.uinfo = this.$store.getters.userinfo
|
|
},
|
|
sayhello() {
|
|
this.$api.sayhello({
|
|
name: 'mynameislll'
|
|
}).then(res => {
|
|
this.resinfo = res
|
|
})
|
|
},
|
|
logout() {
|
|
this.$store.dispatch('logout').then(() => {
|
|
console.log('NNNN:退出 ')
|
|
})
|
|
},
|
|
gologin() {
|
|
uni.reLaunch({
|
|
url: '/pages/login/index'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.container {
|
|
padding: 20px;
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
}
|
|
</style>
|