zrh 2 months ago
parent
commit
1a27742007
  1. 10
      .nuxt/router.js
  2. BIN
      assets/img/HF-BG.png
  3. BIN
      assets/img/avatar-boy.gif
  4. BIN
      assets/img/c-icon.png
  5. BIN
      assets/img/d-icon.png
  6. BIN
      assets/img/default-img.gif
  7. BIN
      assets/img/default-img_old.gif
  8. BIN
      assets/img/default-tea-img.gif
  9. BIN
      assets/img/erweima.png
  10. BIN
      assets/img/kyb-tip-bg.jpg
  11. BIN
      assets/img/kyb-tip-close.png
  12. BIN
      assets/img/loading.gif
  13. BIN
      assets/img/pic/1.jpg
  14. BIN
      assets/img/pic/banner-1-blue.jpg
  15. BIN
      assets/img/pic/banner-1-green.jpg
  16. BIN
      assets/img/pic/banner-2-blue.jpg
  17. BIN
      assets/img/pic/banner-2-green.jpg
  18. BIN
      assets/img/pic/c-1.jpg
  19. BIN
      assets/img/pic/one-master.jpg
  20. BIN
      assets/img/pic/t-p-1.jpg
  21. BIN
      assets/img/pic/three-blue.jpg
  22. BIN
      assets/img/pic/two-green.jpg
  23. BIN
      assets/img/qq-icon.png
  24. BIN
      assets/img/tipQe.png
  25. BIN
      assets/img/up-hf.png
  26. BIN
      assets/img/v-loading.gif
  27. BIN
      assets/img/点赞 (1).png
  28. 6
      package.json
  29. 129
      pages/register.vue
  30. 0
      pages/ucenter.vue

10
.nuxt/router.js

@ -6,6 +6,8 @@ import scrollBehavior from './router.scrollBehavior.js'
const _578f272f = () => interopDefault(import('..\\pages\\club\\index.vue' /* webpackChunkName: "pages_club_index" */))
const _616e5366 = () => interopDefault(import('..\\pages\\home\\index.vue' /* webpackChunkName: "pages_home_index" */))
const _0612e07c = () => interopDefault(import('..\\pages\\login.vue' /* webpackChunkName: "pages_login" */))
const _e5ead240 = () => interopDefault(import('..\\pages\\register.vue' /* webpackChunkName: "pages_register" */))
const _0f3a46dd = () => interopDefault(import('..\\pages\\ucenter.vue' /* webpackChunkName: "pages_ucenter" */))
const _3c6b3d65 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages_index" */))
// TODO: remove in Nuxt 3
@ -37,6 +39,14 @@ export const routerOptions = {
component: _0612e07c,
name: "login"
}, {
path: "/register",
component: _e5ead240,
name: "register"
}, {
path: "/ucenter",
component: _0f3a46dd,
name: "ucenter"
}, {
path: "/",
component: _3c6b3d65,
name: "index"

BIN
assets/img/HF-BG.png

Before

Width: 110  |  Height: 100  |  Size: 12 KiB

BIN
assets/img/avatar-boy.gif

Before

Width: 160  |  Height: 160  |  Size: 3.7 KiB

BIN
assets/img/c-icon.png

Before

Width: 64  |  Height: 64  |  Size: 2.2 KiB

BIN
assets/img/d-icon.png

Before

Width: 64  |  Height: 64  |  Size: 1.5 KiB

BIN
assets/img/default-img.gif

Before

Width: 640  |  Height: 357  |  Size: 11 KiB

BIN
assets/img/default-img_old.gif

Before

Width: 640  |  Height: 357  |  Size: 1.8 KiB

BIN
assets/img/default-tea-img.gif

Before

Width: 320  |  Height: 320  |  Size: 3.5 KiB

BIN
assets/img/erweima.png

Before

Width: 300  |  Height: 300  |  Size: 61 KiB

BIN
assets/img/kyb-tip-bg.jpg

Before

Width: 474  |  Height: 582  |  Size: 24 KiB

BIN
assets/img/kyb-tip-close.png

Before

Width: 38  |  Height: 38  |  Size: 1.8 KiB

BIN
assets/img/loading.gif

Before

Width: 120  |  Height: 130  |  Size: 13 KiB

BIN
assets/img/pic/1.jpg

Before

Width: 1200  |  Height: 480  |  Size: 79 KiB

BIN
assets/img/pic/banner-1-blue.jpg

Before

Width: 1200  |  Height: 480  |  Size: 108 KiB

BIN
assets/img/pic/banner-1-green.jpg

Before

Width: 1200  |  Height: 480  |  Size: 88 KiB

BIN
assets/img/pic/banner-2-blue.jpg

Before

Width: 1200  |  Height: 480  |  Size: 92 KiB

BIN
assets/img/pic/banner-2-green.jpg

Before

Width: 1200  |  Height: 480  |  Size: 73 KiB

BIN
assets/img/pic/c-1.jpg

Before

Width: 640  |  Height: 357  |  Size: 49 KiB

BIN
assets/img/pic/one-master.jpg

Before

Width: 640  |  Height: 357  |  Size: 58 KiB

BIN
assets/img/pic/t-p-1.jpg

Before

Width: 320  |  Height: 320  |  Size: 22 KiB

BIN
assets/img/pic/three-blue.jpg

Before

Width: 640  |  Height: 357  |  Size: 60 KiB

BIN
assets/img/pic/two-green.jpg

Before

Width: 640  |  Height: 357  |  Size: 54 KiB

BIN
assets/img/qq-icon.png

Before

Width: 64  |  Height: 64  |  Size: 2.9 KiB

BIN
assets/img/tipQe.png

Before

Width: 128  |  Height: 128  |  Size: 4.3 KiB

BIN
assets/img/up-hf.png

Before

Width: 11  |  Height: 11  |  Size: 975 B

BIN
assets/img/v-loading.gif

Before

Width: 18  |  Height: 18  |  Size: 1.3 KiB

BIN
assets/img/点赞 (1).png

Before

Width: 200  |  Height: 200  |  Size: 3.6 KiB

6
package.json

@ -1,8 +1,8 @@
{
"name": "guli-site",
"name": "AI小财神",
"version": "1.0.0",
"description": "谷粒学院",
"author": "admin <admin@atguigu.com>",
"description": "AI小财神",
"author": "赵如慧",
"private": true,
"scripts": {
"dev": "nuxt",

129
pages/register.vue

@ -0,0 +1,129 @@
<template>
<div class="main">
<div class="title">
<a href="/login">登录</a>
<span>·</span>
<a class="active" href="/register">注册</a>
</div>
<div class="sign-up-container">
<form action="register">
<div class="input-prepend restyle">
<input
v-model="member.nickname"
type="text"
placeholder="你的昵称">
<i class="iconfont icon-user"/>
</div>
<div class="input-prepend restyle no-radius">
<input
v-model="member.mobile"
type="text"
placeholder="手机号">
<i class="iconfont icon-phone"/>
</div>
<div class="input-prepend restyle no-radius" style="position:relative">
<input
v-model="member.code"
type="text"
placeholder="验证码">
<i class="iconfont icon-yanzhengma"/>
<a
href="javascript:"
type="button"
style="position:absolute;right: 10px;top: 15px;"
@click="getCodeFun()">{{ codeText }}</a>
</div>
<div class="input-prepend">
<input
v-model="member.password"
type="password"
placeholder="设置密码">
<i class="iconfont icon-password"/>
</div>
<div class="btn">
<input
type="button"
class="sign-up-button"
value="注册"
@click="submitRegister()">
</div>
<p class="sign-up-msg">
点击 注册 即表示您同意并愿意遵守简书
<br>
<a target="_blank" href="http://www.jianshu.com/p/c44d171298ce">用户协议</a>
<a target="_blank" href="http://www.jianshu.com/p/2ov8x3">隐私政策</a>
</p>
</form>
<!-- 更多注册方式 -->
<div class="more-sign">
<h6>社交帐号直接注册</h6>
<ul>
<li><a id="weixin" class="weixin" href="http://localhost:8160/api/ucenter/wx/login"><i class="iconfont icon-weixin"/></a></li>
<li><a id="qq" class="qq" target="_blank" href="#"><i class="iconfont icon-qq"/></a></li>
</ul>
</div>
</div>
</div>
</template>
<script>
import '~/assets/css/sign.css'
import '~/assets/css/iconfont.css'
import registerApi from '~/api/register'
export default {
layout: 'sign',
data() {
return {
member: {
mobile: '',
code: '',
nickname: '',
password: ''
},
sending: false, //
second: 30, //
codeText: '获取验证码'
}
},
methods: {
//
getCodeFun() {
if (this.sending) return
this.sending = true//
registerApi.sendMessage(this.member.mobile).then(response => {
//
this.timeDown()
//
this.$message.success(response.message)
})
},
//
timeDown() {
this.codeText = this.second
//
const timer = setInterval(() => {
this.codeText--
if (this.codeText < 1) {
clearInterval(timer)
this.codeText = '获取验证码'
this.sending = false
// this.second = 30
}
}, 1000)
},
//
submitRegister() {
registerApi.register(this.member).then(response => {
//
this.$message.success(response.message)
this.$router.push({ path: 'login' })
})
}
}
}
</script>

0
pages/ucenter.vue

Loading…
Cancel
Save