miniprogram-demo/packageAPI/pages/app-level-event/app-level-event.wxml

23 lines
760 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<import src="../../common/head.wxml" />
<import src="../../common/foot.wxml" />
<view class="container">
<template is="head" data="{{title: 'getLaunchOptionsSync'}}"/>
<view>打开这个页面将小程序切换到后台期望wx.onAppHide被正确调用</view>
<view>打开这个页面将小程序切换回前台期望wx.onAppShow被正确调用</view>
<view class="page-body">
<view class="page-section">
<view class="page-body-info">
<view class="page-body-title">{{type}}</view>
<block>
<view wx:for="{{items}}">
<text class="page-body-text">{{item}}: {{launchOptions[item]}}</text>
</view>
</block>
</view>
</view>
</view>
<template is="foot" />
</view>