https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateTo.html
EventChannel 示例代码在哪https://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.emit.htmlhttps://developers.weixin.qq.com/miniprogram/dev/api/route/EventChannel.emit.html
06-06不可以,小程序内不论是原生还是内嵌,现金支付必须要使用小程序支付, 也许有的手机可以调起来H5支付,但这不被官方允许和保障
微信小程序跳转到H5页面后,能直接在H5页面唤起微信支付吗?微信小程序跳转到H5页面后,能直接在H5页面唤起微信支付吗?
06-06申请恢复,现在这个问题太多了
微信小程序普通链接跳转?微信小程序 普通链接跳转小程序,配置正常,之前是能正常跳转的,本月开始不能正常跳转。配置是正常的规则也没问题,正常使用了两周左右。所以不要回复链接的不对的问题。 [图片]
06-03jssdk好像是提供了scanQRCode方法吧,看下webview文档里
小程序用webview嵌入了我们自己系统的h5页面,在我们h5页面中怎么调用小程序的扫码方法?小程序用webview嵌入了我们自己系统的h5页面,在我们h5页面中怎么调用小程序的扫码方法?
05-30[图片]
右侧内容滚动时,左侧菜单没有切换?自定义左侧导航栏,在页面中可以正常实现,把代码复制到components组件中,右侧内容滚动时,左侧菜单没有切换,console.log(rects)打印为空,这是什么情况?求大师指点 const list = require('../../utils/util.js') Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { height: 0, //页面高度 rpx ratio: 0, //rpx,px转化比 tid: 1, lid: 1, heightArray: [], // 存储右侧各区块高度 isSelected: false, selectedCount: 0, selectedList: [], sectionHeights: [], list:list }, lifetimes: { ready() { this.pageheight(); this.calculateHeights(); // setTimeout(() => this.calculateHeights(), 500) } }, /** * 组件的方法列表 */ methods: { /** * 获取页面高度 */ pageheight() { const windowInfo = wx.getWindowInfo() const btnGroupHeight = 120 // 底部按钮高度(rpx) const ratio = 750 / windowInfo.windowWidth const height = (windowInfo.windowHeight * ratio) - btnGroupHeight console.log(height) this.setData({ height: height, // 新高度字段 ratio: ratio }) }, /** * 获取元素距离顶部的位置 */ calculateHeights() { const that = this; const query = wx.createSelectorQuery() ;//创建节点查询器 console.log(query) query.selectAll('.right-group').boundingClientRect(rects => { console.log(rects) const systemInfo = wx.getWindowInfo(); const topOffset = 170 / that.data.ratio; // 顶部固定区域高度 console.log(topOffset) const heights = rects.map(rect => Math.floor(rect.top - topOffset + systemInfo.windowHeight * that.data.ratio / 750) ); console.log(heights) that.setData({ heightArray: heights }); }).exec(); }, /** * 左侧点击事件 */ changeTab(e) { console.log(e) const that = this; const id = e.currentTarget.dataset.id; that.setData({ tid: id, lid: id }) }, /** * 滚动监听 */ scrollFloor(e) { const scrollTop = e.detail.scrollTop const { heightArray } = this.data for (let i = 0; i < heightArray.length; i++) { if (scrollTop < heightArray[i]) { this.setData({ tid: this.data.list[i > 0 ? i - 1 : 0].id , }) break } } }, /** * 选中事件 */ toggleSelection(e) { console.log(e) const { catindex, subindex, posindex } = e.currentTarget.dataset console.log({ catindex, subindex, posindex }) // 边界检查 if ( catindex < 0 || catindex >= this.data.list.length || subindex < 0 || !this.data.list[catindex]?.listtitle || subindex >= this.data.list[catindex].listtitle.length ) return const path = `list[${catindex}].listtitle[${subindex}].position[${posindex}].selected` const isSelected = !this.data.list[catindex].listtitle[subindex].position[posindex].selected const selectedItem = { name: this.data.list[catindex].listtitle[subindex].position[posindex].name, catindex, subindex, posindex } let selectedList = [...this.data.selectedList] if (isSelected) { if (selectedList.length >= 5) { wx.showToast({ title: '最多选择5项', icon: 'none' }) return } selectedList.push(selectedItem) } else { selectedList = selectedList.filter(item => !(item.catindex === catindex && item.subindex === subindex && item.posindex === posindex) ) } this.setData({ [path]: isSelected, selectedCount: selectedList.length, selectedList }) }, // 删除事件 removeBenefit(e) { console.log(e) const { catindex, subindex, posindex } = e.currentTarget.dataset console.log({ catindex, subindex, posindex }) // 更新列表状态 const path = `list[${catindex}].listtitle[${subindex}].position[${posindex}].selected` const selectedList = this.data.selectedList.filter(item => !(item.catindex === catindex && item.subindex === subindex && item.posindex === posindex) ) this.setData({ [path]: false, selectedCount: selectedList.length, selectedList }) }, // 新增确认按钮点击事件 confirmSelection() { const pages = getCurrentPages() const prevPage = pages[pages.length - 2] // 获取A页面实例 // 构造选中职位名称数组 const selectedJobs = this.data.selectedList.map(item => item.name) // 更新A页面数据 prevPage.setData({ 'formData.jobs': selectedJobs, 'formData.jobCount': selectedJobs.length }) // 返回A页面 wx.navigateBack() }, } })
05-30小程序里现金支付只能使用小程序支付
小程序允许使用第三方快捷支付吗?请问下小程序允许使用第三方快捷支付吗?看文档没有明确描述后果,如果使用了会导致哪些后果呢,是小程序被下架?还是单商户号支付能力被封?还是限制webview的H5跳转呢?
05-29https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#1 搜索“附录5-常见错误及解决方法”定位到相应位置查看解决方案
微信开放标签页面报错 "config:fail,invalid signature",怎么解决?前端页面通过location.href获取url上送后台(地址上没有携带#),前端调的A服务的接口(接口域名与前端上送的url地址一致),A服务又透传的B服务接口,接口正常返回,但是页面报config:fail,invalid signature,是什么原因导致的呢?
05-23把auto-height属性去掉,textarea的高度使用fit-content,然后把内容传给after的content来把textarea给撑起来,你试试
wx:for渲染多个textarea会闪动?如题 渲染多个textarea时 会出现空白 一段时间后再出现内容
05-21[图片]
微信小程序短链跳转问题?https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-link/generateUrlLink.html 调用小程序该接口,生成短连接,为啥有的app 里面会展示一个中间授权页,有的直接打开微信进行跳转,如下图 这种是有中间授权页的,如果有这个授权页,有些手机就跳不过去,是APP的问题吗? [图片] 这种是能直接跳转的 没有授权页 [图片]
05-20申请恢复
小程序 web-veiw ,业务域名已配置,出现如需浏览,请长按网址复制后使用浏览器访问,怎么解决?webview的域名都已经在微信后台配置,之前还可以突然就用不了了 ,链接:https://pinshicai.sandbox.psc666.com/im/?uid=1877597096446660608[图片]
05-14