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

x7yiwoj4  于 2022-10-22  发布在  其他
关注(0)|答案(7)|浏览(354)

./verify_mpsdk/index/index.wxml Path ../templates/index/index.wxml not found from ./verify_mpsdk/index/index.wxml. 1 | | ^ 2 | 3 | 4 |

jdzmm42g

jdzmm42g1#

欢迎提交 Issue~

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

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

Good luck and happy coding~

4nkexdtk

4nkexdtk3#

你的代码崩了

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

ohfgkhjo

ohfgkhjo4#

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

u3r8eeie

u3r8eeie5#

这是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

h7appiyu

h7appiyu6#

你是怎么使用第三方 sdk 的

hrysbysz

hrysbysz7#

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

相关问题