feat: exitMiniProgram
parent
bf24163fda
commit
187c9c6633
3
app.json
3
app.json
|
@ -51,7 +51,8 @@
|
|||
"pages/app-level-event/app-level-event",
|
||||
"pages/launch-options/launch-options",
|
||||
"pages/router/router",
|
||||
"pages/timmer/timmer",
|
||||
"pages/jump/jump",
|
||||
"pages/timer/timer",
|
||||
"pages/intereaction/intereaction",
|
||||
"pages/navigationBar/navigationBar",
|
||||
"pages/page-scroll/page-scroll",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// packageAPI/pages/jump/jump.js
|
||||
Page({
|
||||
exitMiniProgram() {
|
||||
wx.exitMiniProgram()
|
||||
}
|
||||
})
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"navigationBarTitleText": "跳转"
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<!--pages/API/jump/jump.wxml-->
|
||||
<import src="../../common/head.wxml" />
|
||||
<import src="../../common/foot.wxml" />
|
||||
|
||||
<view class="container">
|
||||
<template is="head" data="{{title: 'jump'}}"/>
|
||||
|
||||
<view class="page-body">
|
||||
<view class="page-section">
|
||||
<view class="btn-area">
|
||||
<button type="primary" bindtap="exitMiniProgram">exitMiniProgram</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<template is="foot" />
|
||||
</view>
|
||||
|
|
@ -25,11 +25,15 @@ Page({
|
|||
},
|
||||
{
|
||||
zh: '定时器',
|
||||
url: 'timmer/timmer'
|
||||
url: 'timer/timer'
|
||||
},
|
||||
{
|
||||
zh: '路由',
|
||||
url: 'router/router'
|
||||
},
|
||||
{
|
||||
zh: '跳转',
|
||||
url: 'jump/jump'
|
||||
}
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue