remove bom
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 童飞玩具购物网站
|
# 童飞玩具购物网站
|
||||||
|
|
||||||
## 技术栈
|
## 技术栈
|
||||||
- 前端:Vue 3 + Vite + Ant Design Vue
|
- 前端:Vue 3 + Vite + Ant Design Vue
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.toyshop</groupId>
|
<groupId>com.toyshop</groupId>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop;
|
package com.toyshop;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.config;
|
package com.toyshop.config;
|
||||||
|
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
import com.toyshop.entity.UserRole;
|
import com.toyshop.entity.UserRole;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.config;
|
package com.toyshop.config;
|
||||||
|
|
||||||
import com.toyshop.dto.ApiResponse;
|
import com.toyshop.dto.ApiResponse;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.config;
|
package com.toyshop.config;
|
||||||
|
|
||||||
import com.toyshop.security.JwtAuthenticationFilter;
|
import com.toyshop.security.JwtAuthenticationFilter;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.controller;
|
package com.toyshop.controller;
|
||||||
|
|
||||||
import com.toyshop.dto.*;
|
import com.toyshop.dto.*;
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.controller;
|
package com.toyshop.controller;
|
||||||
|
|
||||||
import com.toyshop.dto.ApiResponse;
|
import com.toyshop.dto.ApiResponse;
|
||||||
import com.toyshop.entity.Product;
|
import com.toyshop.entity.Product;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.controller.admin;
|
package com.toyshop.controller.admin;
|
||||||
|
|
||||||
import com.toyshop.dto.*;
|
import com.toyshop.dto.*;
|
||||||
import com.toyshop.entity.*;
|
import com.toyshop.entity.*;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.controller.user;
|
package com.toyshop.controller.user;
|
||||||
|
|
||||||
import com.toyshop.dto.*;
|
import com.toyshop.dto.*;
|
||||||
import com.toyshop.entity.*;
|
import com.toyshop.entity.*;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
public class ApiResponse<T> {
|
public class ApiResponse<T> {
|
||||||
private boolean success;
|
private boolean success;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
public class AuthResponse {
|
public class AuthResponse {
|
||||||
private String token;
|
private String token;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.dto;
|
package com.toyshop.dto;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
public enum OrderStatus {
|
public enum OrderStatus {
|
||||||
PENDING_PAYMENT,
|
PENDING_PAYMENT,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.entity;
|
package com.toyshop.entity;
|
||||||
|
|
||||||
public enum UserRole {
|
public enum UserRole {
|
||||||
USER,
|
USER,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Address;
|
import com.toyshop.entity.Address;
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Carousel;
|
import com.toyshop.entity.Carousel;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.CartItem;
|
import com.toyshop.entity.CartItem;
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Category;
|
import com.toyshop.entity.Category;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Notice;
|
import com.toyshop.entity.Notice;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.OrderItem;
|
import com.toyshop.entity.OrderItem;
|
||||||
import com.toyshop.entity.Order;
|
import com.toyshop.entity.Order;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Order;
|
import com.toyshop.entity.Order;
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.ProductImage;
|
import com.toyshop.entity.ProductImage;
|
||||||
import com.toyshop.entity.Product;
|
import com.toyshop.entity.Product;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.Product;
|
import com.toyshop.entity.Product;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.repository;
|
package com.toyshop.repository;
|
||||||
|
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
import com.toyshop.entity.UserRole;
|
import com.toyshop.entity.UserRole;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.security;
|
package com.toyshop.security;
|
||||||
|
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
import com.toyshop.repository.UserRepository;
|
import com.toyshop.repository.UserRepository;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.security;
|
package com.toyshop.security;
|
||||||
|
|
||||||
import io.jsonwebtoken.Claims;
|
import io.jsonwebtoken.Claims;
|
||||||
import jakarta.servlet.FilterChain;
|
import jakarta.servlet.FilterChain;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.security;
|
package com.toyshop.security;
|
||||||
|
|
||||||
import io.jsonwebtoken.Claims;
|
import io.jsonwebtoken.Claims;
|
||||||
import io.jsonwebtoken.Jwts;
|
import io.jsonwebtoken.Jwts;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.service;
|
package com.toyshop.service;
|
||||||
|
|
||||||
import com.toyshop.dto.AuthRequest;
|
import com.toyshop.dto.AuthRequest;
|
||||||
import com.toyshop.dto.RegisterRequest;
|
import com.toyshop.dto.RegisterRequest;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.service;
|
package com.toyshop.service;
|
||||||
|
|
||||||
import com.toyshop.entity.*;
|
import com.toyshop.entity.*;
|
||||||
import com.toyshop.repository.*;
|
import com.toyshop.repository.*;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.service;
|
package com.toyshop.service;
|
||||||
|
|
||||||
import com.toyshop.entity.*;
|
import com.toyshop.entity.*;
|
||||||
import com.toyshop.repository.*;
|
import com.toyshop.repository.*;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.service;
|
package com.toyshop.service;
|
||||||
|
|
||||||
import com.toyshop.entity.*;
|
import com.toyshop.entity.*;
|
||||||
import com.toyshop.repository.*;
|
import com.toyshop.repository.*;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.toyshop.service;
|
package com.toyshop.service;
|
||||||
|
|
||||||
import com.toyshop.entity.User;
|
import com.toyshop.entity.User;
|
||||||
import com.toyshop.repository.UserRepository;
|
import com.toyshop.repository.UserRepository;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/toyshop?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
url: jdbc:mysql://localhost:3307/toyshop?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: qq5211314
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: update
|
ddl-auto: update
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
CREATE DATABASE IF NOT EXISTS toyshop DEFAULT CHARSET utf8mb4;
|
CREATE DATABASE IF NOT EXISTS toyshop DEFAULT CHARSET utf8mb4;
|
||||||
USE toyshop;
|
USE toyshop;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS users (
|
CREATE TABLE IF NOT EXISTS users (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "toyshop-frontend",
|
"name": "toyshop-frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view />
|
<router-view />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: 'http://localhost:8080',
|
baseURL: 'http://localhost:8080',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-layout style="min-height: 100vh">
|
<a-layout style="min-height: 100vh">
|
||||||
<a-layout-sider collapsible>
|
<a-layout-sider collapsible>
|
||||||
<div class="logo">后台管理</div>
|
<div class="logo">后台管理</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-layout>
|
<a-layout>
|
||||||
<a-layout-header class="header">
|
<a-layout-header class="header">
|
||||||
<div class="logo">童飞玩具购物网站</div>
|
<div class="logo">童飞玩具购物网站</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import Antd from 'ant-design-vue'
|
import Antd from 'ant-design-vue'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="轮播图管理">
|
<a-card title="轮播图管理">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item label="图片URL"><a-input v-model:value="form.imageUrl" /></a-form-item>
|
<a-form-item label="图片URL"><a-input v-model:value="form.imageUrl" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="分类管理">
|
<a-card title="分类管理">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="管理员登录" style="max-width: 360px; margin: 80px auto;">
|
<a-card title="管理员登录" style="max-width: 360px; margin: 80px auto;">
|
||||||
<a-form layout="vertical">
|
<a-form layout="vertical">
|
||||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="公告管理">
|
<a-card title="公告管理">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item label="标题"><a-input v-model:value="form.title" /></a-form-item>
|
<a-form-item label="标题"><a-input v-model:value="form.title" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="订单管理">
|
<a-card title="订单管理">
|
||||||
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="商品管理">
|
<a-card title="商品管理">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="用户管理">
|
<a-card title="用户管理">
|
||||||
<a-table :dataSource="users" :columns="columns" rowKey="id">
|
<a-table :dataSource="users" :columns="columns" rowKey="id">
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="购物车">
|
<a-card title="购物车">
|
||||||
<a-table :dataSource="items" :columns="columns" rowKey="id">
|
<a-table :dataSource="items" :columns="columns" rowKey="id">
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="订单确认">
|
<a-card title="订单确认">
|
||||||
<a-list :data-source="addresses">
|
<a-list :data-source="addresses">
|
||||||
<template #renderItem="{ item }">
|
<template #renderItem="{ item }">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<a-card title="轮播与公告">
|
<a-card title="轮播与公告">
|
||||||
<a-carousel autoplay>
|
<a-carousel autoplay>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="用户登录" style="max-width: 360px; margin: 0 auto;">
|
<a-card title="用户登录" style="max-width: 360px; margin: 0 auto;">
|
||||||
<a-form layout="vertical">
|
<a-form layout="vertical">
|
||||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="我的订单">
|
<a-card title="我的订单">
|
||||||
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<a-card>
|
<a-card>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card>
|
<a-card>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-input v-model:value="keyword" placeholder="搜索商品" style="width: 200px" />
|
<a-input v-model:value="keyword" placeholder="搜索商品" style="width: 200px" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="个人中心">
|
<a-card title="个人中心">
|
||||||
<a-form layout="vertical">
|
<a-form layout="vertical">
|
||||||
<a-form-item label="手机号"><a-input v-model:value="profile.phone" /></a-form-item>
|
<a-form-item label="手机号"><a-input v-model:value="profile.phone" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card title="用户注册" style="max-width: 360px; margin: 0 auto;">
|
<a-card title="用户注册" style="max-width: 360px; margin: 0 auto;">
|
||||||
<a-form layout="vertical">
|
<a-form layout="vertical">
|
||||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
import MainLayout from '../layouts/MainLayout.vue'
|
import MainLayout from '../layouts/MainLayout.vue'
|
||||||
import AdminLayout from '../layouts/AdminLayout.vue'
|
import AdminLayout from '../layouts/AdminLayout.vue'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user