1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view class="pcLogins">
- <u-navbar :is-back="false" title="登录" :border-bottom="false" title-color="#333333" back-icon-color="#ffffff">
- <view class="slot-wrap">
- <image src="/static/logo2.png" style="width: 178rpx;height: 31rpx;margin-left: 30rpx;"></image>
- </view>
- </u-navbar>
- <u-line color="#D6D6DB" />
- <view class="contents">
- <!-- 正文内容 -->
- <text>登录后您可在网页端继续浏览课程</text>
- <view class="login_bt" @click="pcLogin()">微信登录</view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- scanCode: '', // 获取扫码的路径最后面的6位标识码
- }
- },
- onLoad(query) {
- console.log('扫描参数', query)
- const q = decodeURIComponent(query.q)
- this.scanCode = q.substring(q.length - 6)
- // const time = parseInt(query.scancode_time)
- console.log('扫描后得:', q, this.scanCode)
- },
- methods: {
- pcLogin() {
- console.log('跳转')
- uni.navigateTo({
- url: '/pages4/login/login?scanCode=' + this.scanCode
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .contents {
- width: 100%;
- height: 100%;
- text-align: center;
- .login_bt {
- width: 180rpx;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- background: #ddd;
- }
- }
- </style>
|