最近很火的盲盒商城他出来了

后台采用thinkphp+mysql
前端采用uniapp 进行开发
完美对接微信公众号
适合学习、二开
功能点:

带推广二维码功能、含充值3级分销功能、盲盒回收成余/额功能 、晒图、对接微信支付宝、短信等非常多功能
全开源给到大家
话不多说看效果图:







后台:


<template><view class="register"><view class="register_head"><text>{{ isPassword ? '密码登录' : '手机快捷登录' }}</text><text>{{ isPassword ? '如忘记密码可用已注册手机登录' : '未注册过的手机号将自动创建账号' }}</text></view><view class="register_ul"><view class="register_li flex"><view class="register_ipt"><input type="number" maxlength="11" v-model="from.mobile" placeholder="请输入手机号"placeholder-style="color:#999999" /></view></view><view class="register_li flex"><view class="register_ipt"><input type="password" maxlength="12" v-model="from.password" placeholder="请输入密码" v-if="isPassword"placeholder-style="color:#999999" /><input type="number" maxlength="6" v-model="from.captcha" placeholder="请输入验证码" v-elseplaceholder-style="color:#999999" /></view><view class="code center" v-if="!isPassword" @click="getCode">{{ codeTxt }}</view></view></view><view class="register_code" @click="isPassword = !isPassword" v-if="isPassword">验证码登录</view><button class="register_btn" hover-class="hover-view" @click="submit">登录</button><view class="register_footer center"><text @click="goPassword">{{ isPassword ? '忘记密码' : '密码登录' }}</text><text></text><text @click="goRegister">注册账号</text></view><view class="register_fast center" @click="wxLogin"><text>快捷登录</text><image src="/static/image/publice/weixin@2x.png" mode=""></image></view><view class="register_consent center"><image:src="isConsent ? '/static/image/publice/xuanzhong@2x.png' : '/static/image/publice/weixuanzhong1@2x.png'"mode="" @click="isConsent = !isConsent"></image><text>登录即表明同意</text><text class="blue" @click="goUser">《用户协议》</text><text>和</text><text class="blue" @click="goPrivacy">《隐私政策》</text></view></view>
</template><script>import $DB from '../../http/debounce.js'export default {data() {return {isPassword: false, //是否密码登录isConsent: false, //是否同意flag: true,codeTxt: '获取验证码',sending: true,second: 60,disabled: false,from: {mobile: '', //captcha: '', //sharecode: '',is_channel: ""}};},methods: {//微信登录wxLogin() {this.$api.getWechatLoginUrl({redirect: '/h5/#/pages/login/login?sharecode=' + uni.getStorageSync('sharecode') +'&is_channel=' + uni.getStorageSync('is_channel')}).then(res => {if (res.code === 1) {location.href = res.data.url}})},//去隐私协议goPrivacy() {uni.navigateTo({url: '/pagesA/pages/privacy'})},//去用户协议goUser() {uni.navigateTo({url: '/pagesA/pages/user'})},//登录submit: $DB(function() {if (!this.from.mobile.match(/^(0|86|17951)?1[3456789]\d{9}$/)) {uni.showToast({title: '请输入正确的手机号',icon: 'none'});return}if (!this.isPassword) {if (!this.from.captcha) return uni.showToast({title: '请输入验证码',icon: 'none'})}if (!this.isConsent) return uni.showToast({title: '请阅读并同意用户和隐私协议',icon: 'none'})if (!this.flag) returnthis.flag = falsethis.from.is_channel = uni.getStorageSync('is_channel');if (!this.isPassword) {this.$api.mobilelogin({...this.from,msg: '登录中'}).then(res => {if (res.code === 1) {uni.setStorageSync('token', res.data.token)uni.setStorageSync('is_notice', res.data.is_notice)uni.removeStorageSync('is_channel')uni.switchTab({url: '/pages/tabbar/index'})} else {this.flag = true}}).then(res => {console.log(res);})} else {this.$api.login({...this.from,msg: '登录中'}).then(res => {if (res.code === 1) {uni.setStorageSync('token', res.data.token)uni.setStorageSync('is_notice', res.data.is_notice)uni.removeStorageSync('is_channel')uni.switchTab({url: '/pages/tabbar/index'})} else {this.flag = true}}).then(res => {console.log(res);})}}),//验证码登录codeLogin() {uni.navigateTo({url: '/pages/login/phoneLogin'})},//注册账号goRegister() {uni.navigateTo({url: '/pages/login/register'})},//忘记密码goPassword() {if (this.isPassword) {uni.navigateTo({url: '/pages/login/forgetPassword'})} else {this.isPassword = true}},//获取验证码getCode: $DB(function() {if (!this.sending) returnif (!this.from.mobile.match(/^(0|86|17951)?1[3456789]\d{9}$/)) {uni.showToast({title: '请输入正确的手机号',icon: 'none'});return}this.$api.send({mobile: this.from.mobile,msg: '发送中',event: 'login'}).then(res => {this.sending = false;this.disabled = true;if (res.code === 1) {this.timeDown();}uni.showToast({title: res.msg,icon: 'none'});});}),timeDown() {let result = setInterval(() => {--this.second;this.codeTxt = this.second + 'S'if (this.second < 0) {clearInterval(result);this.sending = true;this.disabled = false;this.second = 60;this.codeTxt = '获取验证码'}}, 1000);},},onLoad() {if (uni.getStorageSync('sharecode')) {this.from.sharecode = uni.getStorageSync('sharecode')}}}
</script>
<style>page {background: #FFFFFF;}
</style>
<style lang="scss">.register {min-height: 100vh;padding: 0 42rpx;position: relative;.register_head {display: flex;flex-direction: column;padding: 30rpx 0 40rpx 0;text {&:first-child {font-size: 40rpx;font-weight: bold;}&:last-child {color: #999999;font-size: 26rpx;margin-top: 20rpx;}}}.register_li {padding: 40rpx 0;border-bottom: 2rpx solid #DDDDDD;.register_ipt {flex: 1;input {width: 100%;font-size: 30rpx;}}.code {width: 150rpx;color: #4EABFC;font-size: 28rpx;}}}.register_btn {height: 80rpx;margin-top: 50rpx;background: #F6AF32;border-radius: 40rpx;}.register_code {color: #4EABFC;font-size: 28rpx;text-align: right;margin: 30rpx 0 0rpx 0;}.register_footer {margin: 50rpx 0 125rpx 0;text {color: #4EABFC;font-size: 26rpx;&:nth-child(2) {width: 1px;height: 25rpx;margin: 0 35rpx;background: #4EABFC;}}}.register_fast {margin-top: 125rpx;flex-direction: column;text {color: #999999;margin-bottom: 40rpx;}image {width: 72rpx;height: 72rpx;}}.register_consent {margin-top: 50px;/*width: 100%;position: absolute;left: 50%;bottom: 70rpx;transform: translateX(-50%);*/image {width: 30rpx;height: 30rpx;flex-shrink: 0;margin-right: 10rpx;}.blue {color: #4EABFC;}}
</style>

需要源码的小伙伴留下联系方式~

感谢阅读,支持的小伙伴点个关注吧~

最新版盲盒商城thinkphp+uniapp相关推荐

  1. 新版盲盒商城V4.0完整系统源码+亲测可用

    正文: 盲盒商城4.0,完整无阉割版本,100%能搭建出来,不是论坛阉割版的那种,完善了各种体系. 程序: wwkrg.lanzouh.com/iTFWE09ks6ed 图片:  

  2. 2022最新版盲盒商城完整运营网页源码/对接免签支付接口

    介绍: 盲盒商城应用场景介绍 1.适用范围:实物商品.虚拟商品 2.支持自定义商品分类 3.支持自定义盲盒商品 4.支持自定义中奖概率 盲盒 APP搭建运营源头开发,无转包,更直接.盲盒商城玩法,盲盒 ...

  3. Thinkphp内核开发盲盒商城源码v2.0 对接易支付/阿里云短信/七牛云存储

    简介: thinkphp盲盒商城源码V2.0,最新版本全解,对接的易支付.短信是阿里云的,存储是七牛云(都要提前注册,这个要审核一两天). 此源码为h5版本适应移动端 源码下载地址:百度网盘 请输入提 ...

  4. uniapp盲盒商城交易平台系统多语言国外H5盲盒商城源码

    这是uniapp全开源盲盒商城交易平台系统二次开发带易码支付通霸云H5盲盒商城源码. 这个盲盒系统对接的短信宝,码支付易支付,微信登录,阿里云OSS,后台有盲盒商品抽奖概率设置,可设置落地域名(炮灰域 ...

  5. 新修复h5盲盒商城砸金蛋源码(完美运行)

    搭建教程 一.测试环境: 1.linux宝塔面板 2.Nginx 1.18.0 3.MySQL 5.6.50 4.PHP-7.2 //PHP7.2安装拓展 fileinfo 删除所有禁用函数 1.创建 ...

  6. 2022最新盲盒商城完整开源运营源码/对接免签支付接口/搭建教程

    主要修复: 1:后台登录错误. 2:应大家要求完全开源了(原版有加密文件,免费给你们解密了) 搭建环境 Linux7.6-Nginx 1.18.0 PHP-7.2(安装拓展fileinfo sg11 ...

  7. 最新时下最火的盲盒商城源码/视频搭建教程

    该程序可以作为烘托活动氛围.互动气氛的营销作用,就好像美团外卖的抽奖.支付宝里面的抽奖一样,活动游戏而已!程序开源无病毒,放心研究学习内置的算法和框架架构!!!! 学习资料地址:最新时下最火的盲盒商城 ...

  8. 基于盲盒商城的飞机大战游戏

    基于盲盒商城的飞机大战游戏 点击链接查看文档代码 一.首页 用户在首页可以选择开始游戏.查看最长生存时间.进入水果商城和退出游戏. 二.青铜游戏界面 在青铜游戏界面可以看到游戏当前得分,当前等级,以及 ...

  9. 盲盒商城系统玩法大讲坛

    盲盒商城APP开发,幸运盲盒软件系统,盲盒app开发多少钱,盲盒商城怎么做,盲盒平台开发,冠品网络科技开发技术公司专业定制各类盲盒,成品等.很多人不知道什么是盲盒,但他们只是对这个产品感兴趣,或者我对 ...

  10. 盲盒商城完整运营源码/对接免签支付接口

    简介: 盲盒商城完整运营源码/对接免签接口/带视频搭建教程 网盘下载地址: http://zijiepan1.xyz/1yHWfbNTfOm0 图片:

最新文章

  1. Windows Storage Server 2008做存储服务器应用案例
  2. 研究生新生进入实验室后,如何成长?5点建议分享
  3. 分布式系统的面试题14
  4. 对accuracy、precision、recall、F1-score、ROC-AUC、PRC-AUC的一些理解
  5. EasyPusher/EasyDarwin/EasyPlayer实现手机直播版本及效果整理
  6. 用CMake编译运行在网上下载的源文件src
  7. 简述人工智能的发展历程图_简述墙体彩绘机发展历程
  8. docker添加阿里云专属镜像
  9. java 中覆 写tostring_如何在Java中正确覆盖toString()?
  10. 信息学奥赛一本通 1061:求整数的和与均值 | OpenJudge NOI 1.5 04
  11. 推断一个图片是不是伪造的方法
  12. table添加一行且可编辑 vue_vue表格添加可编辑的一行后如何得到整个表格的数据...
  13. 让你博客的代码显示得更酷
  14. Linux C编程实战——第六章 文件操作_项目实现_自写ls命令
  15. CGI与ISAPI的区别
  16. 值得收藏的网站----安全
  17. PAT 1010 月饼
  18. SQL获取当天0点0分0秒和23点59分59秒方法
  19. 漫谈程序员系列:薪资,你是我不能言说的伤
  20. 判断鼠标滑轮滚动事件

热门文章

  1. Message: 不允许有匹配 “[xX][mM][lL]“ 的处理指令目标解决
  2. 单片机原理及应用c51语言版林立,单片机原理及应用——基于Proteus和Keil C(第4版)...
  3. cutftp连接redhadlinux
  4. postgresql触发器实例
  5. cad打开卡死_CAD一打开就卡死,重装也不管用怎么办?
  6. 使用VC2005一些问题及解决方案
  7. GhostXP SP3 中关村系统装机版 2013
  8. Vijos OJ搭建
  9. 【vijos】在vijos的自己的域中创建题目
  10. 姓名常用汉字代码查询器