Authored by 陈峰

channel home css

... ... @@ -97,14 +97,14 @@ if (isProduction) {
Object.assign(module.exports, {
appName: 'm.yohoblk.com',
domains: {
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
singleApi: 'http://single.yoho.cn/'
api: 'http://api.yoho.yohoops.org/',
service: 'http://api.yoho.yohoops.org/',
singleApi: 'http://api.yoho.yohoops.org/',
},
memcache: {
master: ['127.0.0.1:11211'],
slave: ['127.0.0.1:11211'],
session: ['127.0.0.1:11211'],
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
slave: [],
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
timeout: 100,
retries: 0
},
... ... @@ -170,4 +170,4 @@ if (isProduction) {
useOneapm: true,
useCache: true
});
}
}
\ No newline at end of file
... ...
... ... @@ -5,7 +5,6 @@
*/
'use strict';
const heapdump = require('heapdump');
const config = require('./config/common');
// use one apm
... ... @@ -50,7 +49,6 @@ exports.createApp = async (app) => {
app.use(devtools());
}
app.use(global.yoho.hbs({
extname: '.hbs',
defaultLayout: 'layout',
... ...
... ... @@ -4,6 +4,9 @@
<search-slider v-model="searchSlider" v-if="loadComponent"></search-slider>
<layout-body>
<header-box slot="header" class="home-header">
<span slot="left">
<i class="icon icon-back go-back-btn" @click="goBack"></i>
</span>
<span slot="title" class="logo">
</span>
... ... @@ -65,14 +68,17 @@ export default {
async loading() {
await this.$store.dispatch(FETCH_HOME_REQUEST, true);
this.$refs.scroller.stop();
},
goBack() {
this.$yoho.goNewBack();
}
},
beforeRouteEnter (to, from, next) {
beforeRouteEnter(to, from, next) {
next(vm => {
vm.$yoho && vm.$yoho.blkBackStatus(false);
});
},
beforeRouteLeave (to, from, next) {
beforeRouteLeave(to, from, next) {
this.$yoho && this.$yoho.blkBackStatus(false);
next();
},
... ...