diff --git a/manifest.json b/manifest.json index e88dc21..3fdc175 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "1.5.3", - "versionCode" : 153, + "versionName" : "1.5.4", + "versionCode" : 154, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index 91a7775..60998d3 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -184,7 +184,7 @@ + @click="navgo('/pages/order_addcart/order_addcart?product_type=98')"> { + getCartCounts({product_type: 98}).then(res => { this.goodsNum = res.data[0].count }) }, diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue index 6614ffc..a71e449 100644 --- a/pages/order_addcart/order_addcart.vue +++ b/pages/order_addcart/order_addcart.vue @@ -219,6 +219,7 @@ loading: false, //是否加载中 loadend: false, //是否加载完毕 loadTitle: '加载更多', //提示语 + product_type: 0, isFooter: false, cartCount: 0, goodsHidden: true, @@ -272,7 +273,7 @@ onReady() {}, mounted: function() {}, onLoad: function(options) { - + this.product_type = options.product_type || 0; }, onShow: function() { this.appInfo = this.$appInfo.safeAreaInsets @@ -679,7 +680,7 @@ // 购物车列表 getCartList: function(isChange) { let that = this; - getCartList().then(res => { + getCartList({product_type: this.product_type}).then(res => { res.data.list.forEach((item, index) => { item.allCheck = true item.list.forEach((goods, j) => {