123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template>
- <view class="container">
- <view class="box" v-if="userInfo">
- <view class="">
- 手机号:{{userInfo.mobile}}
- </view>
- <view class="">
- 唯一身份标识:{{userInfo.yige_open_id}}
- </view>
- <view class="">
- 姓名:{{userInfo.real_name}}
- </view>
- <view class="">
- 身份证号:{{userInfo.identity_card}}
- </view>
- <view class="">
- 昵称:{{userInfo.nickname}}
- </view>
- <view class="">
- 头像{{userInfo.head_photo}}
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- userInfo: null
- }
- },
- onLoad(options) {
- console.log(options, 'redirect')
- if (options.ticket) {
- this.getUserInfo(options)
- }
- },
- methods: {
- getUserInfo(data) {
- this.$http.post('/auth/getUserByTicket', data).then(res => {
- if (res.code == 200) {
- this.userInfo = res.data
- console.log('userInfo===>', res)
- }
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .container {
- width: 100vw;
- height: 100vh;
- overflow: hidden;
- background-size: contain;
- position: relative;
- .box {
- padding: 30rpx;
- padding-top: 200rpx;
- word-break: break-all;
- }
- }
- </style>
|