| | |
| | | <template>
|
| | | <view class="index">
|
| | | <!-- <web-view v-if="show" @onPostMessage="onMessage" :src="'https://dmtest.ahapp.net/doumeeplant_h5/#/appletLogin?code=' + code"></web-view> -->
|
| | | <myTabbar :index="0" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import myTabbar from "@/components/myTabber.vue" |
| | | export default {
|
| | | components: {
|
| | | myTabbar
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | code: '',
|
| | | show: false
|
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | var that = this
|
| | | uni.login({
|
| | | provider: 'weixin',
|
| | | success: function (loginRes) {
|
| | | // console.log(loginRes);
|
| | | that.code = loginRes.code
|
| | | that.show = true
|
| | | }
|
| | | });
|
| | | },
|
| | | methods: {
|
| | | onMessage(e) {
|
| | | console.log('12345654321')
|
| | | }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | | .index {
|
| | | width: 100vw;
|
| | | height: 100vh;
|
| | | }
|
| | | </style> |