|
@@ -2,8 +2,8 @@
|
|
|
import Banner from "@/components/banner";
|
|
|
import Welcome from "@/components/welcome";
|
|
|
import Login from "@/components/login";
|
|
|
-import UserCard from "@/components/usercard";
|
|
|
-import Connection from "@/components/connection/index";
|
|
|
+import Cards from "@/components/cards";
|
|
|
+import device_container from "@/components/device/device";
|
|
|
import Toast from "../../../static/vant/toast/toast";
|
|
|
import Dialog from "../../../static/vant/dialog/dialog";
|
|
|
import {setUserLogin} from "../../requests/user";
|
|
@@ -11,14 +11,15 @@ import user_store from "../../store/index";
|
|
|
import game_store from "../../store/game";
|
|
|
import {post_data} from "../../utils/game";
|
|
|
|
|
|
+let $this;
|
|
|
export default {
|
|
|
- name: "HomePage",
|
|
|
+ name: "index_container",
|
|
|
components: {
|
|
|
Banner,
|
|
|
Welcome,
|
|
|
Login,
|
|
|
- UserCard,
|
|
|
- Connection
|
|
|
+ Cards,
|
|
|
+ device_container,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -28,6 +29,9 @@ export default {
|
|
|
is_login: false
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ $this = this;
|
|
|
+ },
|
|
|
methods: {
|
|
|
/**
|
|
|
* 切换 注册/登录
|
|
@@ -103,8 +107,8 @@ export default {
|
|
|
</div>
|
|
|
<!-- 登陆后 个人首页-->
|
|
|
<div class="personal_card" v-if="is_login">
|
|
|
- <UserCard></UserCard>
|
|
|
- <Connection></Connection>
|
|
|
+ <Cards></Cards>
|
|
|
+ <device_container></device_container>
|
|
|
</div>
|
|
|
<div class="service" :class="{'service_login_page':!is_login}">
|
|
|
<view class="padding-tb">
|