微信小程序使用组件vant-weapp转支付宝需要转换成vant-aliapp及配置记录一下
1. 进入支付宝小程序文件下,下载包 ‘ npm i vant-aliapp -S --production ’
下载完成之后,找到 ‘node_modules\vant-aliapp\dist__antmove’ 和 ‘node_modules\vant-aliapp\dist\dist’

复制到根目录下的新建文件夹 ' vant-aliapp' 下

2. 支付宝小程序右上角 - 详情 按图配置

3. app.js 文件增加一行
删除掉: import "./__antmove/component/componentClass.js";
增加: import './vant-aliapp/__antmove/component/componentClass.js'

4. 全局搜索
/@vant/weapp/ 替换成 /vant-aliapp/dist/

到此,配置结束
网友评论