生活随笔
收集整理的這篇文章主要介紹了
社区团购微信小程序开发
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1.技術(shù)介紹
java+springBoot+spring+mysql+mybatis+原生微信小程序
開發(fā)工具:eclipse或IDEA
2.主要功能說明:
1)普通用戶
2)供應商
3)管理員
小程序功能:
注冊、登錄、首頁、商品分類查詢、我開團的商品、我的訂單、我的優(yōu)惠劵、我的消息、個人信息、修改密碼、聯(lián)系客服
后臺管理功能:
用戶管理、團長管理、供應商管理、商品分類管理、商品管理、用戶訂單管理、團長優(yōu)惠劵
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.系統(tǒng)演示地址:
鏈接:https://pan.baidu.com/s/19Do4osZ6JhD1B48KO3WJ9Q
提取碼:2111
總結(jié)
以上是生活随笔為你收集整理的社区团购微信小程序开发的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。