Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
Email Patches
Plain Diff
Browse Files
Authored by
李奇
7 years ago
Commit
a0ea4cc75b42f2cc46e55d98ab06fba7a5c5cfed
1 parent
d10b4f20
fixed: 分享链接添加频道参数
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
public/vue/product/detail/index.vue
public/vue/product/detail/operation-bar.vue
public/vue/product/detail/index.vue
View file @
a0ea4cc
...
...
@@ -282,6 +282,7 @@
import shoppingBag from 'component/product/shopping-bag.vue';
import operationBar from './operation-bar.vue';
import 'common/back-top';
import cookie from 'yoho-cookie';
const app = $('#app');
...
...
@@ -414,7 +415,7 @@
share({
title: this.entity.product_name,
link:
location.href
,
link:
`${location.href}?channel=${cookie.get('_Channel') || 'men'}`
,
desc: '我在BLK发现了一个不错的商品,快来看看吧!',
imgUrl: this.firstImage.replace(/(\{width}|\{height}|\{mode})/g, function($0) {
const dict = {
...
...
public/vue/product/detail/operation-bar.vue
View file @
a0ea4cc
...
...
@@ -58,6 +58,7 @@
<script>
import yoho from 'yoho';
import tip from 'common/tip';
import cookie from 'yoho-cookie';
export default {
name: 'operation-bar',
...
...
@@ -86,7 +87,7 @@
title: this.shareTitle || '',
des: '我在BLK发现了一个不错的商品,快来看看吧!',
img: location.protocol + this.shareImg,
url:
location.href
url:
`${location.href}?channel=${cookie.get('_Channel') || 'men'}`
});
},
toggleFavorite: function() {
...
...
Please
register
or
login
to post a comment