代码注释添加

master
mabo 2021-07-28 17:07:37 +08:00
parent 94a9404b39
commit cd0cd14f77
8 changed files with 8531 additions and 8333 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -17,13 +17,10 @@
"mv-count-down": "^0.1.15",
"psl": "^1.8.0",
"qs": "^6.9.4",
"swiper": "^5.2.0",
"uuid": "^8.3.2",
"v-distpicker": "^1.0.17",
"view-design": "^4.3.2",
"vue": "^2.5.2",
"vue-awesome": "^4.0.2",
"vue-awesome-swiper": "^4.1.1",
"vue-piczoom": "^1.0.6",
"vue-qr": "^2.3.0",
"vue-router": "^3.0.1",

View File

@ -46,3 +46,14 @@ export function pointGoods (params) {
params
});
}
/**
* 获取积分商品详情
*/
export function pointGoodsDetail (id) {
return request({
url: `/buyer/promotion/pointsGoods/${id}`,
method: Method.GET,
needToken: true,
id
});
}

View File

@ -36,9 +36,11 @@ export default {
},
components: {drawerPage},
computed: {
//
userInfo () {
return Storage.getItem('userInfo');
},
//
cartNum () {
return this.$store.state.cartNum
}

View File

@ -144,6 +144,7 @@ import { addCartGoods } from '@/api/cart.js';
export default {
name: 'ShowGoods',
props: {
//
detail: {
type: Object,
default: null
@ -168,10 +169,7 @@ export default {
isCollected: false //
};
},
components: {
PicZoom,
Promotion
},
components: { PicZoom, Promotion },
methods: {
select (index, value) { //
this.$set(this.currentSelceted, index, value);

View File

@ -1,23 +1,6 @@
<template>
<div>
<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-nav item-tabs">
<Tabs :animated="false" @on-click="tabClick">
@ -131,7 +114,8 @@ export default {
};
},
computed: {
skuDetail () { // skuId
//
skuDetail () {
return this.detail.data;
}
},

View File

@ -17,21 +17,8 @@
</div>
</template>
<script>
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper';
export default {
components: {
Swiper,
SwiperSlide
},
directives: {
swiper: directive
},
props: {
data: {
type: Object,
default: null
}
},
data () {
return {
list: [], //
@ -43,20 +30,21 @@ export default {
hours: 0, //
minutes: 0, //
seconds: 0, //
interval: undefined, //
interval: null, //
swiperOptions: { //
slidesPerView: 5,
autoplay: true,
loop: true
// slidesPerView: 5,
// autoplay: true,
// loop: true
}
};
},
mounted () {
computed: {
},
beforeDestroy () {
clearInterval(this.interval);
},
mounted () {
},
methods: {
goPromotion () { //
let routeUrl = this.$router.resolve({

File diff suppressed because it is too large Load Diff