|
@@ -38,7 +38,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="detail-info-content-toatl">
|
|
<view class="detail-info-content-toatl">
|
|
- <text v-if="status.value == 0 || status.value == -1">应付:</text>
|
|
|
|
|
|
+ <text v-if="status.value == 0">应付:</text>
|
|
<text v-else>实付:</text>
|
|
<text v-else>实付:</text>
|
|
<text>¥{{ $numberFormat(info.payAmt) }}</text>
|
|
<text>¥{{ $numberFormat(info.payAmt) }}</text>
|
|
</view>
|
|
</view>
|
|
@@ -131,7 +131,7 @@
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="footer-fixed" v-if="status.value == 2 || status.value == 3">
|
|
<view class="footer-fixed" v-if="status.value == 2 || status.value == 3">
|
|
<view class="flex btn">
|
|
<view class="flex btn">
|
|
<view class="btn-right">
|
|
<view class="btn-right">
|
|
@@ -142,6 +142,18 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <view class="footer-fixed" v-if="status.value == 0">
|
|
|
|
+ <view class="flex btn">
|
|
|
|
+ <view class="btn-right">
|
|
|
|
+ <text class="logisticsCancel" @click="cancelOrder">取消订单</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="btn-right">
|
|
|
|
+ <text class="confirmPay" @click="payOrder">去支付</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -275,15 +287,15 @@
|
|
data: id,
|
|
data: id,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
// 查看物流
|
|
// 查看物流
|
|
getLogistics() {
|
|
getLogistics() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:`/pages/order/logistics?id=${ this.orderId }`
|
|
|
|
|
|
+ url: `/pages/order/logistics?id=${ this.orderId }`
|
|
// url:`/pages/order/logistics?id=96666733329055749370`
|
|
// url:`/pages/order/logistics?id=96666733329055749370`
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
// 确认收货
|
|
// 确认收货
|
|
confirmOne() {
|
|
confirmOne() {
|
|
let orderId = this.orderId
|
|
let orderId = this.orderId
|
|
@@ -339,27 +351,38 @@
|
|
color: $uni-text-color;
|
|
color: $uni-text-color;
|
|
}
|
|
}
|
|
|
|
|
|
- .logistics {
|
|
|
|
|
|
+ @mixin btn {
|
|
width: 160rpx;
|
|
width: 160rpx;
|
|
height: 60rpx;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|
|
border-radius: 8rpx;
|
|
border-radius: 8rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .logistics {
|
|
|
|
+ @include btn
|
|
border: 1px solid #bbbbbb;
|
|
border: 1px solid #bbbbbb;
|
|
color: #414141;
|
|
color: #414141;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .logisticsCancel {
|
|
|
|
+ @include btn
|
|
|
|
+ border: 2rpx solid $uni-bg-color;
|
|
|
|
+ }
|
|
|
|
+
|
|
.confirm {
|
|
.confirm {
|
|
- width: 160rpx;
|
|
|
|
- height: 60rpx;
|
|
|
|
- line-height: 60rpx;
|
|
|
|
- border-radius: 8rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- margin-left: 20rpx;
|
|
|
|
- border: 1px solid rgba(236, 112, 9, 100);
|
|
|
|
|
|
+ @include btn
|
|
|
|
+ border: 2rpx solid rgba(236, 112, 9, 100);
|
|
color: rgba(236, 112, 9, 100);
|
|
color: rgba(236, 112, 9, 100);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .confirmPay {
|
|
|
|
+ @include btn
|
|
|
|
+ background-color: $uni-bg-color;
|
|
|
|
+ border: 2rpx solid $uni-bg-color;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -579,6 +602,7 @@
|
|
padding: 20rpx 20rpx;
|
|
padding: 20rpx 20rpx;
|
|
|
|
|
|
text {
|
|
text {
|
|
|
|
+
|
|
display: block;
|
|
display: block;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin: 0 0 0 40rpx;
|
|
margin: 0 0 0 40rpx;
|