Web项目实战 | 购物系统v2.0 | 开发记录(六)商品详情页面 | 游客访问主页 | 运用Bootstrap4轻量级弹窗实现提示

以往记录

一、运行环境


  • windows10
  • IDEA 2021.1 专业版
  • JDK8
  • SpringBoot2
  • Druid 1.2.5
  • Bootstrap 4.6.0
  • MySQL 8
  • Navicat 11

二、商品详情页面


目前商城系统没有复杂的商品评价、服务售后等模块,故详情页面看起来比较简单

在这里插入图片描述
HTML 代码:

<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品详情页面</title>
    <link th:href="@{/webjars/bootstrap/4.6.0/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/webjars/bootstrap-icons/1.7.2/font/bootstrap-icons.css}" rel="stylesheet">
    <link th:href="@{/css/common/topbar.css}" rel="stylesheet">
    <link th:href="@{/css/commodity/card.css}" rel="stylesheet">
    <link th:href="@{/css/commodity/detail.css}" rel="stylesheet">

</head>
<body>
<div th:replace="common/topbar::topbar"></div>
<nav th:replace="common/search::search"></nav>
<nav aria-label="breadcrumb">
    <ol class="breadcrumb text-dark">
        <strong>当前位置:</strong>
        <li class="breadcrumb-item"><a href="/index.html">商品中心</a></li>
        <li class="breadcrumb-item active" aria-current="page" th:text="${commodity.commodityType.comTypeName}"></li>
    </ol>
</nav>
<div class="container row">
    <div class="offset-md-1 col-md-3 u-com-detail-card">
            <img th:src="${commodity.comImgSrc}" class="u-detail-img" alt="...">
    </div>
    <div class="offset-md-1 col-md-7 u-com-detail-card">
        <h1 th:text="${commodity.comName}"></h1>
        <h2 th:text="${commodity.comDesc}"></h2>
        <ul style="list-style-type: none">
            <li>
                <span>商品价格: </span>
                <span class=
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值