Browse Source

静态页面

xcx 4 years ago
parent
commit
1fde82be24
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/app.js

+ 5
- 3
src/app.js View File

@@ -5,9 +5,11 @@ import './app.less'
5 5
 class App extends Component {
6 6
 
7 7
   onLaunch () {
8
-    wx.setBackgroundFetchToken({
9
-      token: 'wxe44244d1a5ea3364'
10
-    })
8
+    // let Params = {}
9
+    // if (wx.getStorageSync('openid')) {
10
+    //   Params.token = wx.getStorageSync('openid')
11
+    // }
12
+    wx.setBackgroundFetchToken({ token: 'first' })
11 13
     wx.getBackgroundFetchData({
12 14
       fetchType: 'pre',
13 15
       success (res) {