[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
用axure实现导航的页面切换效果也不复杂,大致步骤如下:
首先设置你的导航栏,可以是几个按钮,也可以是box,都不影响,满足自己的页面效果就行了,我拖了俩button作为我的导航栏,还有一个动态面板
然后我们在动态面板中添加我们准备显示的页面
双击动态面板,因为我只准备做两个页面切换,所以再添加一个state就好了,如果需要更多页面切换,可以根据自己的需求添加相应数目的states
双击state1,进入页面,你可以在这个板块内添加想要显示在页面的内容,比如,一个黄色色块
同样的,双击动态面板,选择state2,添加需要展示的内容,例如,一个红色色块
下面我们设置导航栏点击效果
选中我们导航栏的全部按钮,在右侧属性面板中点击选择(select),在弹出的页面设置选中后的效果,我设置了选中按钮后,按钮变蓝色,字体白色
接下来我们设置点击按钮的交互效果
选中按钮小黄,在右侧属性面板中双击‘鼠标单击时’(On Click),在弹出框点击设置面板状态(Set Panel
State),勾选右边的设置状态,下面选择state1
然后点击左边的设置选择(Set Select),选中右边代表小黄按钮的rectangle,OK
选中小红按钮,重复以上操作,此次选择state2
选中代表小红按钮的rectangle,OK
接下来还有一步,同时选中导航栏的所有按钮,鼠标右键,选择组,即设定两个按钮同时只能选中一个
接下来就可以预览效果了