Kaynağa Gözat

盲票原价显示修改

hwb0 3 yıl önce
ebeveyn
işleme
629f7d4cbd
3 değiştirilmiş dosya ile 6 ekleme ve 7 silme
  1. 5 5
      pages/index/index.vue
  2. 1 1
      pages/ticketBox/detail.vue
  3. 0 1
      pages/user/index.vue

+ 5 - 5
pages/index/index.vue

@@ -29,8 +29,8 @@
 					<swiper class="ticket-swiper" :current="ticketIndex" :autoplay="false" :circular="true" @change="changeTicket">
 						<swiper-item v-for="(item, index) in ticketList" :key="index" @click="toTicketBox(item)">
 							<view class="ticket-swiper-item flex">
-								<image class="box" :src="item.picUrl[2]" mode="scaleToFill"></image>
-								<image class="prize" :src="item.picUrl[1]" mode="scaleToFill"></image>
+								<image class="ticket-swiper-item-box" :src="item.picUrl[2]" mode="scaleToFill"></image>
+								<image class="ticket-swiper-item-prize" :src="item.picUrl[1]" mode="scaleToFill"></image>
 							</view>
 						</swiper-item>
 					</swiper>
@@ -108,7 +108,7 @@
 						<view class="num">{{ $numberFormat(ticketInfo.salePrice) }}</view>
 						<view class="txt">元/个</view>
 					</view>
-					<view class="ticket-price-discount flex">
+					<view class="ticket-price-discount flex" v-if="ticketInfo.originPrice != 0">
 						<view class="num">原价¥{{ $numberFormat(ticketInfo.originPrice) }}</view>
 					</view>
 				</view>
@@ -597,14 +597,14 @@
 				position: relative;
 				height: 100%;
 				
-				.box {
+				&-box {
 					position: absolute;
 					bottom: 0;
 					width: 75vw;
 					height: 75%;
 				}
 				
-				.prize {
+				&-prize {
 					position: absolute;
 					top: 0;
 					width: 85vw;

+ 1 - 1
pages/ticketBox/detail.vue

@@ -39,7 +39,7 @@
 					<image src="../../static/ticketBox/ticket_block.png" mode="scaleToFill"></image>
 					<view class="txt">¥{{ $numberFormat(info.salePrice) }} /个</view>
 				</view>
-				<view class="prize-price-past">原价:¥{{ $numberFormat(info.originPrice) }}/个</view>
+				<view class="prize-price-past" v-if="info.originPrice != 0">原价:¥{{ $numberFormat(info.originPrice) }}/个</view>
 			</view>
 			
 			<!-- 开启盲票 -->

+ 0 - 1
pages/user/index.vue

@@ -48,7 +48,6 @@
 				<u-cell icon="map" title="我的地址" :isLink="true" @click="toAddress" />
 				<u-cell icon="kefu-ermai" title="联系我们" :isLink="true" @click="contactService" />
 				<u-cell icon="info-circle" title="关于我们" :border="false" :isLink="true" :url="'/packageOther/about/index'" />
-				<u-cell icon="info-circle" title="奖品滚动" :border="false" :isLink="true" :url="'/packagePrize/rolling/index'" />
 			</u-cell-group>
 		</view>
 		<view class="cancel">