diff --git a/components/cartData.vue b/components/cartData.vue index 7018eb6..5610b53 100644 --- a/components/cartData.vue +++ b/components/cartData.vue @@ -233,14 +233,14 @@ }) return } - let merchant_ids = this.cartData.filter(v=>v.isSelected).map(v=>v.merchant_id) - if (merchant_ids.some(v=>v!=merchant_ids[0])) { - uni.showToast({ - title:'购物车只可下单同一供应商的产品', - icon:'none', - }) - return - } + // let merchant_ids = this.cartData.filter(v=>v.isSelected).map(v=>v.merchant_id) + // if (merchant_ids.some(v=>v!=merchant_ids[0])) { + // uni.showToast({ + // title:'购物车只可下单同一供应商的产品', + // icon:'none', + // }) + // return + // } let orderData = this.cartData.filter(v=>v.isSelected).map(v=>{ return { diff --git a/subPackages/order/detail.vue b/subPackages/order/detail.vue index b0bfc96..e6e31ed 100644 --- a/subPackages/order/detail.vue +++ b/subPackages/order/detail.vue @@ -144,12 +144,15 @@ - - {{info.order_child[0].data[0].list_merchant_name}} - + + {{fItem.data[0].list_merchant_name}} + - {{item.goods_title}} + + {{item.goods_title}} + ¥{{item.money / 100}} + {{item.specifications_name}} x{{item.num}} @@ -161,13 +164,16 @@ - 商品总额:¥{{info.money / 100}} + 商品总额:¥{{fItem.total_price / 100}} - - 优惠券:-¥{{info.discounts / 100}} + + 邮费:¥{{fItem.total_post_money / 100}} + - 实付金额:¥{{info.pay_money / 100}} + 实付金额:¥{{(fItem.total_price + fItem.total_post_money) / 100}} diff --git a/subPackages/order/gwcOrder.vue b/subPackages/order/gwcOrder.vue index 4cb5cbb..e3535b4 100644 --- a/subPackages/order/gwcOrder.vue +++ b/subPackages/order/gwcOrder.vue @@ -34,8 +34,9 @@ {{ item.specifications_name }} - {{ item.Specifications_money / 100 }} + ¥{{ item.Specifications_money / 100 }} + ¥{{ item.post_money / 100 }} @@ -215,6 +216,8 @@ export default { this.post = 0 res.data.forEach((item)=> { this.post += item.post_money + const postItem = this.info.find(i => i.specifications_id == item.specifications_id) + if(postItem) postItem.post_money = item.post_money }) this.flag = true; } @@ -509,7 +512,9 @@ view { color: #000000; .price-list { + width: 600rpx; display: flex; + justify-content: space-between; margin-top: 18rpx; align-items: center; .price-r { @@ -518,19 +523,23 @@ view { font-weight: 500; color: #FC5109; &:before { - content: '¥'; + content: '小计:'; display: inline-block; - color: #FC5109; + color: #000; font-size: 24rpx; } } .price-g { - font-size: 24rpx; + font-size: 32rpx; font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #b5bcc9; - text-decoration: line-through; - margin-left: 10rpx; + font-weight: 500; + color: #FC5109; + &:before { + content: '运费:'; + display: inline-block; + color: #000; + font-size: 24rpx; + } } } } diff --git a/subPackages/order/trades.vue b/subPackages/order/trades.vue index 99f850c..baa469e 100644 --- a/subPackages/order/trades.vue +++ b/subPackages/order/trades.vue @@ -317,6 +317,7 @@ this.Post(data, '/api/order/orderList').then(res => { let arr = res.data; arr.forEach(item => { + console.log(item) item.order_child.forEach((itemX, index) => { if (index > 0) { item.order_child[0].data = [...item.order_child[0].data, ...itemX diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 6497f66..c50f35c 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -112,8 +112,8 @@ 明细 - - + + diff --git a/subPackages/user/gwc.vue b/subPackages/user/gwc.vue index d17b5b7..74de912 100644 --- a/subPackages/user/gwc.vue +++ b/subPackages/user/gwc.vue @@ -229,13 +229,13 @@ } }) }) - if (Array.from(new Set(ids)).length > 1) { - uni.showToast({ - title: '请选择同一商户下的商品', - icon: 'none' - }) - return; - } + // if (Array.from(new Set(ids)).length > 1) { + // uni.showToast({ + // title: '请选择同一商户下的商品', + // icon: 'none' + // }) + // return; + // } if (list.length == 0) { uni.showToast({ title: '请选择商品',