update uview 8.14
This commit is contained in:
		
							parent
							
								
									cb2e91f65a
								
							
						
					
					
						commit
						2aca3ae153
					
				@ -25,11 +25,15 @@
 | 
			
		||||
		<view class="order-btn" v-if="[1, 2, 3, 4, 8, 11].indexOf(order.view_type) >= 0">
 | 
			
		||||
			 <!-- || order.view_type == 2 -->
 | 
			
		||||
			<view class="cancel" v-if="(order.view_type == 3) && order.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
 | 
			
		||||
			<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
 | 
			
		||||
			<view class="cancel" v-if="order.view_type == 3 && order.shipping_code" @click="toOtherPage('Logistics')">查看物流</view>
 | 
			
		||||
			<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
 | 
			
		||||
			<view class="comment" v-if="order.view_type == 4" @click="toOtherPage('Comment')">立即评价</view>
 | 
			
		||||
			<view class="cancel" v-if="order.view_type == 1" @click="cancelOrder">取消支付</view>
 | 
			
		||||
			<!-- <view class="cancel" v-if="order.view_type == 9" @click="cancelOrder">取消订单</view> -->
 | 
			
		||||
			<view class="phone" v-if="order.view_type == 3 && order.takeawayer_phone" @click="makePhone(order.takeawayer_phone)">
 | 
			
		||||
				<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
 | 
			
		||||
				<text>联系骑手</text>
 | 
			
		||||
			</view>
 | 
			
		||||
			 <!-- || order.view_type == 9 -->
 | 
			
		||||
			<view class="payment" v-if="order.view_type == 1" @click="payNow(order.pay_sn, order.order_amount,order.order_id)">立即支付</view>
 | 
			
		||||
			<view class="service" v-if="order.view_type == 8">联系官方客服</view>
 | 
			
		||||
@ -136,6 +140,11 @@ export default {
 | 
			
		||||
                order_id: id
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		makePhone(phone) {
 | 
			
		||||
			uni.makePhoneCall({
 | 
			
		||||
				phoneNumber: phone
 | 
			
		||||
			});
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
@ -225,7 +234,7 @@ export default {
 | 
			
		||||
		display: flex;
 | 
			
		||||
		justify-content: flex-end;
 | 
			
		||||
		@mixin btn-class($width, $color) {
 | 
			
		||||
			width: $width;
 | 
			
		||||
			// width: $width;
 | 
			
		||||
			height: 60rpx;
 | 
			
		||||
			border: 2rpx solid $color;
 | 
			
		||||
			color: $color;
 | 
			
		||||
@ -248,6 +257,15 @@ export default {
 | 
			
		||||
		.submit {
 | 
			
		||||
			@include btn-class($width: 216rpx, $color: rgba(255,119,15,1));
 | 
			
		||||
		}
 | 
			
		||||
		.phone {
 | 
			
		||||
			@include btn-class($width: 206rpx, $color: rgba(255,119,15,1));
 | 
			
		||||
			display: flex;
 | 
			
		||||
			align-items: center;
 | 
			
		||||
			justify-content: center;
 | 
			
		||||
			.u-icon {
 | 
			
		||||
				margin-right: 10rpx;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user