zhangdaren / miniprogram-to-uniapp

轻松将各种小程序转换为uni-app项目
Other
1.64k stars 270 forks source link

微信小程序转uni时,出现部分wxml丢失 #148

Closed CJL92 closed 1 year ago

CJL92 commented 1 year ago

问题描述?

wtu -V 2.0.24

wtu -i 路径 微信小程序转uni时,出现部分wxml和css丢失,但js又转换成功的

重现步骤

期望的结果

zhangdaren commented 1 year ago

可否具体说说?

CJL92 commented 1 year ago

就是直接按步骤使用时,导入一套完整的代码,用uni编译小程序时,发现里面部分的页面和样式直接没有生成。我把项目copy到不同的文件夹,多次尝试,都是会丢失页面和样式。js却是准确的生成了

zhangdaren commented 1 year ago

可以提供一份测试demo吗?最小可复现bug的demo就行了。另外,transfrom.log也提供一下

CJL92 commented 1 year ago

相关代码移除了,只保留一直会转换失败的页面,见谅

ゞ荒城旧梦﹏ @.***

 

------------------ 原始邮件 ------------------ 发件人: "zhangdaren/miniprogram-to-uniapp" @.>; 发送时间: 2022年12月6日(星期二) 上午9:01 @.>; @.**@.>; 主题: Re: [zhangdaren/miniprogram-to-uniapp] 微信小程序转uni时,出现部分wxml丢失 (Issue #148)

可以提供一份测试demo吗?最小可复现bug的demo就行了。另外,transfrom.log也提供一下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

CJL92 commented 1 year ago

请问直接在邮件中发你的附件收到了吧

zhangdaren commented 1 year ago

没收到,请直接发到: @.***  

张鹏 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年12月6日(星期二) 上午9:23 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [zhangdaren/miniprogram-to-uniapp] 微信小程序转uni时,出现部分wxml丢失 (Issue #148)

请问直接在邮件中发你的附件收到了吧

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

CJL92 commented 1 year ago

我这边无法看到您的邮箱,被git这边转成了星号,我直接放到百度云盘中,您去下载下 ,地址 : 链接: https://pan.baidu.com/s/1kKm46CLsOZ11PcZ5YJFFsA 提取码: nucl

zhangdaren commented 1 year ago

我这边无法看到您的邮箱,被git这边转成了星号,我直接放到百度云盘中,您去下载下 ,地址 : 链接: https://pan.baidu.com/s/1kKm46CLsOZ11PcZ5YJFFsA 提取码: nucl

经过排查,是

<input class='iptbox {{index === focusIndex?\'show\':\'hide\'}}' onKeyUp="value=value.replace(/[^\d|chun]/g,'')" value="{{validaPicCode.length&gt;=index+1?validaPicCode[index]:''}}" disabled password='{{ispassword}}' catchtap='Tap'&gt;</input&gt;

解析出的问题,,,预计下版修复 ,

可以 手动将 \' 替换为'' 再进行转换吧。