Commit 051a8cd3 authored by 黄奎's avatar 黄奎

页面修改

parent 152be146
......@@ -103,9 +103,7 @@
<u-icon name="arrow-up" @click.native.stop="getShow(item)" v-else color="#2979ff" size="28"></u-icon>
</view>
<view class="jz-Oright">
{{
list.find(x=>x.Id==item.orderState||(x.Id==1&&item.orderState==2)).name
}}
{{getOrderStateName(item)}}
</view>
</view>
<view style="display: flex">
......@@ -127,13 +125,7 @@
</view>
<view class="jz_Zailai" style="margin-right: 10rpx" @click.stop="gojz_List">再来一单</view>
<!-- #ifdef MP-WEIXIN -->
<!-- <view
v-if="item.orderState == 2"
class="jz_Zailai"
style="width: 110rpx; margin-right: 10rpx"
@click.stop="goZhifu(item)"
>付款</view
> -->
<button v-if="item.orderState == 2" class="jz_Zailai" @click.stop="goZhifu(item)" style="width: 110rpx; margin-right: 10rpx; margin-left: 0rpx">
付款
</button>
......@@ -247,6 +239,17 @@
});
},
methods: {
//获取订单状态名称
getOrderStateName(item) {
console.log("item", item);
var str = "待付款";
if (item.orderState == 1) {
str = "已付款"
} else if (item.orderState == 4) {
str = "已取消"
}
return str;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment