Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
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
Email Patches
Plain Diff
Browse Files
Authored by
张文文
6 years ago
Commit
ca28555efb6ae06a0a29dda2fb45427a00a00e80
1 parent
68e7644b
商品跳转添加
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
apps/components/img-size.vue
apps/pages/single/ufoPassport/ufoPassport.vue
apps/components/img-size.vue
View file @
ca28555
<template>
<img v-lazy="currentSrc" :alt="alt" v-if="!refresh">
<img v-lazy="currentSrc" :alt="alt" v-if="!refresh"
@click="onProductImgClick" /
>
</template>
<script>
export default {
name:
'ImgSize'
,
name:
"ImgSize"
,
props: {
src: String,
width: Number,
height: Number,
alt: String
,
alt: String
},
data() {
return {
...
...
@@ -26,15 +26,19 @@ export default {
},
computed: {
currentSrc() {
return (this.src || '')
.replace('http://', '//')
.replace('{width}', this.width)
.replace('{height}', this.height);
return (this.src || "")
.replace("http://", "//")
.replace("{width}", this.width)
.replace("{height}", this.height);
}
},
methods: {
onProductImgClick() {
this.$emit("onProductImgClick");
}
}
};
</script>
<style>
</style>
...
...
apps/pages/single/ufoPassport/ufoPassport.vue
View file @
ca28555
...
...
@@ -33,9 +33,12 @@
:src="shareIdentifyInfo.productImageUrl"
:width="200"
:height="200"
@onProductImgClick="goProductDetail(shareIdentifyInfo.productId, shareIdentifyInfo.productName)"
></ImgSize>
<div class="product-size">{{shareIdentifyInfo.productSize}}码</div>
<div class="product-name">{{shareIdentifyInfo.productName}}</div>
<div
class="product-name"
@click="goProductDetail(shareIdentifyInfo.productId, shareIdentifyInfo.productName)"
>{{shareIdentifyInfo.productName}}</div>
<div class="provideo-btn" @click="playVideoOperation(shareIdentifyInfo.vedioFileUrl)"></div>
<VideoPlayer ref="videoPlay" class="play-video" :source="shareIdentifyInfo.vedioFileUrl"></VideoPlayer>
<div class="identify-plat">{{shareIdentifyInfo.identifyPlat}}</div>
...
...
Please
register
or
login
to post a comment