From 7c7bc3bea984f1e2fcbc18db0d7f23fd47fe1acf Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Thu, 28 Apr 2022 19:14:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 40 +++------------------------------------- pages/middle/index.wxml | 1 + pages/middle/index.wxss | 8 +++++--- 3 files changed, 9 insertions(+), 40 deletions(-) diff --git a/app.js b/app.js index b113b1f..05a53f9 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,7 @@ App({ useOpenid: true, // 使用openid进行统计时,是否授权友盟自动获取Openid, // 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret - autoGetOpenid: false, + autoGetOpenid: true, debug: true, //是否打开调试模式 uploadUserInfo: true // 自动上传用户信息,设为false取消上传,默认为false }, @@ -19,44 +19,10 @@ App({ wx.setStorageSync('logs', logs) }, globalData: { - // httpurl: 'https://cktest.2weisou.com/meta/', // 生产 - httpurl: 'http://192.168.1.117:9998/',// 柏伟 + httpurl: 'https://cktest.2weisou.com/meta/', // 生产 + // httpurl: 'http://192.168.1.117:9998/',// 柏伟 userInfo: null, token: '', gameurl: ''// 游戏链接 }, - //登录-获取token - loginGettoken(){ - let that = this - wx.setStorageSync('token', '') - wx.setStorageSync('userInfo', '') - wx.login({ - success (res) { - if (res.code) { - //发起网络请求 - wx.request({ - url:that.globalData.httpurl+ 'auth/mobile/token/social?grant_type=mobil&mobile=MINI_C@'+res.code+'@'+'', - method: "POST", - data: { - }, - header: { - Authorization: "Basic YXBwbGV0OmFwcGxldA==", - }, - success(res1) { - if (res1.statusCode == 200) { - that.globalData.token = res1.data.access_token - that.globalData.userInfo = res1.data.user_info - // console.log(that.globalData.token) - // console.log(that.globalData.userInfo) - wx.setStorageSync('token', res1.data.access_token) - wx.setStorageSync('userInfo', res1.data.user_info) - } - } - }) - } else { - console.log('登录失败!' + res.errMsg) - } - } - }) - }, }) diff --git a/pages/middle/index.wxml b/pages/middle/index.wxml index 73ff1f2..9e58f68 100644 --- a/pages/middle/index.wxml +++ b/pages/middle/index.wxml @@ -1,3 +1,4 @@ 点我购好房 + \ No newline at end of file diff --git a/pages/middle/index.wxss b/pages/middle/index.wxss index ffa2383..b1f05e6 100644 --- a/pages/middle/index.wxss +++ b/pages/middle/index.wxss @@ -1,13 +1,12 @@ .container{ width: 750rpx; min-height: 100vh; - background: url('https://static.quhouse.com/523c2ac0eb6c4759a38d19bee4838d4e.png') no-repeat top center #FFBE49; - background-size: cover; + background: url('https://static.quhouse.com/523c2ac0eb6c4759a38d19bee4838d4e.png') no-repeat #FFBE49; + background-size: 750rpx 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; - padding-bottom: 200rpx; } .my-btn{ width: 394rpx; @@ -21,4 +20,7 @@ font-weight: 500; color: #FFFFFF; box-shadow: 0 3rpx 5rpx #fff; +} +.bottom{ +height: 180rpx; } \ No newline at end of file