12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <style lang="scss">
- /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
- @import "@/uni_modules/uview-ui/index.scss";
-
- </style>
- <script>
- import * as API from '@/apis/weixin.js'
-
- import './config/.env.js'
- export default {
- onLaunch: function() {
- console.log('App Launch')
-
- var getOpenId =this.carhelp.getOpenId()
- if(getOpenId){
-
- // #ifdef MP-WEIXIN
-
-
- API.saveLoginRecord({
- openId:getOpenId
- }).then((res) => {
- console.log('App Launch 记录用户登陆')
- }).catch(error => {
- console.log('App Launch 记录用户登陆 失败')
- })
- // #endif
- }
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- html,body{
- margin: 0;
- padding: 0;
- font-family: 'PingFang Regular';
- }
- /* 导航栏返回文字 */
- /deep/.u-back-text{
- font-size: 36rpx !important;
- margin-left: 16rpx;
- }
- </style>
|