12
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
<text class="oil-main-color fr">{{item.orderStatus|statusConduct}}</text>
|
||||
</view>
|
||||
<view class="cu-list menu-avatar comment">
|
||||
<view class="cu-item padding-top-0" @tap="toDetails(item.orderSerialNumber)">
|
||||
|
||||
<view class="cu-item padding-top-0" @tap="toDetails(item.id)">
|
||||
<!-- <view class="cu-avatar text-xl" :style="'background-image:url('+imgUrl+'orders-wjy.png)'"></view> -->
|
||||
<view class="cu-avatar text-xl round" v-show="item.siteImages!=null"
|
||||
:style="'background-image:url('+item.siteImages+')'"></view>
|
||||
@@ -71,18 +70,18 @@
|
||||
</view>
|
||||
<view class="flex-sub text-right" v-show="item.orderStatus=='0' && !timeout">
|
||||
<button class="cu-btn nowrap sm bg-main-oil"
|
||||
@tap="makePay(item.orderSerialNumber)">立即支付</button>
|
||||
@tap="makePay(item.id)">立即支付</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="radius shadow mini-btn bg-white padding flex-wrap position-ab" v-if="showMiniBtn">
|
||||
<view class="margin-bottom-sm ">
|
||||
<!-- <view class="margin-bottom-sm ">
|
||||
<button class="cu-btn nowrap bg-main-oil" @tap="deleteOrder(item.orderSerialNumber)">删除</button>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="margin-bottom-sm" v-show="item.orderStatus=='0'">
|
||||
<button class="cu-btn nowrap bg-brown" @tap="cancelOrder(item.orderSerialNumber)">取消</button>
|
||||
<button class="cu-btn nowrap bg-brown" @tap="cancelOrder(item.id)">取消</button>
|
||||
</view>
|
||||
<view class=" ">
|
||||
<button class="cu-btn nowrap " @tap="showMiniBtn=false">收起</button>
|
||||
@@ -213,11 +212,11 @@
|
||||
},
|
||||
statusConduct(value) {
|
||||
// 备注:订单状态 0:待支付, 1:已支付 ,-1:支付失败 ,2:已取消,3:已退款
|
||||
if (value) {
|
||||
if (String(value)) {
|
||||
// switch value
|
||||
// case "0"
|
||||
// return '待支付'
|
||||
switch (value) {
|
||||
switch (String(value)) {
|
||||
case '0':
|
||||
return '待支付'
|
||||
case '1':
|
||||
|
||||
Reference in New Issue
Block a user