This Vuejs shopping cart demo, in
v-text="item.quantity || n "
This line does not know how to display the value of the drop-down list option to the button's v-text, please God help to see how to modify?
Html:
☰ laravel-cart
@if (Auth::guest ())
- Login
- Register
@else
- {{Auth::user ()->name}} Logout
@endif
Cart
Select AllGoods Quantity Unit Price Subtotal
Reply content:
This Vuejs shopping cart demo, in v-text="item.quantity || n "
this line do not know how to display the value of the drop-down list of options to the button v-text, please God help to see how to modify?
Html:
☰ laravel-cart
@if (Auth::guest ())
- Login
- Register
@else
- {{Auth::user ()->name}} Logout
@endif
Cart
Select AllGoods Quantity Unit Price Subtotal
Mobile phone to see this code really tired ...
v-model="items"
, which is wrong in writing here;
After Ajax obtains the data, manually add the required properties before selected
assigning the value toitems