计算机毕业设计项目之基于uniapp的小程序ssm的童装购买购物商城平台【源码+远程+答疑】

在这里插入图片描述网站介绍:✌本网站专注专注于计算机技术领域的毕业设计辅导,提供JAVA、微信小程序、Python、APP、PHP、微服务、NET等毕设项目的定制和成品服务!✌

一、项目介绍

计算机毕业设计java毕设项目源码之基于SSM框架的童装购买平台微信小程序演示视频  https://www.bilibili.com/video/BV1594y1k7CR?share_source=copy_web

项目含有源码、文档、PPT、配套开发软件、软件安装教程、项目发布教程、包运行成功以及课程答疑与微信售后交流群、送查重系统不限次数免费查重等福利!

技术路线

开发语言:Java、小程序

前端技术:JavaScript、VUE.js(2.X)、css3

后端框架:ssm

JDK版本:JDK1.8

服务器:tomcat9

数据库:mysql 5.7

数据库工具:Navicat11

开发软件:eclipse/myeclipse/idea

浏览器:谷歌浏览器

小程序运行软件:微信开发者
在这里插入图片描述

二、文档介绍

系统主要功能

使用角色为注册用户、管理员、商家。框架界面分为微信端和管理员、商家操作界面。微信端的功能设计为:

(1)搜索功能,不管是注册用户和管理员、商家都可以使用本功能进行特定商品的搜索;

(2)商家功能,本界面里展示了不同的商家信息,注册用户只可以在首页进行信息的浏览;

(3)商品信息功能,本界面里展示了最新上架的商品详情,可以详细了解,注册用户在登录后可以进行购买;

(4)在线咨询功能,注册用户可以实现提问和咨询;

(5)购物车功能,可以实现购物车里商品的结账和删除;

(6)我的订单管理功能,可以追踪自己的订单;

(7)用户充值功能,实现在线充值,方便支付;

(8)商品购买功能,用户在经过注册、登录后可以购买商品;

(9)商品评价功能,当订单完成后可以进行商品评价;

(10)个人信息管理功能,对注册时填写的资料进行修改;

(11)收藏功能,可以收藏商品。
后台管理员的功能设计为

(1)商家管理功能,可以审核商家资料;

(2)商品信息管理功能,对商品进行上架、下架、编辑等,还可以查看商品的评价;

(3)订单管理功能,此功能可以收到用户的订单,并对订单进行审核和发货;

(4)在线咨询管理功能,可以对用户的咨询进行查询以及回复;

(5)注册用户管理功能,实现注册用户资料的查询;

(6)商品分类管理功能,分类可以使商品更好的打理、查询;

(7)尺码信息管理功能,实现商品尺码的划分;

(8)款式信息管理功能,对童装的不同款式进行管理。
在这里插入图片描述
在这里插入图片描述在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

三、部分代码

<template>
  <div>
    <el-form
      class="detail-form-content"
      ref="ruleForm"
      :model="ruleForm"
      label-width="80px"
    >  
     <el-row>
      <el-col :span="12">
        <el-form-item   v-if="flag=='huiyuan'"  label="会员账号" prop="huiyuanzhanghao">
          <el-input v-model="ruleForm.huiyuanzhanghao" readonly              placeholder="会员账号" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='huiyuan'"  label="会员姓名" prop="huiyuanxingming">
          <el-input v-model="ruleForm.huiyuanxingming"               placeholder="会员姓名" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='huiyuan'"  label="身份证" prop="shenfenzheng">
          <el-input v-model="ruleForm.shenfenzheng"               placeholder="身份证" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item v-if="flag=='huiyuan'"  label="性别" prop="xingbie">
          <el-select v-model="ruleForm.xingbie" placeholder="请选择性别">
            <el-option
                v-for="(item,index) in huiyuanxingbieOptions"
                v-bind:key="index"
                :label="item"
                :value="item">
            </el-option>
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="24">  
        <el-form-item v-if="flag=='huiyuan'" label="头像" prop="touxiang">
          <file-upload
          tip="点击上传头像"
          action="file/upload"
          :limit="3"
          :multiple="true"
          :fileUrls="ruleForm.touxiang?ruleForm.touxiang:''"
          @change="huiyuantouxiangUploadChange"
          ></file-upload>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='huiyuan'"  label="手机" prop="shouji">
          <el-input v-model="ruleForm.shouji"               placeholder="手机" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='yuangong'"  label="工号" prop="gonghao">
          <el-input v-model="ruleForm.gonghao" readonly              placeholder="工号" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='yuangong'"  label="员工姓名" prop="yuangongxingming">
          <el-input v-model="ruleForm.yuangongxingming"               placeholder="员工姓名" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item v-if="flag=='yuangong'"  label="性别" prop="xingbie">
          <el-select v-model="ruleForm.xingbie" placeholder="请选择性别">
            <el-option
                v-for="(item,index) in yuangongxingbieOptions"
                v-bind:key="index"
                :label="item"
                :value="item">
            </el-option>
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="24">  
        <el-form-item v-if="flag=='yuangong'" label="头像" prop="touxiang">
          <file-upload
          tip="点击上传头像"
          action="file/upload"
          :limit="3"
          :multiple="true"
          :fileUrls="ruleForm.touxiang?ruleForm.touxiang:''"
          @change="yuangongtouxiangUploadChange"
          ></file-upload>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='yuangong'"  label="手机" prop="shouji">
          <el-input v-model="ruleForm.shouji"               placeholder="手机" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item   v-if="flag=='yuangong'"  label="邮箱" prop="youxiang">
          <el-input v-model="ruleForm.youxiang"               placeholder="邮箱" clearable></el-input>
        </el-form-item>
      </el-col>
      <el-form-item v-if="flag=='users'" label="用户名" prop="username">
        <el-input v-model="ruleForm.username" 
        placeholder="用户名"></el-input>
      </el-form-item>
      <el-col :span="24">
      <el-form-item>
        <el-button type="primary" @click="onUpdateHandler">修 改</el-button>
      </el-form-item>
      </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
// 数字,邮件,手机,url,身份证校验
import { isNumber,isIntNumer,isEmail,isMobile,isPhone,isURL,checkIdCard } from "@/utils/validate";
 
export default {
  data() {
    return {
      ruleForm: {},
      flag: '',
      usersFlag: false,
      huiyuanxingbieOptions: [],
      yuangongxingbieOptions: [],
    };
  },
  mounted() {
    var table = this.$storage.get("sessionTable");
    this.flag = table;
    this.$http({
      url: `${this.$storage.get("sessionTable")}/session`,
      method: "get"
    }).then(({ data }) => {
      if (data && data.code === 0) {
        this.ruleForm = data.data;
      } else {
        this.$message.error(data.msg);
      }
    });
    this.huiyuanxingbieOptions = "男,女".split(',')
    this.yuangongxingbieOptions = "男,女".split(',')
  },
  methods: {
    huiyuantouxiangUploadChange(fileUrls) {
        this.ruleForm.touxiang = fileUrls;
    },
    yuangongtouxiangUploadChange(fileUrls) {
        this.ruleForm.touxiang = fileUrls;
    },
    onUpdateHandler() {
      if((!this.ruleForm.huiyuanzhanghao)&& 'huiyuan'==this.flag){
        this.$message.error('会员账号不能为空');
        return
      }
      if((!this.ruleForm.mima)&& 'huiyuan'==this.flag){
        this.$message.error('密码不能为空');
        return
      }
      if( 'huiyuan' ==this.flag && this.ruleForm.shenfenzheng&&(!checkIdCard(this.ruleForm.shenfenzheng))){
        this.$message.error(`身份证应输入身份证格式`);
        return
      }
      if( 'huiyuan' ==this.flag && this.ruleForm.shouji&&(!isMobile(this.ruleForm.shouji))){
        this.$message.error(`手机应输入手机格式`);
        return
      }
      if((!this.ruleForm.gonghao)&& 'yuangong'==this.flag){
        this.$message.error('工号不能为空');
        return
      }
      if((!this.ruleForm.mima)&& 'yuangong'==this.flag){
        this.$message.error('密码不能为空');
        return
      }
      if((!this.ruleForm.yuangongxingming)&& 'yuangong'==this.flag){
        this.$message.error('员工姓名不能为空');
        return
      }
      if( 'yuangong' ==this.flag && this.ruleForm.shouji&&(!isMobile(this.ruleForm.shouji))){
        this.$message.error(`手机应输入手机格式`);
        return
      }
      if( 'yuangong' ==this.flag && this.ruleForm.youxiang&&(!isEmail(this.ruleForm.youxiang))){
        this.$message.error(`邮箱应输入邮箱格式`);
        return
      }
      if('users'==this.flag && this.ruleForm.username.trim().length<1) {
	this.$message.error(`用户名不能为空`);
        return	
      }
      this.$http({
        url: `${this.$storage.get("sessionTable")}/update`,
        method: "post",
        data: this.ruleForm
      }).then(({ data }) => {
        if (data && data.code === 0) {
          this.$message({
            message: "修改信息成功",
            type: "success",
            duration: 1500,
            onClose: () => {
            }
          });
        } else {
          this.$message.error(data.msg);
        }
      });
    }
  }
};
</script>
<style lang="scss" scoped>
</style>
  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
购物网站数据库设计 注册用户表(users) 字段名 数据类型 是否为空 默认值 说明 Un ame Varchar(20) Not null 主键(用户名) Upwd Varchar(20) Not null 用户密码 Uquesti on Varchar(50) Not null 密码查询冋题 Uresult Varchar(50) Not null 密码查询答案 Usafetycode Varchar(16) 安全码 URoleid Int Roles (roleid)外键 角色表(roles) 字段名 " 数据类型 是否为空 默认值 说明 Roleid Int Not null 主键,自动增长 Role name Varchar(20) Not null 角色名字 功能表(functions) 字段名 数据类型 是否为空 默认值 说明 Fid Int Not null 主键,自动增长 Fn ame Varchar(30) Not null 功能名称 Fpare ntld Int Not null 表外建 Furl Varchar(100) 功能路径 管理员信息表(controllers) 字段名 数据类型 是否为空 默认值 说明 Cid Int Not null 主键,自动增长 Cn ame Varchar(20) Not null 管理员帐号 Cpwd Varchar(20) Not null 密码 Croleid Int Not null Roles(roleid)外键 角色一功能表(roles controllers) 字段名 数据类型 是否为空 默认值 说明 Mid Int Not null 主键,自动增长 Mroleid Int Not null Roles(roleid)外键 Mfid Int Not null functions (Fid)外建 商品类型表(shoptype) 字段名 数据类型 是否为空 默认值 说明 Stid Int 主键,自动增长 商品类型编号 St name Varchar 商品类型名称 购物网站数据库设计全文共3页,当前为第1页。 购物网站数据库设计全文共3页,当前为第1页。 商品信息表(shopinfo) 字段名 数据类型 是否为空 默认值 说明 Sid Int Not null 主键,自动增长 (商品编号) Sn ame Varchar Not null 商品名称 Sprice Double(15,2) 商品价格 Snum In t(11) 商品数量 Simgpath Varchar(100) 商品图片路径 Stype Varchar Shoptype(stid)外键 商品类型 订单信息(in de nt) 字段名 数据类型 是否为空 默认值 说明 Bid Int Not null 主键,自动增长 Bconsig nee Varchar(20) Not null >0 收货人 Baddress Varchar Not null Getdate() 收货地址 Bphone Varchar 收货人电话 Bpostalcode Int 邮编 Bdid Int 送货方式编号 Deliver(did)外键 Bdate Datetime 订单时间 Bun ame Varchar(20) Not null 会员编号 Users(u name)外键 订单明细(Order) 字段名 数据类型 是否为空 默认值 说明 Oid Int osid Int Not null 购买的商品编号 Shopinfo(sid)外键 onum Int 购买数量 送货方式(Deliver) 字段名 数据类型 是否为空 默认值 说明 Did Int Dn ame Varchar 送货方式名 Dmoney Double 价格 购物网站数据库设计全文共3页,当前为第2页。 购物网站数据库设计全文共3页,当前为第2页。 收藏夹(favorites) 字段名 数据类型 是否为空 默认值 说明 Fid Int Not null 主键,自动增长 Fsid Int 商品编号 Shopinfo(sid)外键 Fun ame Varchar(20) 用户名 Users(u name)外键 Fdate Datetime 收藏时间 用户基本信息Useri nfo 字段名 数据类型 是否为空 默认值 说明 Ufun ame Varchar(20) Not null 注册用户帐号 Users(u name)外键 Ufsex Varchar(4) 男 性别 Ufshe ng Varchar(20) 省 Ufshi Varchar(20) 市 ufpho ne Varchar(20) 联系电话 Ufname Varchar(20) 真实姓名 Uf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值