- wx.exitMiniProgram(Object object) ?
微信扫普通连接二维码进小程序页后 是个表单提交页面,提交成功后此页面退出回到微信页面,使用这个可以吗 <view @click="submitsave()">确认提交</view> submitsave(){ this.$refs.uForm.validate().then(res => { let param = {"name": that.form.name, "idCard": that.form.idCard, "mobile": that.form.mobile} wx.request({ url: "接口“, data: param, method: 'POST', success(res) { if (res.data.code == 200) { uni.showToast({ title: '提交成功', duration: 3000, }) wx.exitMiniProgram() 这样可以吗 有别的退回微信方法吗 } } }) } }
2023-02-09 - 微信地图map 在微信小程序使用覆盖物多边形 真机上渲染的问题?
开发者工具显示没问题 部署到手机上(安卓机是黑色填充的覆盖住多标记点内容。苹果机直接不显示覆盖物)华为mate40 pro,微信version8.0.20,HarmonyOs2.0.0 苹果11, 微信8.0.20,15.4. [图片]代码: markerList:[{ latitude: 30.264786, longitude: 120.20775, iconPath: '../../static/uview/common/dot_20_28.png', title: '内容' }, { latitude: 33.264786, longitude: 121.20775, iconPath: '../../static/uview/common/dot_20_28.png', title: '内容2' }], polygons: [{ points: [{ "longitude": 121.323856, "latitude": 31.162934 }, { "longitude": 121.319454, "latitude": 31.157784 }, { "longitude": 121.278269, "latitude": 31.152843 }, { "longitude": 121.277012, "latitude": 31.144175 }, { "longitude": 121.287486, "latitude": 31.139958 }, { "longitude": 121.280991, "latitude": 31.133248 }, { "longitude": 121.265734, "latitude": 31.136393 } ], fillColor: "rgba(253,10,128,0.1)", //填充颜色 strokeColor: "rgba(253, 100,128,0.5)", //描边颜色 strokeStyle: "solid", strokeWidth: 1, //描边宽度 } ],
2022-03-17