Commit 91723f9f authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_wm' into 'master'

返回按钮

See merge request !80
parents 8fca0a2d 2f37760c
...@@ -6,13 +6,13 @@ Vue.use(VueRouter); ...@@ -6,13 +6,13 @@ Vue.use(VueRouter);
const routes = [ const routes = [
{ {
path: "/my-status", path: "/my-status",
name: "MyStatus", name: "myStatus",
component: () => import("../views/my/myStatus.vue"), component: () => import("../views/my/myStatus.vue"),
meta: { title: "我的直推", noNav: false } meta: { title: "我的直推", noNav: false }
}, },
{ {
path: "/publish", path: "/publish",
name: "Publish", name: "publish",
component: () => import("@/views/moments/publish"), component: () => import("@/views/moments/publish"),
meta: { title: "发布资讯" } meta: { title: "发布资讯" }
}, },
...@@ -52,7 +52,7 @@ const routes = [ ...@@ -52,7 +52,7 @@ const routes = [
}, },
{ {
path: "wallet", path: "wallet",
name: "Wallet", name: "wallet",
component: () => import("@/views/income/wallet"), component: () => import("@/views/income/wallet"),
meta: { title: "钱包" } meta: { title: "钱包" }
}, },
...@@ -84,13 +84,13 @@ const routes = [ ...@@ -84,13 +84,13 @@ const routes = [
}, },
{ {
path: "/instructions", path: "/instructions",
name: "Instructions", name: "instructions",
component: () => import("@/views/instructions"), component: () => import("@/views/instructions"),
meta: { title: "用户协议" } meta: { title: "用户协议" }
}, },
{ {
path: "/settings", path: "/settings",
name: "Settings", name: "settings",
component: () => import("@/views/settings"), component: () => import("@/views/settings"),
meta: { title: "设置" } meta: { title: "设置" }
}, },
...@@ -150,7 +150,7 @@ const routes = [ ...@@ -150,7 +150,7 @@ const routes = [
}, },
{ {
path: "/aboutUs", path: "/aboutUs",
name: "AboutUs", name: "aboutUs",
component: () => import("@/views/aboutUs"), component: () => import("@/views/aboutUs"),
meta: { title: "公司简介", noNav: false } meta: { title: "公司简介", noNav: false }
} }
......
<template> <template>
<div class="invite-code"> <div class="invite-code">
<img :src="imgSrc" alt="" class="imgCode" /> <div class="nav">
<van-icon
name="arrow-left"
size="20"
class="nav-left"
@click="$router.go(-1)"
/>
<img :src="imgSrc" alt="" class="imgCode" />
</div>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
} }
_this.time = 60; _this.time = 60;
_this.disabled = true; _this.disabled = true;
// _this.handelSendSmsApi(); _this.handelSendSmsApi();
_this.timer = setInterval(() => { _this.timer = setInterval(() => {
if (_this.time === 0) { if (_this.time === 0) {
clearInterval(_this.timer); clearInterval(_this.timer);
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
// 检验手机号 // 检验手机号
const params = { const params = {
codeType: 0, codeType: 0,
phone: this.userId phone: this.form.userId
}; };
smsCode(params).then(res => { smsCode(params).then(res => {
console.log(res); console.log(res);
...@@ -169,7 +169,8 @@ export default { ...@@ -169,7 +169,8 @@ export default {
this.$toast.clear(); this.$toast.clear();
_this.registerBtnDisabled = false; _this.registerBtnDisabled = false;
if (res.code === 0) { if (res.code === 0) {
_this.$toast.sucess(res.msg); this.$toast("注册成功");
//_this.$toast.sucess(res.msg);
} else { } else {
_this.show = true; _this.show = true;
_this.tip = res.msg; _this.tip = res.msg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment