This commit is contained in:
wpf 2023-11-05 11:09:34 +08:00
parent ff1f7e3728
commit c0b9dc0c68
3 changed files with 7 additions and 6 deletions

View File

@ -2,8 +2,8 @@
"name" : "惠农生活", "name" : "惠农生活",
"appid" : "__UNI__3A527D1", "appid" : "__UNI__3A527D1",
"description" : "", "description" : "",
"versionName" : "1.5.3", "versionName" : "1.5.4",
"versionCode" : 153, "versionCode" : 154,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -184,7 +184,7 @@
</view> </view>
<!-- 购物车 --> <!-- 购物车 -->
<view class="card" :style="`bottom:${appInfo.bottom}px`" <view class="card" :style="`bottom:${appInfo.bottom}px`"
@click="navgo('/pages/order_addcart/order_addcart')"> @click="navgo('/pages/order_addcart/order_addcart?product_type=98')">
<view class="left"> <view class="left">
<view class="cart" :class="{ act_cart: act_cart }" style="position: relative; z-index: 9999999"> <view class="cart" :class="{ act_cart: act_cart }" style="position: relative; z-index: 9999999">
<u--image :showLoading="true" src="/static/images/LHYC/GWC.png" width="63.09rpx" <u--image :showLoading="true" src="/static/images/LHYC/GWC.png" width="63.09rpx"
@ -683,7 +683,7 @@
}) })
this.totalMoney = this.totalMoney.toFixed(2) this.totalMoney = this.totalMoney.toFixed(2)
}) })
getCartCounts().then(res => { getCartCounts({product_type: 98}).then(res => {
this.goodsNum = res.data[0].count this.goodsNum = res.data[0].count
}) })
}, },

View File

@ -219,6 +219,7 @@
loading: false, // loading: false, //
loadend: false, // loadend: false, //
loadTitle: '加载更多', // loadTitle: '加载更多', //
product_type: 0,
isFooter: false, isFooter: false,
cartCount: 0, cartCount: 0,
goodsHidden: true, goodsHidden: true,
@ -272,7 +273,7 @@
onReady() {}, onReady() {},
mounted: function() {}, mounted: function() {},
onLoad: function(options) { onLoad: function(options) {
this.product_type = options.product_type || 0;
}, },
onShow: function() { onShow: function() {
this.appInfo = this.$appInfo.safeAreaInsets this.appInfo = this.$appInfo.safeAreaInsets
@ -679,7 +680,7 @@
// //
getCartList: function(isChange) { getCartList: function(isChange) {
let that = this; let that = this;
getCartList().then(res => { getCartList({product_type: this.product_type}).then(res => {
res.data.list.forEach((item, index) => { res.data.list.forEach((item, index) => {
item.allCheck = true item.allCheck = true
item.list.forEach((goods, j) => { item.list.forEach((goods, j) => {