Skip to content

Commit

Permalink
miniprogram: add iap mp for ble OTA
Browse files Browse the repository at this point in the history
  • Loading branch information
royye62 committed Apr 14, 2020
1 parent e5c7144 commit 3500ccd
Show file tree
Hide file tree
Showing 20 changed files with 1,792 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/Mini_Program/iap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 蓝牙升级微信小程序源码

12 changes: 12 additions & 0 deletions tools/Mini_Program/iap/miniprogram/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//app.js
App({
globalData: {
},
onLaunch: function () {
this.globalData.SystemInfo = wx.getSystemInfoSync()
//console.log(this.globalData.SystemInfo)
wx.setKeepScreenOn({
keepScreenOn: true
})
},
})
14 changes: 14 additions & 0 deletions tools/Mini_Program/iap/miniprogram/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pages": [
"pages/hardware/ble/index/index",
"pages/hardware/ble/device/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#f8f8f8",
"navigationBarTitleText": "TencentOS tiny 蓝牙OTA示例",
"navigationBarTextStyle": "black",
"backgroundColor": "#f8f8f8"
},
"sitemapLocation": "sitemap.json"
}
51 changes: 51 additions & 0 deletions tools/Mini_Program/iap/miniprogram/app.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**app.wxss**/
/* .container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 100rpx 0;
box-sizing: border-box;
} */


.flex-row {
display: flex;
flex-flow: row nowrap;
}

.flex-row-wrap {
display: flex;
flex-flow: row wrap;
}

.flex-column-reverse {
display: flex;
flex-flow: column-reverse nowrap;
}

.center {
justify-content: center;
align-items: center;
}

.left {
justify-content: flex-start;
align-items: center;
}

.right {
justify-content: flex-end;
align-items: center;
}

.space-between {
justify-content: space-between;
align-items: center;
}

.space-around {
justify-content: space-around;
align-items: center;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3500ccd

Please sign in to comment.