NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.52k stars 4.79k forks source link

Taro小程序引入原生的SDK包,包内wxml文件所有的import引入方法全部失效 #3881

Open zhaochuankai opened 5 years ago

zhaochuankai commented 5 years ago

./verify_mpsdk/index/index.wxml Path../templates/index/index.wxmlnot found from./verify_mpsdk/index/index.wxml`.

1 | | ^ 2 | 3 | 4 | `

taro-bot[bot] commented 5 years ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

yuche commented 5 years ago

你的代码崩了

zhaochuankai commented 5 years ago

你的代码崩了

求大佬指点迷津,这是sdk包内的代码,我没做修改

yuche commented 5 years ago

你做没做修改没关系,有关系的是你这段代码的格式崩了,没有传递任何有价值的信息

zhaochuankai commented 5 years ago

这是sdk的index.wxml文件 <import src='../templates/index/index.wxml'></import> <import src='../templates/sms/sms.wxml'></import> <import src='../templates/ocr/ocr.wxml'></import> <import src='../templates/livingbody/livingbody.wxml'></import> <import src='../templates/failpage/failpage.wxml'></import> <import src='../templates/success/success.wxml'></import> <import src='../templates/notice/notice.wxml'></import> <import src='../templates/errorToast/errorToast.wxml'></import> <import src='../templates/showAuthToast/showAuthToast.wxml'></import> <import src='../templates/navTip/navTip.wxml'></import> <view id="fix-full-page"> <template is="verifyIndex" wx:if="{{curPage === 1}}" data="{{...cmsConfig,index_rule,show_about_dlg,indexChecked,indexDisableBtn}}"></template> <template is="verifyNotice" wx:if="{{curPage === 7}}" data="{{...cmsConfig,notice}}"></template> <view wx:if="{{curPage !== 1 && curPage !== 7}}"> <template is="navTip" data="{{...cmsConfig,...cmsConfig.skipConfig,curPage}}" wx:if="{{isNotCamera}}"></template> <template is="verifySms" wx:if="{{curPage === 2}}" data="{{...cmsConfig,sms}}"></template> <template is="verifyOcr" wx:if="{{curPage === 3}}" data="{{...cmsConfig,ocr,isInfinityDisplay}}"></template> <template is="verifyLivingBody" wx:if="{{curPage === 4}}" data="{{...cmsConfig,livingbody,isInfinityDisplay}}"></template> <template is="verifyFailPage" wx:if="{{curPage === 5}}" data="{{...cmsConfig,failInfo}}"></template> <template is="verifySuccessPage" wx:if="{{curPage === 6}}" data="{{...cmsConfig}}"></template> </view> </view> <template is="error_template" wx:if="{{showErrorMsg}}" data="{{...cmsConfig,...err}}"></template> <template is="auth_template" data="{{...cmsConfig,authInfo}}" wx:if="{{show_auth_panel}}"></template>

控制台提示所有的wxml页面都无法import

yuche commented 5 years ago

你是怎么使用第三方 sdk 的

newbaner commented 4 years ago

这是腾讯云的人脸核身代码包吧?