Преглед на файлове

商品与奖品详情页样式调整

DELL преди 3 години
родител
ревизия
db907fd529
променени са 2 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 2 2
      pages/goods/detail.vue
  2. 10 2
      pages/order/detail.vue

+ 2 - 2
pages/goods/detail.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<u-navbar title="商品详情" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
-		<view class="detail" style="margin-bottom: 108rpx;">
+		<view class="detail" style="margin-bottom: 90rpx;">
 			<view class="detail-top">
 				<u-swiper :list="picUrlArr" height="375" radius="0" :indicator="true" :circular="true"></u-swiper>
 			</view>
@@ -359,7 +359,7 @@
 				height: 88rpx;
 				width: 100%;
 				background-color: #ffffff;
-				margin-top: 10rpx;
+				// margin-top: 10rpx;
 
 				&-one {
 					float: left;

+ 10 - 2
pages/order/detail.vue

@@ -135,7 +135,7 @@
 		<view class="footer-fixed" v-if="status.value == 2">
 			<view class="flex btn">
 				<view class="btn-right">
-					<!-- <text class="logistics" @click="getLogistics">查看物流</text> -->
+					<text class="logistics" @click="getLogistics">查看物流</text>
 				</view>
 				<view class="btn-right">
 					<text class="confirm" @click="confirmOne">确认收货</text>
@@ -275,7 +275,15 @@
 					data: id,
 				});
 			},
-
+			
+			//查看物流
+			getLogistics() {
+				console.log(this.info)
+				uni.navigateTo({
+					url:`/pages/order/logistics?id=${ 1 }`
+				});
+			},
+			
 			// 确认收货
 			confirmOne() {
 				let orderId = this.orderId