-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
91 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
//app.js | ||
App({ | ||
onLaunch: function () { | ||
|
||
} | ||
}) | ||
|
||
}) | ||
// onLaunch: function(options) { | ||
// }, | ||
|
||
// onShow: function(options) { | ||
// }, | ||
|
||
// onHide: function() { | ||
// }, | ||
|
||
// onError: function(msg) { | ||
// }, | ||
|
||
// //options(path,query,isEntryPage)) | ||
// onPageNotFound: function(options) { | ||
// } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,43 @@ | ||
//index.js | ||
//获取应用实例 | ||
//const app = getApp() | ||
const app = getApp() | ||
var aprise, bprise, dprise | ||
|
||
Page({ | ||
getNum:function(){//这里的获取值和html不一样 | ||
// let appleNum = document.getElementById("aNum").value; | ||
// let bananaNum = document.getElementById("bNum").value; | ||
// let dragonNum = document.getElementById("dNum").value; | ||
// let aprise = aNum*1; | ||
// let bprise = bNum*5; | ||
// let dprise = dNum*10; | ||
// let total = aprise+bprise+dprise; | ||
// console.log( total), | ||
data:{ | ||
focous:false, | ||
inputValue:'' | ||
}, | ||
bindKeyInput: function (e) { | ||
this.setData({ | ||
inputValue: e.detail.value, | ||
}) | ||
console.log(e) | ||
switch(e.currentTarget.dataset.type){ | ||
case "1": | ||
aprise = e.detail.value*2 | ||
console.log(aprise) | ||
break | ||
case "2": | ||
bprise = e.detail.value*5 | ||
console.log(bprise) | ||
break | ||
case "3": | ||
dprise = e.detail.value*10 | ||
console.log(dprise) | ||
break | ||
} | ||
}, | ||
tapLogin:function(){ | ||
wx.navigateTo({ | ||
url: '/pages/logs/logs', | ||
|
||
}) | ||
} | ||
}) | ||
} | ||
// getNum:function(){ | ||
// var total = aprise +bprise +dprise ; | ||
// console.log (total); | ||
// } | ||
// } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
<!--index.wxml--> | ||
<view class="container"> | ||
<view class="btn"> | ||
<image src='pages/images/苹果图1.jpg'></image> | ||
<!--<select id="aNum"> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</select>--> | ||
<!--<view class="container">--> | ||
<view class='btn'> | ||
<image src='images/apple.jpg' mode='widthFix'></image> | ||
<text>选择您所需要的数量:</text> | ||
<input type="number" bindinput="bindKeyInput" data-type="1"></input> | ||
</view> | ||
<view class="nav"> | ||
<image src='pages/images/香蕉图1.jpg'></image> | ||
<select id="bNum"> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</select> | ||
|
||
<view class="btn"> | ||
<image src='images/banana.jpg' mode='widthFix'></image> | ||
<text>选择您所需要的数量:</text> | ||
<input type="number" bindinput="bindKeyInput" data-type="2"></input> | ||
</view> | ||
<view class="nav"> | ||
<image src='pages/images/火龙果图1.jpg'></image> | ||
<select id="dNum"> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option>5</option> | ||
</select> | ||
|
||
<view class="btn"> | ||
<image src='images/dragon.jpg' mode ='widthFix'></image> | ||
<text>选择您所需要的数量:</text> | ||
<input type="number" bindinput="bindKeyInput" data-type="3"></input> | ||
</view> | ||
</view> | ||
<button bindtap="getNum">确定</button> | ||
<button bindtap="tapLogin">确定</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<!--logs.wxml--> | ||
<view wx:for="{{logs}}" > | ||
<block wx:for-item="log"> | ||
<text>{{item.name}}</text> | ||
<text>{{item.age}}</text> | ||
</block> | ||
<text>您的订单</text> | ||
<view wx:for="{{list}}" > | ||
<text>{{ item.name }}</text> | ||
<text>{{ item.age }}</text> | ||
</view> |