收藏
回答

uni.navigateToMiniProgram跳转其他小程序违规问题?加急!

版本3.15.2 appid wxfd51df3602d47b67

商家自营类目已经删除了 还是限制跳转

selectService(service) {
				if (service.appId) {
					uni.showModal({
						title: '提示',
						content: `即将跳转至「${service.name}」缴费小程序,是否继续?`,
						success: (res) => {
							if (res.confirm) {
								uni.navigateToMiniProgram({
									appId: service.appId,
									path: service.pagePath,
									success: () => {
										console.log('跳转小程序成功')
									},
									fail: (err) => {
										console.error('跳转小程序失败', err)
										uni.showToast({
											title: '跳转失败',
											icon: 'none'
										})
									}
								})
							}
						}
					})
				} else {
					uni.showToast({
						title: `正在跳转至「${service.name}」缴费小程序...`,
						icon: 'none',
						duration: 2000
					})
				}
			}
		}
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容