获取code传回给后端,后端做处理了吧,获取openId,就能取到微信用户信息
哔哩哔哩小程序是怎么办到不授权登录只授权手机号就拿到手机号码的?官方文档描述的是先弹出授权登录获取code,然后弹出授权手机号,才能用code解密手机号 但是我发现哔哩哔哩小程序只弹出来了授权手机号,就成功登录了,什么原理?
2021-07-08渲染层的问题,可以尝试一下把视频的显示度写成z-index: -1
仿抖音视频滚动, 在视频左下角的文字在苹果真机上第一屏显示,滚动到二屏文字显示不出来<template> <view class="preview_view_video"> <!-- 预览视频 --> <swiper class="preview_swiper" :autoplay="false" vertical="true"> <swiper-item class="preview_swiper_item"> <video class="video_box" src="https://res.zoumakeji.com/small_001421acfbe4a4b4e17bceed43483aca.mp4" controls></video> <!-- <view class="swiper-item" class="">dd</view> --> <view class="video_title">你好</view> </swiper-item> <swiper-item> <video class="video_box" src="https://res.zoumakeji.com/small_7ae5463302e1f6fd9bb051a645736d70.mp4" controls></video> <view class="video_title">Hi,goods moiuning</view> </swiper-item> <swiper-item> <video class="video_box" src="https://res.zoumakeji.com/small_6593b41f1ee424b04ad077e37192030d.mp4" controls></video> <view class="video_title">美丽的课堂</view> </swiper-item> </swiper> </view> </template> <script> export default { data () { return {} } } </script> <style lang="scss" scoped> .preview_view_video{ width: 100%; height: 100vh; color: #fff; overflow: hidden; background-color: #000; .preview_swiper{ width: 100%; height: 100vh; .video_box{ width: 100%; height: 100vh; display: block !important; } .video_title{ position: absolute; bottom: 20rpx; left: 20rpx; font-size: 36rpx; z-index: 999; } } } </style> [图片] [视频]
2021-07-05