cultivationApp/App.vue

61 lines
1.0 KiB
Vue
Raw Normal View History

2023-10-17 11:00:41 +08:00
<script>
2023-10-25 19:55:18 +08:00
import {
userInfoStore
} from '@/store/userInfo'
2023-10-27 19:26:03 +08:00
import {
userInfoAPI
} from "@/api/plant.js"
2023-10-17 11:00:41 +08:00
export default {
onLaunch: function() {
2023-10-25 19:55:18 +08:00
const userInfo = userInfoStore()
2023-10-27 19:26:03 +08:00
userInfoAPI({
2023-10-30 19:09:40 +08:00
user_id: 307,
user_type: 3
2023-10-27 19:26:03 +08:00
}).then(res => {
userInfo.saveUserInfo(res.data)
})
2023-10-17 16:02:55 +08:00
uni.setStorageSync("SY_TOKEN", "dfdf4564557445df4df")
2023-10-17 11:00:41 +08:00
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
2023-10-30 19:09:40 +08:00
// ngrok http 5173
2023-10-17 11:00:41 +08:00
</script>
2023-10-17 16:02:55 +08:00
<style lang="scss">
@import "uview-plus/index.scss";
2023-10-20 18:45:15 +08:00
.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;
}
}
2023-11-21 18:54:33 +08:00
// .content {
// padding: 20rpx 28.5rpx;
// background-color: #F4F4F4;
// min-height: 100vh;
// }
2023-10-23 09:00:12 +08:00
2023-10-23 17:57:19 +08:00
.more-jt {
display: flex;
align-items: center;
}
2023-10-17 11:00:41 +08:00
/*每个页面公共css */
2023-10-17 16:02:55 +08:00
</style>