订单商品处理,商品列表头部图片处理

This commit is contained in:
GaoHao 2024-08-03 16:57:50 +08:00
parent 5fb9871900
commit 35d4304410
3 changed files with 16 additions and 11 deletions

View File

@ -61,7 +61,7 @@ export default {
return uni.api.get("/groupOrderInfo/list", data); return uni.api.get("/groupOrderInfo/list", data);
}, },
orderorderInfo(data) { //订单回显 orderorderInfo(data) { //订单回显
return uni.api.get("/order/orderInfo", data); return uni.api.get("/order/orderInfo", data ,false);
}, },
groupOrderInfoDetail(data) { //订单回显 groupOrderInfoDetail(data) { //订单回显
return uni.api.get("/groupOrderInfo/get", data); return uni.api.get("/groupOrderInfo/get", data);

View File

@ -267,8 +267,12 @@
}, 1000) }, 1000)
break; break;
case 'addcart': case 'addcart':
this.listinfo.details = msg.data; if (this.listinfoid) {
this.listinfo.payAmount = msg.amount; this.orderorderInfo()
} else {
this.listinfo.details = msg.data;
this.listinfo.payAmount = msg.amount;
}
break; break;
} }
this.$set(this, 'cartLists', msg) this.$set(this, 'cartLists', msg)

View File

@ -10,7 +10,7 @@
<view class="top--panel"> <view class="top--panel">
<navseat :opacity='opacity' :titleshow='true'></navseat> <navseat :opacity='opacity' :titleshow='true'></navseat>
<!-- 顶部面板可添加所需要放在页面顶部的内容代码比如banner图 --> <!-- 顶部面板可添加所需要放在页面顶部的内容代码比如banner图 -->
<image class="panelimgbackground" :src="shopInfo.storeInfo.coverImg" mode="aspectFill"> <image class="panelimgbackground" :src="shopInfo.storeInfo.coverImg||'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/shopDetails/topBanner.png'" mode="aspectFill">
</image> </image>
<view class="panelone"> <view class="panelone">
{{ shopInfo.storeInfo.shopName }} {{ shopInfo.storeInfo.shopName }}
@ -922,17 +922,16 @@
} }
.top--panel { .top--panel {
padding: 0 20rpx; // padding: 0 20rpx;
background-color: #fff; background-color: #fff;
.panelimgbackground { .panelimgbackground {
width: 382rpx; width: 100%;
margin: 82rpx auto 0 auto; height: 272rpx;
height: 158rpx;
} }
.panelone { .panelone {
margin-top: 32rpx; padding: 20rpx 20rpx 0 20rpx;
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
@ -940,6 +939,7 @@
} }
.paneltow { .paneltow {
padding: 0 20rpx;
margin-top: 16rpx; margin-top: 16rpx;
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 400;
@ -954,7 +954,7 @@
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
padding: 0 20rpx;
.paneltheretext { .paneltheretext {
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 400;
@ -977,11 +977,12 @@
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
padding: 0 20rpx;
} }
.panelfive { .panelfive {
width: 100%; width: 100%;
padding: 0 20rpx;
.panelfive_list { .panelfive_list {
display: flex; display: flex;
} }