zhengkaixin %!s(int64=2) %!d(string=hai) anos
pai
achega
ee2c71ba42
Modificáronse 1 ficheiros con 14 adicións e 4 borrados
  1. 14 4
      pages/monthlyCardActivity/monthlyCardBuy.vue

+ 14 - 4
pages/monthlyCardActivity/monthlyCardBuy.vue

@@ -40,7 +40,11 @@
 		<img id="qrcode" style="display: none;">
 		<!-- 立即开通 -->
 		<view class="bottom" v-if="detail.price" >
-			<button class="dredge" @click="show = true">立即开通 ¥{{detail.price.toFixed(2)}}/月</button>
+			<button class="dredge" v-if="detail.putShelf&&!detail.isVip" @click="show = true">立即开通 ¥{{detail.price.toFixed(2)}}/月</button>
+			<button class="dredge" v-if="detail.putShelf&&detail.isVip" @click="show = true">{{detail.platformText}}车主特惠 ¥{{detail.price.toFixed(2)}}/月<span style="font-size: 12px;    text-decoration: line-through;">¥{{detail.oldPrice.toFixed(2)}}</span></button>
+			
+			<button class="dredge" v-if="!detail.putShelf" @click="putShelf" > 已下架</button>
+		
 			<p>开通表示阅读并同意
 				<text class="agreement" @click="gotoUrl('pages/article/details?code=FWFZKXY')">《服务费折扣协议》</text>
 			</p>
@@ -80,6 +84,11 @@
 			this.getInfo();
 		},
 		methods: {
+			putShelf(){
+				uni.showToast({
+					title:"已下架,暂不支持购买"
+				})
+			},
 			getInfo(){
 				uni.showLoading({
 					title: "加载中",
@@ -256,7 +265,7 @@
 		text-decoration:underline;
 		height: 20px;
 		color: #9F9C99;
-		font-size: 28rpx;
+		font-size: 32rpx;
 		text-align: center;
 	}
 	// 立即开通
@@ -270,9 +279,10 @@
 		right: 0;
 
 		.dredge {
-			width: 72.2%;
+			// width: 72.2%;
+			margin: 0 20px;
 			border-radius: 50px;
-			font-size: 18px;
+			font-size: 36rpx;
 			background: linear-gradient(to right, #C9A87B, #F2E6CA);
 			margin-bottom: 12px;
 		}