chao 4 anni fa
parent
commit
5faa248e92

+ 4 - 0
src/main/resources/static/js/product/detail.js

@@ -187,6 +187,10 @@ var productDetail = new Vue({
         toLogin: function() {
             setBeforeUrl();
             window.location.href = '/login.html';
+        },
+        toUpgrade: function() {
+            setBeforeUrl();
+            window.location.href = '/user/setting/upgrade.html';
         },
 		addShopCart: function(){ //加入购物车
 		    var _self = this;

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

@@ -131,8 +131,8 @@
                                         <p class="c"><a class="close" @click="hideThisLadder($event)" href="JavaScript:void(0);">了解</a></p>
                                     </div>
                                     <div v-else>
-                                        <p v-if="priceObj.ladderPriceFlag==1 && priceObj.userIdentity==4"><em @click="toLogin">升级会员</em>,享受阶梯价格优惠</p>
-                                        <p v-if="priceObj.actStatus==1 && priceObj.userIdentity==4"><em @click="toLogin">升级会员</em>,参与促销活动</p>
+                                        <p v-if="priceObj.ladderPriceFlag==1 && priceObj.userIdentity==4"><em @click="toUpgrade">升级会员</em>,享受阶梯价格优惠</p>
+                                        <p v-if="priceObj.actStatus==1 && priceObj.userIdentity==4"><em @click="toUpgrade">升级会员</em>,参与促销活动</p>
                                         <p class="c"><a class="close" @click="hideThisLadder($event)" href="JavaScript:void(0);">了解</a></p>
                                     </div>
                                 </div>

BIN
target/www-0.0.1-SNAPSHOT.jar