pull/6/head
xiaozhiyong 2 years ago
parent ea5b71c1ae
commit 7be8276544
  1. 37
      pages/stationDetail/OrderStatus.vue

@ -21,18 +21,21 @@
<text>请勿离开当前页面,等待支付完成</text> <text>请勿离开当前页面,等待支付完成</text>
</view> </view>
<view class="payStatue_p" v-if="payState == 2"> <view class="payStatue_p" v-if="payState == 2">
<button style="width: 500upx;margin-bottom: 40upx;" v-if="payState == 2" class="round large cu-btn bg-main-oil" @tap="singleCheck(orderId)">手动刷新</button> <button style="width: 500upx;margin-bottom: 40upx;" v-if="payState == 2"
class="round large cu-btn bg-main-oil" @tap="singleCheck(orderId)">手动刷新</button>
</view> </view>
</view> </view>
<view class="margin-bottom-sm" @tap="copyId(orderInfos.customerId,'司机编号')"> <view class="margin-bottom-sm" @tap="copyId(orderInfos.customerId,'司机编号')">
司机编号 司机编号
<text class="fr">{{orderInfos.customerId}}<text :class="orderInfos.customerId?'cuIcon-copy':''" class="flex-sub padding-left-sm text-right text-lg text-red"> <text class="fr">{{orderInfos.customerId}}<text :class="orderInfos.customerId?'cuIcon-copy':''"
class="flex-sub padding-left-sm text-right text-lg text-red">
</text></text> </text></text>
</view> </view>
<view class="margin-bottom-sm"> <view class="margin-bottom-sm">
加油司机 加油司机
<view class="fr"> <view class="fr">
<text>{{ orderInfos.customerName ? orderInfos.customerName : '丰油用户' }}</text> <text class="padding-left-sm">{{orderInfos.plateNumber|plateFilter}} <text>{{ orderInfos.customerName ? orderInfos.customerName : '丰油用户' }}</text> <text
class="padding-left-sm">{{orderInfos.plateNumber|plateFilter}}
</text> </text>
</view> </view>
@ -95,7 +98,8 @@
<view class="radius bg-white margin margin-bottom-0 padding"> <view class="radius bg-white margin margin-bottom-0 padding">
<view class="margin-bottom-sm" @tap="copyId(orderInfos.orderSerialNumber,'订单号')"> <view class="margin-bottom-sm" @tap="copyId(orderInfos.orderSerialNumber,'订单号')">
订单号 订单号
<text class=" fr">{{orderInfos.orderSerialNumber}}<text class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red"> <text class=" fr">{{orderInfos.orderSerialNumber}}<text
class="flex-sub padding-left-sm text-right cuIcon-copy text-lg text-red">
</text></text> </text></text>
</view> </view>
<view class="margin-bottom-sm"> <view class="margin-bottom-sm">
@ -134,9 +138,12 @@
<!-- <button v-show="formQr" @tap="scanQr" class="bg-main-oil margin-bottom"> <!-- <button v-show="formQr" @tap="scanQr" class="bg-main-oil margin-bottom">
<text class="cuIcon-scan padding-right-xs"></text> <text class="cuIcon-scan padding-right-xs"></text>
继续加油</button> --> 继续加油</button> -->
<button v-if="payState == 1" class="round large cu-btn bg-main-oil btn-oils" @tap="toDetails(orderId)">前往订单</button> <button v-if="payState == 1" class="round large cu-btn bg-main-oil btn-oils"
<button v-if="payState == 2" class="round large cu-btn bg-main-oil btn-oils" @tap="getScanning()">重新扫码下单</button> @tap="toDetails(orderId)">前往订单</button>
<button v-if="payState != 0" class="round large cu-btn bg-main-oil btn-oils" @tap="gotoHome()">返回首页</button> <button v-if="payState == 2" class="round large cu-btn bg-main-oil btn-oils"
@tap="getScanning()">重新扫码下单</button>
<button v-if="payState != 0" class="round large cu-btn bg-main-oil btn-oils"
@tap="gotoHome()">返回首页</button>
<!-- <button class="bg-red light margin-bottom" @tap="backHome"> <!-- <button class="bg-red light margin-bottom" @tap="backHome">
<text class="cuIcon-home padding-right-xs"></text> <text class="cuIcon-home padding-right-xs"></text>
返回首页</button> --> 返回首页</button> -->
@ -214,7 +221,8 @@
orderInfos: {} orderInfos: {}
} }
}, },
filters:{numberFormat(value) { filters: {
numberFormat(value) {
if (value != 'xxx.x') { if (value != 'xxx.x') {
console.log('old:', value) console.log('old:', value)
let realAmount = value.toFixed(2) let realAmount = value.toFixed(2)
@ -251,15 +259,13 @@
getScanning() { // getScanning() { //
uni.redirectTo({ uni.redirectTo({
url: '/pages/stationDetail/stationDetail', url: '/pages/stationDetail/stationDetail',
fail: (err) => { fail: (err) => {}
}
}) })
}, },
gotoHome() { // gotoHome() { //
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index', url: '/pages/index/index',
fail: (err) => { fail: (err) => {}
}
}) })
}, },
singleCheck(ids) { //check singleCheck(ids) { //check
@ -372,6 +378,7 @@
page { page {
background-color: #efefef; background-color: #efefef;
} }
.page-content { .page-content {
background-color: #f1f2f7; background-color: #f1f2f7;
min-height: 100%; min-height: 100%;
@ -429,6 +436,7 @@
display: block; display: block;
border-radius: 0 0 0 100upx; border-radius: 0 0 0 100upx;
} }
.payStatue_text { .payStatue_text {
font-size: 36rpx; font-size: 36rpx;
color: #737373; color: #737373;
@ -437,6 +445,7 @@
text-align: center; text-align: center;
margin-top: 6rpx; margin-top: 6rpx;
} }
.payStatue_p { .payStatue_p {
font-size: 26rpx; font-size: 26rpx;
color: #888888; color: #888888;
@ -445,6 +454,7 @@
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.btn-oils { .btn-oils {
width: 100%; width: 100%;
border-radius: 14rpx; border-radius: 14rpx;
@ -453,14 +463,17 @@
/* padding: 14rpx; */ /* padding: 14rpx; */
height: 80rpx; height: 80rpx;
} }
.showimgs { .showimgs {
width: 130rpx; width: 130rpx;
height: 130rpx; height: 130rpx;
} }
.boxsings_main_top { .boxsings_main_top {
position: relative; position: relative;
margin-top: 90rpx; margin-top: 90rpx;
} }
.showIcons { .showIcons {
background-color: #fff; background-color: #fff;
background-size: cover; background-size: cover;

Loading…
Cancel
Save