微信支付里有个订单查询函数模块 queryorder,原来是以page构造使用,我把它做成module exports,结合template 整体输出在别的页面里。结果报错,去掉regeneratorRunime 和await 错误就会消失
新的函数代码如下
72602-1/https://mmbiz.qlogo.cn/mmbiz_png/EVrYKE6oFzLJXhPVbuulPDDaGDMRNL9kaqHI2W2Doic6OiaMyUiaWSrKDvPKuXO25KftoluiaVbe3lp64BwLyJ4ROw/0?wx_fmt=png" border=0 >
VM7920:1 thirdScriptError 然后编译 首先报错,queryorder就是上边函数所在的js
sdk uncaught third Error
Cannot read property 'mark' of undefined
TypeError: Cannot read property 'mark' of undefined
at http://127.0.0.1:39666/appservice/pages/queryorder/index.js:11:64
然后进入微信小程序对应的user_page页面调用exports的函数,发现卡住,
72602-1/https://mmbiz.qlogo.cn/mmbiz_png/EVrYKE6oFzLJXhPVbuulPDDaGDMRNL9kgxcsPBk4ur90zGRwlta0Bic4LqA82tBvHKRyQAS50ju7pNCoy7iat1Fw/0?wx_fmt=png" border=0 >
提示warning:
Page[pages/user_page/user_page] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.
微信小程序开发问题解答
本文网址:http://www.91bianli.com/weixinxiaochengxu/22343.html