feat: exitMiniProgram

master
XuPeng 2021-07-07 11:23:16 +08:00
parent bf24163fda
commit 187c9c6633
10 changed files with 34 additions and 2 deletions

View File

@ -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",

View File

@ -0,0 +1,6 @@
// packageAPI/pages/jump/jump.js
Page({
exitMiniProgram() {
wx.exitMiniProgram()
}
})

View File

@ -0,0 +1,3 @@
{
"navigationBarTitleText": "跳转"
}

View File

@ -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>

View File

View File

@ -25,11 +25,15 @@ Page({
},
{
zh: '定时器',
url: 'timmer/timmer'
url: 'timer/timer'
},
{
zh: '路由',
url: 'router/router'
},
{
zh: '跳转',
url: 'jump/jump'
}
],
},