comment 7.2
This commit is contained in:
@@ -16,20 +16,27 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
this.$u.api.getGoodsDetails({ id: this.info.goods_id }).then(res => {
|
||||
if (res.errCode == 0) {
|
||||
const goods = {
|
||||
goods: res.data,
|
||||
type: 1,
|
||||
}
|
||||
this.$store.commit('setGoodsDetails', goods);
|
||||
this.$store.commit('setGoodsId', this.info.goods_id);
|
||||
this.$u.route({
|
||||
url: 'pageB/sdetails/index',
|
||||
})
|
||||
// console.log(this.goodsInfo.mobile_body);
|
||||
// this.$u.api.getGoodsDetails({ id: this.info.goods_id }).then(res => {
|
||||
// if (res.errCode == 0) {
|
||||
// const goods = {
|
||||
// goods: res.data,
|
||||
// type: 1,
|
||||
// }
|
||||
// this.$store.commit('setGoodsDetails', goods);
|
||||
// this.$store.commit('setGoodsId', this.info.goods_id);
|
||||
// this.$u.route({
|
||||
// url: 'pageB/sdetails/index',
|
||||
// })
|
||||
// // console.log(this.goodsInfo.mobile_body);
|
||||
// }
|
||||
// })
|
||||
this.$u.route({
|
||||
url: 'pageB/sdetails/index',
|
||||
params: {
|
||||
id: this.info.goods_id,
|
||||
type: 1,
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user