体验版v-if有效果,发布后v-if无效

小程序 文章 2022-01-26 16:20 332 0 全屏看文

AI助手支持GPT4.0

体验版v-if有效果,发布后v-if无效The trial version of v-if is effective, but the v-if is invalid after release

体验版v-if有效果,发布后v-if无效

春节需要在小程序内增加赠送代金券活动,逻辑是进去小程序,授权登录后,符合条件自动弹出‘领取代金券’的弹出框,体验版测试是可以正常弹出的,很神奇的是小程序发布后弹出框无法弹出;弹出框判断逻辑是用v-if判断显示隐藏;整体框架是用uni-app开发的;

During the Spring Festival, it is necessary to increase the activity of giving vouchers in the applet. The logic is to enter the applet. After authorization and login, the pop-up box of "receiving vouchers" will pop up automatically. The experience version test can pop up normally. It is amazing that the pop-up box cannot pop up after the applet is released; The judgment logic of pop-up box is to use V-IF to judge whether it is displayed or hidden; The overall framework is developed with uni app;

回答:

tomheng:

线上 meetTheConditions 为真吗

八九:

1.这个你该去uni-app问 2.你真机调试下,看有无报错 3.换成show试试

bLUES:

应该去问 uniapp论坛啊,着急的话写wx:if呗,发h5再改回v-if

-EOF-

AI助手支持GPT4.0