|
|
@ -15,19 +15,19 @@ |
|
|
|
:current="current" |
|
|
|
@click="clickTabs"></uv-tabs> |
|
|
|
|
|
|
|
<view v-if="orderList.length > 0" class="list"> |
|
|
|
<view class="list"> |
|
|
|
<view class="item" |
|
|
|
v-for="(item, index) in orderList.records" |
|
|
|
v-for="(item, index) in list" |
|
|
|
@click="toOrderDetail(item.id)" |
|
|
|
:key="index"> |
|
|
|
|
|
|
|
<view class="top"> |
|
|
|
<view class="service"> |
|
|
|
<text>{{item.projectId_dictText}}</text> |
|
|
|
<text>{{item.type_dictText}}</text> |
|
|
|
<!-- <text>{{item.projectId_dictText}}</text> |
|
|
|
<text>{{item.type_dictText}}</text> --> |
|
|
|
</view> |
|
|
|
<view class="status"> |
|
|
|
<text> {{item.state_dictText}}</text> |
|
|
|
<text> {{ tabs[Number(item.state) + 1].name }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -39,13 +39,13 @@ |
|
|
|
|
|
|
|
<view class="right"> |
|
|
|
<view class="text-hidden-1"> |
|
|
|
客户姓名:{{item.name}} |
|
|
|
商品:{{item.title}} |
|
|
|
</view> |
|
|
|
<view class="text-hidden-1"> |
|
|
|
产品规格:{{item.unit}} |
|
|
|
规格:{{item.sku}} |
|
|
|
</view> |
|
|
|
<view class="text-hidden-1"> |
|
|
|
租赁地址:{{item.address}} |
|
|
|
数量:{{item.num}} |
|
|
|
</view> |
|
|
|
<!-- <view class="text-hidden-1"> |
|
|
|
总计时间:{{item.useTime}}分钟 |
|
|
@ -57,23 +57,23 @@ |
|
|
|
|
|
|
|
<view class="bottom"> |
|
|
|
<view class="price"> |
|
|
|
总价格:<text class="num">{{item.money}}元</text> |
|
|
|
实付款:<text class="num">{{item.price}}元</text> |
|
|
|
</view> |
|
|
|
<view class="b1"> |
|
|
|
|
|
|
|
<!-- <view class="b1"> |
|
|
|
查看物流 |
|
|
|
</view> |
|
|
|
<!-- <view @click.stop="toPayOrder(item)" class="b2" v-if="item.state == 0"> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view @click.stop="toPayOrder(item)" class="b2" |
|
|
|
v-if="item.state == 0"> |
|
|
|
立即付款 |
|
|
|
</view> |
|
|
|
<view class="b1" @click.stop="moreOrder(item.projectId,toPlaceorder)" v-if="item.state == 3"> |
|
|
|
再来一单 |
|
|
|
</view> |
|
|
|
<view class="b2" @click.stop="toEvaluate(item.id,item.projectId,item.technicianId)" v-if="item.state == 3"> |
|
|
|
|
|
|
|
<view class="b2" |
|
|
|
@click.stop="" |
|
|
|
v-if="item.state == 3"> |
|
|
|
立即评价 |
|
|
|
</view> |
|
|
|
<view class="b2" @click.stop="moreOrder(item.projectId,toPlaceorder)" v-if="item.state == 4"> |
|
|
|
再来一单 |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
@ -112,32 +112,13 @@ |
|
|
|
name: '已完成' |
|
|
|
} |
|
|
|
], |
|
|
|
queryParams: { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10 |
|
|
|
}, |
|
|
|
// orderList: [ |
|
|
|
// { |
|
|
|
// money : 99.99, |
|
|
|
// address : '广东省广州市越秀区城南故事C3栋2802', |
|
|
|
// name : '李**', |
|
|
|
// phone : '150*****091', |
|
|
|
// unit : '120*40*75【桌子尺寸】', |
|
|
|
// image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
// state_dictText : '已完成', |
|
|
|
// } |
|
|
|
// ], //订单列表数据 |
|
|
|
orderList : { |
|
|
|
records : [], |
|
|
|
total : 0, |
|
|
|
}, |
|
|
|
state : -1, |
|
|
|
current : 0, |
|
|
|
mixinsListApi : 'getOrderPageList', |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(args) { |
|
|
|
this.current = args.type || 0 |
|
|
|
this.clickTabs(this.current) |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
}, |
|
|
@ -233,8 +214,11 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.b2 { |
|
|
|
background: linear-gradient(178deg, #4FD3BC, #60C285); |
|
|
|
background: $uni-color; |
|
|
|
color: #fff; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
|
|
|
|
view { |
|
|
|