今天刚更新为最新版的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('地址选取失败')
}
});
}
新版本问题一大堆,自动化测试工具也用不了。