社区团购微信小程序开发

1.技术介绍
java+springBoot+spring+mysql+mybatis+原生微信小程序
开发工具:eclipse或IDEA
2.主要功能说明:
1)普通用户
2)供应商
3)管理员
小程序功能:
注册、登录、首页、商品分类查询、我开团的商品、我的订单、我的优惠劵、我的消息、个人信息、修改密码、联系客服
后台管理功能:
用户管理、团长管理、供应商管理、商品分类管理、商品管理、用户订单管理、团长优惠劵
3.部分代码展示
注册页面


<view class="contain">
  <view class="card">
    <view class="title">鲜迅社团团购</view>
    <view class="contact">
                  <input bindinput="stuNoInput" value="{{stuno}}" maxlength="20" placeholder-class="pache" placeholder="输入您的手机号" />
    </view>
  
    <view class="contact">
                  <input bindinput="pwdInput" password="true" value="{{pwd}}" maxlength="20" placeholder-class="pache" placeholder="输入您的密码" />
    </view> 
  </view>
        <!--底部确认-->
        <button class="confirm"  catchtap="toReg"  >立即注册</button>
      
</view>
var app = getApp();
var api = require('../../common/api.js');
Page({
  data: { 
    stuno:'',
    pwd:'',
    curType:1,
  },
  backToIndex() { 
    var that=this;
   
      wx.reLaunch({
        url: '../auth/auth',
      }) 
  },

  // 选择类型
  selectType(e) {
    var that = this;
    var i = e.currentTarget.dataset.i; 
    that.setData({
      curType: i 
    });
  },
  stuNoInput(e) {
            this.data.stuno = e.detail.value;
  }, 
  pwdInput(e) {
         this.data.pwd = e.detail.value;
   }, 
  toReg: function (e) {
    var that=this; 
    let stuno = that.data.stuno;
    if (stuno == '') {
          wx.showToast({
                title: '请输入您的手机号',
                icon: 'none',
                duration: 2000
          });
          return false
    }
   
    let pwd = that.data.pwd;
    if (pwd == '') {
          wx.showToast({
                title: '请输入您的密码',
                icon: 'none',
                duration: 2000
          });
          return false
    }
    

    api.get('/api/reg',{mobile:that.data.stuno, 
    userPwd:that.data.pwd} 
    ).then(res => { 
      if (res.code == 0) { 
      
        that.backToIndex();
      }else{
        wx.showToast({
          title: rs.msg,
          icon: 'none',
          duration: 2000
        });
      }
    });
     

    
  } ,   
  onLoad(options) {
    var that = this; 
    api.get('/api/getCompanyList' 
    ).then(res => { 
      if (res.code == 0) {
        var d = res.data; 
        that.setData({ 
          list: d.list 
        }) 
        wx.hideLoading(); 
      }
    });
    
  },onShow(){
   
  }
})

4.系统演示地址:
链接:https://pan.baidu.com/s/19Do4osZ6JhD1B48KO3WJ9Q
提取码:2111

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值