|
@@ -140,9 +140,10 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(page) {
|
|
|
- // console.log('page',page);
|
|
|
+ console.log('page',page);
|
|
|
// console.log('this.creditGoods',this.creditGoods);
|
|
|
this.fromPage = page.fromPage;
|
|
|
+ console.log('fromPage',this.fromPage);
|
|
|
// if(this.cartGoods>0&&this.fromPage!='cart'){
|
|
|
// console.log('fromPagecart',this.fromPage);
|
|
|
// this.orderInfo.goodsList = this.cartGoods;
|
|
@@ -152,14 +153,22 @@
|
|
|
// this.orderInfo.goodsList = this.creditGoods;
|
|
|
// }
|
|
|
this.orderInfo.goodsList = this.cartGoods;
|
|
|
+ console.log('this.buyNowGoods',this.buyNowGoods);
|
|
|
+ if(this.buyNowGoods.length>0&&this.fromPage=='productdetails'){
|
|
|
+ console.log('fromPagecart',this.fromPage);
|
|
|
+ this.orderInfo.goodsList = this.buyNowGoods;
|
|
|
+ }
|
|
|
this.settlement();
|
|
|
},
|
|
|
+ onUnload() {
|
|
|
+ this.$u.vuex('buyNowGoods',[]);
|
|
|
+ console.log('this.buyNowGoods',this.buyNowGoods);
|
|
|
+ },
|
|
|
onShow() {
|
|
|
if(this.fromPage=='addrlist'){
|
|
|
this.settlement()
|
|
|
}
|
|
|
- console.log('cartGoods===',this.cartGoods);
|
|
|
-
|
|
|
+ // console.log('cartGoods===',this.cartGoods);
|
|
|
},
|
|
|
computed: {
|
|
|
totalWeight() {
|