master
13285100733@qq.com 2 years ago
parent c438f1d167
commit 8f3f10406e

@ -11,7 +11,8 @@
"pages/change/change",
"pages/answer/answer",
"pages/orderdoing/orderdoing",
"pages/turning/turning"
"pages/turning/turning",
"pages/pay/pay"
],
"tabBar": {
"custom": false,

@ -84,6 +84,11 @@ setChecked: function() {
}
}}},
topay: function(){
wx.navigateTo({
url:'/pages/pay/pay',
})
},
// 添加按钮被点击
addButtonClick: function(event) {

@ -31,8 +31,11 @@
<checkbox value="{{item.food_name}}" checked="{{checked}}" style='margin-left:20rpx;' bindtap='setChecked' />
<text>全选</text>
</view>
<text class='heji'>合计:<text class='all_shop_price'>¥{{total_all_price}}</text></text>
<view class='jiesuan' bindtap="toBuy">
<view class='heji'>
<text class='price'>合计:</text>
<text class='all_shop_price'>¥{{total_all_price}}</text>
</view>
<view class='jiesuan' bindtap="topay">
<text>结算</text>
</view>
</view>

@ -189,8 +189,12 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
.heji {
/* margin-left: 140px; */
float: right;
/* float: right;
margin-right: 75px;
display: inline; */
flex-flow: row;
justify-content: flex-start;
display: flex;
}
/*合计价格的样式*/

@ -9,10 +9,17 @@
</view>
<view class="separate"></view>
<!-- sku选择 -->
<text bindtap="toggleDialog">请选择购买数量</text>
<view class="a">
<text bindtap="toggleDialog" >请选择购买数量</text>
<view class="separate"></view>
<text class="separate" decode="{{true}}">&emsp;</text>
<view class="separate"></view>
<text>商品评价:东西还可以,好评~</text>
<view class="separate"></view>
<text>商品评价</text>
<text class="text-remark">东西还可以,好评~</text>
</view>
<view class="separate"></view>
<view class="detail-nav" >
<button class="button-green" catchtap="addCar" formType="submit" data-item="{{detailObj}}" data-userid="{userid}">加入购物车</button>

@ -8,7 +8,7 @@ page {
display: flex;
flex-direction: column;
margin-top: 15rpx;
margin-bottom: 0rpx;
margin-bottom: 15rpx;
}
.detail .title {
font-size: 40rpx;
@ -29,7 +29,12 @@ page {
text-align: center;
}
text{
.a {
border-bottom: 1px solid #ccc;
font-size: 30rpx;
margin: 10rpx;
color: black;
text-align: center;
border-top: 1px solid #ccc;
}

@ -8,7 +8,7 @@ Page({
*/
data: {
foodlist:[],
tabs: ['主食', '甜品', '小吃','吃得快','辣','甜','清淡'],
tabs: ['主食', '甜品', '小吃','吃得快','辣','甜','清淡'],
cateList:[],
index:null
},

@ -13,7 +13,7 @@ page {
.navbar {
width: 100%;
width: 800rpx;
height: 90rpx;
/* 文本不换行 */
white-space: nowrap;
@ -25,6 +25,7 @@ page {
/* 固定在顶部 */
}
.nav-item {
line-height: 60rpx;
background-color: #f7f7f7;
padding-left: 25rpx;

@ -73,5 +73,10 @@ Page({
*/
onShareAppMessage() {
}
},
topay: function(){
wx.navigateTo({
url:'/pages/pay/pay',
})
},
})

@ -3,4 +3,4 @@
<image src="{{orderfood.url}}"></image>
<view>{{orderfood.food_name}}</view>
<button bindtap="primary" style="background-color: rgb(253, 228, 84);">立即支付</button>
<button bindtap="primary" style="background-color: rgb(253, 228, 84);" bindtap="topay">立即支付</button>

@ -46,6 +46,9 @@ let animation = wx.createAnimation({
rotate: animation.export(),
turning: false
});
wx.redirectTo({
url:'/pages/pay/pay',
})
},
fail: function(res) {
console.log(res)

Loading…
Cancel
Save