uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

支付宝插件引入后 编译后 data-com-type="wx"

Open xjw-fatter opened this issue 2 years ago • 6 comments

问题描述 支付宝插件引入后 编译后 data-com-type="wx"

复现步骤 <flowexchange @onCounterFlowExchange="onCounterExchange" ref="saveRefFlowExchange" :uid="uid" :channel="flowchanel">

编译后 <flowexchange vue-id="2acd03d5-1" uid="{{uid}}" channel="{{flowchanel}}" ref="__r" data-ref="saveRefFlowExchange"
data-event-opts="{{[['^onCounterFlowExchange',[['onCounterExchange']]]]}}" data-com-type="wx" onOnCounterFlowExchange="__e"
onVueInit="__l"> 支付宝报错 TypeError: Cannot read property 'data-com-type' of undefined Please check your component:

"@dcloudio/uni-mp-alipay": "^2.0.0-31820210406002",

xjw-fatter avatar Sep 16 '22 01:09 xjw-fatter

https://ask.dcloud.net.cn/question/132498

xjw-fatter avatar Sep 16 '22 01:09 xjw-fatter

你这个版本比较早期了,参考文档更新一下依赖试试。

zhetengbiji avatar Sep 16 '22 03:09 zhetengbiji

你文档这个版本比较早期了,参考更新一下试试。

<plugin-wrapper vue-id="47ef17c4-13" onPluginWrap="__w" data-event-opts="{{[['^onModalStatusBack',[['onModalStatusBack']]]]}}" data-com-type="wx" data-event-list="onOnModalStatusBack" onOnModalStatusBack="__e" onVueInit="__l" vue-slots="{{['default']}}"><zhidian-modal onOnModalStatusBack="{{'onOnModalStatusBack'+'47ef17c4-13'}}" shopId="2020112000077000000009731298" class="data-v-27ca1b4d data-v-27ca1b4d" onVueInit="__l">

升级到2.0.1-33920220314002后 编译多了一层plugin-wrapper

xjw-fatter avatar Sep 16 '22 07:09 xjw-fatter

<plugin-wrapper vue-id="47ef17c4-13" onPluginWrap="__w" data-event-opts="{{[['^onModalStatusBack',[['onModalStatusBack']]]]}}" data-com-type="wx" data-event-list="onOnModalStatusBack" onOnModalStatusBack="__e" onVueInit="__l" vue-slots="{{['default']}}"><aa-modal onOnModalStatusBack="{{'onOnModalStatusBack'+'47ef17c4-13'}}" shopId="xxxx" class="data-v-27ca1b4d data-v-27ca1b4d" onVueInit="__l">

xjw-fatter avatar Sep 16 '22 08:09 xjw-fatter

你文档这个版本比较早期了,参考更新一下试试。

升级到2.0.1-3392022031422后升级为plugin-wrapper

image

xjw-fatter avatar Sep 16 '22 08:09 xjw-fatter

你文档这个版本比较早期了,参考更新一下试试。

升级到2.0.1-3392022031422后升级为plugin-wrapper

image

插件确实需要 plugin-wrapper,如果低版本找不到 plugin-wrapper,更新到 3.5.3 对应的版本

zhetengbiji avatar Sep 16 '22 08:09 zhetengbiji

https://github.com/dcloudio/uni-app/issues/3619

zhetengbiji avatar Oct 13 '22 08:10 zhetengbiji