订单详情完善
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
<view class="price">
|
||||
<view class="priceAmount">
|
||||
¥{{shopInfo.isVip ==1 && shopInfo.isMemberPrice==1?item.memberPrice:item.salePrice}}
|
||||
¥{{shopInfo.isVip ==1 && shopInfo.isMemberPrice==1?item.memberPrice:item.price}}
|
||||
</view>
|
||||
<view class="num">x{{item.num}}</view>
|
||||
</view>
|
||||
@@ -57,7 +57,6 @@
|
||||
|
||||
<!-- 订单内容区域 -->
|
||||
<view class="content_box">
|
||||
<text class="placeNum">购物车</text>
|
||||
<view class="content">
|
||||
<view class="title"> {{ shopInfo.name }} </view>
|
||||
<view class="list_item" v-for="(item,index) in cartList" :key="item.id">
|
||||
@@ -218,7 +217,7 @@
|
||||
return total + parseFloat(item.memberPrice) * parseFloat(item.num);
|
||||
} else {
|
||||
// salePrice销售价
|
||||
return total + parseFloat(item.salePrice) * parseFloat(item.num);
|
||||
return total + parseFloat(item.price) * parseFloat(item.num);
|
||||
}
|
||||
}, 0);
|
||||
console.log(cartone)
|
||||
@@ -436,7 +435,7 @@
|
||||
.head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 32rpx 0;
|
||||
// padding: 32rpx 0;
|
||||
|
||||
.head_left {
|
||||
display: flex;
|
||||
@@ -780,7 +779,7 @@
|
||||
|
||||
.head_bg {
|
||||
height: 456rpx;
|
||||
background: linear-gradient(180deg, #E8AD7B 0%, #F5F5F5 100%);
|
||||
// background: linear-gradient(180deg, #E8AD7B 0%, #F5F5F5 100%);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<Nav v-if="store.scrollTop>=44" />
|
||||
<Nav />
|
||||
<!-- 顶部面板 -->
|
||||
<view class="top--panel">
|
||||
<image class="panelimgbackground"
|
||||
@@ -98,7 +98,7 @@
|
||||
<view class="Controls" v-else>
|
||||
<view class="btn" v-if="item.cartNumber != '0'">
|
||||
<up-icon name="minus-circle-fill" color="#E9AB7A" size="25"></up-icon>
|
||||
<view class="btnClick" @click.stop="shoppingcart(item,index,'-','单')">
|
||||
<view class="btnClick" @click.stop="singleclick(item,'-')">
|
||||
</view>
|
||||
</view>
|
||||
<text class="num"> {{ ifcartNumber(item) }} </text>
|
||||
@@ -106,7 +106,7 @@
|
||||
v-if="item.suitNum>1">{{item.suitNum<99?item.suitNum:'99+'}}</text>
|
||||
<view class="btn">
|
||||
<up-icon name="plus-circle-fill" color="#E9AB7A" size="25"></up-icon>
|
||||
<view class="btnClick" @click.stop="shoppingcart(item,index,'+','单')">
|
||||
<view class="btnClick" @click.stop="singleclick(item,'+')">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -419,7 +419,7 @@
|
||||
store.updateNavbarConfig({
|
||||
showBack: true, //左边返回键
|
||||
rightText: '', //右边文字
|
||||
showSearch: true, //true是标题其他事文字
|
||||
showSearch: false, //true是标题其他事文字
|
||||
title: '',
|
||||
isTransparent: false,
|
||||
hasPlaceholder: false //是否要占位符
|
||||
@@ -561,6 +561,11 @@
|
||||
uni.$u.debounce(store.scrollTop = res.scrollTop, 500)
|
||||
uni.$u.debounce(navScroll.value = res.scrollTop, 500)
|
||||
uni.$u.debounce(mainScroll(res), 500)
|
||||
if(res.scrollTop >= 44){
|
||||
store.showSearch = true
|
||||
}else{
|
||||
store.showSearch = false
|
||||
}
|
||||
});
|
||||
|
||||
// 点击详情
|
||||
|
||||
Reference in New Issue
Block a user