diff --git a/buyer/decorate.png b/buyer/decorate.png deleted file mode 100644 index 7701d18a..00000000 Binary files a/buyer/decorate.png and /dev/null differ diff --git a/buyer/package.json b/buyer/package.json index 9f64b7fb..2f20c8d4 100644 --- a/buyer/package.json +++ b/buyer/package.json @@ -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", diff --git a/buyer/src/api/promotion.js b/buyer/src/api/promotion.js index 432f1ebf..e0856d52 100644 --- a/buyer/src/api/promotion.js +++ b/buyer/src/api/promotion.js @@ -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 + }); +} diff --git a/buyer/src/components/drawer/Main.vue b/buyer/src/components/drawer/Main.vue index 78252f5a..4b5e3436 100644 --- a/buyer/src/components/drawer/Main.vue +++ b/buyer/src/components/drawer/Main.vue @@ -36,9 +36,11 @@ export default { }, components: {drawerPage}, computed: { + // 用户信息 userInfo () { return Storage.getItem('userInfo'); }, + // 购物车商品数量 cartNum () { return this.$store.state.cartNum } diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 35ec9fe7..ed748f3a 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -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); diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index 2d2aec3c..f5f560c1 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -1,23 +1,6 @@