都2024年了,还是偏上,webview加载的h5页面 用了vertical-align,align-items: center,line-height ,padding方式等全都无效,ide的模拟器上没问题,一上真机就完蛋华为苹果都显示偏上,真垃圾!
文字垂直居中在Android机型表现不一致[图片] 类似图片文字,在模拟器中设置文字垂直居中,垂直效果能实现。在ios机型上也是有效果的,但是在安卓系统的手机上,垂直居中效果未能实现,不同安卓手机会出现偏上或者偏下效果。求指点该如何设置样式,确保能适配不同的安卓机型?
11-12真服了腾x振群狗卵子
微信开发者工具打不开项目,Current Wechat version do not supportCurrent Wechat version do not support asynchronous getSystemInfo. "wx.getSystemInfoAsync" will be finished by synchronous implementation.这种情况如何解决,重新安装了微信开发者工具也是这个情况。 [图片]
10-30PHP完整代码(2023年6月7日 11:32:37): <?php $dug = true; //微信小程序令牌 $dynamicToken = (isset($_GET['dynamicToken']) && !empty($_GET['dynamicToken']))? $_GET['dynamicToken']:""; if($dug) { echo "小程序动态令牌(dynamicToken): ".$dynamicToken."<br>"; } $appid = "111"; $secret = "222"; $access_token = getAccessToken($appid, $secret); if($access_token !== false){ //获取成功,加上小程序传来的临时令牌, 再去请求详情 //$dynamicToken $access_token -> getuserphonenumber $data = array( //$access_token 必须放到url上, post参数仅有code一个 //'access_token' => $access_token, 'code' => $dynamicToken ); getUserPhoneNumber("https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=".$access_token,$data); } function getAccessToken($appid,$secret){ $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".$appid."&secret=".$secret; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); $data = curl_exec($ch); if(curl_errno($ch)){ echo '<br>Curl error: ' . curl_error($ch)."<br>"; return curl_error($ch); } curl_close($ch); $result = json_decode($data,true); var_dump($result); echo '<br>'; if(isset($result["access_token"])){ return $result["access_token"]; }else{ echo "<br>getAccessToken Failed: ".$result["errcode"].";".$result["errmsg"]."<br>"; return false; } } function getUserPhoneNumber($remote_server, $data) { $json_data = json_encode($data); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $remote_server); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); $data = curl_exec($ch); if(curl_errno($ch)){ echo '<br>Curl error: ' . curl_error($ch)."<br>"; return curl_error($ch); } curl_close($ch); var_dump($data); //$result = json_decode($data,true); //var_dump($result); return $data; } ?>
获取手机号码报data format error hint: [WhoCWV0sf-St5rSA]https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/phonenumber/phonenumber.getPhoneNumber.html 请求手机号码时报:{"errcode":47001,"errmsg":"data format error hint: [WhoCWV0sf-St5rSA] rid: 62bc035c-2666c259-76d33c29"}
2023-06-072023年4月26日 09:33:40 千万别修复啊,不然我鄙视你们 "useExtendedLib": { "weui": true }, [图片] [Component] the type of property "search" is illegal (when preparing "miniprogram_npm/weui-miniprogram/searchbar/searchbar").
weui组件引用总是报错?报错提示如下: [Component] the type of property "search" is illegal (when preparing behavior "miniprogram_npm/weui-miniprogram/searchbar/searchbar" 没有调用searchbar,就会报这个错误。这是如何引起的,应该如何调整?
2023-04-262023年4月11日 16:28:55 依然无法打开...
git.weixin.qq.com挂了吗?小程序代码管理服务器挂了吗?https://git.weixin.qq.com/打不开了!
2023-04-11试了下把 .npmrc 中的地址改为`registry=https://registry.npm.taobao.org ` 之后, npm 命令可以执行了... 但是导入后还是出现一堆问题
weui 源码编译不通过?从 weui 官网上下载了 weui-miniprogram 的源码本地跑一下 example, 发现无论是在根目录还是src下都不能跑通 nmp 命令, 而且描述也很模糊 https://github.com/wechat-miniprogram/weui-miniprogram 如图: [图片]
2022-04-26无语..新版文档没有引入方式, 真滴拉
通过useExtendedLib的方式引入weui的mp-sticky吸顶组件报错?[图片] [图片]
2021-10-26