实例在 angularproject:未完成

    1. <div class="back" >
    2. <a [routerLink]="[ '/home']">返回</a>
    3. </div>
    4. <div class="p_content">
    5. <div class="p_info">
    6. <img [src]="domain+list.img_url" />
    7. <h2>{{list.title}}</h2>
    8. <p class="price">{{list.price}}/份</p>
    9. </div>
    10. <div class="p_detial">
    11. <h3>
    12. 商品详情
    13. </h3>
    14. <div class="p_content" [innerHTML]="list.content">
    15. </div>
    16. </div>
    17. </div>
    18. <footer class="pfooter">
    19. <div class="cart">
    20. <strong>数量:</strong>
    21. <div class="cart_num">
    22. <div class="input_left">-</div>
    23. <div class="input_center">
    24. <input type="text" readonly="readonly" value="1" name="num" id="num" />
    25. </div>
    26. <div class="input_right">+</div>
    27. </div>
    28. </div>
    29. <button class="addcart">加入购物车</button>
    30. </footer>
    1. <div class="back" >
    2. <a [routerLink]="[ '/home']">返回</a>
    3. </div>
    4. <div class="p_content">
    5. <div class="p_info">
    6. <img [src]="domain+list[0].img_url" />
    7. <h2>{{list[0].title}}</h2>
    8. <p class="price">{{list[0].price}}/份</p>
    9. </div>
    10. <div class="p_detial">
    11. <h3>
    12. 商品详情
    13. </h3>
    14. <div class="p_content" [innerHTML]="list[0].content">
    15. </div>
    16. </div>
    17. </div>
    18. <footer class="pfooter">
    19. <div class="cart">
    20. <strong>数量:</strong>
    21. <div class="cart_num">
    22. <div class="input_left">-</div>
    23. <div class="input_center">
    24. <input type="text" readonly="readonly" value="1" name="num" id="num" />
    25. </div>
    26. <div class="input_right">+</div>
    27. </div>
    28. </div>
    29. <button class="addcart">加入购物车</button>
    30. </footer>
    1. <div class="back" >
    2. <a [routerLink]="[ '/home']">返回</a>
    3. </div>
    4. <div class="p_content">
    5. <div class="p_info">
    6. <img [src]="domain+list['img_url']" />
    7. <h2>{{list['title']}}</h2>
    8. <p class="price">{{list['price']}}/份</p>
    9. </div>
    10. <div class="p_detial">
    11. <h3>
    12. 商品详情
    13. </h3>
    14. <div class="p_content" [innerHTML]="list['content']">
    15. </div>
    16. </div>
    17. </div>
    18. <footer class="pfooter">
    19. <div class="cart">
    20. <strong>数量:</strong>
    21. <div class="cart_num">
    22. <div class="input_left">-</div>
    23. <div class="input_center">
    24. <input type="text" readonly="readonly" value="1" name="num" id="num" />
    25. </div>
    26. <div class="input_right">+</div>
    27. </div>
    28. </div>
    29. <button class="addcart">加入购物车</button>
    30. </footer>
    1. <div class="back" >
    2. <a [routerLink]="[ '/home']">返回</a>
    3. </div>
    4. <div class="p_content">
    5. <div class="p_info" >
    6. <img src="assets/images/product.jpg"/>
    7. <h2>小炒肉</h2>
    8. <p class="price">22.00/份</p>
    9. </div>
    10. <div class="p_detial">
    11. <h3>
    12. 商品详情
    13. </h3>
    14. <div class="p_content">
    15. <img src="assets/images/product.jpg"/>
    16. <br />
    17. <p>
    18. 韩国辣酱海鲜炒面,青椒炒牛肉,芦笋腰果炒虾仁,『家常料理』简单又好吃的辣炒起司年糕鸡排
    19. </p>
    20. <br />
    21. <p>
    22. 韩国辣酱海鲜炒面,青椒炒牛肉,芦笋腰果炒虾仁,『家常料理』简单又好吃的辣炒起司年糕鸡排
    23. </p>
    24. </div>
    25. </div>
    26. </div>
    27. <br><br><br><br>
    28. <footer class="pfooter">
    29. <div class="cart">
    30. <strong>数量:</strong>
    31. <div class="cart_num">
    32. <div class="input_left">-</div>
    33. <div class="input_center">
    34. <input type="text" readonly="readonly" value="1" name="num" id="num" />
    35. </div>
    36. <div class="input_right">+</div>
    37. </div>
    38. </div>
    39. <button class="addcart">加入购物车</button>
    40. </footer>