diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue
index 55e315e..f43ef2b 100644
--- a/components/index/video-item/index.vue
+++ b/components/index/video-item/index.vue
@@ -221,7 +221,7 @@ export default {
article_id: this.item.article_id,
member_id: this.item.member_id,
}).then(res => {
- console.log(res)
+ // console.log(res)
if(res.errCode == 0) {
this.$emit("getArticlelist");
}
diff --git a/components/mine/address-active/index.vue b/components/mine/address-active/index.vue
index bcd9000..05e7d36 100644
--- a/components/mine/address-active/index.vue
+++ b/components/mine/address-active/index.vue
@@ -25,14 +25,14 @@
保存地址
-
+
@@ -58,7 +58,7 @@ export default {
this.getAreaData();
},
created() {
- console.log(typeof this.info);
+ // console.log(this.info);
this.initAddressInfo();
},
methods: {
diff --git a/components/mine/coupon/index.vue b/components/mine/coupon/index.vue
index 01f2aa5..67bbb89 100644
--- a/components/mine/coupon/index.vue
+++ b/components/mine/coupon/index.vue
@@ -1,7 +1,7 @@
-
-
+
+
{{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
@@ -10,15 +10,12 @@
¥{{ couponInfo.vouchertemplate_price }}
满{{ couponInfo.vouchertemplate_limit }}使用
- 仅限{{ couponInfo.vouchertemplate_storename }}鞋子商品使用
+ 仅限{{ couponInfo.vouchertemplate_storename }}商品使用
兑换积分:{{ couponInfo.vouchertemplate_points }}积分
有效期{{ couponInfo.vouchertemplate_startdate }}-{{ couponInfo.vouchertemplate_enddate }}
- 立即兑换
- 立即使用
-
-
+ 立即兑换
@@ -27,10 +24,8 @@
/**
* coupon 优惠券
* @description 优惠券组件
- * @property {Number} type 优惠券操作方式(可兑换的优惠券: 0 / 自己的优惠券: 1)
* @property {Object} coupon-info 优惠券信息
* @event {Function} exchange 兑换优惠券
- * @event {Function} use 使用优惠券
*/
export default {
data() {
@@ -38,11 +33,10 @@ export default {
},
props: {
status: Number,
- type: Number,
couponInfo: Object,
},
created() {
- console.log(this.couponInfo);
+ // console.log(this.couponInfo);
},
methods: {
exchange() {
@@ -54,9 +48,6 @@ export default {
if(res.errCode == 0) {}
})
},
- use() {
- this.$emit('use', this.couponInfo.vouchertemplate_id);
- },
},
};
@@ -123,6 +114,16 @@ export default {
font-size: 32rpx;
font-weight: 500;
color: rgba(255,255,255,1);
+ position: relative;
+ // 增大按钮点击范围
+ &::after {
+ content:"";
+ position: absolute;
+ top: -30rpx;
+ left: -40rpx;
+ width: 200rpx;
+ height: 100rpx;
+ }
}
> image {
width: 122rpx;
diff --git a/components/mine/coupon/mine.vue b/components/mine/coupon/mine.vue
new file mode 100644
index 0000000..5e21429
--- /dev/null
+++ b/components/mine/coupon/mine.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+ {{ couponInfo.type == 2 ? '店铺优惠券' : '平台优惠券' }}
+
+
+
+ ¥{{ couponInfo.voucher_price }}
+ 满{{ couponInfo.voucher_limit }}使用
+
+ 仅限{{ couponInfo.type == 1 ? '平台' : couponInfo.store_name }}{{ couponInfo.gc_id | showClass(goodsClass) }}商品使用
+ 兑换积分:{{ couponInfo.voucher_points }}积分
+ 有效期{{ couponInfo.voucher_startdate }}-{{ couponInfo.voucher_enddate }}
+
+
+ 立即使用
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/shop/youhq/index.vue b/components/shop/youhq/index.vue
index 565467a..113cf30 100644
--- a/components/shop/youhq/index.vue
+++ b/components/shop/youhq/index.vue
@@ -6,14 +6,13 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
@@ -40,7 +39,6 @@ export default {
}
},
created() {
- this.setViewHeight();
this.getGoodsClass();
},
methods: {
@@ -62,6 +60,8 @@ export default {
} else {
this.couponList = [];
}
+ // 设置 swiper 高度
+ this.setViewHeight();
})
},
couponTabsChange(index) {
@@ -73,9 +73,9 @@ export default {
this.couponCurrent = current;
},
setViewHeight() {
- const res = uni.getSystemInfoSync();
- // this.swiperHeight = res.windowHeight - ((88 + 10 + 88) / 2) + 'px';
- this.swiperHeight = '450px';
+ // 一个优惠券的高度 97px, 下距离 10px
+ const num = this.couponList.length;
+ this.swiperHeight = (97 + 10) * num - 10 + 'px';
},
toCouponPage() {
this.$u.route({
diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue
index 74f1514..23bfed1 100644
--- a/pageC/cart/ConfirmOrder.vue
+++ b/pageC/cart/ConfirmOrder.vue
@@ -26,7 +26,6 @@
{{ goods.goods_name }}
¥{{ goods.goods_price }}
-
×{{ goods.goods_num }}
@@ -34,10 +33,10 @@
-
+
优惠券折扣
- {{ index }}
+ ¥{{ item.coupon_price ? item.coupon_price : '0.00' }}
@@ -45,17 +44,16 @@
运费
¥{{ freight | setFreight(index) }}
-
-
+
平台优惠券
- -¥0.00
+ -¥{{ choiceCoupon.vouchertemplate_id ? choiceCoupon.voucher_price : '0.00' }}
@@ -67,6 +65,14 @@
+
+
+ 优惠券详情
+ 使用优惠券
+
+
+
+
合计:
@@ -81,6 +87,7 @@