61 lines
1.0 KiB
Vue
61 lines
1.0 KiB
Vue
<script>
|
|
import {
|
|
userInfoStore
|
|
} from '@/store/userInfo'
|
|
import {
|
|
userInfoAPI
|
|
} from "@/api/plant.js"
|
|
export default {
|
|
onLaunch: function() {
|
|
const userInfo = userInfoStore()
|
|
userInfoAPI({
|
|
user_id: 307,
|
|
user_type: 3
|
|
}).then(res => {
|
|
userInfo.saveUserInfo(res.data)
|
|
})
|
|
uni.setStorageSync("SY_TOKEN", "dfdf4564557445df4df")
|
|
},
|
|
onShow: function() {
|
|
console.log('App Show')
|
|
},
|
|
onHide: function() {
|
|
console.log('App Hide')
|
|
}
|
|
}
|
|
// ngrok http 5173
|
|
</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> |