代码注释添加
parent
94a9404b39
commit
cd0cd14f77
Binary file not shown.
Before Width: | Height: | Size: 46 KiB |
|
@ -17,13 +17,10 @@
|
||||||
"mv-count-down": "^0.1.15",
|
"mv-count-down": "^0.1.15",
|
||||||
"psl": "^1.8.0",
|
"psl": "^1.8.0",
|
||||||
"qs": "^6.9.4",
|
"qs": "^6.9.4",
|
||||||
"swiper": "^5.2.0",
|
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"v-distpicker": "^1.0.17",
|
"v-distpicker": "^1.0.17",
|
||||||
"view-design": "^4.3.2",
|
"view-design": "^4.3.2",
|
||||||
"vue": "^2.5.2",
|
"vue": "^2.5.2",
|
||||||
"vue-awesome": "^4.0.2",
|
|
||||||
"vue-awesome-swiper": "^4.1.1",
|
|
||||||
"vue-piczoom": "^1.0.6",
|
"vue-piczoom": "^1.0.6",
|
||||||
"vue-qr": "^2.3.0",
|
"vue-qr": "^2.3.0",
|
||||||
"vue-router": "^3.0.1",
|
"vue-router": "^3.0.1",
|
||||||
|
|
|
@ -46,3 +46,14 @@ export function pointGoods (params) {
|
||||||
params
|
params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 获取积分商品详情
|
||||||
|
*/
|
||||||
|
export function pointGoodsDetail (id) {
|
||||||
|
return request({
|
||||||
|
url: `/buyer/promotion/pointsGoods/${id}`,
|
||||||
|
method: Method.GET,
|
||||||
|
needToken: true,
|
||||||
|
id
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -36,9 +36,11 @@ export default {
|
||||||
},
|
},
|
||||||
components: {drawerPage},
|
components: {drawerPage},
|
||||||
computed: {
|
computed: {
|
||||||
|
// 用户信息
|
||||||
userInfo () {
|
userInfo () {
|
||||||
return Storage.getItem('userInfo');
|
return Storage.getItem('userInfo');
|
||||||
},
|
},
|
||||||
|
// 购物车商品数量
|
||||||
cartNum () {
|
cartNum () {
|
||||||
return this.$store.state.cartNum
|
return this.$store.state.cartNum
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,7 @@ import { addCartGoods } from '@/api/cart.js';
|
||||||
export default {
|
export default {
|
||||||
name: 'ShowGoods',
|
name: 'ShowGoods',
|
||||||
props: {
|
props: {
|
||||||
|
// 商品数据
|
||||||
detail: {
|
detail: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null
|
default: null
|
||||||
|
@ -168,10 +169,7 @@ export default {
|
||||||
isCollected: false // 是否收藏
|
isCollected: false // 是否收藏
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: { PicZoom, Promotion },
|
||||||
PicZoom,
|
|
||||||
Promotion
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
select (index, value) { // 选择规格
|
select (index, value) { // 选择规格
|
||||||
this.$set(this.currentSelceted, index, value);
|
this.$set(this.currentSelceted, index, value);
|
||||||
|
|
|
@ -1,23 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="item-intro-show">
|
<div class="item-intro-show">
|
||||||
<!-- <div class="item-intro-recommend">
|
|
||||||
<div class="item-recommend-title">
|
|
||||||
<p>店铺热销</p>
|
|
||||||
</div>
|
|
||||||
<div class="item-intro-recommend-column">
|
|
||||||
<div class="item-recommend-column" v-for="(item, index) in hotList" :key="index">
|
|
||||||
<div class="item-recommend-img">
|
|
||||||
<img :src="item.img" alt="">
|
|
||||||
</div>
|
|
||||||
<div class="item-recommend-intro">
|
|
||||||
<span>
|
|
||||||
<span class="item-recommend-top-num">{{index + 1}}</span> 热销{{item.sale}}件</span>
|
|
||||||
<span class="item-recommend-price">¥{{item.price | unitPrice}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="item-intro-detail" ref="itemIntroDetail">
|
<div class="item-intro-detail" ref="itemIntroDetail">
|
||||||
<div class="item-intro-nav item-tabs">
|
<div class="item-intro-nav item-tabs">
|
||||||
<Tabs :animated="false" @on-click="tabClick">
|
<Tabs :animated="false" @on-click="tabClick">
|
||||||
|
@ -131,7 +114,8 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
skuDetail () { // skuId
|
// 商品详情
|
||||||
|
skuDetail () {
|
||||||
return this.detail.data;
|
return this.detail.data;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,21 +17,8 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper';
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
Swiper,
|
|
||||||
SwiperSlide
|
|
||||||
},
|
|
||||||
directives: {
|
|
||||||
swiper: directive
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
data: {
|
|
||||||
type: Object,
|
|
||||||
default: null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
list: [], // 秒杀商品
|
list: [], // 秒杀商品
|
||||||
|
@ -43,20 +30,21 @@ export default {
|
||||||
hours: 0, // 小时
|
hours: 0, // 小时
|
||||||
minutes: 0, // 分钟
|
minutes: 0, // 分钟
|
||||||
seconds: 0, // 秒
|
seconds: 0, // 秒
|
||||||
interval: undefined, // 定时器
|
interval: null, // 定时器
|
||||||
swiperOptions: { // 轮播图参数
|
swiperOptions: { // 轮播图参数
|
||||||
slidesPerView: 5,
|
// slidesPerView: 5,
|
||||||
autoplay: true,
|
// autoplay: true,
|
||||||
loop: true
|
// loop: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted () {
|
computed: {
|
||||||
|
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goPromotion () { // 跳转秒杀页面
|
goPromotion () { // 跳转秒杀页面
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
|
|
16794
buyer/yarn.lock
16794
buyer/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue