12345678910111213141516171819202122232425262728293031323334353637 |
- <script>
- export default {
- globalData:{
- commonHttp:'http://192.168.1.151:8080/',
- commonImage:'http://192.168.1.151:8080'
- },
- onLaunch: function() {
- let _this = this
- // uni.login({
- // provider: 'weixin', //使用微信登录
- // success: function (loginRes) {
- // _this.$http.post('appraisal/WeiXin/getOpenId',{code:loginRes.code}).then(res=>{
- // uni.setStorageSync('token',res.data.token);
- // uni.setStorageSync('openId',res.data.user.openId);
- // uni.setStorageSync('phonenumber',res.data.user.phonenumber);
- // uni.setStorageSync('userName',res.data.user.userName);
- // uni.setStorageSync('userId',res.data.user.userId);
- // }).catch(err=>{
-
- // })
- // }
- // });
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uview-ui/index.scss";
- </style>
|