forked from wechat-miniprogram/miniprogram-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-background-fetch-data.wxml
31 lines (29 loc) · 1.09 KB
/
get-background-fetch-data.wxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<import src="../../../common/head.wxml" />
<import src="../../../common/foot.wxml" />
<view class="container">
<template is="head" data="{{title: 'getBackgroundFetchData'}}"/>
<view class="page-body">
<view class="page-section">
<block wx:if="{{canIUse}}">
<view class="page-body-info">
<view class="page-body-title">周期性缓存数据</view>
<block wx:if="{{appid}}">
<block>
<text class="page-body-text">OpenID</text>
<text class="context-value">{{openid}}</text>
</block>
<block>
<text class="page-body-text">AppID</text>
<text class="context-value">{{appid}}</text>
</block>
</block>
<block>
<text class="page-body-text">微信客户端每隔 12 个小时才会发起一次请求</text>
<text class="page-body-text">为了方便调试周期性数据,可以在 工具 -> 拉取周期性缓存数据 开启</text>
</block>
</view>
</block>
</view>
</view>
<template is="foot" />
</view>