|
|
|
@ -145,8 +145,6 @@ |
|
|
|
|
import noMore from '@/pages/classify/no-more/no-more.vue' |
|
|
|
|
import wybPopup from '@/components/wyb-popup/wyb-popup.vue' |
|
|
|
|
import cartChoose from '@/pages/classify/cart-choose/cart-choose.vue' |
|
|
|
|
// import dataList from '@/components/dataList/dataList.vue' |
|
|
|
|
// import uniNumberBox from '@/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue' |
|
|
|
|
import { findGoodsSkuByGoodsId,getShoppingCartList } from '@/Utils/physicalObject.js' |
|
|
|
|
import uniBadge from '@/components/uni-badge/components/uni-badge/uni-badge.vue' |
|
|
|
|
const app = getApp(); |
|
|
|
@ -198,9 +196,7 @@ |
|
|
|
|
this.refreshCartNum(); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted(){ |
|
|
|
|
console.log("挂载了") |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
propData: { |
|
|
|
|
type: Array, |
|
|
|
@ -280,16 +276,7 @@ |
|
|
|
|
refreshCartNum(){ |
|
|
|
|
getShoppingCartList().then( res=>{ |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.cartNum = res.return_data.length; |
|
|
|
|
// uni.setStorage({ |
|
|
|
|
// key:'cartNum', //存储到本地的名字 |
|
|
|
|
// data:res.return_data.length, //存储的数据 |
|
|
|
|
// success(){ |
|
|
|
|
// console.log('存储成功') |
|
|
|
|
// console.log(app.globalData.cartNum,"this.cartNum") |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
this.cartNum = res.return_data.length; |
|
|
|
|
}else{ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|