diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue
index 1d3f8ae..9e98c52 100644
--- a/pages/nongKe/cloud_entrepot/index.vue
+++ b/pages/nongKe/cloud_entrepot/index.vue
@@ -88,13 +88,14 @@
-
+
+
-
+
@@ -150,7 +151,7 @@
-
+
@@ -159,7 +160,7 @@
-
+
@@ -194,7 +195,6 @@
-
{
+ console.log(res)
+ this.totalMoney = 0
this.cartList = res.data.list
- this.cartList[0].list.forEach(e => {
- this.totalMoney = this.totalMoney + Number(e.productAttr.price) * e.cart_num
+ this.cartList.forEach(e => {
+ this.totalMoney += e.list[0].cart_num * e.list[0].productAttr.price
+ // console.log(e.list[0].cart_num, e.list[0].productAttr.price)
+ // return
+ // console.log(e.list[0].cart_num, e.productAttr[0].price)
+ // this.totalMoney = this.totalMoney + Number(e.productAttr.price) * e.cart_num
+ // console.log(e.productAttr.price, e.cart_num)
})
})
getCartCounts().then(res => {
diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue
index d8d8b7d..7b9facc 100644
--- a/pages/nongKe/cloud_entrepot/indexa.vue
+++ b/pages/nongKe/cloud_entrepot/indexa.vue
@@ -26,7 +26,8 @@
- {{town}}里海云仓
+
+ {{a}}
@@ -273,6 +274,7 @@
data() {
let src = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13';
return {
+ a: "",
trnList: [],
act_cart: false,
appInfo: {},
@@ -467,6 +469,9 @@
},
addcart(i) {
let that = this
+ console.log((this.$refs.jia[i]))
+ this.a = this.$refs.jia[i]
+ return
uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
that.trnList[i].left = this.cartTagInfo.left - data1.left + 'px';
that.trnList[i].bottom = this.cartTagInfo.top - data1.top + 'px';
diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue
index d04eb0f..0a859e7 100644
--- a/pages/order_addcart/order_addcart.vue
+++ b/pages/order_addcart/order_addcart.vue
@@ -1218,9 +1218,9 @@
padding: 0 30rpx;
box-sizing: border-box;
border-top: 1px solid #eee;
- bottom: 98rpx;
- bottom: calc(98rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
- bottom: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
+ bottom: 40px;
+ bottom: calc(40px + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
+ bottom: calc(40px + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
}
.shoppingCart .footer.on {