代码注释添加

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", "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",

View File

@ -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
});
}

View File

@ -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
} }

View File

@ -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);

View File

@ -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;
} }
}, },

View File

@ -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({

File diff suppressed because it is too large Load Diff