|
|
@@ -67,7 +67,8 @@ export default {
|
|
|
})
|
|
|
this.mainData = res.data
|
|
|
this.productList()
|
|
|
- this.changeDataStructure()
|
|
|
+
|
|
|
+ /* this.changeDataStructure()*/
|
|
|
/* this.$refs.detailed.detailedList(this.mainData)*/
|
|
|
this.flag = true
|
|
|
},
|
|
|
@@ -134,7 +135,8 @@ export default {
|
|
|
this.totalPrice = this.totalPrice + item.price * item.qty
|
|
|
})
|
|
|
console.log(this.totalPrice,'商品总价')
|
|
|
- this.queryMainData(this.$route.query.id)
|
|
|
+ /*this.queryMainData(this.$route.query.id)*/
|
|
|
+ this.changeDataStructure()
|
|
|
},
|
|
|
onSuccess(){
|
|
|
this.queryMainData(this.$route.query.id)
|
|
|
@@ -143,7 +145,7 @@ export default {
|
|
|
mounted() {
|
|
|
console.log(this.$route.query.id)
|
|
|
|
|
|
- this.productList()
|
|
|
+ this.queryMainData(this.$route.query.id)
|
|
|
}
|
|
|
}
|
|
|
</script>
|