Authored by 陈峰

Merge branch 'hotfix/iphonex' into 'master'

Hotfix/iphonex



See merge request !56
... ... @@ -18,9 +18,9 @@ module.exports = {
app_type: 1
},
domains: {
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/'
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/'
// api: 'http://api-test2.yohops.com:9999/',
// service: 'http://service-test2.yohops.com:9999/',
... ... @@ -29,9 +29,9 @@ module.exports = {
// service: 'http://dev-service.yohops.com:9999/',
// singleApi: 'http://192.168.102.27:8092/'
// //
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
singleApi: 'http://single.yoho.cn/'
// api: 'http://api.yoho.cn/',
// service: 'http://service.yoho.cn/',
// singleApi: 'http://single.yoho.cn/'
},
subDomains: {
host: '.m.yohoblk.com',
... ...
... ... @@ -19,7 +19,7 @@ const origin = location.origin;
*/
const defaultTitleMap = {
1: {
headerid: '1',
headerid: '-1',
left: {
action: ''
},
... ...
... ... @@ -58,7 +58,7 @@ export default {
return {};
},
buttonText() {
if (this.value.storage_sum <= 0) {
if (this.value.storage_sum <= 0 || this.value.is_deposit_advance === 'Y') {
return '已售罄';
}
return '加入购物车';
... ... @@ -156,7 +156,7 @@ export default {
return yoho.goLogin();
}
if (this.value.storage_sum <= 0) {
if (this.value.storage_sum <= 0 || this.value.is_deposit_advance === 'Y') {
return;
}
if (!this.colorId) {
... ...
... ... @@ -283,6 +283,7 @@
import operationBar from './operation-bar.vue';
import 'common/back-top';
import cookie from 'yoho-cookie';
import qs from 'yoho-qs';
const app = $('#app');
... ... @@ -413,13 +414,14 @@
}
});
const href = location.href;
const mark = /\?/.test(href) ? '&' : '?';
const origin = location.origin;
const pathname = location.pathname;
const channel = cookie.get('_Channel') || 'men';
const queryStr = $.param(Object.assign(qs, {channel}));
share({
title: this.entity.product_name,
link: `${href}${mark}channel=${channel}`,
link: `${origin}${pathname}?${queryStr}`,
desc: '我在BLK发现了一个不错的商品,快来看看吧!',
imgUrl: this.firstImage.replace(/(\{width}|\{height}|\{mode})/g, function($0) {
const dict = {
... ...
... ... @@ -56,9 +56,11 @@
}
</style>
<script>
import $ from 'yoho-jquery';
import yoho from 'yoho';
import tip from 'common/tip';
import cookie from 'yoho-cookie';
import qs from 'yoho-qs';
export default {
name: 'operation-bar',
... ... @@ -83,15 +85,16 @@
},
methods: {
share() {
const href = location.href;
const mark = /\?/.test(href) ? '&' : '?';
const origin = location.origin;
const pathname = location.pathname;
const channel = cookie.get('_Channel') || 'men';
const queryStr = $.param(Object.assign(qs, {channel}));
yoho.goShare({
title: this.shareTitle || '',
des: '我在BLK发现了一个不错的商品,快来看看吧!',
img: location.protocol + this.shareImg,
url: `${href}${mark}channel=${channel}`
url: `${origin}${pathname}?${queryStr}`
});
},
toggleFavorite: function() {
... ...