iPhone 8 iOS 13.6 页面白屏 可以调接口
<view class="container">
<view id="luckdraw_box">
<view id="luckdraw_back">
<image style='transform:rotate({{ change_angle}}deg)' mode="scaleToFill" src="/resources/images/circle.png"></image>
</view>
<view id="luckdraw_pointer" >
<image mode="scaleToFill" bindtap='luckDrawStart' src="/resources/images/needle.png"></image>
<button wx:if="{{!isRegisted}}" open-type="getPhoneNumber" class="hide-phone"
bindgetphonenumber="getPhoneNumber">注册</button>
</view>
</view>
</view>
wxss
#luckdraw_box{
width:531rpx;
height:531rpx;
margin:0 auto;
position:relative;
}
#luckdraw_back{
width: 100%;
height: 100%;
}
#luckdraw_back image{
display: block;
width: 100%;
height: 100%;
transform-origin:center center;
}
#luckdraw_pointer{
width:174rpx;
height:228rpx;
position:absolute;
left:178.5rpx;
z-index:999;
top:132.5rpx;
}
#luckdraw_pointer image{
display: block;
width: 100%;
height: 100%;
}
#luckdraw_box {
margin-top: 200rpx;
}
.hide-phone{
position: relative;
top: -145rpx;
opacity: 0;
}
图片没法访问,建议写个可复现问题的代码片段。
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html