移动端提交后返回首页或上一页

2020-11-30 17:51

21 0 0

一、返回首页

<south border="none">

<div align="center" xmlns:w="client"> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>

<button id="tongguo1" label="提交1" event="next();parent->parent->pageList.reload();"/>

<button id="tongguo3" label="提交" event="next();parent->pageList.reload();"/>

<button id="tongguo2" label="提交" event="next();" w:onClick="wx.miniProgram.switchTab({url:'/pages/tabbar/module'})"/>

</div>

</south>

二、返回上一页

<div class="d-flex flex-row align-items-center pl-3 pr-3 mt-2 mb-2 w-100" xmlns:w="client">

<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"/>

<div class="d-flex align-items-center justify-content-center" style="width:100%">

<button label="退出" w:onClick="wx.miniProgram.switchTab({url:'/pages/tabbar/schedule'})"/>

@李老师laugh

还可以输入500个字
表情
Ctrl+Enter
全部评论(0)
最新/最热

Zheng

福建省 | 厦门市

关注
私信
最新资讯
写私信×
Zheng
还可以输入500个字