Skip to content

Commit

Permalink
二维码与小问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
wanggm committed Jun 19, 2018
1 parent 361257e commit c6e1f55
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
## 搭伙订餐计算器

和小伙伴一起订餐, 费用不太好计算, 写了个简单的小程序, 可以搜索小程序 "搭伙订餐计算器".

## 扫描二维码直接使用小程序

![二维码](./images/qr-code.jpg)
Binary file added images/qr-code.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ordering-calculator",
"version": "1.0.0",
"private": true,
"description": "这是一个计算搭伙订餐费用的小应用",
"description": "这是一个搭伙订餐的计算器",
"main": "index.js",
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export default class Index extends Component {
result: result.join(',')
});
}
// shareHandler () {
// console.log('share');
// Taro.showShareMenu({
// withShareTicket: true
// })
// }

render () {
return (
Expand All @@ -71,7 +77,7 @@ export default class Index extends Component {
<Label>实际支付(总额):</Label>
<Input
placeholder="55"
onBlur={this.setTrueTotalPrice}>
onBlur={this.setTureTotalPrice}>
</Input>
</View>
<View>
Expand All @@ -83,6 +89,7 @@ export default class Index extends Component {
</View>
<View>
<Button onClick={this.calcHandler}>计算</Button>
{/* <Button onClick={this.shareHandler}>分享给朋友</Button> */}
</View>
</View>
</View>
Expand Down

0 comments on commit c6e1f55

Please sign in to comment.