mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/App.vue

60 lines
997 B
Vue

<script>
import {
userInfoStore
} from '@/store/userInfo'
import {
userInfoAPI
} from "@/api/plant.js"
export default {
onLaunch: function() {
const userInfo = userInfoStore()
userInfoAPI({
user_id: 307
}).then(res => {
userInfo.saveUserInfo(res.data)
})
uni.setStorageSync("SY_TOKEN", "dfdf4564557445df4df")
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
@import "uview-plus/index.scss";
.card {
position: relative;
width: 693.93rpx;
margin: auto;
background-color: #fff;
box-sizing: border-box;
padding: 20rpx;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
margin-bottom: 40rpx;
font-size: 29.79rpx;
.card-li {
margin-bottom: 17rpx;
}
}
.content {
padding: 20rpx 28.5rpx;
background-color: #F4F4F4;
min-height: 100vh;
}
.more-jt {
display: flex;
align-items: center;
}
/*每个页面公共css */
</style>