|
|
<template>
|
|
|
<LayoutApp :show-back="true" title="我的" :hideHeader="hideHeader">
|
|
|
<div class="body" ref="body">
|
|
|
<Scroll>
|
|
|
<div v-for="(value, key) in getMineList" :key="key">
|
|
|
<tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey>
|
|
|
<scroll></scroll>
|
|
|
<niticelScroll></niticelScroll>
|
|
|
</tab-item>
|
|
|
<template v-else-if="key === 'resource1' || key === 'resource2'">
|
|
|
<div v-if="value.data.template_name ==='single_image'">
|
|
|
<div v-if="value.data.template_name ==='single_image'" class="marg">
|
|
|
<singleImage :data="value.data.data[0]"></singleImage>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div v-else-if="key === 'order'" class="bg-bottom">
|
|
|
<div v-else-if="key === 'order'" class="bg-bottom marg">
|
|
|
<order></order>
|
|
|
</div>
|
|
|
<div v-else-if="key === 'sale'" class="bg-top">
|
|
|
<div v-else-if="key === 'sale'" class="bg-top marg">
|
|
|
<tab-item :data="value" noLine titleBold titleSmall></tab-item>
|
|
|
</div>
|
|
|
<bind v-else-if="key === 'bindAccount'" :data="value"></bind>
|
|
|
<tab-item v-else :data="value"></tab-item>
|
|
|
<bind class="marg" v-else-if="key === 'bindAccount'" :data="value"></bind>
|
|
|
<tab-item class="marg" v-else :data="value"></tab-item>
|
|
|
</div>
|
|
|
|
|
|
</Scroll>
|
|
|
</div>
|
|
|
</LayoutApp>
|
|
|
</template>
|
...
|
...
|
@@ -30,6 +31,7 @@ import order from './components/order'; |
|
|
import scroll from './components/scroll';
|
|
|
import singleImage from './components/singleImage';
|
|
|
import bind from './components/bind';
|
|
|
import {Style, Scroll} from 'cube-ui';
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
|
|
|
const { mapGetters, mapActions } = createNamespacedHelpers('home/mine');
|
...
|
...
|
@@ -68,9 +70,12 @@ export default { |
|
|
components: {
|
|
|
tabItem,
|
|
|
order,
|
|
|
scroll,
|
|
|
niticelScroll: scroll,
|
|
|
singleImage,
|
|
|
bind
|
|
|
bind,
|
|
|
Style,
|
|
|
Scroll
|
|
|
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
@@ -78,9 +83,12 @@ export default { |
|
|
<style lang="scss" scoped>
|
|
|
.body {
|
|
|
height: 100%;
|
|
|
overflow-y: auto;
|
|
|
// overflow-y: auto;
|
|
|
background-color: white;
|
|
|
padding: 0 40px;
|
|
|
// padding: 0 40px;
|
|
|
}
|
|
|
.marg {
|
|
|
margin: 0 40px;
|
|
|
}
|
|
|
|
|
|
.bg-top,
|
...
|
...
|
|