Commit 0466216f3c2742f866b347cc8539eb1abf5f16e6
1 parent
2369ec720c
Exists in
master
修改详情页
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/pages/frameDetail/frameDetail.vue
| ... | ... | @@ -398,7 +398,7 @@ export default { |
| 398 | 398 | this.test = this.goodInfo.prodIntro1 |
| 399 | 399 | this.test = this.test.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ') |
| 400 | 400 | // addCart |
| 401 | - this.addCartList.price = this.goodInfo.p_sale_price | |
| 401 | + this.addCartList.price = this.goodInfo.priceArea.Min_Price | |
| 402 | 402 | this.addCartList.sk_id = this.goodInfo.skuList[0].sk_id |
| 403 | 403 | this.addCartList.mp_id = this.goodInfo.glassData.mp_id |
| 404 | 404 | }) |
| ... | ... | @@ -433,10 +433,10 @@ export default { |
| 433 | 433 | num: this.addCartList.num, |
| 434 | 434 | pid: this.pid, |
| 435 | 435 | price: this.addCartList.price, |
| 436 | - checkedSKU: {}, | |
| 437 | 436 | }) |
| 437 | + // 再次请求购物车接口,实现实时更新 | |
| 438 | 438 | store.dispatch('cart/getCartList', { |
| 439 | - uid: this.$store.state.user.userInfo.uid, // 用户id | |
| 439 | + uid: this.$store.state.user.userInfo.uid, | |
| 440 | 440 | }) |
| 441 | 441 | }, |
| 442 | 442 | goPerchase () { | ... | ... |