SpringBoot实现社区团购微信小程序开发

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

```java

<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>
```

```java
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

posted @ 2022-06-15 23:08  小草1234  阅读(377)  评论(0编辑  收藏  举报