Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
邱骏
5 years ago
Commit
436b059c184a0fc374532903f14c3df97a46a4c7
2 parents
5459ce43
534a9ac7
iphoneX适配
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
52 additions
and
40 deletions
apps/app.vue
apps/components/layout/layout-app.vue
apps/components/layout/layout-link.vue
apps/pages/activitys/limit-time-coupon/limit-time-coupon.vue
apps/pages/activitys/limit-time-coupon/sale-product-list.vue
apps/pages/category/category.vue
apps/pages/home/channel/channel.vue
apps/pages/home/indexPage/components/tabs.vue
apps/pages/home/indexPage/index-page.vue
apps/pages/home/mine/mine.vue
apps/pages/home/news/news.vue
apps/pages/home/strategy/strategy.vue
apps/pages/list/list.vue
apps/pages/list/search.vue
apps/statics/scss/common.scss
apps/app.vue
View file @
436b059
...
...
@@ -21,7 +21,12 @@ export default {
}
},
windowHeight() {
return window.innerHeight + 'px';
if (typeof window !== 'undefined') {
console.log(window);
return window.innerHeight + 'px';
} else {
return '100%';
}
}
},
mounted() {
...
...
apps/components/layout/layout-app.vue
View file @
436b059
...
...
@@ -2,6 +2,7 @@
<div
ref="layout"
class="layout"
:class="noSafeArea ? 'no-safe-area': ''"
@touchstart="webviewScrollStart"
@touchmove="webviewScrollMove"
@touchend="webviewScrollEnd">
...
...
@@ -50,7 +51,8 @@ export default {
isStop: {
type: Boolean,
default: false
}
},
noSafeArea: Boolean
},
data() {
return {
...
...
apps/components/layout/layout-link.vue
View file @
436b059
...
...
@@ -15,7 +15,7 @@ export default {
reportEvent: String,
},
watch: {
'report'
: function(newVal) {
report
: function(newVal) {
},
},
methods: {
...
...
@@ -29,12 +29,14 @@ export default {
url: this.href
});
this.$store.dispatch('reportYas', {
params: {
appop: this.reportEvent,
param:this.report
}
});
if (this.reportEvent) {
this.$store.dispatch('reportYas', {
params: {
appop: this.reportEvent,
param: this.report
}
});
}
}
}
};
...
...
apps/pages/activitys/limit-time-coupon/limit-time-coupon.vue
View file @
436b059
<template>
<LayoutApp :title="title" >
<LayoutApp :title="title"
:no-safe-area="true"
>
<div ref="wrapper" class="activity-wrapper">
<div class="activity-container">
<ul id="page_ul">
...
...
apps/pages/activitys/limit-time-coupon/sale-product-list.vue
View file @
436b059
<template>
<LayoutApp title="秒杀AJ" :show-back="true" :back-action="goBack">
<LayoutApp title="秒杀AJ" :show-back="true" :
no-safe-area="true" :
back-action="goBack">
<ul>
<li v-for="(item, index) in productList" :key="index">
<div v-if="item.urls && item.urls.length > 0" class="link-container">
...
...
apps/pages/category/category.vue
View file @
436b059
<template>
<LayoutApp :show-back="true" :hideHeader="hideHeader">
<LayoutApp :show-back="true" :hideHeader="hideHeader"
:no-safe-area="true"
>
<div class="root-content">
<div class="left-content">
<Scroll>
...
...
apps/pages/home/channel/channel.vue
View file @
436b059
<template>
<LayoutApp class="yohoufo-channel-page" :show-back="true" :hide-header="hideHeader" :title="title">
<LayoutApp class="yohoufo-channel-page" :show-back="true" :hide-header="hideHeader" :title="title"
:no-safe-area="true"
>
<div class="fixed-nav scroll-nav-wrap" :class="{'hidden': !isShow}" v-if="navList.length">
<ScrollNav :list="navList" :current="active" @transfer="getIndex"></ScrollNav>
</div>
...
...
apps/pages/home/indexPage/components/tabs.vue
View file @
436b059
...
...
@@ -11,8 +11,9 @@
<script>
import { createNamespacedHelpers } from 'vuex';
const { mapState, mapActions } = createNamespacedHelpers('home/channel');
import { createNamespacedHelpers, mapState} from 'vuex';
const { mapState: mapChannelState, mapActions } = createNamespacedHelpers('home/channel');
import Widget from './widget';
export default {
...
...
@@ -34,16 +35,23 @@ export default {
};
};
},
...mapState(['showMsg'])
...mapChannelState(['showMsg']),
...mapState(['yoho'])
},
activated() {
this.getAllInboxCatInfo();
this.$sdk.getUser().then(user => {
if (user.uid) {
this.getAllInboxCatInfo();
}
});
},
watch: {
'yoho.context.isLogin': function(val) {
if (val) {
this.getAllInboxCatInfo();
}
}
},
// watch: {
// 'showMsg':function(sss) {
// console.log(sss);
// }
// },
methods: {
...mapActions(['getAllInboxCatInfo']),
onClick(index) {
...
...
apps/pages/home/indexPage/index-page.vue
View file @
436b059
...
...
@@ -102,14 +102,4 @@ export default {
width: 100%;
background-color: white;
}
@supports (bottom: env(safe-area-inset-bottom)) {
.content {
height: calc(env(safe-area-inset-bottom) + 100% + 88px);
}
.footer {
height: calc(env(safe-area-inset-bottom) + 100px);
}
}
</style>
...
...
apps/pages/home/mine/mine.vue
View file @
436b059
<template>
<LayoutApp :show-back="true" title="我的" :hideHeader="hideHeader">
<LayoutApp :show-back="true" title="我的" :
no-safe-area="true" :
hideHeader="hideHeader">
<div class="body" ref="body">
<div v-for="(value, key) in getMineList" :key="key">
<tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey>
...
...
apps/pages/home/news/news.vue
View file @
436b059
<template>
<LayoutApp :show-back="true" :hideHeader="hideHeader">
<LayoutApp :show-back="true" :hideHeader="hideHeader"
:no-safe-area="true"
>
<div class="scroll-list-wrap">
<LayoutScroll
ref="scroll"
...
...
apps/pages/home/strategy/strategy.vue
View file @
436b059
<template>
<LayoutApp title="闲鱼潮玩转攻略" :show-back="true" :back-action="goBack">
<LayoutApp title="闲鱼潮玩转攻略" :show-back="true" :
no-safe-area="true" :
back-action="goBack">
<div class="body-warpper">
<ul>
<li v-for="(item, index) in dataList" :key="index">
...
...
apps/pages/list/list.vue
View file @
436b059
...
...
@@ -113,10 +113,10 @@ export default {
this.setYasParam({param: params, tab: {index: 1, name: '人气'}});
!params.order && (params.order = 'sale_desc');
await this.fetchList({...params, isReset: true});
this.$refs.product.yasShowEvent(0);
} else {
this.scrollY && this.$refs.scroll.scrollTo(this.scrollY);
}
this.$refs.product.yasShowEvent(0);
this.yasShowPage();
},
...
...
apps/pages/list/search.vue
View file @
436b059
...
...
@@ -64,6 +64,8 @@ export default {
next(vm => {
if (from.name === 'List') {
vm.SEARCH_POS = 3;
} else if (from.name === 'ChannelPage') {
vm.SEARCH_POS = 1;
}
});
},
...
...
apps/statics/scss/common.scss
View file @
436b059
...
...
@@ -554,11 +554,14 @@ body {
margin-bottom
:
env
(
safe-area-inset-bottom
);
}
/*#app {
height: calc(100% + env(safe-area-inset-bottom));
}*/
}
.layout
{
padding-bottom
:
env
(
safe-area-inset-bottom
);
}
.layout.no-safe-area
{
padding-bottom
:
0
;
}
}
/* stylelint-disable */
::-webkit-scrollbar
{
...
...
Please
register
or
login
to post a comment