- 最新版的开发都工具(1.06.2209070)地图选择器用不了了?
今天刚更新为最新版的1.06.2209070,可地图选择器打不开了。安装旧版的wechat_devtools_1.05.2204250_x64,一样的代码,就可以正常打开。1.06点击地图选择器不报错,也没反应。代码: <view class="flex align-center"> <text class="accompany_fd5_0_c0">预约医院</text> <view class="flex align-center flex-sub" @tap="chooseLocation()"> <image class="accompany_fd5_0_c1_c0" mode="aspectFit" :src="STATIC_URL + '41.png'"></image> <view class="flex-sub accompany_fd5_0_c1_c1" style="color:#BFBFBF;font-size:28rpx;font-weight: 400;" v-if="order_hospital.length==0">请选择医院地址</view> <view class="flex-sub accompany_fd5_0_c1_c1" v-else>{{ order_hospital }}</view> <!-- <input class="flex-sub accompany_fd5_0_c1_c1" type="text" placeholder="请选择医院地址" confirm-type="done" :disabled="true" placeholder-style="color:#999;font-size:28rpx" v-model="order_hospital" /> --> </view> </view> JS chooseLocation(){ let that = this; uni.chooseLocation({ success: (res) => { that.order_hospital_address = res.address + res.name; that.order_hospital = res.name; console.log(that.order_hospital); that.$forceUpdate(); }, fail: (err) => { // this.$message.info('地址选取失败') } }); }
2022-09-11 - 公众号网页开发,微信浏览器中,如何获取到客户端真实IP?
做公众号网站开发,发现通过微信浏览器访问,通过PHP的$_SERVER['REMOTE_ADDR']获取到的IP都是微信服务器的IP(地址都是深圳的),经测试,不使用微信浏览器的话则正常,有没有办法获取到客户端的IP。
2019-12-21