单张图片点击跳转的实例
可修改图片和链接,相当于单列图片模块
<ui> <view> <container> <editProperty> <dataDefines> <dataDefine name="mk_image" type="image" propertyName="图片"/> <dataDefine name="mk_url" type="url" propertyName="淘宝链接" validateType="taokeurl||wirelessurl" /> </dataDefines> </editProperty> <subViews> <image url="$mk_image"> <styleBinding> <attribute name="height" value="304"/> <attribute name="width" value="608"/> </styleBinding> <events> <event type="click"> <actions> <userTrack utType="Image" utName="image"> <utParams> <params> <param name="wp_app" value="weapp" /> <param name="wp_pk" value="$wp_pk" /> <param name="wp_m" value="MODULE_KEY_PLACE_HOLDER" /> </params> </utParams> </userTrack> <openURL url="$mk_url"> <params> <param name="wp_app" value="weapp" /> <param name="wp_pk" value="$wp_pk" /> <param name="wp_m" value="MODULE_KEY_PLACE_HOLDER" /> </params> </openURL> </actions> </event> </events> </image> </subViews> </container> </view> </ui>
2024还活着,挺好的,向着星辰与深渊,加油,博客园不要倒下啊!