1
0

shop.vue 662 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="shop">
  3. <van-cell :title="defaultAddr === '' ? '默认收货地址' : defaultAddr" is-link link-type="navigateTo" url="/pages/address/address"/>
  4. </view>
  5. </template>
  6. <script>
  7. import {shopCartInfo,totalPay,orderCount} from '../../api/shop.js'
  8. export default {
  9. data() {
  10. return {
  11. defaultAddr: "",
  12. basketIds: [],
  13. shopCartInfo:[]
  14. }
  15. },
  16. async onLoad() {
  17. const aaa = await totalPay(this.basketIds)
  18. console.log(aaa,'aaa')
  19. this.init();
  20. },
  21. methods:{
  22. init() {
  23. shopCartInfo({}).then(res => {
  24. console.log(res,'购物车')
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style>
  31. </style>