|
@@ -6,16 +6,16 @@
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
- :class="active === '1' ? 'bg-gray-100' : ''"
|
|
|
|
- @click="menuClick('1')"
|
|
|
|
|
|
+ :class="active === 'userInfo' ? 'bg-gray-100' : ''"
|
|
|
|
+ @click="menuClick('userInfo')"
|
|
>
|
|
>
|
|
<i class="el-icon-user text-xl mr-2"></i>
|
|
<i class="el-icon-user text-xl mr-2"></i>
|
|
用户信息
|
|
用户信息
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
- :class="active === '2' ? 'bg-gray-100' : ''"
|
|
|
|
- @click="menuClick('2')"
|
|
|
|
|
|
+ :class="active === 'consume' ? 'bg-gray-100' : ''"
|
|
|
|
+ @click="menuClick('consume')"
|
|
>
|
|
>
|
|
<i class="el-icon-setting text-xl mr-2"></i>
|
|
<i class="el-icon-setting text-xl mr-2"></i>
|
|
消费明细
|
|
消费明细
|
|
@@ -26,7 +26,7 @@
|
|
@click="menuClick('3')"
|
|
@click="menuClick('3')"
|
|
>
|
|
>
|
|
<i class="el-icon-setting text-xl mr-2"></i>
|
|
<i class="el-icon-setting text-xl mr-2"></i>
|
|
- 用户偏好设定
|
|
|
|
|
|
+ 用户偏好
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
@@ -38,16 +38,24 @@
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
- :class="active === '5' ? 'bg-gray-100' : ''"
|
|
|
|
- @click="menuClick('5')"
|
|
|
|
|
|
+ :class="active === 'invite' ? 'bg-gray-100' : ''"
|
|
|
|
+ @click="menuClick('invite')"
|
|
>
|
|
>
|
|
<i class="el-icon-present text-xl mr-2"></i>
|
|
<i class="el-icon-present text-xl mr-2"></i>
|
|
邀请有礼
|
|
邀请有礼
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
- :class="active === '6' ? 'bg-gray-100' : ''"
|
|
|
|
- @click="menuClick('6')"
|
|
|
|
|
|
+ :class="active === 'signIn' ? 'bg-gray-100' : ''"
|
|
|
|
+ @click="menuClick('signIn')"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-present text-xl mr-2"></i>
|
|
|
|
+ 签到
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="w-full px-2 py-2 mb-2 flex items-center rounded-md cursor-pointer"
|
|
|
|
+ :class="active === 'opinion' ? 'bg-gray-100' : ''"
|
|
|
|
+ @click="menuClick('opinion')"
|
|
>
|
|
>
|
|
<i class="el-icon-message text-xl mr-2"></i>
|
|
<i class="el-icon-message text-xl mr-2"></i>
|
|
意见反馈
|
|
意见反馈
|
|
@@ -69,9 +77,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class=" flex-1 h-full bg-gray-50">
|
|
<div class=" flex-1 h-full bg-gray-50">
|
|
- <UserInfo v-if="active == 1" />
|
|
|
|
- <Consume v-if="active == 2" />
|
|
|
|
- <Opinion v-if="active == 6" />
|
|
|
|
|
|
+ <UserInfo v-if="active == 'userInfo'" />
|
|
|
|
+ <Consume v-if="active == 'consume'" />
|
|
|
|
+ <Invite v-if="active == 'invite'" />
|
|
|
|
+ <Opinion v-if="active == 'opinion'" />
|
|
|
|
+ <SignIn v-if="active == 'signIn'" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -80,12 +90,16 @@
|
|
import UserInfo from "./components/userInfo.vue"
|
|
import UserInfo from "./components/userInfo.vue"
|
|
import Consume from "./components/consume.vue"
|
|
import Consume from "./components/consume.vue"
|
|
import Opinion from "./components/opinion.vue"
|
|
import Opinion from "./components/opinion.vue"
|
|
|
|
+import Invite from "./components/invite.vue"
|
|
|
|
+import SignIn from "./components/signIn.vue"
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
UserInfo,
|
|
UserInfo,
|
|
Consume,
|
|
Consume,
|
|
- Opinion
|
|
|
|
|
|
+ Opinion,
|
|
|
|
+ Invite,
|
|
|
|
+ SignIn
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|