| | |
| | | // 判断有无用户信息 |
| | | if (res.data.member) { |
| | | await that.$store.commit('setUserInfo', res.data.member) |
| | | await that.$store.commit('setOpenId', res.data.member.openid) |
| | | await that.$store.commit('setOpenId', res.data.member.openId) |
| | | } |
| | | // 设置定位 |
| | | await that.checkLocationAuth() |
| | |
| | | success: function (addr) { |
| | | const locParam = { latitude: addr.latitude, longitude: addr.longitude }; |
| | | const qqmapsdk = new QQMapWX({ |
| | | key: 'FJKBZ-W5BW3-QGV3M-OEJKT-3H5K7-7FFPM' |
| | | key: 'HEIBZ-QJLLM-SZ36X-6ZBHI-S6Y2J-S6FND' |
| | | }); |
| | | // 腾讯地图逆地理编码 |
| | | qqmapsdk.reverseGeocoder({ |
| | | locParam, |
| | | success: function(res) { |
| | | console.log(res, '==================获取地址'); |
| | | that.$store.commit('setPosition', ) |
| | | that.$store.commit('setPosition', res) |
| | | that.$isResolve() |
| | | }, |
| | | fail: (err) => { |
| | |
| | | |
| | | <style lang="scss"> |
| | | @import "uview-ui/index.scss"; |
| | | </style> |
| | | /*每个页面公共css */ |
| | | .tc { |
| | | width: calc(100vw - 148rpx); |
| | | .tc-btn { |
| | | width: 100%; |
| | | height: 102rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | border-top: 1rpx solid #EEEEEE; |
| | | .tc-btn-item { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-weight: 400; |
| | | font-size: 32rpx; |
| | | color: #666666; |
| | | border-right: 1rpx solid #EEEEEE; |
| | | &:last-child { |
| | | border: none !important; |
| | | } |
| | | } |
| | | } |
| | | .tc-contemt { |
| | | width: 100%; |
| | | padding: 40rpx 0; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | .tc-contemt-title { |
| | | width: 100%; |
| | | text-align: center; |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #111111; |
| | | } |
| | | .tc-contemt-nr { |
| | | width: 472rpx; |
| | | text-align: center; |
| | | font-weight: 400; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | margin-top: 40rpx; |
| | | } |
| | | } |
| | | } |
| | | </style> |