Explorar el Código

美博会活动优惠券

zhengjinyi hace 3 años
padre
commit
9077496987

+ 1 - 1
src/main/resources/static/js/pay/caimei-wechatpay.js

@@ -44,7 +44,7 @@ var payContainer = new Vue({
                 this.WxRequestsecondHandPay();
             } else if (this.pageType == 2) {
                 this.WxRequestPaymentVipFn();
-            } if (this.pageType == 2) {
+            } if (this.pageType == 3) {
                 this.WxRequestPaymentCouponFn();
             } else {
                 this.WxRequestPaymentFn();

+ 5 - 1
src/main/resources/static/js/user-center/account/coupon-collection.js

@@ -103,7 +103,11 @@ var orderPage = new Vue({
             })
         },
         toBuyCoupon:function (coupon) {// 点击购买按钮事件处理
-            window.location.href = '/pay/caimei-paycash.html?pageType=3&couponId='+coupon.couponId;
+            if(this.listQuery.userId == 0){
+                window.location.href='/login.html';
+            }else{
+                window.location.href = '/pay/caimei-paycash.html?pageType=3&couponId='+coupon.couponId;
+            }
         },
         receiveCoupon:function(coupon){// 点击领取按钮事件处理
             var  _self = this;

+ 2 - 2
src/main/resources/templates/product/beautytopic.html

@@ -109,7 +109,7 @@
                                                 </template>
                                                 <template v-else>
                                                     <!--可见价格-->
-                                                    <template v-if="(pros.priceFlag==0 && pros.userIdentity!=3) || pros.userIdentity==2 || (pros.userIdentity==3 && pros.shopID==GLOBAL_SHOP_ID)">
+                                                    <template v-if="(pros.priceFlag==0 && pros.userIdentity!=3) || pros.userIdentity==2 || (pros.userIdentity==3 && pros.shopId==GLOBAL_SHOP_ID)">
                                                         <div class="main_price_text" v-if="pros.productCategory == 1">
                                                             <div class="price_text_tag">
 <!--																<p class="couponTag" v-if="pros.couponsLogo">优惠券</p>-->
@@ -119,7 +119,7 @@
                                                                 </p>
                                                             </div>
                                                             <div class="main_price_show" :class="PromotionsFormat(pros.promotions) ? 'none' : ''">
-                                                                ¥{{ (PromotionsFormat(pros.promotions) ? pros.price : pros.originalPrice ) | NumFormat  }}
+                                                                ¥{{ (PromotionsFormat(pros.promotions) ? pros.originalPrice : pros.price ) | NumFormat  }}
                                                             </div>
                                                         </div>
                                                     </template>