Merge pull request 'order details takeawayer 8.14' (#204) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/204
This commit is contained in:
		
						commit
						6313f642ea
					
				@ -71,11 +71,15 @@
 | 
			
		||||
		<view class="btn" v-if="['1', '2', '6'].indexOf(orderstate) >= 0">
 | 
			
		||||
			<!-- orderstate == '4' ||  -->
 | 
			
		||||
			<view class="cancel" v-if="(orderstate == '1') && orderInfo.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
 | 
			
		||||
			<view class="cancel" v-if="orderstate == '1'" @click="toOtherPage('Logistics')">查看物流</view>
 | 
			
		||||
			<view class="logistics" v-if="orderstate == '1'" @click="confirmReceive">确认收货</view>
 | 
			
		||||
			<view class="comment" v-if="orderstate == '2'" @click="toOtherPage('Comment')">立即评价</view>
 | 
			
		||||
			<view class="cancel" v-if="orderstate == '6'" @click="cancelOrder">取消支付</view>
 | 
			
		||||
			<!-- <view class="cancel" v-if="orderstate == '8'" @click="cancelOrder">取消订单</view> -->
 | 
			
		||||
			<view class="cancel" v-if="orderstate == '1' && orderInfo.shipping_code" @click="toOtherPage('Logistics')">查看物流</view>
 | 
			
		||||
			<view class="phone" v-if="orderstate == '1' && orderInfo.takeawayer_phone" @click="makePhone(order.takeawayer_phone)">
 | 
			
		||||
				<u-icon name="phone-fill" color="#FF780F" size="28"></u-icon>
 | 
			
		||||
				<text>联系骑手</text>
 | 
			
		||||
			</view>
 | 
			
		||||
			 <!-- || orderstate == '8' -->
 | 
			
		||||
			<view class="payment" v-if="orderstate == '6'" @click="payNow">立即支付</view>
 | 
			
		||||
			<view class="service" v-if="orderstate == '7'">联系官方客服</view>
 | 
			
		||||
@ -289,6 +293,11 @@ export default {
 | 
			
		||||
			this.$u.route('/pageE/order/' + url, {
 | 
			
		||||
				oid: this.orderInfo.order_id,
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		makePhone(phone) {
 | 
			
		||||
			uni.makePhoneCall({
 | 
			
		||||
				phoneNumber: phone
 | 
			
		||||
			});
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
};
 | 
			
		||||
@ -462,7 +471,7 @@ export default {
 | 
			
		||||
		justify-content: flex-end;
 | 
			
		||||
		padding: 19rpx 30rpx;
 | 
			
		||||
		@mixin btn-class($width, $color) {
 | 
			
		||||
			width: $width;
 | 
			
		||||
			// width: $width;
 | 
			
		||||
			height: 60rpx;
 | 
			
		||||
			border: 2rpx solid $color;
 | 
			
		||||
			color: $color;
 | 
			
		||||
@ -485,6 +494,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